3 # from OpenLDAP: pkg/ldap/configure.in,v 1.453 2003/01/03 05:04:02 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-ipv6 enable IPv6 support [auto]"
39 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
41 --enable-x-compile enable cross compiling [no]"
43 --with-cyrus-sasl with Cyrus SASL support [auto]"
45 --with-fetch with fetch(3) URL support [auto]"
47 --with-kerberos with Kerberos support [auto]"
49 --with-readline with readline support [auto]"
51 --with-threads with threads [auto]"
53 --with-tls with TLS/SSL support [auto]"
55 --with-yielding-select with implicitly yielding select [auto]"
58 SLAPD (Standalone LDAP Daemon) Options:"
60 --enable-slapd enable building slapd [yes]"
62 --enable-aci enable per-object ACIs (experimental) [no]"
64 --enable-cleartext enable cleartext passwords [yes]"
66 --enable-crypt enable crypt(3) passwords [no]"
68 --enable-dynamic enable linking built binaries with dynamic libs [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-syslog
1418 # Check whether --enable-syslog or --disable-syslog was given.
1419 if test "${enable_syslog+set}" = set; then
1420 enableval="$enable_syslog"
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-syslog" 1>&2; exit 1; }
1431 ol_enable_syslog="$ol_arg"
1434 ol_enable_syslog="auto"
1436 # end --enable-syslog
1437 # OpenLDAP --enable-proctitle
1438 # Check whether --enable-proctitle or --disable-proctitle was given.
1439 if test "${enable_proctitle+set}" = set; then
1440 enableval="$enable_proctitle"
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-proctitle" 1>&2; exit 1; }
1451 ol_enable_proctitle="$ol_arg"
1454 ol_enable_proctitle="yes"
1456 # end --enable-proctitle
1457 ol_enable_cache=${ol_enable_cache-no}
1458 ol_enable_referrals=${ol_enable_referrals-no}
1459 ol_enable_kbind=${ol_enable_kbind-no}
1460 # OpenLDAP --enable-ipv6
1461 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1462 if test "${enable_ipv6+set}" = set; then
1463 enableval="$enable_ipv6"
1466 for ol_val in auto yes no ; do
1467 if test "$enableval" = "$ol_val" ; then
1471 if test "$ol_arg" = "invalid" ; then
1472 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1474 ol_enable_ipv6="$ol_arg"
1477 ol_enable_ipv6="auto"
1480 # OpenLDAP --enable-local
1481 # Check whether --enable-local or --disable-local was given.
1482 if test "${enable_local+set}" = set; then
1483 enableval="$enable_local"
1486 for ol_val in auto yes no ; do
1487 if test "$enableval" = "$ol_val" ; then
1491 if test "$ol_arg" = "invalid" ; then
1492 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1494 ol_enable_local="$ol_arg"
1497 ol_enable_local="auto"
1499 # end --enable-local
1500 # OpenLDAP --enable-x_compile
1501 # Check whether --enable-x_compile or --disable-x_compile was given.
1502 if test "${enable_x_compile+set}" = set; then
1503 enableval="$enable_x_compile"
1506 for ol_val in yes no ; do
1507 if test "$enableval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1514 ol_enable_x_compile="$ol_arg"
1517 ol_enable_x_compile="no"
1519 # end --enable-x_compile
1522 # OpenLDAP --with-cyrus_sasl
1523 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1524 if test "${with_cyrus_sasl+set}" = set; then
1525 withval="$with_cyrus_sasl"
1528 for ol_val in auto yes no ; do
1529 if test "$withval" = "$ol_val" ; then
1533 if test "$ol_arg" = "invalid" ; then
1534 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1536 ol_with_cyrus_sasl="$ol_arg"
1539 ol_with_cyrus_sasl="auto"
1541 # end --with-cyrus_sasl
1543 # OpenLDAP --with-fetch
1544 # Check whether --with-fetch or --without-fetch was given.
1545 if test "${with_fetch+set}" = set; then
1546 withval="$with_fetch"
1549 for ol_val in auto yes no ; do
1550 if test "$withval" = "$ol_val" ; then
1554 if test "$ol_arg" = "invalid" ; then
1555 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1557 ol_with_fetch="$ol_arg"
1560 ol_with_fetch="auto"
1564 # OpenLDAP --with-kerberos
1565 # Check whether --with-kerberos or --without-kerberos was given.
1566 if test "${with_kerberos+set}" = set; then
1567 withval="$with_kerberos"
1570 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1571 if test "$withval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1578 ol_with_kerberos="$ol_arg"
1581 ol_with_kerberos="auto"
1583 # end --with-kerberos
1585 # OpenLDAP --with-readline
1586 # Check whether --with-readline or --without-readline was given.
1587 if test "${with_readline+set}" = set; then
1588 withval="$with_readline"
1591 for ol_val in auto yes no ; do
1592 if test "$withval" = "$ol_val" ; then
1596 if test "$ol_arg" = "invalid" ; then
1597 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1599 ol_with_readline="$ol_arg"
1602 ol_with_readline="auto"
1604 # end --with-readline
1606 # OpenLDAP --with-threads
1607 # Check whether --with-threads or --without-threads was given.
1608 if test "${with_threads+set}" = set; then
1609 withval="$with_threads"
1612 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1613 if test "$withval" = "$ol_val" ; then
1617 if test "$ol_arg" = "invalid" ; then
1618 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1620 ol_with_threads="$ol_arg"
1623 ol_with_threads="auto"
1625 # end --with-threads
1627 # OpenLDAP --with-tls
1628 # Check whether --with-tls or --without-tls was given.
1629 if test "${with_tls+set}" = set; then
1633 for ol_val in auto ssleay openssl yes no ; do
1634 if test "$withval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1641 ol_with_tls="$ol_arg"
1648 # OpenLDAP --with-yielding_select
1649 # Check whether --with-yielding_select or --without-yielding_select was given.
1650 if test "${with_yielding_select+set}" = set; then
1651 withval="$with_yielding_select"
1654 for ol_val in auto yes no manual ; do
1655 if test "$withval" = "$ol_val" ; then
1659 if test "$ol_arg" = "invalid" ; then
1660 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1662 ol_with_yielding_select="$ol_arg"
1665 ol_with_yielding_select="auto"
1667 # end --with-yielding_select
1671 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1672 if test "${with_xxslapdoptions+set}" = set; then
1673 withval="$with_xxslapdoptions"
1677 # OpenLDAP --enable-slapd
1678 # Check whether --enable-slapd or --disable-slapd was given.
1679 if test "${enable_slapd+set}" = set; then
1680 enableval="$enable_slapd"
1683 for ol_val in auto yes no ; do
1684 if test "$enableval" = "$ol_val" ; then
1688 if test "$ol_arg" = "invalid" ; then
1689 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1691 ol_enable_slapd="$ol_arg"
1694 ol_enable_slapd="yes"
1696 # end --enable-slapd
1697 # OpenLDAP --enable-aci
1698 # Check whether --enable-aci or --disable-aci was given.
1699 if test "${enable_aci+set}" = set; then
1700 enableval="$enable_aci"
1703 for ol_val in auto yes no ; do
1704 if test "$enableval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1711 ol_enable_aci="$ol_arg"
1717 # OpenLDAP --enable-cleartext
1718 # Check whether --enable-cleartext or --disable-cleartext was given.
1719 if test "${enable_cleartext+set}" = set; then
1720 enableval="$enable_cleartext"
1723 for ol_val in auto yes no ; do
1724 if test "$enableval" = "$ol_val" ; then
1728 if test "$ol_arg" = "invalid" ; then
1729 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1731 ol_enable_cleartext="$ol_arg"
1734 ol_enable_cleartext="yes"
1736 # end --enable-cleartext
1737 # OpenLDAP --enable-crypt
1738 # Check whether --enable-crypt or --disable-crypt was given.
1739 if test "${enable_crypt+set}" = set; then
1740 enableval="$enable_crypt"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1751 ol_enable_crypt="$ol_arg"
1754 ol_enable_crypt="no"
1756 # end --enable-crypt
1757 # OpenLDAP --enable-dynamic
1758 # Check whether --enable-dynamic or --disable-dynamic was given.
1759 if test "${enable_dynamic+set}" = set; then
1760 enableval="$enable_dynamic"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1771 ol_enable_dynamic="$ol_arg"
1774 ol_enable_dynamic="no"
1776 # end --enable-dynamic
1777 # OpenLDAP --enable-kpasswd
1778 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1779 if test "${enable_kpasswd+set}" = set; then
1780 enableval="$enable_kpasswd"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1791 ol_enable_kpasswd="$ol_arg"
1794 ol_enable_kpasswd="no"
1796 # end --enable-kpasswd
1797 # OpenLDAP --enable-lmpasswd
1798 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1799 if test "${enable_lmpasswd+set}" = set; then
1800 enableval="$enable_lmpasswd"
1803 for ol_val in auto yes no ; do
1804 if test "$enableval" = "$ol_val" ; then
1808 if test "$ol_arg" = "invalid" ; then
1809 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1811 ol_enable_lmpasswd="$ol_arg"
1814 ol_enable_lmpasswd="no"
1816 # end --enable-lmpasswd
1817 # OpenLDAP --enable-spasswd
1818 # Check whether --enable-spasswd or --disable-spasswd was given.
1819 if test "${enable_spasswd+set}" = set; then
1820 enableval="$enable_spasswd"
1823 for ol_val in auto yes no ; do
1824 if test "$enableval" = "$ol_val" ; then
1828 if test "$ol_arg" = "invalid" ; then
1829 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1831 ol_enable_spasswd="$ol_arg"
1834 ol_enable_spasswd="no"
1836 # end --enable-spasswd
1837 # OpenLDAP --enable-modules
1838 # Check whether --enable-modules or --disable-modules was given.
1839 if test "${enable_modules+set}" = set; then
1840 enableval="$enable_modules"
1843 for ol_val in auto yes no ; do
1844 if test "$enableval" = "$ol_val" ; then
1848 if test "$ol_arg" = "invalid" ; then
1849 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1851 ol_enable_modules="$ol_arg"
1854 ol_enable_modules="no"
1856 # end --enable-modules
1857 ol_enable_multimaster=${ol_enable_multimaster-no}
1858 # OpenLDAP --enable-phonetic
1859 # Check whether --enable-phonetic or --disable-phonetic was given.
1860 if test "${enable_phonetic+set}" = set; then
1861 enableval="$enable_phonetic"
1864 for ol_val in auto yes no ; do
1865 if test "$enableval" = "$ol_val" ; then
1869 if test "$ol_arg" = "invalid" ; then
1870 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1872 ol_enable_phonetic="$ol_arg"
1875 ol_enable_phonetic="no"
1877 # end --enable-phonetic
1878 # OpenLDAP --enable-rewrite
1879 # Check whether --enable-rewrite or --disable-rewrite was given.
1880 if test "${enable_rewrite+set}" = set; then
1881 enableval="$enable_rewrite"
1884 for ol_val in auto yes no ; do
1885 if test "$enableval" = "$ol_val" ; then
1889 if test "$ol_arg" = "invalid" ; then
1890 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1892 ol_enable_rewrite="$ol_arg"
1895 ol_enable_rewrite="no"
1897 # end --enable-rewrite
1898 # OpenLDAP --enable-rlookups
1899 # Check whether --enable-rlookups or --disable-rlookups was given.
1900 if test "${enable_rlookups+set}" = set; then
1901 enableval="$enable_rlookups"
1904 for ol_val in auto yes no ; do
1905 if test "$enableval" = "$ol_val" ; then
1909 if test "$ol_arg" = "invalid" ; then
1910 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1912 ol_enable_rlookups="$ol_arg"
1915 ol_enable_rlookups="no"
1917 # end --enable-rlookups
1918 # OpenLDAP --enable-slp
1919 # Check whether --enable-slp or --disable-slp was given.
1920 if test "${enable_slp+set}" = set; then
1921 enableval="$enable_slp"
1924 for ol_val in auto yes no ; do
1925 if test "$enableval" = "$ol_val" ; then
1929 if test "$ol_arg" = "invalid" ; then
1930 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1932 ol_enable_slp="$ol_arg"
1938 # OpenLDAP --enable-wrappers
1939 # Check whether --enable-wrappers or --disable-wrappers was given.
1940 if test "${enable_wrappers+set}" = set; then
1941 enableval="$enable_wrappers"
1944 for ol_val in auto yes no ; do
1945 if test "$enableval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1952 ol_enable_wrappers="$ol_arg"
1955 ol_enable_wrappers="no"
1957 # end --enable-wrappers
1959 # OpenLDAP --enable-slapi
1960 # Check whether --enable-slapi or --disable-slapi was given.
1961 if test "${enable_slapi+set}" = set; then
1962 enableval="$enable_slapi"
1965 for ol_val in auto yes no ; do
1966 if test "$enableval" = "$ol_val" ; then
1970 if test "$ol_arg" = "invalid" ; then
1971 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1973 ol_enable_slapi="$ol_arg"
1976 ol_enable_slapi="no"
1978 # end --enable-slapi
1980 # OpenLDAP --enable-bdb
1981 # Check whether --enable-bdb or --disable-bdb was given.
1982 if test "${enable_bdb+set}" = set; then
1983 enableval="$enable_bdb"
1986 for ol_val in auto yes no ; do
1987 if test "$enableval" = "$ol_val" ; then
1991 if test "$ol_arg" = "invalid" ; then
1992 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1994 ol_enable_bdb="$ol_arg"
2000 # OpenLDAP --with-bdb_module
2001 # Check whether --with-bdb_module or --without-bdb_module was given.
2002 if test "${with_bdb_module+set}" = set; then
2003 withval="$with_bdb_module"
2006 for ol_val in static dynamic ; do
2007 if test "$withval" = "$ol_val" ; then
2011 if test "$ol_arg" = "invalid" ; then
2012 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2014 ol_with_bdb_module="$ol_arg"
2017 ol_with_bdb_module="static"
2019 # end --with-bdb_module
2021 # OpenLDAP --enable-dnssrv
2022 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2023 if test "${enable_dnssrv+set}" = set; then
2024 enableval="$enable_dnssrv"
2027 for ol_val in auto yes no ; do
2028 if test "$enableval" = "$ol_val" ; then
2032 if test "$ol_arg" = "invalid" ; then
2033 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2035 ol_enable_dnssrv="$ol_arg"
2038 ol_enable_dnssrv="no"
2040 # end --enable-dnssrv
2041 # OpenLDAP --with-dnssrv_module
2042 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2043 if test "${with_dnssrv_module+set}" = set; then
2044 withval="$with_dnssrv_module"
2047 for ol_val in static dynamic ; do
2048 if test "$withval" = "$ol_val" ; then
2052 if test "$ol_arg" = "invalid" ; then
2053 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2055 ol_with_dnssrv_module="$ol_arg"
2058 ol_with_dnssrv_module="static"
2060 # end --with-dnssrv_module
2062 # OpenLDAP --enable-ldap
2063 # Check whether --enable-ldap or --disable-ldap was given.
2064 if test "${enable_ldap+set}" = set; then
2065 enableval="$enable_ldap"
2068 for ol_val in auto yes no ; do
2069 if test "$enableval" = "$ol_val" ; then
2073 if test "$ol_arg" = "invalid" ; then
2074 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2076 ol_enable_ldap="$ol_arg"
2082 # OpenLDAP --with-ldap_module
2083 # Check whether --with-ldap_module or --without-ldap_module was given.
2084 if test "${with_ldap_module+set}" = set; then
2085 withval="$with_ldap_module"
2088 for ol_val in static dynamic ; do
2089 if test "$withval" = "$ol_val" ; then
2093 if test "$ol_arg" = "invalid" ; then
2094 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2096 ol_with_ldap_module="$ol_arg"
2099 ol_with_ldap_module="static"
2101 # end --with-ldap_module
2103 # OpenLDAP --enable-ldbm
2104 # Check whether --enable-ldbm or --disable-ldbm was given.
2105 if test "${enable_ldbm+set}" = set; then
2106 enableval="$enable_ldbm"
2109 for ol_val in auto yes no ; do
2110 if test "$enableval" = "$ol_val" ; then
2114 if test "$ol_arg" = "invalid" ; then
2115 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2117 ol_enable_ldbm="$ol_arg"
2123 # OpenLDAP --with-ldbm_api
2124 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2125 if test "${with_ldbm_api+set}" = set; then
2126 withval="$with_ldbm_api"
2129 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2130 if test "$withval" = "$ol_val" ; then
2134 if test "$ol_arg" = "invalid" ; then
2135 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2137 ol_with_ldbm_api="$ol_arg"
2140 ol_with_ldbm_api="auto"
2142 # end --with-ldbm_api
2144 # OpenLDAP --with-ldbm_module
2145 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2146 if test "${with_ldbm_module+set}" = set; then
2147 withval="$with_ldbm_module"
2150 for ol_val in static dynamic ; do
2151 if test "$withval" = "$ol_val" ; then
2155 if test "$ol_arg" = "invalid" ; then
2156 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2158 ol_with_ldbm_module="$ol_arg"
2161 ol_with_ldbm_module="static"
2163 # end --with-ldbm_module
2165 # OpenLDAP --with-ldbm_type
2166 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2167 if test "${with_ldbm_type+set}" = set; then
2168 withval="$with_ldbm_type"
2171 for ol_val in auto btree hash ; do
2172 if test "$withval" = "$ol_val" ; then
2176 if test "$ol_arg" = "invalid" ; then
2177 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2179 ol_with_ldbm_type="$ol_arg"
2182 ol_with_ldbm_type="auto"
2184 # end --with-ldbm_type
2186 # OpenLDAP --enable-meta
2187 # Check whether --enable-meta or --disable-meta was given.
2188 if test "${enable_meta+set}" = set; then
2189 enableval="$enable_meta"
2192 for ol_val in auto yes no ; do
2193 if test "$enableval" = "$ol_val" ; then
2197 if test "$ol_arg" = "invalid" ; then
2198 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2200 ol_enable_meta="$ol_arg"
2206 # OpenLDAP --with-meta_module
2207 # Check whether --with-meta_module or --without-meta_module was given.
2208 if test "${with_meta_module+set}" = set; then
2209 withval="$with_meta_module"
2212 for ol_val in static dynamic ; do
2213 if test "$withval" = "$ol_val" ; then
2217 if test "$ol_arg" = "invalid" ; then
2218 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2220 ol_with_meta_module="$ol_arg"
2223 ol_with_meta_module="static"
2225 # end --with-meta_module
2227 # OpenLDAP --enable-monitor
2228 # Check whether --enable-monitor or --disable-monitor was given.
2229 if test "${enable_monitor+set}" = set; then
2230 enableval="$enable_monitor"
2233 for ol_val in auto yes no ; do
2234 if test "$enableval" = "$ol_val" ; then
2238 if test "$ol_arg" = "invalid" ; then
2239 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2241 ol_enable_monitor="$ol_arg"
2244 ol_enable_monitor="no"
2246 # end --enable-monitor
2247 # OpenLDAP --with-monitor_module
2248 # Check whether --with-monitor_module or --without-monitor_module was given.
2249 if test "${with_monitor_module+set}" = set; then
2250 withval="$with_monitor_module"
2253 for ol_val in static dynamic ; do
2254 if test "$withval" = "$ol_val" ; then
2258 if test "$ol_arg" = "invalid" ; then
2259 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2261 ol_with_monitor_module="$ol_arg"
2264 ol_with_monitor_module="static"
2266 # end --with-monitor_module
2268 # OpenLDAP --enable-null
2269 # Check whether --enable-null or --disable-null was given.
2270 if test "${enable_null+set}" = set; then
2271 enableval="$enable_null"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2282 ol_enable_null="$ol_arg"
2288 # OpenLDAP --with-null_module
2289 # Check whether --with-null_module or --without-null_module was given.
2290 if test "${with_null_module+set}" = set; then
2291 withval="$with_null_module"
2294 for ol_val in static dynamic ; do
2295 if test "$withval" = "$ol_val" ; then
2299 if test "$ol_arg" = "invalid" ; then
2300 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2302 ol_with_null_module="$ol_arg"
2305 ol_with_null_module="static"
2307 # end --with-null_module
2309 # OpenLDAP --enable-passwd
2310 # Check whether --enable-passwd or --disable-passwd was given.
2311 if test "${enable_passwd+set}" = set; then
2312 enableval="$enable_passwd"
2315 for ol_val in auto yes no ; do
2316 if test "$enableval" = "$ol_val" ; then
2320 if test "$ol_arg" = "invalid" ; then
2321 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2323 ol_enable_passwd="$ol_arg"
2326 ol_enable_passwd="no"
2328 # end --enable-passwd
2329 # OpenLDAP --with-passwd_module
2330 # Check whether --with-passwd_module or --without-passwd_module was given.
2331 if test "${with_passwd_module+set}" = set; then
2332 withval="$with_passwd_module"
2335 for ol_val in static dynamic ; do
2336 if test "$withval" = "$ol_val" ; then
2340 if test "$ol_arg" = "invalid" ; then
2341 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2343 ol_with_passwd_module="$ol_arg"
2346 ol_with_passwd_module="static"
2348 # end --with-passwd_module
2350 # OpenLDAP --enable-perl
2351 # Check whether --enable-perl or --disable-perl was given.
2352 if test "${enable_perl+set}" = set; then
2353 enableval="$enable_perl"
2356 for ol_val in auto yes no ; do
2357 if test "$enableval" = "$ol_val" ; then
2361 if test "$ol_arg" = "invalid" ; then
2362 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2364 ol_enable_perl="$ol_arg"
2370 # OpenLDAP --with-perl_module
2371 # Check whether --with-perl_module or --without-perl_module was given.
2372 if test "${with_perl_module+set}" = set; then
2373 withval="$with_perl_module"
2376 for ol_val in static dynamic ; do
2377 if test "$withval" = "$ol_val" ; then
2381 if test "$ol_arg" = "invalid" ; then
2382 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2384 ol_with_perl_module="$ol_arg"
2387 ol_with_perl_module="static"
2389 # end --with-perl_module
2391 # OpenLDAP --enable-shell
2392 # Check whether --enable-shell or --disable-shell was given.
2393 if test "${enable_shell+set}" = set; then
2394 enableval="$enable_shell"
2397 for ol_val in auto yes no ; do
2398 if test "$enableval" = "$ol_val" ; then
2402 if test "$ol_arg" = "invalid" ; then
2403 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2405 ol_enable_shell="$ol_arg"
2408 ol_enable_shell="no"
2410 # end --enable-shell
2411 # OpenLDAP --with-shell_module
2412 # Check whether --with-shell_module or --without-shell_module was given.
2413 if test "${with_shell_module+set}" = set; then
2414 withval="$with_shell_module"
2417 for ol_val in static dynamic ; do
2418 if test "$withval" = "$ol_val" ; then
2422 if test "$ol_arg" = "invalid" ; then
2423 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2425 ol_with_shell_module="$ol_arg"
2428 ol_with_shell_module="static"
2430 # end --with-shell_module
2432 # OpenLDAP --enable-sql
2433 # Check whether --enable-sql or --disable-sql was given.
2434 if test "${enable_sql+set}" = set; then
2435 enableval="$enable_sql"
2438 for ol_val in auto yes no ; do
2439 if test "$enableval" = "$ol_val" ; then
2443 if test "$ol_arg" = "invalid" ; then
2444 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2446 ol_enable_sql="$ol_arg"
2452 # OpenLDAP --with-sql_module
2453 # Check whether --with-sql_module or --without-sql_module was given.
2454 if test "${with_sql_module+set}" = set; then
2455 withval="$with_sql_module"
2458 for ol_val in static dynamic ; do
2459 if test "$withval" = "$ol_val" ; then
2463 if test "$ol_arg" = "invalid" ; then
2464 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2466 ol_with_sql_module="$ol_arg"
2469 ol_with_sql_module="static"
2471 # end --with-sql_module
2473 # OpenLDAP --enable-tcl
2474 # Check whether --enable-tcl or --disable-tcl was given.
2475 if test "${enable_tcl+set}" = set; then
2476 enableval="$enable_tcl"
2479 for ol_val in auto yes no ; do
2480 if test "$enableval" = "$ol_val" ; then
2484 if test "$ol_arg" = "invalid" ; then
2485 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2487 ol_enable_tcl="$ol_arg"
2493 # OpenLDAP --with-tcl_module
2494 # Check whether --with-tcl_module or --without-tcl_module was given.
2495 if test "${with_tcl_module+set}" = set; then
2496 withval="$with_tcl_module"
2499 for ol_val in static dynamic ; do
2500 if test "$withval" = "$ol_val" ; then
2504 if test "$ol_arg" = "invalid" ; then
2505 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2507 ol_with_tcl_module="$ol_arg"
2510 ol_with_tcl_module="static"
2512 # end --with-tcl_module
2515 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2516 if test "${with_xxslurpdoptions+set}" = set; then
2517 withval="$with_xxslurpdoptions"
2521 # OpenLDAP --enable-slurpd
2522 # Check whether --enable-slurpd or --disable-slurpd was given.
2523 if test "${enable_slurpd+set}" = set; then
2524 enableval="$enable_slurpd"
2527 for ol_val in auto yes no ; do
2528 if test "$enableval" = "$ol_val" ; then
2532 if test "$ol_arg" = "invalid" ; then
2533 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2535 ol_enable_slurpd="$ol_arg"
2538 ol_enable_slurpd="auto"
2540 # end --enable-slurpd
2542 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2543 if test "${with_xxliboptions+set}" = set; then
2544 withval="$with_xxliboptions"
2548 # Check whether --enable-static or --disable-static was given.
2549 if test "${enable_static+set}" = set; then
2550 enableval="$enable_static"
2551 p=${PACKAGE-default}
2553 yes) enable_static=yes ;;
2554 no) enable_static=no ;;
2557 # Look at the argument we got. We use all the common list separators.
2558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2559 for pkg in $enableval; do
2560 if test "X$pkg" = "X$p"; then
2571 # Check whether --enable-shared or --disable-shared was given.
2572 if test "${enable_shared+set}" = set; then
2573 enableval="$enable_shared"
2574 p=${PACKAGE-default}
2576 yes) enable_shared=yes ;;
2577 no) enable_shared=no ;;
2580 # Look at the argument we got. We use all the common list separators.
2581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2582 for pkg in $enableval; do
2583 if test "X$pkg" = "X$p"; then
2597 if test $ol_enable_slapd = no ; then
2598 if test $ol_enable_slapi = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2601 if test $ol_enable_bdb = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2604 if test $ol_enable_dnssrv = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2607 if test $ol_enable_ldap = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2610 if test $ol_enable_ldbm = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2613 if test $ol_enable_meta = yes ; then
2614 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2616 if test $ol_enable_monitor = yes ; then
2617 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2619 if test $ol_enable_null = yes ; then
2620 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2622 if test $ol_enable_passwd = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2625 if test $ol_enable_perl = yes ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2628 if test $ol_enable_shell = yes ; then
2629 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2631 if test $ol_enable_tcl = yes ; then
2632 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2634 if test $ol_enable_sql = yes ; then
2635 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2637 if test $ol_enable_modules = yes ; then
2638 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2640 if test $ol_enable_multimaster = yes ; then
2641 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2643 if test $ol_enable_wrappers = yes ; then
2644 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2646 if test $ol_enable_phonetic = yes ; then
2647 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2649 if test $ol_enable_rlookups = yes ; then
2650 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2652 if test $ol_enable_aci = yes ; then
2653 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2655 if test $ol_with_ldbm_api != auto ; then
2656 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2658 if test $ol_with_ldbm_type != auto ; then
2659 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2661 if test $ol_with_bdb_module != static ; then
2662 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2664 if test $ol_with_dnssrv_module != static ; then
2665 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2667 if test $ol_with_ldap_module != static ; then
2668 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2670 if test $ol_with_ldbm_module != static ; then
2671 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2673 if test $ol_with_meta_module != static ; then
2674 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2676 if test $ol_with_monitor_module != static ; then
2677 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2679 if test $ol_with_null_module != static ; then
2680 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2682 if test $ol_with_passwd_module != static ; then
2683 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2685 if test $ol_with_perl_module != static ; then
2686 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2688 if test $ol_with_shell_module != static ; then
2689 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2691 if test $ol_with_tcl_module != static ; then
2692 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2694 if test $ol_with_sql_module != static ; then
2695 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2697 if test $ol_enable_slurpd = yes ; then
2698 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2700 if test $ol_enable_rewrite = yes ; then
2701 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2704 # force settings to no
2711 ol_enable_monitor=no
2719 ol_enable_modules=no
2720 ol_enable_multimaster=no
2721 ol_enable_phonetic=no
2722 ol_enable_rlookups=no
2724 ol_enable_wrappers=no
2725 ol_enable_dynamic=no
2728 ol_with_ldbm_type=no
2730 ol_with_bdb_module=static
2731 ol_with_dnssrv_module=static
2732 ol_with_ldap_module=static
2733 ol_with_ldbm_module=static
2734 ol_with_meta_module=static
2735 ol_with_monitor_module=static
2736 ol_with_null_module=static
2737 ol_with_passwd_module=static
2738 ol_with_perl_module=static
2739 ol_with_shell_module=static
2740 ol_with_tcl_module=static
2741 ol_with_sql_module=static
2745 ol_enable_rewrite=no
2747 elif test $ol_enable_ldbm = no ; then
2749 if test $ol_with_ldbm_api != auto ; then
2750 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2753 if test $ol_with_ldbm_type != auto ; then
2754 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2757 if test $ol_with_ldbm_module != static ; then
2758 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2761 if test $ol_enable_modules != yes -a \
2762 $ol_enable_bdb = no -a \
2763 $ol_enable_dnssrv = no -a \
2764 $ol_enable_ldap = no -a \
2765 $ol_enable_meta = no -a \
2766 $ol_enable_monitor = no -a \
2767 $ol_enable_null = no -a \
2768 $ol_enable_passwd = no -a \
2769 $ol_enable_perl = no -a \
2770 $ol_enable_shell = no -a \
2771 $ol_enable_sql = no -a \
2772 $ol_enable_tcl = no ; then
2774 if test $ol_enable_slapd = yes ; then
2775 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2777 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2783 ol_with_ldbm_type=no
2784 ol_with_ldbm_module=static
2786 if test $ol_enable_bdb != no ; then
2787 ol_with_ldbm_api=berkeley
2791 if test $ol_with_ldbm_api = gdbm -a \
2792 $ol_with_ldbm_type = btree ; then
2793 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2795 if test $ol_with_ldbm_api = mdbm -a \
2796 $ol_with_ldbm_type = btree ; then
2797 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2799 if test $ol_with_ldbm_api = ndbm -a \
2800 $ol_with_ldbm_type = btree ; then
2801 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2804 if test $ol_enable_bdb = yes ; then
2805 if test $ol_with_ldbm_api = auto ; then
2806 ol_with_ldbm_api=berkeley
2807 elif test $ol_with_ldbm_api != berkeley ; then
2808 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2811 elif test $ol_enable_bdb = auto ; then
2812 if test $ol_with_ldbm_api != berkeley \
2813 -o $ol_with_ldbm_api != auto ; then
2814 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2820 if test $ol_enable_slurpd = yes ; then
2821 if test $ol_with_threads = no ; then
2822 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2826 if test $ol_enable_lmpasswd = yes ; then
2827 if test $ol_with_tls = no ; then
2828 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2832 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2833 if test $ol_with_kerberos = no ; then
2834 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2835 elif test $ol_with_kerberos = auto ; then
2836 ol_with_kerberos=yes
2839 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2840 if test $ol_with_kerberos = auto ; then
2842 elif test $ol_with_kerberos != no ; then
2843 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2848 if test $ol_enable_spasswd = yes ; then
2849 if test $ol_with_cyrus_sasl = no ; then
2850 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2852 ol_with_cyrus_sasl=yes
2855 echo "$ac_t""done" 1>&6
2887 BUILD_BDB_DYNAMIC=static
2888 BUILD_DNSSRV_DYNAMIC=static
2889 BUILD_LDAP_DYNAMIC=static
2890 BUILD_LDBM_DYNAMIC=static
2891 BUILD_META_DYNAMIC=static
2892 BUILD_MONITOR_DYNAMIC=static
2893 BUILD_NULL_DYNAMIC=static
2894 BUILD_PASSWD_DYNAMIC=static
2895 BUILD_PERL_DYNAMIC=static
2896 BUILD_SHELL_DYNAMIC=static
2897 BUILD_TCL_DYNAMIC=static
2898 BUILD_SQL_DYNAMIC=static
2900 SLAPD_MODULES_LDFLAGS=
2901 SLAPD_MODULES_CPPFLAGS=
2903 SLAPD_STATIC_BACKENDS=
2904 SLAPD_DYNAMIC_BACKENDS=
2930 # Find a good install program. We prefer a C program (faster),
2931 # so one script is as good as another. But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # ./install, which can be erroneously created by make from ./install.sh.
2941 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2942 echo "configure:2943: checking for a BSD compatible install" >&5
2943 if test -z "$INSTALL"; then
2944 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2948 for ac_dir in $PATH; do
2949 # Account for people who put trailing slashes in PATH elements.
2951 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2953 # OSF1 and SCO ODT 3.0 have their own names for install.
2954 # Don't use installbsd from OSF since it installs stuff as root
2956 for ac_prog in ginstall scoinst install; do
2957 if test -f $ac_dir/$ac_prog; then
2958 if test $ac_prog = install &&
2959 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2960 # AIX install. It has an incompatible calling convention.
2962 elif test $ac_prog = install &&
2963 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2964 # program-specific install script used by HP pwplus--don't use.
2967 ac_cv_path_install="$ac_dir/$ac_prog -c"
2978 if test "${ac_cv_path_install+set}" = set; then
2979 INSTALL="$ac_cv_path_install"
2981 # As a last resort, use the slow shell script. We don't cache a
2982 # path for INSTALL within a source directory, because that will
2983 # break other packages using the cache if that directory is
2984 # removed, or if the path is relative.
2985 INSTALL="$ac_install_sh"
2988 echo "$ac_t""$INSTALL" 1>&6
2990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2991 # It thinks the first close brace ends the variable substitution.
2992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2996 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2999 cat >> confdefs.h <<\EOF
3000 #define HAVE_MKVERSION 1
3008 *-*-aix*) if test -z "$CC" ; then
3009 case "$ol_with_threads" in
3010 auto | yes | posix) ol_aix_threads=yes ;;
3016 if test $ol_aix_threads = yes ; then
3017 if test -z "${CC}" ; then
3018 for ac_prog in cc_r xlc_r cc
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/$ac_word; then
3035 ac_cv_prog_CC="$ac_prog"
3043 if test -n "$CC"; then
3044 echo "$ac_t""$CC" 1>&6
3046 echo "$ac_t""no" 1>&6
3049 test -n "$CC" && break
3053 if test "$CC" = cc ; then
3054 if test $ol_with_threads != auto ; then
3055 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3057 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3063 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3064 ol_with_threads=posix
3065 ol_cv_pthread_create=yes
3069 if test -z "${CC}"; then
3070 for ac_prog in cc gcc
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3075 echo "configure:3076: checking for $ac_word" >&5
3076 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3084 for ac_dir in $ac_dummy; do
3085 test -z "$ac_dir" && ac_dir=.
3086 if test -f $ac_dir/$ac_word; then
3087 ac_cv_prog_CC="$ac_prog"
3095 if test -n "$CC"; then
3096 echo "$ac_t""$CC" 1>&6
3098 echo "$ac_t""no" 1>&6
3101 test -n "$CC" && break
3103 test -n "$CC" || CC="missing"
3106 if test "${CC}" = "missing" ; then
3107 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3111 if test -z "${AR}"; then
3112 for ac_prog in ar gar
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test -n "$AR"; then
3122 ac_cv_prog_AR="$AR" # Let the user override the test.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_AR="$ac_prog"
3137 if test -n "$AR"; then
3138 echo "$ac_t""$AR" 1>&6
3140 echo "$ac_t""no" 1>&6
3143 test -n "$AR" && break
3145 test -n "$AR" || AR="missing"
3148 if test "${AR}" = "missing" ; then
3149 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3155 # Find the correct PATH separator. Usually this is `:', but
3156 # DJGPP uses `;' like DOS.
3157 if test "X${PATH_SEPARATOR+set}" != Xset; then
3158 UNAME=${UNAME-`uname 2>/dev/null`}
3160 *-DOS) lt_cv_sys_path_separator=';' ;;
3161 *) lt_cv_sys_path_separator=':' ;;
3163 PATH_SEPARATOR=$lt_cv_sys_path_separator
3166 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3167 echo "configure:3168: checking for Cygwin environment" >&5
3168 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3169 echo $ac_n "(cached) $ac_c" 1>&6
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3178 #define __CYGWIN__ __CYGWIN32__
3183 if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3195 echo "$ac_t""$ac_cv_cygwin" 1>&6
3197 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3198 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3199 echo "configure:3200: checking for mingw32 environment" >&5
3200 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3211 if { (eval echo configure:3212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3215 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3223 echo "$ac_t""$ac_cv_mingw32" 1>&6
3225 test "$ac_cv_mingw32" = yes && MINGW32=yes
3226 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3227 echo "configure:3228: checking for EMX OS/2 environment" >&5
3228 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3239 if { (eval echo configure:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3251 echo "$ac_t""$ac_cv_emxos2" 1>&6
3253 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3255 echo "configure:3256: checking how to run the C preprocessor" >&5
3256 # On Suns, sometimes $CPP names a directory.
3257 if test -n "$CPP" && test -d "$CPP"; then
3260 if test -z "$CPP"; then
3261 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 # This must be in double quotes, not single quotes, because CPP may get
3265 # substituted into the Makefile and "${CC-cc}" will confuse make.
3267 # On the NeXT, cc -E runs the code through the compiler's parser,
3268 # not just through cpp.
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3276 { (eval echo configure:3277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3278 if test -z "$ac_err"; then
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 CPP="${CC-cc} -E -traditional-cpp"
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3293 { (eval echo configure:3294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3295 if test -z "$ac_err"; then
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3302 CPP="${CC-cc} -nologo -E"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3310 { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3312 if test -z "$ac_err"; then
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3326 ac_cv_prog_CPP="$CPP"
3328 CPP="$ac_cv_prog_CPP"
3330 ac_cv_prog_CPP="$CPP"
3332 echo "$ac_t""$CPP" 1>&6
3334 # Check whether --enable-fast-install or --disable-fast-install was given.
3335 if test "${enable_fast_install+set}" = set; then
3336 enableval="$enable_fast_install"
3337 p=${PACKAGE-default}
3339 yes) enable_fast_install=yes ;;
3340 no) enable_fast_install=no ;;
3342 enable_fast_install=no
3343 # Look at the argument we got. We use all the common list separators.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3345 for pkg in $enableval; do
3346 if test "X$pkg" = "X$p"; then
3347 enable_fast_install=yes
3354 enable_fast_install=yes
3357 # Extract the first word of "gcc", so it can be a program name with args.
3358 set dummy gcc; ac_word=$2
3359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_word" >&5
3361 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3369 for ac_dir in $ac_dummy; do
3370 test -z "$ac_dir" && ac_dir=.
3371 if test -f $ac_dir/$ac_word; then
3380 if test -n "$CC"; then
3381 echo "$ac_t""$CC" 1>&6
3383 echo "$ac_t""no" 1>&6
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_word" >&5
3391 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3400 for ac_dir in $ac_dummy; do
3401 test -z "$ac_dir" && ac_dir=.
3402 if test -f $ac_dir/$ac_word; then
3403 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3404 ac_prog_rejected=yes
3412 if test $ac_prog_rejected = yes; then
3413 # We found a bogon in the path, so make sure we never use it.
3414 set dummy $ac_cv_prog_CC
3416 if test $# -gt 0; then
3417 # We chose a different compiler from the bogus one.
3418 # However, it has the same basename, so the bogon will be chosen
3419 # first if we set CC to just the basename; use the full file name.
3421 set dummy "$ac_dir/$ac_word" "$@"
3429 if test -n "$CC"; then
3430 echo "$ac_t""$CC" 1>&6
3432 echo "$ac_t""no" 1>&6
3435 if test -z "$CC"; then
3436 case "`uname -s`" in
3437 *win32* | *WIN32* | *CYGWIN*)
3438 # Extract the first word of "cl", so it can be a program name with args.
3439 set dummy cl; ac_word=$2
3440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3441 echo "configure:3442: checking for $ac_word" >&5
3442 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3450 for ac_dir in $ac_dummy; do
3451 test -z "$ac_dir" && ac_dir=.
3452 if test -f $ac_dir/$ac_word; then
3461 if test -n "$CC"; then
3462 echo "$ac_t""$CC" 1>&6
3464 echo "$ac_t""no" 1>&6
3469 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3472 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3473 echo "configure:3474: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3480 cross_compiling=$ac_cv_prog_cc_cross
3482 cat > conftest.$ac_ext << EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3490 ac_cv_prog_cc_works=yes
3491 # If we can't run a trivial program, we are probably using a cross compiler.
3492 if (./conftest; exit) 2>/dev/null; then
3493 ac_cv_prog_cc_cross=no
3495 ac_cv_prog_cc_cross=yes
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 ac_cv_prog_cc_works=no
3504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3507 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3508 cross_compiling=$ac_cv_prog_cc_cross
3510 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3511 if test $ac_cv_prog_cc_works = no; then
3512 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3514 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3515 echo "configure:3516: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3516 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3517 cross_compiling=$ac_cv_prog_cc_cross
3519 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3520 echo "configure:3521: checking whether we are using GNU C" >&5
3521 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 cat > conftest.c <<EOF
3529 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3536 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3538 if test $ac_cv_prog_gcc = yes; then
3544 ac_test_CFLAGS="${CFLAGS+set}"
3545 ac_save_CFLAGS="$CFLAGS"
3547 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3548 echo "configure:3549: checking whether ${CC-cc} accepts -g" >&5
3549 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 echo 'void f(){}' > conftest.c
3553 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3562 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS="$ac_save_CFLAGS"
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3572 if test "$GCC" = yes; then
3579 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3580 if test "${with_gnu_ld+set}" = set; then
3581 withval="$with_gnu_ld"
3582 test "$withval" = no || with_gnu_ld=yes
3588 if test "$GCC" = yes; then
3589 # Check if gcc -print-prog-name=ld gives a path.
3590 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3591 echo "configure:3592: checking for ld used by GCC" >&5
3594 # gcc leaves a trailing carriage return which upsets mingw
3595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3600 # Accept absolute paths.
3601 [\\/]* | [A-Za-z]:[\\/]*)
3602 re_direlt='/[^/][^/]*/\.\./'
3603 # Canonicalize the path of ld
3604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3608 test -z "$LD" && LD="$ac_prog"
3611 # If it fails, then pretend we aren't using GCC.
3615 # If it is relative, then search for the first ld in PATH.
3619 elif test "$with_gnu_ld" = yes; then
3620 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3621 echo "configure:3622: checking for GNU ld" >&5
3623 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3624 echo "configure:3625: checking for non-GNU ld" >&5
3626 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 if test -z "$LD"; then
3630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3631 for ac_dir in $PATH; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3634 lt_cv_path_LD="$ac_dir/$ac_prog"
3635 # Check to see if the program is GNU ld. I'd rather use --version,
3636 # but apparently some GNU ld's only accept -v.
3637 # Break only if it was the GNU/non-GNU ld that we prefer.
3638 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3639 test "$with_gnu_ld" != no && break
3641 test "$with_gnu_ld" != yes && break
3647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3652 if test -n "$LD"; then
3653 echo "$ac_t""$LD" 1>&6
3655 echo "$ac_t""no" 1>&6
3657 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3658 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3659 echo "configure:3660: checking if the linker ($LD) is GNU ld" >&5
3660 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3664 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3665 lt_cv_prog_gnu_ld=yes
3667 lt_cv_prog_gnu_ld=no
3671 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3672 with_gnu_ld=$lt_cv_prog_gnu_ld
3675 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3676 echo "configure:3677: checking for $LD option to reload object files" >&5
3677 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 lt_cv_ld_reload_flag='-r'
3683 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3684 reload_flag=$lt_cv_ld_reload_flag
3685 test -n "$reload_flag" && reload_flag=" $reload_flag"
3687 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3688 echo "configure:3689: checking for BSD-compatible nm" >&5
3689 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 if test -n "$NM"; then
3693 # Let the user override the test.
3696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3697 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3698 test -z "$ac_dir" && ac_dir=.
3699 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3700 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3701 # Check to see if the nm accepts a BSD-compat flag.
3702 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3703 # nm: unknown option "B" ignored
3704 # Tru64's nm complains that /dev/null is an invalid object file
3705 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3706 lt_cv_path_NM="$tmp_nm -B"
3708 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3709 lt_cv_path_NM="$tmp_nm -p"
3712 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3713 continue # so that we can try to find one that supports BSD flags
3718 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3723 echo "$ac_t""$NM" 1>&6
3725 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3726 echo "configure:3727: checking for a sed that does not truncate output" >&5
3727 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 # Loop through the user's path and test for sed and gsed.
3731 # Then use that list of sed's as ones to test for truncation.
3732 as_executable_p="test -f"
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in sed gsed; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3741 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3747 # Create a temporary directory, and hook for its removal unless debugging.
3750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3751 trap '{ (exit 1); exit 1; }' 1 2 13 15
3754 # Create a (secure) tmp directory for tmp files.
3757 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3758 test -n "$tmp" && test -d "$tmp"
3761 tmp=$TMPDIR/sed$$-$RANDOM
3762 (umask 077 && mkdir $tmp)
3765 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3766 { (exit 1); exit 1; }
3770 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3771 # along with /bin/sed that truncates output.
3772 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3773 test ! -f ${_sed} && break
3774 cat /dev/null > "$tmp/sed.in"
3776 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3777 # Check for GNU sed and select it if it is found.
3778 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3779 lt_cv_path_SED=${_sed}
3783 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3784 mv "$tmp/sed.tmp" "$tmp/sed.in"
3785 cp "$tmp/sed.in" "$tmp/sed.nl"
3786 echo >>"$tmp/sed.nl"
3787 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3788 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3789 # 40000 chars as input seems more than enough
3790 test $_count -gt 10 && break
3791 _count=`expr $_count + 1`
3792 if test $_count -gt $_max; then
3794 lt_cv_path_SED=$_sed
3802 if test "X$SED" != "X"; then
3807 echo "$ac_t""$SED" 1>&6
3809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3810 echo "configure:3811: checking whether ln -s works" >&5
3811 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3815 if ln -s X conftestdata 2>/dev/null
3818 ac_cv_prog_LN_S="ln -s"
3823 LN_S="$ac_cv_prog_LN_S"
3824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3825 echo "$ac_t""yes" 1>&6
3827 echo "$ac_t""no" 1>&6
3830 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3831 echo "configure:3832: checking how to recognise dependent libraries" >&5
3832 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 lt_cv_file_magic_cmd='$MAGIC_CMD'
3836 lt_cv_file_magic_test_file=
3837 lt_cv_deplibs_check_method='unknown'
3838 # Need to set the preceding variable on all platforms that support
3839 # interlibrary dependencies.
3840 # 'none' -- dependencies not supported.
3841 # `unknown' -- same as none, but documents that we really don't know.
3842 # 'pass_all' -- all dependencies passed with no checks.
3843 # 'test_compile' -- check by making test program.
3844 # 'file_magic [[regex]]' -- check by looking for files in library path
3845 # which responds to the $file_magic_cmd with a given egrep regex.
3846 # If you have `file' or equivalent on your system and you're not sure
3847 # whether `pass_all' will *always* work, you probably want this one.
3851 lt_cv_deplibs_check_method=pass_all
3855 lt_cv_deplibs_check_method=pass_all
3859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3860 lt_cv_file_magic_cmd='/usr/bin/file -L'
3861 lt_cv_file_magic_test_file=/shlib/libc.so
3864 cygwin* | mingw* | pw32*)
3865 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3866 lt_cv_file_magic_cmd='$OBJDUMP -f'
3869 darwin* | rhapsody*)
3870 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3871 lt_cv_file_magic_cmd='/usr/bin/file -L'
3873 rhapsody* | darwin1.[012])
3874 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3877 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3883 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3886 # Not sure whether the presence of OpenBSD here was a mistake.
3887 # Let's accept both of them until this is cleared up.
3888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3889 lt_cv_file_magic_cmd=/usr/bin/file
3890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3894 lt_cv_deplibs_check_method=pass_all
3899 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3904 lt_cv_file_magic_cmd=/usr/bin/file
3905 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3908 irix5* | irix6* | nonstopux*)
3910 irix5* | nonstopux*)
3911 # this will be overridden with pass_all, but let us keep it just in case
3912 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3916 *-32|*"-32 ") libmagic=32-bit;;
3917 *-n32|*"-n32 ") libmagic=N32;;
3918 *-64|*"-64 ") libmagic=64-bit;;
3919 *) libmagic=never-match;;
3921 # this will be overridden with pass_all, but let us keep it just in case
3922 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3925 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3926 lt_cv_deplibs_check_method=pass_all
3929 # This must be Linux ELF.
3932 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3933 lt_cv_deplibs_check_method=pass_all ;;
3935 # glibc up to 2.1.1 does not perform some relocations on ARM
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3938 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3942 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3943 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3945 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3951 lt_cv_file_magic_cmd=/usr/bin/file
3952 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3961 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3965 osf3* | osf4* | osf5*)
3966 # this will be overridden with pass_all, but let us keep it just in case
3967 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3968 lt_cv_file_magic_test_file=/shlib/libc.so
3969 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_deplibs_check_method=pass_all
3977 lt_cv_deplibs_check_method=pass_all
3978 lt_cv_file_magic_test_file=/lib/libc.so
3981 sysv5uw[78]* | sysv4*uw2*)
3982 lt_cv_deplibs_check_method=pass_all
3985 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3986 case $host_vendor in
3988 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]'
3989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3992 lt_cv_deplibs_check_method=pass_all
3995 lt_cv_file_magic_cmd='/bin/file'
3996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3999 lt_cv_file_magic_cmd='/bin/file'
4000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4001 lt_cv_file_magic_test_file=/lib/libc.so
4004 lt_cv_deplibs_check_method=pass_all
4012 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4013 file_magic_cmd=$lt_cv_file_magic_cmd
4014 deplibs_check_method=$lt_cv_deplibs_check_method
4016 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4017 echo "configure:4018: checking for object suffix" >&5
4018 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4022 echo 'int i = 1;' > conftest.$ac_ext
4023 if { (eval echo configure:4024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4024 for ac_file in conftest.*; do
4027 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4031 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4036 echo "$ac_t""$ac_cv_objext" 1>&6
4037 OBJEXT=$ac_cv_objext
4038 ac_objext=$ac_cv_objext
4043 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4044 echo "configure:4045: checking for executable suffix" >&5
4045 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4052 echo 'int main () { return 0; }' > conftest.$ac_ext
4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4055 for file in conftest.*; do
4057 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4058 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4062 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4065 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4070 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4071 echo "$ac_t""${ac_cv_exeext}" 1>&6
4074 if test $host != $build; then
4075 ac_tool_prefix=${host_alias}-
4083 # Check for command to grab the raw symbol name followed by C symbol from nm.
4084 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4085 echo "configure:4086: checking command to parse $NM output" >&5
4086 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4090 # These are sane defaults that work on at least a few old systems.
4091 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4093 # Character class describing NM global symbol codes.
4094 symcode='[BCDEGRST]'
4096 # Regexp to match symbols that can be accessed directly from C.
4097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4099 # Transform the above into a raw symbol and a C symbol.
4100 symxfrm='\1 \2\3 \3'
4102 # Transform an extracted symbol line into a proper C declaration
4103 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4105 # Transform an extracted symbol line into symbol name and symbol address
4106 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'"
4108 # Define system-specific variables.
4113 cygwin* | mingw* | pw32*)
4114 symcode='[ABCDGISTW]'
4116 hpux*) # Its linker distinguishes data from code symbols
4117 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4118 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'"
4121 symcode='[BCDEGRST]'
4124 symcode='[BCDEGQRST]'
4134 # Handle CRLF in mingw tool chain
4138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4142 # If we're using GNU nm, then use its standard symbol codes.
4143 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4144 symcode='[ABCDGISTW]'
4147 # Try without a prefix undercore, then with it.
4148 for ac_symprfx in "" "_"; do
4150 # Write the raw and C identifiers.
4151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4153 # Check to see that the pipe works correctly.
4156 cat > conftest.$ac_ext <<EOF
4161 void nm_test_func(){}
4165 int main(){nm_test_var='a';nm_test_func();return(0);}
4168 if { (eval echo configure:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 # Now try to grab the symbols.
4171 if { (eval echo configure:4172: \"$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
4172 # Try sorting and uniquifying the output.
4173 if sort "$nlist" | uniq > "$nlist"T; then
4174 mv -f "$nlist"T "$nlist"
4179 # Make sure that we snagged all the symbols we need.
4180 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4181 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4182 cat <<EOF > conftest.$ac_ext
4188 # Now generate the symbol file.
4189 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4191 cat <<EOF >> conftest.$ac_ext
4192 #if defined (__STDC__) && __STDC__
4193 # define lt_ptr void *
4195 # define lt_ptr char *
4199 /* The mapping between symbol names and symbols. */
4204 lt_preloaded_symbols[] =
4207 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4208 cat <<\EOF >> conftest.$ac_ext
4216 # Now try linking the two files.
4217 mv conftest.$ac_objext conftstm.$ac_objext
4219 save_CFLAGS="$CFLAGS"
4220 LIBS="conftstm.$ac_objext"
4221 CFLAGS="$CFLAGS$no_builtin_flag"
4222 if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4226 CFLAGS="$save_CFLAGS"
4228 echo "cannot find nm_test_func in $nlist" >&5
4231 echo "cannot find nm_test_var in $nlist" >&5
4234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4237 echo "$progname: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 rm -f conftest* conftst*
4242 # Do not use the global_symbol_pipe unless it works.
4243 if test "$pipe_works" = yes; then
4246 lt_cv_sys_global_symbol_pipe=
4252 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4253 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4254 global_symbol_to_cdecl=
4255 global_symbol_to_c_name_address=
4257 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4258 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4260 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4262 echo "$ac_t""failed" 1>&6
4264 echo "$ac_t""ok" 1>&6
4267 for ac_hdr in dlfcn.h
4269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h <<EOF
4299 #define $ac_tr_hdr 1
4303 echo "$ac_t""no" 1>&6
4312 # Only perform the check for file, if the check method requires it
4313 case $deplibs_check_method in
4315 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4316 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4317 echo "configure:4318: checking for ${ac_tool_prefix}file" >&5
4318 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4323 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4329 ac_save_MAGIC_CMD="$MAGIC_CMD"
4330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4331 ac_dummy="/usr/bin:$PATH"
4332 for ac_dir in $ac_dummy; do
4333 test -z "$ac_dir" && ac_dir=.
4334 if test -f $ac_dir/${ac_tool_prefix}file; then
4335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4336 if test -n "$file_magic_test_file"; then
4337 case $deplibs_check_method in
4339 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4342 egrep "$file_magic_regex" > /dev/null; then
4347 *** Warning: the command libtool uses to detect shared libraries,
4348 *** $file_magic_cmd, produces output that libtool cannot recognize.
4349 *** The result is that libtool may fail to recognize shared libraries
4350 *** as such. This will affect the creation of libtool libraries that
4351 *** depend on shared libraries, but programs linked with such libtool
4352 *** libraries will work regardless of this problem. Nevertheless, you
4353 *** may want to report the problem to your system manager and/or to
4354 *** bug-libtool@gnu.org
4364 MAGIC_CMD="$ac_save_MAGIC_CMD"
4369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4370 if test -n "$MAGIC_CMD"; then
4371 echo "$ac_t""$MAGIC_CMD" 1>&6
4373 echo "$ac_t""no" 1>&6
4376 if test -z "$lt_cv_path_MAGIC_CMD"; then
4377 if test -n "$ac_tool_prefix"; then
4378 echo $ac_n "checking for file""... $ac_c" 1>&6
4379 echo "configure:4380: checking for file" >&5
4380 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4388 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4391 ac_save_MAGIC_CMD="$MAGIC_CMD"
4392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4393 ac_dummy="/usr/bin:$PATH"
4394 for ac_dir in $ac_dummy; do
4395 test -z "$ac_dir" && ac_dir=.
4396 if test -f $ac_dir/file; then
4397 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4398 if test -n "$file_magic_test_file"; then
4399 case $deplibs_check_method in
4401 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4404 egrep "$file_magic_regex" > /dev/null; then
4409 *** Warning: the command libtool uses to detect shared libraries,
4410 *** $file_magic_cmd, produces output that libtool cannot recognize.
4411 *** The result is that libtool may fail to recognize shared libraries
4412 *** as such. This will affect the creation of libtool libraries that
4413 *** depend on shared libraries, but programs linked with such libtool
4414 *** libraries will work regardless of this problem. Nevertheless, you
4415 *** may want to report the problem to your system manager and/or to
4416 *** bug-libtool@gnu.org
4426 MAGIC_CMD="$ac_save_MAGIC_CMD"
4431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4432 if test -n "$MAGIC_CMD"; then
4433 echo "$ac_t""$MAGIC_CMD" 1>&6
4435 echo "$ac_t""no" 1>&6
4447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_word" >&5
4451 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 if test -n "$RANLIB"; then
4455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4459 for ac_dir in $ac_dummy; do
4460 test -z "$ac_dir" && ac_dir=.
4461 if test -f $ac_dir/$ac_word; then
4462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4469 RANLIB="$ac_cv_prog_RANLIB"
4470 if test -n "$RANLIB"; then
4471 echo "$ac_t""$RANLIB" 1>&6
4473 echo "$ac_t""no" 1>&6
4477 if test -z "$ac_cv_prog_RANLIB"; then
4478 if test -n "$ac_tool_prefix"; then
4479 # Extract the first word of "ranlib", so it can be a program name with args.
4480 set dummy ranlib; ac_word=$2
4481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4482 echo "configure:4483: checking for $ac_word" >&5
4483 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 if test -n "$RANLIB"; then
4487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 for ac_dir in $ac_dummy; do
4492 test -z "$ac_dir" && ac_dir=.
4493 if test -f $ac_dir/$ac_word; then
4494 ac_cv_prog_RANLIB="ranlib"
4499 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4502 RANLIB="$ac_cv_prog_RANLIB"
4503 if test -n "$RANLIB"; then
4504 echo "$ac_t""$RANLIB" 1>&6
4506 echo "$ac_t""no" 1>&6
4514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}strip; ac_word=$2
4516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4517 echo "configure:4518: checking for $ac_word" >&5
4518 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4521 if test -n "$STRIP"; then
4522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4526 for ac_dir in $ac_dummy; do
4527 test -z "$ac_dir" && ac_dir=.
4528 if test -f $ac_dir/$ac_word; then
4529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 STRIP="$ac_cv_prog_STRIP"
4537 if test -n "$STRIP"; then
4538 echo "$ac_t""$STRIP" 1>&6
4540 echo "$ac_t""no" 1>&6
4544 if test -z "$ac_cv_prog_STRIP"; then
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "strip", so it can be a program name with args.
4547 set dummy strip; ac_word=$2
4548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_word" >&5
4550 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 if test -n "$STRIP"; then
4554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4558 for ac_dir in $ac_dummy; do
4559 test -z "$ac_dir" && ac_dir=.
4560 if test -f $ac_dir/$ac_word; then
4561 ac_cv_prog_STRIP="strip"
4566 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4569 STRIP="$ac_cv_prog_STRIP"
4570 if test -n "$STRIP"; then
4571 echo "$ac_t""$STRIP" 1>&6
4573 echo "$ac_t""no" 1>&6
4583 enable_win32_dll=yes
4585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4586 if test "${enable_libtool_lock+set}" = set; then
4587 enableval="$enable_libtool_lock"
4591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4593 # Some flags need to be propagated to the compiler or linker for good
4597 # Find out which ABI we are using.
4598 echo '#line 4599 "configure"' > conftest.$ac_ext
4599 if { (eval echo configure:4600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4600 case `/usr/bin/file conftest.$ac_objext` in
4616 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4617 SAVE_CFLAGS="$CFLAGS"
4618 CFLAGS="$CFLAGS -belf"
4619 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4620 echo "configure:4621: checking whether the C compiler needs -belf" >&5
4621 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4629 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4630 cross_compiling=$ac_cv_prog_cc_cross
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 lt_cv_cc_needs_belf=yes
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 lt_cv_cc_needs_belf=no
4651 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4654 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4655 cross_compiling=$ac_cv_prog_cc_cross
4659 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4660 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4661 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4662 CFLAGS="$SAVE_CFLAGS"
4666 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4667 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4668 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_word" >&5
4671 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 if test -n "$DLLTOOL"; then
4675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4679 for ac_dir in $ac_dummy; do
4680 test -z "$ac_dir" && ac_dir=.
4681 if test -f $ac_dir/$ac_word; then
4682 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4689 DLLTOOL="$ac_cv_prog_DLLTOOL"
4690 if test -n "$DLLTOOL"; then
4691 echo "$ac_t""$DLLTOOL" 1>&6
4693 echo "$ac_t""no" 1>&6
4697 if test -z "$ac_cv_prog_DLLTOOL"; then
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "dlltool", so it can be a program name with args.
4700 set dummy dlltool; ac_word=$2
4701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4702 echo "configure:4703: checking for $ac_word" >&5
4703 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 if test -n "$DLLTOOL"; then
4707 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4711 for ac_dir in $ac_dummy; do
4712 test -z "$ac_dir" && ac_dir=.
4713 if test -f $ac_dir/$ac_word; then
4714 ac_cv_prog_DLLTOOL="dlltool"
4719 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4722 DLLTOOL="$ac_cv_prog_DLLTOOL"
4723 if test -n "$DLLTOOL"; then
4724 echo "$ac_t""$DLLTOOL" 1>&6
4726 echo "$ac_t""no" 1>&6
4734 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}as; ac_word=$2
4736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_word" >&5
4738 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 if test -n "$AS"; then
4742 ac_cv_prog_AS="$AS" # Let the user override the test.
4744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4746 for ac_dir in $ac_dummy; do
4747 test -z "$ac_dir" && ac_dir=.
4748 if test -f $ac_dir/$ac_word; then
4749 ac_cv_prog_AS="${ac_tool_prefix}as"
4757 if test -n "$AS"; then
4758 echo "$ac_t""$AS" 1>&6
4760 echo "$ac_t""no" 1>&6
4764 if test -z "$ac_cv_prog_AS"; then
4765 if test -n "$ac_tool_prefix"; then
4766 # Extract the first word of "as", so it can be a program name with args.
4767 set dummy as; ac_word=$2
4768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_word" >&5
4770 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 if test -n "$AS"; then
4774 ac_cv_prog_AS="$AS" # Let the user override the test.
4776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4778 for ac_dir in $ac_dummy; do
4779 test -z "$ac_dir" && ac_dir=.
4780 if test -f $ac_dir/$ac_word; then
4786 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4790 if test -n "$AS"; then
4791 echo "$ac_t""$AS" 1>&6
4793 echo "$ac_t""no" 1>&6
4801 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4804 echo "configure:4805: checking for $ac_word" >&5
4805 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 if test -n "$OBJDUMP"; then
4809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4813 for ac_dir in $ac_dummy; do
4814 test -z "$ac_dir" && ac_dir=.
4815 if test -f $ac_dir/$ac_word; then
4816 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4823 OBJDUMP="$ac_cv_prog_OBJDUMP"
4824 if test -n "$OBJDUMP"; then
4825 echo "$ac_t""$OBJDUMP" 1>&6
4827 echo "$ac_t""no" 1>&6
4831 if test -z "$ac_cv_prog_OBJDUMP"; then
4832 if test -n "$ac_tool_prefix"; then
4833 # Extract the first word of "objdump", so it can be a program name with args.
4834 set dummy objdump; ac_word=$2
4835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_word" >&5
4837 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 if test -n "$OBJDUMP"; then
4841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4845 for ac_dir in $ac_dummy; do
4846 test -z "$ac_dir" && ac_dir=.
4847 if test -f $ac_dir/$ac_word; then
4848 ac_cv_prog_OBJDUMP="objdump"
4853 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4856 OBJDUMP="$ac_cv_prog_OBJDUMP"
4857 if test -n "$OBJDUMP"; then
4858 echo "$ac_t""$OBJDUMP" 1>&6
4860 echo "$ac_t""no" 1>&6
4869 # recent cygwin and mingw systems supply a stub DllMain which the user
4870 # can override, but on older systems we have to supply one
4871 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4872 echo "configure:4873: checking if libtool should supply DllMain function" >&5
4873 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4881 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 lt_cv_need_dllmain=no
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 lt_cv_need_dllmain=yes
4897 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4900 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4901 # old mingw systems require "-dll" to link a DLL, while more recent ones
4903 SAVE_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -mdll"
4905 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4906 echo "configure:4907: checking how to link DLLs" >&5
4907 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 lt_cv_cc_dll_switch=-mdll
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 lt_cv_cc_dll_switch=-dll
4930 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4931 CFLAGS="$SAVE_CFLAGS" ;;
4932 *-*-cygwin* | *-*-pw32*)
4933 # cygwin systems need to pass --dll to the linker, and not link
4934 # crt.o which will require a WinMain@16 definition.
4935 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4941 # Sed substitution that helps us do robust quoting. It backslashifies
4942 # metacharacters that are still active within double-quoted strings.
4943 Xsed='sed -e s/^X//'
4944 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4946 # Same as above, but do not quote variable references.
4947 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4949 # Sed substitution to delay expansion of an escaped shell variable in a
4950 # double_quote_subst'ed string.
4951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4957 default_ofile=libtool
4958 can_build_shared=yes
4960 # All known linkers require a `.a' archive for static linking (except M$VC,
4961 # which needs '.lib').
4963 ltmain="$ac_aux_dir/ltmain.sh"
4964 ofile="$default_ofile"
4965 with_gnu_ld="$lt_cv_prog_gnu_ld"
4966 need_locks="$enable_libtool_lock"
4969 old_CFLAGS="$CFLAGS"
4971 # Set sane defaults for various variables
4972 test -z "$AR" && AR=ar
4973 test -z "$AR_FLAGS" && AR_FLAGS=cru
4974 test -z "$AS" && AS=as
4975 test -z "$CC" && CC=cc
4976 test -z "$DLLTOOL" && DLLTOOL=dlltool
4977 test -z "$LD" && LD=ld
4978 test -z "$LN_S" && LN_S="ln -s"
4979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4980 test -z "$NM" && NM=nm
4981 test -z "$OBJDUMP" && OBJDUMP=objdump
4982 test -z "$RANLIB" && RANLIB=:
4983 test -z "$STRIP" && STRIP=:
4984 test -z "$ac_objext" && ac_objext=o
4986 if test x"$host" != x"$build"; then
4987 ac_tool_prefix=${host_alias}-
4992 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4995 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5000 # AIX sometimes has problems with the GCC collect2 program. For some
5001 # reason, if we set the COLLECT_NAMES environment variable, the problems
5002 # vanish in a puff of smoke.
5003 if test "X${COLLECT_NAMES+set}" != Xset; then
5005 export COLLECT_NAMES
5010 # Determine commands to create old-style static archives.
5011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5012 old_postinstall_cmds='chmod 644 $oldlib'
5013 old_postuninstall_cmds=
5015 if test -n "$RANLIB"; then
5018 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5021 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5024 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5027 # Allow CC to be a program name with arguments.
5031 ## FIXME: this should be a separate macro
5033 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5034 echo "configure:5035: checking for objdir" >&5
5035 rm -f .libs 2>/dev/null
5036 mkdir .libs 2>/dev/null
5037 if test -d .libs; then
5040 # MS-DOS does not allow filenames that begin with a dot.
5043 rmdir .libs 2>/dev/null
5044 echo "$ac_t""$objdir" 1>&6
5049 ## FIXME: this should be a separate macro
5051 # Check whether --with-pic or --without-pic was given.
5052 if test "${with_pic+set}" = set; then
5059 test -z "$pic_mode" && pic_mode=default
5061 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5062 # in isolation, and that seeing it set (from the cache) indicates that
5063 # the associated values are set (in the cache) correctly too.
5064 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5065 echo "configure:5066: checking for $compiler option to produce PIC" >&5
5066 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5067 echo $ac_n "(cached) $ac_c" 1>&6
5070 lt_cv_prog_cc_shlib=
5072 lt_cv_prog_cc_static=
5073 lt_cv_prog_cc_no_builtin=
5074 lt_cv_prog_cc_can_build_shared=$can_build_shared
5076 if test "$GCC" = yes; then
5077 lt_cv_prog_cc_wl='-Wl,'
5078 lt_cv_prog_cc_static='-static'
5082 # Below there is a dirty hack to force normal static linking with -ldl
5083 # The problem is because libdl dynamically linked with both libc and
5084 # libC (AIX C++ library), which obviously doesn't included in libraries
5085 # list by gcc. This cause undefined symbols with -static flags.
5086 # This hack allows C programs to be linked with "-static -ldl", but
5087 # not sure about C++ programs.
5088 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5091 # FIXME: we need at least 68020 code to build shared libraries, but
5092 # adding the `-m68020' flag to GCC prevents building anything better,
5094 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5096 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5097 # PIC is the default for these OSes.
5099 darwin* | rhapsody*)
5100 # PIC is the default on this platform
5101 # Common symbols not allowed in MH_DYLIB files
5102 lt_cv_prog_cc_pic='-fno-common'
5104 cygwin* | mingw* | pw32* | os2*)
5105 # This hack is so that the source file can tell whether it is being
5106 # built for inclusion in a dll (and should export symbols for example).
5107 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5110 if test -d /usr/nec; then
5111 lt_cv_prog_cc_pic=-Kconform_pic
5115 lt_cv_prog_cc_pic='-fPIC'
5119 # PORTME Check for PIC flags for the system compiler.
5121 aix3* | aix4* | aix5*)
5122 lt_cv_prog_cc_wl='-Wl,'
5123 # All AIX code is PIC.
5124 if test "$host_cpu" = ia64; then
5125 # AIX 5 now supports IA64 processor
5126 lt_cv_prog_cc_static='-Bstatic'
5128 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5132 hpux9* | hpux10* | hpux11*)
5133 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5134 lt_cv_prog_cc_wl='-Wl,'
5135 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5136 lt_cv_prog_cc_pic='+Z'
5139 irix5* | irix6* | nonstopux*)
5140 lt_cv_prog_cc_wl='-Wl,'
5141 lt_cv_prog_cc_static='-non_shared'
5142 # PIC (with -KPIC) is the default.
5145 cygwin* | mingw* | pw32* | os2*)
5146 # This hack is so that the source file can tell whether it is being
5147 # built for inclusion in a dll (and should export symbols for example).
5148 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5152 lt_cv_prog_cc_pic='-KPIC'
5153 lt_cv_prog_cc_static='-Bstatic'
5156 osf3* | osf4* | osf5*)
5157 # All OSF/1 code is PIC.
5158 lt_cv_prog_cc_wl='-Wl,'
5159 lt_cv_prog_cc_static='-non_shared'
5163 lt_cv_prog_cc_pic='-Kpic'
5164 lt_cv_prog_cc_static='-dn'
5165 lt_cv_prog_cc_shlib='-belf'
5169 lt_cv_prog_cc_pic='-KPIC'
5170 lt_cv_prog_cc_static='-Bstatic'
5171 lt_cv_prog_cc_wl='-Wl,'
5175 lt_cv_prog_cc_pic='-PIC'
5176 lt_cv_prog_cc_static='-Bstatic'
5177 lt_cv_prog_cc_wl='-Qoption ld '
5180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5181 lt_cv_prog_cc_pic='-KPIC'
5182 lt_cv_prog_cc_static='-Bstatic'
5183 lt_cv_prog_cc_wl='-Wl,'
5187 lt_cv_prog_cc_pic='-pic'
5188 lt_cv_prog_cc_static='-Bstatic'
5192 if test -d /usr/nec ;then
5193 lt_cv_prog_cc_pic='-Kconform_pic'
5194 lt_cv_prog_cc_static='-Bstatic'
5199 lt_cv_prog_cc_can_build_shared=no
5206 if test -z "$lt_cv_prog_cc_pic"; then
5207 echo "$ac_t""none" 1>&6
5209 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5211 # Check to make sure the pic_flag actually works.
5212 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5213 echo "configure:5214: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5214 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 save_CFLAGS="$CFLAGS"
5218 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5219 cat > conftest.$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5227 if { (eval echo configure:5228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5230 hpux9* | hpux10* | hpux11*)
5231 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5232 # they create non-PIC objects. So, if there were any warnings, we
5233 # assume that PIC is not supported.
5234 if test -s conftest.err; then
5235 lt_cv_prog_cc_pic_works=no
5237 lt_cv_prog_cc_pic_works=yes
5241 lt_cv_prog_cc_pic_works=yes
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5249 lt_cv_prog_cc_pic_works=no
5253 CFLAGS="$save_CFLAGS"
5258 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5260 lt_cv_prog_cc_can_build_shared=no
5262 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5265 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5270 # Check for any special shared library compilation flags.
5271 if test -n "$lt_cv_prog_cc_shlib"; then
5272 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5273 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5275 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5276 lt_cv_prog_cc_can_build_shared=no
5280 ## FIXME: this should be a separate macro
5282 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5283 echo "configure:5284: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5284 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 lt_cv_prog_cc_static_works=no
5288 save_LDFLAGS="$LDFLAGS"
5289 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5300 lt_cv_prog_cc_static_works=yes
5302 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5306 LDFLAGS="$save_LDFLAGS"
5311 # Belt *and* braces to stop my trousers falling down:
5312 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5313 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5315 pic_flag="$lt_cv_prog_cc_pic"
5316 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5317 wl="$lt_cv_prog_cc_wl"
5318 link_static_flag="$lt_cv_prog_cc_static"
5319 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5320 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5325 ## FIXME: this should be a separate macro
5327 # Check to see if options -o and -c are simultaneously supported by compiler
5328 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5329 echo "configure:5330: checking if $compiler supports -c -o file.$ac_objext" >&5
5330 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5334 $rm -r conftest 2>/dev/null
5337 echo "int some_variable = 0;" > conftest.$ac_ext
5339 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5340 # that will create temporary files in the current directory regardless of
5341 # the output directory. Thus, making CWD read-only will cause this test
5342 # to fail, enabling locking or at least warning the user not to do parallel
5345 save_CFLAGS="$CFLAGS"
5346 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5349 # The compiler can only warn and ignore the option if not recognized
5350 # So say no if there are warnings
5351 if test -s out/conftest.err; then
5352 lt_cv_compiler_c_o=no
5354 lt_cv_compiler_c_o=yes
5357 # Append any errors to the config.log.
5358 cat out/conftest.err 1>&5
5359 lt_cv_compiler_c_o=no
5361 CFLAGS="$save_CFLAGS"
5367 $rm -r conftest 2>/dev/null
5371 compiler_c_o=$lt_cv_compiler_c_o
5372 echo "$ac_t""$compiler_c_o" 1>&6
5374 if test x"$compiler_c_o" = x"yes"; then
5375 # Check to see if we can write to a .lo
5376 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5377 echo "configure:5378: checking if $compiler supports -c -o file.lo" >&5
5378 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5382 lt_cv_compiler_o_lo=no
5383 save_CFLAGS="$CFLAGS"
5384 CFLAGS="$CFLAGS -c -o conftest.lo"
5385 save_objext="$ac_objext"
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5392 int some_variable = 0;
5395 if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5397 # The compiler can only warn and ignore the option if not recognized
5398 # So say no if there are warnings
5399 if test -s conftest.err; then
5400 lt_cv_compiler_o_lo=no
5402 lt_cv_compiler_o_lo=yes
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5410 ac_objext="$save_objext"
5411 CFLAGS="$save_CFLAGS"
5415 compiler_o_lo=$lt_cv_compiler_o_lo
5416 echo "$ac_t""$compiler_o_lo" 1>&6
5423 ## FIXME: this should be a separate macro
5425 # Check to see if we can do hard links to lock some files if needed
5426 hard_links="nottested"
5427 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5428 # do not overwrite the value of need_locks provided by the user
5429 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5430 echo "configure:5431: checking if we can lock with hard links" >&5
5433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5435 ln conftest.a conftest.b 2>&5 || hard_links=no
5436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5437 echo "$ac_t""$hard_links" 1>&6
5438 if test "$hard_links" = no; then
5439 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5448 ## FIXME: this should be a separate macro
5450 if test "$GCC" = yes; then
5451 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5452 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5453 echo "configure:5454: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5454 echo "int some_variable = 0;" > conftest.$ac_ext
5455 save_CFLAGS="$CFLAGS"
5456 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5457 compiler_rtti_exceptions=no
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5463 int some_variable = 0;
5466 if { (eval echo configure:5467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5468 # The compiler can only warn and ignore the option if not recognized
5469 # So say no if there are warnings
5470 if test -s conftest.err; then
5471 compiler_rtti_exceptions=no
5473 compiler_rtti_exceptions=yes
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5481 CFLAGS="$save_CFLAGS"
5482 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5484 if test "$compiler_rtti_exceptions" = "yes"; then
5485 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5487 no_builtin_flag=' -fno-builtin'
5493 ## FIXME: this should be a separate macro
5495 # See if the linker supports building shared libraries.
5496 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5497 echo "configure:5498: checking whether the linker ($LD) supports shared libraries" >&5
5499 allow_undefined_flag=
5501 need_lib_prefix=unknown
5502 need_version=unknown
5503 # when you set need_version to no, make sure it does not cause -set_version
5504 # flags to be left without arguments
5506 archive_expsym_cmds=
5507 old_archive_from_new_cmds=
5508 old_archive_from_expsyms_cmds=
5509 export_dynamic_flag_spec=
5510 whole_archive_flag_spec=
5511 thread_safe_flag_spec=
5512 hardcode_into_libs=no
5513 hardcode_libdir_flag_spec=
5514 hardcode_libdir_separator=
5517 hardcode_shlibpath_var=unsupported
5519 link_all_deplibs=unknown
5520 always_export_symbols=no
5521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5522 # include_expsyms should be a list of space-separated symbols to be *always*
5523 # included in the symbol list
5525 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5526 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5527 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5528 # as well as any symbol that contains `d'.
5529 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5530 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5531 # platforms (ab)use it in PIC code, but their linkers get confused if
5532 # the symbol is explicitly referenced. Since portable code cannot
5533 # rely on this symbol name, it's probably fine to never include it in
5534 # preloaded symbol tables.
5535 extract_expsyms_cmds=
5538 cygwin* | mingw* | pw32*)
5539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5540 # When not using gcc, we currently assume that we are using
5541 # Microsoft Visual C++.
5542 if test "$GCC" != yes; then
5552 if test "$with_gnu_ld" = yes; then
5553 # If archive_cmds runs LD, not CC, wlarc should be empty
5556 # See if GNU ld supports shared libraries.
5558 aix3* | aix4* | aix5*)
5559 # On AIX, the GNU linker is very broken
5560 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5564 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5565 *** to be unable to reliably create shared libraries on AIX.
5566 *** Therefore, libtool is disabling shared libraries support. If you
5567 *** really care for shared libraries, you may want to modify your PATH
5568 *** so that a non-GNU linker is found, and then restart.
5574 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)'
5575 hardcode_libdir_flag_spec='-L$libdir'
5576 hardcode_minus_L=yes
5578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5579 # that the semantics of dynamic libraries on AmigaOS, at least up
5580 # to version 4, is to share data among multiple programs linked
5581 # with the same dynamic library. Since this doesn't match the
5582 # behavior of shared libraries on other platforms, we can use
5588 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5589 allow_undefined_flag=unsupported
5590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5591 # support --undefined. This deserves some investigation. FIXME
5592 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5598 cygwin* | mingw* | pw32*)
5599 # hardcode_libdir_flag_spec is actually meaningless, as there is
5600 # no search path for DLLs.
5601 hardcode_libdir_flag_spec='-L$libdir'
5602 allow_undefined_flag=unsupported
5603 always_export_symbols=yes
5605 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5606 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5607 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5608 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5609 else $CC -o impgen impgen.c ; fi)~
5610 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5612 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5614 # cygwin and mingw dlls have different entry points and sets of symbols
5616 # FIXME: what about values for MSVC?
5617 dll_entry=__cygwin_dll_entry@12
5618 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5622 dll_entry=_DllMainCRTStartup@12
5623 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5627 # mingw and cygwin differ, and it's simplest to just exclude the union
5628 # of the two symbol sets.
5629 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5631 # recent cygwin and mingw systems supply a stub DllMain which the user
5632 # can override, but on older systems we have to supply one (in ltdll.c)
5633 if test "x$lt_cv_need_dllmain" = "xyes"; then
5634 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5635 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~
5636 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5642 # Extract the symbol export list from an `--export-all' def file,
5643 # then regenerate the def file from the symbol export list, so that
5644 # the compiled dll only exports the symbol export list.
5645 # Be careful not to strip the DATA tag left be newer dlltools.
5646 export_symbols_cmds="$ltdll_cmds"'
5647 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5648 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5650 # If the export-symbols file already is a .def file (1st line
5651 # is EXPORTS), use it as is.
5652 # If DATA tags from a recent dlltool are present, honour them!
5653 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5654 cp $export_symbols $output_objdir/$soname-def;
5656 echo EXPORTS > $output_objdir/$soname-def;
5658 cat $export_symbols | while read symbol; do
5661 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5662 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5663 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5665 _lt_hint=`expr 1 + \$_lt_hint`;
5669 $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~
5670 $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~
5671 $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~
5672 $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~
5673 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5681 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5682 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5687 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5691 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5692 *** create shared libraries on Solaris systems. Therefore, libtool
5693 *** is disabling shared libraries support. We urge you to upgrade GNU
5694 *** binutils to release 2.9.1 or newer. Another option is to modify
5695 *** your PATH or compiler configuration so that the native linker is
5696 *** used, and then restart.
5699 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5711 hardcode_shlibpath_var=no
5715 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5724 if test "$ld_shlibs" = yes; then
5725 runpath_var=LD_RUN_PATH
5726 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5727 export_dynamic_flag_spec='${wl}--export-dynamic'
5729 cygwin* | mingw* | pw32*)
5730 # dlltool doesn't understand --whole-archive et. al.
5731 whole_archive_flag_spec=
5734 # ancient GNU ld didn't support --whole-archive et. al.
5735 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5738 whole_archive_flag_spec=
5744 # PORTME fill in a description of your system's linker (not GNU ld)
5747 allow_undefined_flag=unsupported
5748 always_export_symbols=yes
5749 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'
5750 # Note: this linker hardcodes the directories in LIBPATH if there
5751 # are no directories specified by -L.
5752 hardcode_minus_L=yes
5753 if test "$GCC" = yes && test -z "$link_static_flag"; then
5754 # Neither direct hardcoding nor static linking is supported with a
5756 hardcode_direct=unsupported
5761 if test "$host_cpu" = ia64; then
5762 # On IA64, the linker does run time linking by default, so we don't
5763 # have to do anything special.
5764 aix_use_runtimelinking=no
5765 exp_sym_flag='-Bexport'
5768 aix_use_runtimelinking=no
5770 # Test if we are trying to use run time linking or normal
5771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5772 # need to do runtime linking.
5773 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5774 for ld_flag in $LDFLAGS; do
5777 aix_use_runtimelinking=yes
5784 exp_sym_flag='-bexport'
5785 no_entry_flag='-bnoentry'
5788 # When large executables or shared objects are built, AIX ld can
5789 # have problems creating the table of contents. If linking a library
5790 # or program results in "error TOC overflow" add -mminimal-toc to
5791 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5792 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5796 hardcode_libdir_separator=':'
5797 if test "$GCC" = yes; then
5798 case $host_os in aix4.[012]|aix4.[012].*)
5799 collect2name=`${CC} -print-prog-name=collect2`
5800 if test -f "$collect2name" && \
5801 strings "$collect2name" | grep resolve_lib_name >/dev/null
5803 # We have reworked collect2
5806 # We have old collect2
5807 hardcode_direct=unsupported
5808 # It fails to find uninstalled libraries when the uninstalled
5809 # path is not listed in the libpath. Setting hardcode_minus_L
5810 # to unsupported forces relinking
5811 hardcode_minus_L=yes
5812 hardcode_libdir_flag_spec='-L$libdir'
5813 hardcode_libdir_separator=
5817 shared_flag='-shared'
5820 if test "$host_cpu" = ia64; then
5821 shared_flag='${wl}-G'
5823 if test "$aix_use_runtimelinking" = yes; then
5824 shared_flag='${wl}-G'
5826 shared_flag='${wl}-bM:SRE'
5831 # It seems that -bexpall can do strange things, so it is better to
5832 # generate a list of symbols to export.
5833 always_export_symbols=yes
5834 if test "$aix_use_runtimelinking" = yes; then
5835 # Warning - without using the other runtime loading flags (-brtl),
5836 # -berok will link without error, but may produce a broken library.
5837 allow_undefined_flag='-berok'
5838 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5839 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"
5841 if test "$host_cpu" = ia64; then
5842 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5843 allow_undefined_flag="-z nodefs"
5844 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"
5846 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5847 # Warning - without using the other run time loading flags,
5848 # -berok will link without error, but may produce a broken library.
5849 allow_undefined_flag='${wl}-berok'
5850 # This is a bit strange, but is similar to how AIX traditionally builds
5851 # it's shared libraries.
5852 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'
5858 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)'
5859 hardcode_libdir_flag_spec='-L$libdir'
5860 hardcode_minus_L=yes
5861 # see comment about different semantics on the GNU ld section
5865 cygwin* | mingw* | pw32*)
5866 # When not using gcc, we currently assume that we are using
5867 # Microsoft Visual C++.
5868 # hardcode_libdir_flag_spec is actually meaningless, as there is
5869 # no search path for DLLs.
5870 hardcode_libdir_flag_spec=' '
5871 allow_undefined_flag=unsupported
5872 # Tell ltmain to make .lib files, not .a files.
5874 # FIXME: Setting linknames here is a bad hack.
5875 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5876 # The linker will automatically build a .lib file if we build a DLL.
5877 old_archive_from_new_cmds='true'
5878 # FIXME: Should let the user specify the lib program.
5879 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5880 fix_srcfile_path='`cygpath -w "$srcfile"`'
5883 darwin* | rhapsody*)
5885 rhapsody* | darwin1.[012])
5886 allow_undefined_flag='-undefined suppress'
5889 allow_undefined_flag='-flat_namespace -undefined suppress'
5892 # FIXME: Relying on posixy $() will cause problems for
5893 # cross-compilation, but unfortunately the echo tests do not
5894 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5895 # `"' quotes if we put them in here... so don't!
5896 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)'
5897 # We need to add '_' to the symbols in $export_symbols first
5898 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5900 hardcode_shlibpath_var=no
5901 whole_archive_flag_spec='-all_load $convenience'
5908 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5909 # support. Future versions do this automatically, but an explicit c++rt0.o
5910 # does not break anything, and helps significantly (at the cost of a little
5913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5914 hardcode_libdir_flag_spec='-R$libdir'
5916 hardcode_shlibpath_var=no
5919 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5923 hardcode_minus_L=yes
5924 hardcode_shlibpath_var=no
5927 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5929 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5930 hardcode_libdir_flag_spec='-R$libdir'
5932 hardcode_shlibpath_var=no
5935 hpux9* | hpux10* | hpux11*)
5937 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' ;;
5938 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5941 hardcode_libdir_separator=:
5943 hardcode_minus_L=yes # Not in the search PATH, but as the default
5944 # location of the library.
5945 export_dynamic_flag_spec='${wl}-E'
5948 irix5* | irix6* | nonstopux*)
5949 if test "$GCC" = yes; then
5950 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'
5951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5953 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'
5954 hardcode_libdir_flag_spec='-rpath $libdir'
5956 hardcode_libdir_separator=:
5957 link_all_deplibs=yes
5961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5964 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5966 hardcode_libdir_flag_spec='-R$libdir'
5968 hardcode_shlibpath_var=no
5972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5975 hardcode_libdir_separator=:
5976 hardcode_shlibpath_var=no
5981 hardcode_shlibpath_var=no
5982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5985 export_dynamic_flag_spec='${wl}-E'
5988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_libdir_flag_spec='-R$libdir'
5993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6001 hardcode_libdir_flag_spec='-L$libdir'
6002 hardcode_minus_L=yes
6003 allow_undefined_flag=unsupported
6004 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'
6005 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6009 if test "$GCC" = yes; then
6010 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6011 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'
6013 allow_undefined_flag=' -expect_unresolved \*'
6014 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'
6016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6017 hardcode_libdir_separator=:
6020 osf4* | osf5*) # as osf3* with the addition of -msym flag
6021 if test "$GCC" = yes; then
6022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6023 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'
6024 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6026 allow_undefined_flag=' -expect_unresolved \*'
6027 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'
6028 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6029 $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'
6031 #Both c and cxx compiler support -rpath directly
6032 hardcode_libdir_flag_spec='-rpath $libdir'
6034 hardcode_libdir_separator=:
6038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6039 hardcode_shlibpath_var=no
6040 runpath_var=LD_RUN_PATH
6041 hardcode_runpath_var=yes
6042 export_dynamic_flag_spec='${wl}-Bexport'
6046 # gcc --version < 3.0 without binutils cannot create self contained
6047 # shared libraries reliably, requiring libgcc.a to resolve some of
6048 # the object symbols generated in some cases. Libraries that use
6049 # assert need libgcc.a to resolve __eprintf, for example. Linking
6050 # a copy of libgcc.a into every shared library to guarantee resolving
6051 # such symbols causes other problems: According to Tim Van Holder
6052 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6053 # (to the application) exception stack for one thing.
6054 no_undefined_flag=' -z defs'
6055 if test "$GCC" = yes; then
6056 case `$CC --version 2>/dev/null` in
6060 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6061 *** create self contained shared libraries on Solaris systems, without
6062 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6063 *** -no-undefined support, which will at least allow you to build shared
6064 *** libraries. However, you may find that when you link such libraries
6065 *** into an application without using GCC, you have to manually add
6066 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6067 *** upgrade to a newer version of GCC. Another option is to rebuild your
6068 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6075 # $CC -shared without GNU ld will not create a library from C++
6076 # object files and a static libstdc++, better avoid it by now
6077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6078 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6080 hardcode_libdir_flag_spec='-R$libdir'
6081 hardcode_shlibpath_var=no
6083 solaris2.[0-5] | solaris2.[0-5].*) ;;
6084 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6087 link_all_deplibs=yes
6091 if test "x$host_vendor" = xsequent; then
6092 # Use $CC to link under sequent, because it throws in some extra .o
6093 # files that make .init and .fini sections work.
6094 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6096 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6098 hardcode_libdir_flag_spec='-L$libdir'
6100 hardcode_minus_L=yes
6101 hardcode_shlibpath_var=no
6105 case $host_vendor in
6107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6108 hardcode_direct=yes # is this really true???
6111 ## LD is ld it makes a PLAMLIB
6112 ## CC just makes a GrossModule.
6113 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6114 reload_cmds='$CC -r -o $output$reload_objs'
6118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6119 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6122 runpath_var='LD_RUN_PATH'
6123 hardcode_shlibpath_var=no
6127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6128 hardcode_shlibpath_var=no
6129 export_dynamic_flag_spec='-Bexport'
6133 no_undefined_flag=' -z text'
6134 # $CC -shared without GNU ld will not create a library from C++
6135 # object files and a static libstdc++, better avoid it by now
6136 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6137 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6139 hardcode_libdir_flag_spec=
6140 hardcode_shlibpath_var=no
6141 runpath_var='LD_RUN_PATH'
6145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6146 hardcode_libdir_flag_spec='-L$libdir'
6147 hardcode_shlibpath_var=no
6151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6152 hardcode_libdir_flag_spec='-L$libdir'
6153 hardcode_shlibpath_var=no
6157 if test -d /usr/nec; then
6158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6159 hardcode_shlibpath_var=no
6160 runpath_var=LD_RUN_PATH
6161 hardcode_runpath_var=yes
6167 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6170 hardcode_shlibpath_var=no
6171 hardcode_runpath_var=yes
6172 runpath_var=LD_RUN_PATH
6175 sysv5uw7* | unixware7*)
6176 no_undefined_flag='${wl}-z ${wl}text'
6177 if test "$GCC" = yes; then
6178 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6180 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6182 runpath_var='LD_RUN_PATH'
6183 hardcode_shlibpath_var=no
6191 echo "$ac_t""$ld_shlibs" 1>&6
6192 test "$ld_shlibs" = no && can_build_shared=no
6196 ## FIXME: this should be a separate macro
6198 # Check hardcoding attributes.
6199 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6200 echo "configure:6201: checking how to hardcode library paths into programs" >&5
6202 if test -n "$hardcode_libdir_flag_spec" || \
6203 test -n "$runpath_var"; then
6205 # We can hardcode non-existant directories.
6206 if test "$hardcode_direct" != no &&
6207 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6208 # have to relink, otherwise we might link with an installed library
6209 # when we should be linking with a yet-to-be-installed one
6210 ## test "$hardcode_shlibpath_var" != no &&
6211 test "$hardcode_minus_L" != no; then
6212 # Linking always hardcodes the temporary library directory.
6213 hardcode_action=relink
6215 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6216 hardcode_action=immediate
6219 # We cannot hardcode anything, or else we can only hardcode existing
6221 hardcode_action=unsupported
6223 echo "$ac_t""$hardcode_action" 1>&6
6227 ## FIXME: this should be a separate macro
6231 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6232 echo "configure:6233: checking whether stripping libraries is possible" >&5
6233 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6234 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6235 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6236 echo "$ac_t""yes" 1>&6
6238 echo "$ac_t""no" 1>&6
6243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6244 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6246 ## FIXME: this should be a separate macro
6248 # PORTME Fill in your ld.so characteristics
6249 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6250 echo "configure:6251: checking dynamic linker characteristics" >&5
6252 libname_spec='lib$name'
6259 shlibpath_overrides_runpath=unknown
6261 dynamic_linker="$host_os ld.so"
6262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6268 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6269 shlibpath_var=LIBPATH
6271 # AIX has no versioning support, so we append a major version to the name.
6272 soname_spec='${libname}${release}.so$major'
6279 hardcode_into_libs=yes
6280 if test "$host_cpu" = ia64; then
6281 # AIX 5 supports IA64
6282 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6283 shlibpath_var=LD_LIBRARY_PATH
6285 # With GCC up to 2.95.x, collect2 would create an import file
6286 # for dependence libraries. The import file would start with
6287 # the line `#! .'. This would cause the generated library to
6288 # depend on `.', always an invalid library. This was fixed in
6289 # development snapshots of GCC prior to 3.0.
6291 aix4 | aix4.[01] | aix4.[01].*)
6292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6294 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6301 # AIX (on Power*) has no versioning support, so currently we can
6302 # not hardcode correct soname into executable. Probably we can
6303 # add versioning support to collect2, so additional links can
6304 # be useful in future.
6305 if test "$aix_use_runtimelinking" = yes; then
6306 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6307 # instead of lib<name>.a to let people know that these are not
6308 # typical AIX shared libraries.
6309 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6311 # We preserve .a as extension for shared libraries through AIX4.2
6312 # and later when we are not doing run time linking.
6313 library_names_spec='${libname}${release}.a $libname.a'
6314 soname_spec='${libname}${release}.so$major'
6316 shlibpath_var=LIBPATH
6318 hardcode_into_libs=yes
6322 library_names_spec='$libname.ixlibrary $libname.a'
6323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6324 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'
6328 library_names_spec='${libname}.so'
6329 dynamic_linker="$host_os ld.so"
6330 shlibpath_var=LIBRARY_PATH
6336 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6337 soname_spec='${libname}${release}.so$major'
6338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6339 shlibpath_var=LD_LIBRARY_PATH
6340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6342 export_dynamic_flag_spec=-rdynamic
6343 # the default ld.so.conf also contains /usr/contrib/lib and
6344 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6345 # libtool to hard-code these into programs
6348 cygwin* | mingw* | pw32*)
6349 version_type=windows
6352 case $GCC,$host_os in
6354 library_names_spec='$libname.dll.a'
6355 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6356 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6357 dldir=$destdir/`dirname \$dlpath`~
6358 test -d \$dldir || mkdir -p \$dldir~
6359 $install_prog .libs/$dlname \$dldir/$dlname'
6360 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6361 dlpath=$dir/\$dldll~
6365 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6372 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6375 dynamic_linker='Win32 ld.exe'
6376 # FIXME: first we should search . and the directory the executable is in
6380 darwin* | rhapsody*)
6381 dynamic_linker="$host_os dyld"
6385 # FIXME: Relying on posixy $() will cause problems for
6386 # cross-compilation, but unfortunately the echo tests do not
6387 # yet detect zsh echo's removal of \ escapes.
6388 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)'
6389 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6390 shlibpath_overrides_runpath=yes
6391 shlibpath_var=DYLD_LIBRARY_PATH
6399 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6400 version_type=freebsd-$objformat
6401 case $version_type in
6403 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6408 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6412 shlibpath_var=LD_LIBRARY_PATH
6415 shlibpath_overrides_runpath=yes
6418 shlibpath_overrides_runpath=no
6419 hardcode_into_libs=yes
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6429 soname_spec='${libname}${release}.so$major'
6430 shlibpath_var=LD_LIBRARY_PATH
6431 hardcode_into_libs=yes
6434 hpux9* | hpux10* | hpux11*)
6435 # Give a soname corresponding to the major version so that dld.sl refuses to
6436 # link against other versions.
6437 dynamic_linker="$host_os dld.sl"
6441 shlibpath_var=SHLIB_PATH
6442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6443 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6444 soname_spec='${libname}${release}.sl$major'
6445 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6446 postinstall_cmds='chmod 555 $lib'
6449 irix5* | irix6* | nonstopux*)
6451 nonstopux*) version_type=nonstopux ;;
6452 *) version_type=irix ;;
6456 soname_spec='${libname}${release}.so$major'
6457 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6459 irix5* | nonstopux*)
6463 case $LD in # libtool.m4 will add one of these switches to LD
6464 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6465 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6466 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6467 *) libsuff= shlibsuff= libmagic=never-match;;
6471 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6472 shlibpath_overrides_runpath=no
6473 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6474 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6477 # No shared lib support for Linux oldld, aout, or coff.
6478 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6482 # This must be Linux ELF.
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6488 soname_spec='${libname}${release}.so$major'
6489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6490 shlibpath_var=LD_LIBRARY_PATH
6491 shlibpath_overrides_runpath=no
6492 # This implies no fast_install, which is unacceptable.
6493 # Some rework will be needed to allow for fast_install
6494 # before this can be enabled.
6495 hardcode_into_libs=yes
6497 # We used to test for /lib/ld.so.1 and disable shared libraries on
6498 # powerpc, because MkLinux only supported shared libraries with the
6499 # GNU dynamic linker. Since this was broken with cross compilers,
6500 # most powerpc-linux boxes support dynamic linking these days and
6501 # people can always --disable-shared, the test was removed, and we
6502 # assume the GNU/Linux dynamic linker is in use.
6503 dynamic_linker='GNU/Linux ld.so'
6510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6511 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6513 dynamic_linker='NetBSD (a.out) ld.so'
6515 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6516 soname_spec='${libname}${release}.so$major'
6517 dynamic_linker='NetBSD ld.elf_so'
6519 shlibpath_var=LD_LIBRARY_PATH
6520 shlibpath_overrides_runpath=yes
6521 hardcode_into_libs=yes
6526 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6527 shlibpath_var=LD_LIBRARY_PATH
6528 shlibpath_overrides_runpath=yes
6535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6537 openbsd2.[89] | openbsd2.[89].*)
6538 shlibpath_overrides_runpath=no
6541 shlibpath_overrides_runpath=yes
6545 shlibpath_overrides_runpath=yes
6547 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6549 shlibpath_var=LD_LIBRARY_PATH
6553 libname_spec='$name'
6555 library_names_spec='$libname.dll $libname.a'
6556 dynamic_linker='OS/2 ld.exe'
6557 shlibpath_var=LIBPATH
6560 osf3* | osf4* | osf5*)
6563 soname_spec='${libname}${release}.so$major'
6564 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6565 shlibpath_var=LD_LIBRARY_PATH
6566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6568 hardcode_into_libs=yes
6573 soname_spec='${libname}${release}.so$major'
6574 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6575 shlibpath_var=LD_LIBRARY_PATH
6582 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6583 soname_spec='${libname}${release}.so$major'
6584 shlibpath_var=LD_LIBRARY_PATH
6585 shlibpath_overrides_runpath=yes
6586 hardcode_into_libs=yes
6587 # ldd complains unless libraries are executable
6588 postinstall_cmds='chmod +x $lib'
6593 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6595 shlibpath_var=LD_LIBRARY_PATH
6596 shlibpath_overrides_runpath=yes
6597 if test "$with_gnu_ld" = yes; then
6603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6606 soname_spec='${libname}${release}.so$major'
6607 shlibpath_var=LD_LIBRARY_PATH
6608 case $host_vendor in
6610 shlibpath_overrides_runpath=no
6612 export_dynamic_flag_spec='${wl}-Blargedynsym'
6613 runpath_var=LD_RUN_PATH
6621 shlibpath_overrides_runpath=no
6622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6629 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6630 soname_spec='${libname}${release}.so$major'
6631 shlibpath_var=LD_LIBRARY_PATH
6638 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6639 soname_spec='${libname}${release}.so$major'
6640 shlibpath_var=LD_LIBRARY_PATH
6644 if test -d /usr/nec ;then
6646 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6647 soname_spec='$libname.so.$major'
6648 shlibpath_var=LD_LIBRARY_PATH
6656 echo "$ac_t""$dynamic_linker" 1>&6
6657 test "$dynamic_linker" = no && can_build_shared=no
6661 ## FIXME: this should be a separate macro
6663 # Report the final consequences.
6664 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6665 echo "configure:6666: checking if libtool supports shared libraries" >&5
6666 echo "$ac_t""$can_build_shared" 1>&6
6670 ## FIXME: this should be a separate macro
6672 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6673 echo "configure:6674: checking whether to build shared libraries" >&5
6674 test "$can_build_shared" = "no" && enable_shared=no
6676 # On AIX, shared libraries and static libraries use the same namespace, and
6677 # are all built from PIC.
6680 test "$enable_shared" = yes && enable_static=no
6681 if test -n "$RANLIB"; then
6682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6683 postinstall_cmds='$RANLIB $lib'
6688 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6689 test "$enable_shared" = yes && enable_static=no
6693 echo "$ac_t""$enable_shared" 1>&6
6697 ## FIXME: this should be a separate macro
6699 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6700 echo "configure:6701: checking whether to build static libraries" >&5
6701 # Make sure either enable_shared or enable_static is yes.
6702 test "$enable_shared" = yes || enable_static=yes
6703 echo "$ac_t""$enable_static" 1>&6
6707 if test "$hardcode_action" = relink; then
6708 # Fast installation is not supported
6709 enable_fast_install=no
6710 elif test "$shlibpath_overrides_runpath" = yes ||
6711 test "$enable_shared" = no; then
6712 # Fast installation is not necessary
6713 enable_fast_install=needless
6716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6717 if test "$GCC" = yes; then
6718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6721 if test "x$enable_dlopen" != xyes; then
6722 enable_dlopen=unknown
6723 enable_dlopen_self=unknown
6724 enable_dlopen_self_static=unknown
6731 lt_cv_dlopen="load_add_on"
6733 lt_cv_dlopen_self=yes
6736 cygwin* | mingw* | pw32*)
6737 lt_cv_dlopen="LoadLibrary"
6742 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6743 echo "configure:6744: checking for shl_load" >&5
6744 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6745 echo $ac_n "(cached) $ac_c" 1>&6
6747 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char shl_load(); below. */
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_func_shl_load=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_func_shl_load=no"
6784 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 lt_cv_dlopen="shl_load"
6788 echo "$ac_t""no" 1>&6
6789 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6790 echo "configure:6791: checking for shl_load in -ldld" >&5
6791 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6795 ac_save_LIBS="$LIBS"
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 eval "ac_cv_lib_$ac_lib_var=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_lib_$ac_lib_var=no"
6819 LIBS="$ac_save_LIBS"
6822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6826 echo "$ac_t""no" 1>&6
6827 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6828 echo "configure:6829: checking for dlopen" >&5
6829 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* System header to define __stub macros and hopefully few prototypes,
6836 which can conflict with char dlopen(); below. */
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6846 /* The GNU C library defines this for functions which it implements
6847 to always fail with ENOSYS. Some functions are actually named
6848 something starting with __ and the normal name is an alias. */
6849 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6859 eval "ac_cv_func_dlopen=yes"
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6864 eval "ac_cv_func_dlopen=no"
6869 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6870 echo "$ac_t""yes" 1>&6
6871 lt_cv_dlopen="dlopen"
6873 echo "$ac_t""no" 1>&6
6874 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6875 echo "configure:6876: checking for dlopen in -ldl" >&5
6876 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6877 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6878 echo $ac_n "(cached) $ac_c" 1>&6
6880 ac_save_LIBS="$LIBS"
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 eval "ac_cv_lib_$ac_lib_var=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval "ac_cv_lib_$ac_lib_var=no"
6904 LIBS="$ac_save_LIBS"
6907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6908 echo "$ac_t""yes" 1>&6
6909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6911 echo "$ac_t""no" 1>&6
6912 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6913 echo "configure:6914: checking for dlopen in -lsvld" >&5
6914 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 ac_save_LIBS="$LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6949 echo "$ac_t""no" 1>&6
6950 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6951 echo "configure:6952: checking for dld_link in -ldld" >&5
6952 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6953 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 ac_save_LIBS="$LIBS"
6958 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6970 if { (eval echo configure:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6972 eval "ac_cv_lib_$ac_lib_var=yes"
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 eval "ac_cv_lib_$ac_lib_var=no"
6980 LIBS="$ac_save_LIBS"
6983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6985 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6987 echo "$ac_t""no" 1>&6
7008 if test "x$lt_cv_dlopen" != xno; then
7014 case $lt_cv_dlopen in
7016 save_CPPFLAGS="$CPPFLAGS"
7017 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7019 save_LDFLAGS="$LDFLAGS"
7020 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7023 LIBS="$lt_cv_dlopen_libs $LIBS"
7025 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7026 echo "configure:7027: checking whether a program can dlopen itself" >&5
7027 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 if test "$cross_compiling" = yes; then :
7031 lt_cv_dlopen_self=cross
7033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7034 lt_status=$lt_dlunknown
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7046 # define LT_DLGLOBAL RTLD_GLOBAL
7049 # define LT_DLGLOBAL DL_GLOBAL
7051 # define LT_DLGLOBAL 0
7055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7056 find out it does not work in some platform. */
7057 #ifndef LT_DLLAZY_OR_NOW
7059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7062 # define LT_DLLAZY_OR_NOW DL_LAZY
7065 # define LT_DLLAZY_OR_NOW RTLD_NOW
7068 # define LT_DLLAZY_OR_NOW DL_NOW
7070 # define LT_DLLAZY_OR_NOW 0
7078 extern "C" void exit (int);
7081 void fnord() { int i=42;}
7084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7085 int status = $lt_dlunknown;
7089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7091 /* dlclose (self); */
7097 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7098 (./conftest; exit; ) 2>/dev/null
7101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7103 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7106 # compilation failed
7107 lt_cv_dlopen_self=no
7115 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7117 if test "x$lt_cv_dlopen_self" = xyes; then
7118 LDFLAGS="$LDFLAGS $link_static_flag"
7119 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7120 echo "configure:7121: checking whether a statically linked program can dlopen itself" >&5
7121 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 if test "$cross_compiling" = yes; then :
7125 lt_cv_dlopen_self_static=cross
7127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7128 lt_status=$lt_dlunknown
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7140 # define LT_DLGLOBAL RTLD_GLOBAL
7143 # define LT_DLGLOBAL DL_GLOBAL
7145 # define LT_DLGLOBAL 0
7149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7150 find out it does not work in some platform. */
7151 #ifndef LT_DLLAZY_OR_NOW
7153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7156 # define LT_DLLAZY_OR_NOW DL_LAZY
7159 # define LT_DLLAZY_OR_NOW RTLD_NOW
7162 # define LT_DLLAZY_OR_NOW DL_NOW
7164 # define LT_DLLAZY_OR_NOW 0
7172 extern "C" void exit (int);
7175 void fnord() { int i=42;}
7178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7179 int status = $lt_dlunknown;
7183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7185 /* dlclose (self); */
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7192 (./conftest; exit; ) 2>/dev/null
7195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7200 # compilation failed
7201 lt_cv_dlopen_self_static=no
7209 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7212 CPPFLAGS="$save_CPPFLAGS"
7213 LDFLAGS="$save_LDFLAGS"
7218 case $lt_cv_dlopen_self in
7219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7220 *) enable_dlopen_self=unknown ;;
7223 case $lt_cv_dlopen_self_static in
7224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7225 *) enable_dlopen_self_static=unknown ;;
7230 ## FIXME: this should be a separate macro
7232 if test "$enable_shared" = yes && test "$GCC" = yes; then
7233 case $archive_cmds in
7235 # FIXME: we may have to deal with multi-command sequences.
7238 # Test whether the compiler implicitly links with -lc since on some
7239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7240 # to ld, don't add -lc before -lgcc.
7241 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7242 echo "configure:7243: checking whether -lc should be explicitly linked in" >&5
7243 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7244 echo $ac_n "(cached) $ac_c" 1>&6
7247 echo 'static int dummy;' > conftest.$ac_ext
7249 if { (eval echo configure:7250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7252 libobjs=conftest.$ac_objext
7254 wl=$lt_cv_prog_cc_wl
7260 save_allow_undefined_flag=$allow_undefined_flag
7261 allow_undefined_flag=
7262 if { (eval echo configure:7263: \"$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; }
7264 lt_cv_archive_cmds_need_lc=no
7266 lt_cv_archive_cmds_need_lc=yes
7268 allow_undefined_flag=$save_allow_undefined_flag
7270 cat conftest.err 1>&5
7274 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7278 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7282 ## FIXME: this should be a separate macro
7284 # The second clause should only fire when bootstrapping the
7285 # libtool distribution, otherwise you forgot to ship ltmain.sh
7286 # with your package, and you will get complaints that there are
7287 # no rules to generate ltmain.sh.
7288 if test -f "$ltmain"; then
7291 # If there is no Makefile yet, we rely on a make rule to execute
7292 # `config.status --recheck' to rerun these tests and create the
7293 # libtool script then.
7294 test -f Makefile && make "$ltmain"
7297 if test -f "$ltmain"; then
7298 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7301 echo creating $ofile
7303 # Now quote all the things that may contain metacharacters while being
7304 # careful not to overquote the AC_SUBSTed values. We take copies of the
7305 # variables and quote the copies for generation of the libtool script.
7306 for var in echo old_CC old_CFLAGS SED \
7307 AR AR_FLAGS CC LD LN_S NM SHELL \
7308 reload_flag reload_cmds wl \
7309 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7310 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7311 library_names_spec soname_spec \
7312 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7313 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7314 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7315 old_striplib striplib file_magic_cmd export_symbols_cmds \
7316 deplibs_check_method allow_undefined_flag no_undefined_flag \
7317 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7318 global_symbol_to_c_name_address \
7319 hardcode_libdir_flag_spec hardcode_libdir_separator \
7320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7321 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7324 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7325 old_postinstall_cmds | old_postuninstall_cmds | \
7326 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7327 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7328 postinstall_cmds | postuninstall_cmds | \
7329 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7330 # Double-quote double-evaled strings.
7331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7339 cat <<__EOF__ > "${ofile}T"
7342 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7343 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7346 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7347 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7349 # This program is free software; you can redistribute it and/or modify
7350 # it under the terms of the GNU General Public License as published by
7351 # the Free Software Foundation; either version 2 of the License, or
7352 # (at your option) any later version.
7354 # This program is distributed in the hope that it will be useful, but
7355 # WITHOUT ANY WARRANTY; without even the implied warranty of
7356 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7357 # General Public License for more details.
7359 # You should have received a copy of the GNU General Public License
7360 # along with this program; if not, write to the Free Software
7361 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7363 # As a special exception to the GNU General Public License, if you
7364 # distribute this file as part of a program that contains a
7365 # configuration script generated by Autoconf, you may include it under
7366 # the same distribution terms that you use for the rest of that program.
7368 # A sed that does not truncate output.
7371 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7372 Xsed="${SED} -e s/^X//"
7374 # The HP-UX ksh and POSIX shell print the target directory to stdout
7376 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7378 # ### BEGIN LIBTOOL CONFIG
7380 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7382 # Shell to use when invoking shell scripts.
7385 # Whether or not to build shared libraries.
7386 build_libtool_libs=$enable_shared
7388 # Whether or not to build static libraries.
7389 build_old_libs=$enable_static
7391 # Whether or not to add -lc for building shared libraries.
7392 build_libtool_need_lc=$need_lc
7394 # Whether or not to optimize for fast installation.
7395 fast_install=$enable_fast_install
7398 host_alias=$host_alias
7401 # An echo program that does not interpret backslashes.
7406 AR_FLAGS=$lt_AR_FLAGS
7408 # The default C compiler.
7411 # Is the compiler the GNU C compiler?
7414 # The linker used to build libraries.
7417 # Whether we need hard or soft links.
7420 # A BSD-compatible nm program.
7423 # A symbol stripping program
7426 # Used to examine libraries when file_magic_cmd begins "file"
7427 MAGIC_CMD=$MAGIC_CMD
7429 # Used on cygwin: DLL creation program.
7432 # Used on cygwin: object dumper.
7435 # Used on cygwin: assembler.
7438 # The name of the directory that contains temporary libtool files.
7441 # How to create reloadable object files.
7442 reload_flag=$lt_reload_flag
7443 reload_cmds=$lt_reload_cmds
7445 # How to pass a linker flag through the compiler.
7448 # Object file suffix (normally "o").
7451 # Old archive suffix (normally "a").
7454 # Executable file suffix (normally "").
7457 # Additional compiler flags for building library objects.
7458 pic_flag=$lt_pic_flag
7461 # Does compiler simultaneously support -c and -o options?
7462 compiler_c_o=$lt_compiler_c_o
7464 # Can we write directly to a .lo ?
7465 compiler_o_lo=$lt_compiler_o_lo
7467 # Must we lock files when doing compilation ?
7468 need_locks=$lt_need_locks
7470 # Do we need the lib prefix for modules?
7471 need_lib_prefix=$need_lib_prefix
7473 # Do we need a version for libraries?
7474 need_version=$need_version
7476 # Whether dlopen is supported.
7477 dlopen_support=$enable_dlopen
7479 # Whether dlopen of programs is supported.
7480 dlopen_self=$enable_dlopen_self
7482 # Whether dlopen of statically linked programs is supported.
7483 dlopen_self_static=$enable_dlopen_self_static
7485 # Compiler flag to prevent dynamic linking.
7486 link_static_flag=$lt_link_static_flag
7488 # Compiler flag to turn off builtin functions.
7489 no_builtin_flag=$lt_no_builtin_flag
7491 # Compiler flag to allow reflexive dlopens.
7492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7494 # Compiler flag to generate shared objects directly from archives.
7495 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7497 # Compiler flag to generate thread-safe objects.
7498 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7500 # Library versioning type.
7501 version_type=$version_type
7503 # Format of library name prefix.
7504 libname_spec=$lt_libname_spec
7506 # List of archive names. First name is the real one, the rest are links.
7507 # The last name is the one that the linker finds with -lNAME.
7508 library_names_spec=$lt_library_names_spec
7510 # The coded name of the library, if different from the real name.
7511 soname_spec=$lt_soname_spec
7513 # Commands used to build and install an old-style archive.
7515 old_archive_cmds=$lt_old_archive_cmds
7516 old_postinstall_cmds=$lt_old_postinstall_cmds
7517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7519 # Create an old-style archive from a shared archive.
7520 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7522 # Create a temporary old-style archive to link instead of a shared archive.
7523 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7525 # Commands used to build and install a shared archive.
7526 archive_cmds=$lt_archive_cmds
7527 archive_expsym_cmds=$lt_archive_expsym_cmds
7528 postinstall_cmds=$lt_postinstall_cmds
7529 postuninstall_cmds=$lt_postuninstall_cmds
7531 # Commands to strip libraries.
7532 old_striplib=$lt_old_striplib
7533 striplib=$lt_striplib
7535 # Method to check whether dependent libraries are shared objects.
7536 deplibs_check_method=$lt_deplibs_check_method
7538 # Command to use when deplibs_check_method == file_magic.
7539 file_magic_cmd=$lt_file_magic_cmd
7541 # Flag that allows shared libraries with undefined symbols to be built.
7542 allow_undefined_flag=$lt_allow_undefined_flag
7544 # Flag that forces no undefined symbols.
7545 no_undefined_flag=$lt_no_undefined_flag
7547 # Commands used to finish a libtool library installation in a directory.
7548 finish_cmds=$lt_finish_cmds
7550 # Same as above, but a single script fragment to be evaled but not shown.
7551 finish_eval=$lt_finish_eval
7553 # Take the output of nm and produce a listing of raw symbols and C names.
7554 global_symbol_pipe=$lt_global_symbol_pipe
7556 # Transform the output of nm in a proper C declaration
7557 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7559 # Transform the output of nm in a C name address pair
7560 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7562 # This is the shared library runtime path variable.
7563 runpath_var=$runpath_var
7565 # This is the shared library path variable.
7566 shlibpath_var=$shlibpath_var
7568 # Is shlibpath searched before the hard-coded library search path?
7569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7571 # How to hardcode a shared library path into an executable.
7572 hardcode_action=$hardcode_action
7574 # Whether we should hardcode library paths into libraries.
7575 hardcode_into_libs=$hardcode_into_libs
7577 # Flag to hardcode \$libdir into a binary during linking.
7578 # This must work even if \$libdir does not exist.
7579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7581 # Whether we need a single -rpath flag with a separated argument.
7582 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7584 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7586 hardcode_direct=$hardcode_direct
7588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7590 hardcode_minus_L=$hardcode_minus_L
7592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7593 # the resulting binary.
7594 hardcode_shlibpath_var=$hardcode_shlibpath_var
7596 # Variables whose values should be saved in libtool wrapper scripts and
7597 # restored at relink time.
7598 variables_saved_for_relink="$variables_saved_for_relink"
7600 # Whether libtool must link a program against all its dependency libraries.
7601 link_all_deplibs=$link_all_deplibs
7603 # Compile-time system search path for libraries
7604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7606 # Run-time system search path for libraries
7607 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7609 # Fix the shell variable \$srcfile for the compiler.
7610 fix_srcfile_path="$fix_srcfile_path"
7612 # Set to yes if exported symbols are required.
7613 always_export_symbols=$always_export_symbols
7615 # The commands to list exported symbols.
7616 export_symbols_cmds=$lt_export_symbols_cmds
7618 # The commands to extract the exported symbol list from a shared archive.
7619 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7621 # Symbols that should not be listed in the preloaded symbols.
7622 exclude_expsyms=$lt_exclude_expsyms
7624 # Symbols that must always be exported.
7625 include_expsyms=$lt_include_expsyms
7627 # ### END LIBTOOL CONFIG
7633 cat <<\EOF >> "${ofile}T"
7635 # AIX sometimes has problems with the GCC collect2 program. For some
7636 # reason, if we set the COLLECT_NAMES environment variable, the problems
7637 # vanish in a puff of smoke.
7638 if test "X${COLLECT_NAMES+set}" != Xset; then
7640 export COLLECT_NAMES
7647 cygwin* | mingw* | pw32* | os2*)
7648 cat <<'EOF' >> "${ofile}T"
7649 # This is a source program that is used to create dlls on Windows
7650 # Don't remove nor modify the starting and closing comments
7651 # /* ltdll.c starts here */
7652 # #define WIN32_LEAN_AND_MEAN
7653 # #include <windows.h>
7654 # #undef WIN32_LEAN_AND_MEAN
7655 # #include <stdio.h>
7657 # #ifndef __CYGWIN__
7658 # # ifdef __CYGWIN32__
7659 # # define __CYGWIN__ __CYGWIN32__
7663 # #ifdef __cplusplus
7666 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7667 # #ifdef __cplusplus
7672 # #include <cygwin/cygwin_dll.h>
7673 # DECLARE_CYGWIN_DLL( DllMain );
7675 # HINSTANCE __hDllInstance_base;
7678 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7680 # __hDllInstance_base = hInst;
7683 # /* ltdll.c ends here */
7684 # This is a source program that is used to create import libraries
7685 # on Windows for dlls which lack them. Don't remove nor modify the
7686 # starting and closing comments
7687 # /* impgen.c starts here */
7688 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7690 # This file is part of GNU libtool.
7692 # This program is free software; you can redistribute it and/or modify
7693 # it under the terms of the GNU General Public License as published by
7694 # the Free Software Foundation; either version 2 of the License, or
7695 # (at your option) any later version.
7697 # This program is distributed in the hope that it will be useful,
7698 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7699 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7700 # GNU General Public License for more details.
7702 # You should have received a copy of the GNU General Public License
7703 # along with this program; if not, write to the Free Software
7704 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7707 # #include <stdio.h> /* for printf() */
7708 # #include <unistd.h> /* for open(), lseek(), read() */
7709 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7710 # #include <string.h> /* for strdup() */
7712 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7714 # #define O_BINARY 0
7717 # static unsigned int
7718 # pe_get16 (fd, offset)
7722 # unsigned char b[2];
7723 # lseek (fd, offset, SEEK_SET);
7725 # return b[0] + (b[1]<<8);
7728 # static unsigned int
7729 # pe_get32 (fd, offset)
7733 # unsigned char b[4];
7734 # lseek (fd, offset, SEEK_SET);
7736 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7739 # static unsigned int
7743 # unsigned char *b = ptr;
7744 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7753 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7754 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7755 # unsigned long name_rvas, nexp;
7756 # unsigned char *expdata, *erva;
7757 # char *filename, *dll_name;
7759 # filename = argv[1];
7761 # dll = open(filename, O_RDONLY|O_BINARY);
7765 # dll_name = filename;
7767 # for (i=0; filename[i]; i++)
7768 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7769 # dll_name = filename + i +1;
7771 # pe_header_offset = pe_get32 (dll, 0x3c);
7772 # opthdr_ofs = pe_header_offset + 4 + 20;
7773 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7775 # if (num_entries < 1) /* no exports */
7778 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7779 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7780 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7781 # secptr = (pe_header_offset + 4 + 20 +
7782 # pe_get16 (dll, pe_header_offset + 4 + 16));
7785 # for (i = 0; i < nsections; i++)
7788 # unsigned long secptr1 = secptr + 40 * i;
7789 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7790 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7791 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7792 # lseek(dll, secptr1, SEEK_SET);
7793 # read(dll, sname, 8);
7794 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7796 # expptr = fptr + (export_rva - vaddr);
7797 # if (export_rva + export_size > vaddr + vsize)
7798 # export_size = vsize - (export_rva - vaddr);
7803 # expdata = (unsigned char*)malloc(export_size);
7804 # lseek (dll, expptr, SEEK_SET);
7805 # read (dll, expdata, export_size);
7806 # erva = expdata - export_rva;
7808 # nexp = pe_as32 (expdata+24);
7809 # name_rvas = pe_as32 (expdata+32);
7811 # printf ("EXPORTS\n");
7812 # for (i = 0; i<nexp; i++)
7814 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7815 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7820 # /* impgen.c ends here */
7826 # We use sed instead of cat because bash on DJGPP gets confused if
7827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7828 # text mode, it properly converts lines to CR/LF. This bash problem
7829 # is reportedly fixed, but why not run on old versions too?
7830 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7832 mv -f "${ofile}T" "$ofile" || \
7833 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7843 # This can be used to rebuild libtool when needed
7844 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7846 # Always use our own libtool.
7847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7849 # Prevent multiple expansion
7854 if test -z "$LTDYNAMIC" -a "${OPENLDAP_CVS}"; then
7858 # test for ln hardlink support
7859 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7860 echo "configure:7861: checking whether ln works" >&5
7861 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7864 rm -f conftest.src conftest.dst
7865 echo "conftest" > conftest.src
7866 if ln conftest.src conftest.dst 2>/dev/null
7868 ol_cv_prog_LN_H="ln"
7870 ol_cv_prog_LN_H="cp"
7872 rm -f conftest.src conftest.dst
7875 LN_H="$ol_cv_prog_LN_H"
7876 if test "$ol_cv_prog_LN_H" = "ln"; then
7877 echo "$ac_t""yes" 1>&6
7879 echo "$ac_t""no" 1>&6
7882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7883 echo "configure:7884: checking whether ln -s works" >&5
7884 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7888 if ln -s X conftestdata 2>/dev/null
7891 ac_cv_prog_LN_S="ln -s"
7896 LN_S="$ac_cv_prog_LN_S"
7897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7898 echo "$ac_t""yes" 1>&6
7900 echo "$ac_t""no" 1>&6
7905 if test $ol_enable_perl != no ; then
7906 # Extract the first word of "perl", so it can be a program name with args.
7907 set dummy perl; ac_word=$2
7908 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7909 echo "configure:7910: checking for $ac_word" >&5
7910 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7911 echo $ac_n "(cached) $ac_c" 1>&6
7915 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7918 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7923 for ac_dir in $ac_dummy; do
7924 test -z "$ac_dir" && ac_dir=.
7925 if test -f $ac_dir/$ac_word; then
7926 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7931 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7935 PERLBIN="$ac_cv_path_PERLBIN"
7936 if test -n "$PERLBIN"; then
7937 echo "$ac_t""$PERLBIN" 1>&6
7939 echo "$ac_t""no" 1>&6
7943 if test "no$PERLBIN" = "no" ; then
7944 if test $ol_enable_perl = yes ; then
7945 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7949 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7950 if test x"$ol_with_perl_module" = "xstatic" ; then
7951 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7953 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7959 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7960 echo "configure:7961: checking how to run the C preprocessor" >&5
7961 # On Suns, sometimes $CPP names a directory.
7962 if test -n "$CPP" && test -d "$CPP"; then
7965 if test -z "$CPP"; then
7966 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 # This must be in double quotes, not single quotes, because CPP may get
7970 # substituted into the Makefile and "${CC-cc}" will confuse make.
7972 # On the NeXT, cc -E runs the code through the compiler's parser,
7973 # not just through cpp.
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then
7987 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7990 CPP="${CC-cc} -E -traditional-cpp"
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7998 { (eval echo configure:7999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8000 if test -z "$ac_err"; then
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 CPP="${CC-cc} -nologo -E"
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8031 ac_cv_prog_CPP="$CPP"
8033 CPP="$ac_cv_prog_CPP"
8035 ac_cv_prog_CPP="$CPP"
8037 echo "$ac_t""$CPP" 1>&6
8040 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8041 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8043 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8044 echo "configure: warning: programs compiled here do run here..." 1>&2
8045 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8047 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8048 echo "configure: warning: programs compiled here do not run here..." 1>&2
8049 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8053 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8054 echo "configure:8055: checking for Cygwin environment" >&5
8055 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8065 #define __CYGWIN__ __CYGWIN32__
8070 if { (eval echo configure:8071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8074 echo "configure: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8082 echo "$ac_t""$ac_cv_cygwin" 1>&6
8084 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8085 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8086 echo "configure:8087: checking for mingw32 environment" >&5
8087 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8098 if { (eval echo configure:8099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8102 echo "configure: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8110 echo "$ac_t""$ac_cv_mingw32" 1>&6
8112 test "$ac_cv_mingw32" = yes && MINGW32=yes
8116 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8117 echo "configure:8118: checking for executable suffix" >&5
8118 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8121 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8125 echo 'int main () { return 0; }' > conftest.$ac_ext
8127 if { (eval echo configure:8128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8128 for file in conftest.*; do
8130 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8131 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8135 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8138 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8143 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8144 echo "$ac_t""${ac_cv_exeext}" 1>&6
8147 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8148 echo "configure:8149: checking for object suffix" >&5
8149 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8153 echo 'int i = 1;' > conftest.$ac_ext
8154 if { (eval echo configure:8155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8155 for ac_file in conftest.*; do
8158 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8162 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8167 echo "$ac_t""$ac_cv_objext" 1>&6
8168 OBJEXT=$ac_cv_objext
8169 ac_objext=$ac_cv_objext
8172 cat >> confdefs.h <<EOF
8173 #define EXEEXT "${EXEEXT}"
8177 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8178 echo "configure:8179: checking for be_app in -lbe" >&5
8179 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8180 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8183 ac_save_LIBS="$LIBS"
8184 LIBS="-lbe -lroot -lnet $LIBS"
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8197 if { (eval echo configure:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8199 eval "ac_cv_lib_$ac_lib_var=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8204 eval "ac_cv_lib_$ac_lib_var=no"
8207 LIBS="$ac_save_LIBS"
8210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 LIBS="$LIBS -lbe -lroot -lnet"
8214 echo "$ac_t""no" 1>&6
8222 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8223 echo "configure:8224: checking for ${CC-cc} option to accept ANSI C" >&5
8224 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8227 am_cv_prog_cc_stdc=no
8229 # Don't try gcc -ansi; that turns off useful extensions and
8230 # breaks some systems' header files.
8231 # AIX -qlanglvl=ansi
8232 # Ultrix and OSF/1 -std1
8233 # HP-UX 10.20 and later -Ae
8234 # HP-UX older versions -Aa -D_HPUX_SOURCE
8235 # SVR4 -Xc -D__EXTENSIONS__
8236 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8238 CC="$ac_save_CC $ac_arg"
8239 cat > conftest.$ac_ext <<EOF
8240 #line 8241 "configure"
8241 #include "confdefs.h"
8244 #include <sys/types.h>
8245 #include <sys/stat.h>
8246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8247 struct buf { int x; };
8248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8249 static char *e (p, i)
8255 static char *f (char * (*g) (char **, int), char **p, ...)
8260 s = g (p, va_arg (v,int));
8264 int test (int i, double x);
8265 struct s1 {int (*f) (int a);};
8266 struct s2 {int (*f) (double a);};
8267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8277 if { (eval echo configure:8278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8279 am_cv_prog_cc_stdc="$ac_arg"; break
8281 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8290 if test -z "$am_cv_prog_cc_stdc"; then
8291 echo "$ac_t""none needed" 1>&6
8293 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8295 case "x$am_cv_prog_cc_stdc" in
8297 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8300 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8301 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8304 # test for make depend flag
8307 if test -z "${MKDEP}"; then
8309 if test -z "${MKDEP_FLAGS}"; then
8310 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8311 echo "configure:8312: checking for ${OL_MKDEP} depend flag" >&5
8312 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8317 for flag in "-M" "-xM"; do
8318 cat > conftest.c <<EOF
8321 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8322 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8324 if test ! -f conftest."${ac_object}" ; then
8326 OL_MKDEP_FLAGS="$flag"
8335 echo "$ac_t""$ol_cv_mkdep" 1>&6
8338 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8343 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8348 if test "${ol_cv_mkdep}" = no ; then
8349 # this will soon become an error
8350 echo "configure: warning: do not know how to generate dependencies" 1>&2
8353 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8354 echo "configure:8355: checking for afopen in -ls" >&5
8355 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8359 ac_save_LIBS="$LIBS"
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 /* Override any gcc2 internal prototype to avoid an error. */
8365 /* We use char because int might match the return type of a gcc2
8366 builtin and then its argument prototype would still apply. */
8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8375 eval "ac_cv_lib_$ac_lib_var=yes"
8377 echo "configure: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8380 eval "ac_cv_lib_$ac_lib_var=no"
8383 LIBS="$ac_save_LIBS"
8386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8387 echo "$ac_t""yes" 1>&6
8390 cat >> confdefs.h <<\EOF
8391 #define HAVE_AIX_SECURITY 1
8396 echo "$ac_t""no" 1>&6
8402 ac_cv_func_getopt=no
8403 cat >> confdefs.h <<\EOF
8404 #define BOTH_STRINGS_H 1
8411 if test $ol_enable_modules != no ; then
8412 for ac_hdr in ltdl.h
8414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8416 echo "configure:8417: checking for $ac_hdr" >&5
8417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8418 echo $ac_n "(cached) $ac_c" 1>&6
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8428 if test -z "$ac_err"; then
8430 eval "ac_cv_header_$ac_safe=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 eval "ac_cv_header_$ac_safe=no"
8440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8441 echo "$ac_t""yes" 1>&6
8442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8443 cat >> confdefs.h <<EOF
8444 #define $ac_tr_hdr 1
8448 echo "$ac_t""no" 1>&6
8453 if test $ac_cv_header_ltdl_h = no ; then
8454 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8457 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8458 echo "configure:8459: checking for lt_dlinit in -lltdl" >&5
8459 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 ac_save_LIBS="$LIBS"
8465 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure"
8467 #include "confdefs.h"
8468 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479 eval "ac_cv_lib_$ac_lib_var=yes"
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8484 eval "ac_cv_lib_$ac_lib_var=no"
8487 LIBS="$ac_save_LIBS"
8490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8491 echo "$ac_t""yes" 1>&6
8494 cat >> confdefs.h <<\EOF
8495 #define HAVE_LIBLTDL 1
8500 echo "$ac_t""no" 1>&6
8504 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8505 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8509 ol_with_bdb_module=static
8510 ol_with_dnssrv_module=static
8511 ol_with_ldap_module=static
8512 ol_with_ldbm_module=static
8513 ol_with_meta_module=static
8514 ol_with_monitor_module=static
8515 ol_with_null_module=static
8516 ol_with_passwd_module=static
8517 ol_with_perl_module=static
8518 ol_with_shell_module=static
8519 ol_with_tcl_module=static
8520 ol_with_sql_module=static
8524 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8525 echo "configure:8526: checking for EBCDIC" >&5
8526 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8535 #include <__ASCII__/generate_error.h>
8539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8540 { (eval echo configure:8541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8542 if test -z "$ac_err"; then
8544 ol_cv_cpp_ebcdic=yes
8547 echo "configure: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8555 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8556 if test $ol_cv_cpp_ebcdic = yes ; then
8557 cat >> confdefs.h <<\EOF
8558 #define HAVE_EBCDIC 1
8563 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8564 echo "configure:8565: checking for ANSI C header files" >&5
8565 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8568 cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure"
8570 #include "confdefs.h"
8576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8577 { (eval echo configure:8578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8579 if test -z "$ac_err"; then
8581 ol_cv_header_stdc=yes
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8587 ol_cv_header_stdc=no
8591 if test $ol_cv_header_stdc = yes; then
8592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8599 egrep "memchr" >/dev/null 2>&1; then
8603 ol_cv_header_stdc=no
8609 if test $ol_cv_header_stdc = yes; then
8610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8617 egrep "free" >/dev/null 2>&1; then
8621 ol_cv_header_stdc=no
8627 if test $ol_cv_header_stdc = yes; then
8628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8629 if test "$cross_compiling" = yes; then
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8640 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8641 || ('j' <= (c) && (c) <= 'r') \
8642 || ('s' <= (c) && (c) <= 'z'))
8643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8646 int main () { int i; for (i = 0; i < 256; i++)
8647 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 ol_cv_header_stdc=no
8666 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8667 if test $ol_cv_header_stdc = yes; then
8668 cat >> confdefs.h <<\EOF
8669 #define STDC_HEADERS 1
8673 ac_cv_header_stdc=disable
8676 if test $ol_cv_header_stdc != yes; then
8677 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8681 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8683 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8684 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8685 echo "configure:8686: checking for $ac_hdr that defines DIR" >&5
8686 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8687 echo $ac_n "(cached) $ac_c" 1>&6
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 #include <sys/types.h>
8698 if { (eval echo configure:8699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8700 eval "ac_cv_header_dirent_$ac_safe=yes"
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8705 eval "ac_cv_header_dirent_$ac_safe=no"
8709 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8711 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8712 cat >> confdefs.h <<EOF
8713 #define $ac_tr_hdr 1
8715 ac_header_dirent=$ac_hdr; break
8717 echo "$ac_t""no" 1>&6
8720 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8721 if test $ac_header_dirent = dirent.h; then
8722 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8723 echo "configure:8724: checking for opendir in -ldir" >&5
8724 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8725 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8728 ac_save_LIBS="$LIBS"
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8742 if { (eval echo configure:8743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8744 eval "ac_cv_lib_$ac_lib_var=yes"
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8749 eval "ac_cv_lib_$ac_lib_var=no"
8752 LIBS="$ac_save_LIBS"
8755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8756 echo "$ac_t""yes" 1>&6
8759 echo "$ac_t""no" 1>&6
8763 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8764 echo "configure:8765: checking for opendir in -lx" >&5
8765 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8769 ac_save_LIBS="$LIBS"
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8774 /* Override any gcc2 internal prototype to avoid an error. */
8775 /* We use char because int might match the return type of a gcc2
8776 builtin and then its argument prototype would still apply. */
8783 if { (eval echo configure:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785 eval "ac_cv_lib_$ac_lib_var=yes"
8787 echo "configure: failed program was:" >&5
8788 cat conftest.$ac_ext >&5
8790 eval "ac_cv_lib_$ac_lib_var=no"
8793 LIBS="$ac_save_LIBS"
8796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8797 echo "$ac_t""yes" 1>&6
8800 echo "$ac_t""no" 1>&6
8805 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8806 echo "configure:8807: checking for sys/wait.h that is POSIX.1 compatible" >&5
8807 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 #include <sys/types.h>
8814 #include <sys/wait.h>
8816 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8819 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8824 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8827 if { (eval echo configure:8828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8829 ac_cv_header_sys_wait_h=yes
8831 echo "configure: failed program was:" >&5
8832 cat conftest.$ac_ext >&5
8834 ac_cv_header_sys_wait_h=no
8839 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8840 if test $ac_cv_header_sys_wait_h = yes; then
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_SYS_WAIT_H 1
8847 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8848 echo "configure:8849: checking POSIX termios" >&5
8849 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8855 #include <sys/types.h>
8857 #include <termios.h>
8859 /* SunOS 4.0.3 has termios.h but not the library calls. */
8863 if { (eval echo configure:8864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8865 am_cv_sys_posix_termios=yes
8867 echo "configure: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8870 am_cv_sys_posix_termios=no
8875 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8878 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8879 echo "configure:8880: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8880 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
8883 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8885 gwinsz_in_termios_h=no
8886 if test $am_cv_sys_posix_termios = yes; then
8887 cat > conftest.$ac_ext <<EOF
8888 #line 8889 "configure"
8889 #include "confdefs.h"
8890 #include <sys/types.h>
8891 # include <termios.h>
8897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8898 egrep "yes" >/dev/null 2>&1; then
8900 gwinsz_in_termios_h=yes
8906 if test $gwinsz_in_termios_h = no; then
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 #include <sys/types.h>
8911 # include <sys/ioctl.h>
8917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8918 egrep "yes" >/dev/null 2>&1; then
8920 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8928 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8929 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8930 cat >> confdefs.h <<\EOF
8931 #define GWINSZ_IN_SYS_IOCTL 1
8936 if test $am_cv_sys_posix_termios = yes ; then
8937 cat >> confdefs.h <<\EOF
8938 #define HAVE_POSIX_TERMIOS 1
8991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8993 echo "configure:8994: checking for $ac_hdr" >&5
8994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8997 cat > conftest.$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9003 { (eval echo configure:9004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9005 if test -z "$ac_err"; then
9007 eval "ac_cv_header_$ac_safe=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_header_$ac_safe=no"
9017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9020 cat >> confdefs.h <<EOF
9021 #define $ac_tr_hdr 1
9025 echo "$ac_t""no" 1>&6
9032 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
9033 echo "configure:9034: checking for dlopen" >&5
9034 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9037 cat > conftest.$ac_ext <<EOF
9038 #line 9039 "configure"
9039 #include "confdefs.h"
9040 /* System header to define __stub macros and hopefully few prototypes,
9041 which can conflict with char dlopen(); below. */
9043 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9051 /* The GNU C library defines this for functions which it implements
9052 to always fail with ENOSYS. Some functions are actually named
9053 something starting with __ and the normal name is an alias. */
9054 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 eval "ac_cv_func_dlopen=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 eval "ac_cv_func_dlopen=no"
9074 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9075 echo "$ac_t""yes" 1>&6
9078 echo "$ac_t""no" 1>&6
9079 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9080 echo "configure:9081: checking for dlopen in -ldl" >&5
9081 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9085 ac_save_LIBS="$LIBS"
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9099 if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9101 eval "ac_cv_lib_$ac_lib_var=yes"
9103 echo "configure: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9106 eval "ac_cv_lib_$ac_lib_var=no"
9109 LIBS="$ac_save_LIBS"
9112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9113 echo "$ac_t""yes" 1>&6
9114 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9115 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9116 cat >> confdefs.h <<EOF
9117 #define $ac_tr_lib 1
9123 echo "$ac_t""no" 1>&6
9129 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9130 echo "configure:9131: checking for sigset in -lV3" >&5
9131 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9135 ac_save_LIBS="$LIBS"
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 /* Override any gcc2 internal prototype to avoid an error. */
9141 /* We use char because int might match the return type of a gcc2
9142 builtin and then its argument prototype would still apply. */
9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9151 eval "ac_cv_lib_$ac_lib_var=yes"
9153 echo "configure: failed program was:" >&5
9154 cat conftest.$ac_ext >&5
9156 eval "ac_cv_lib_$ac_lib_var=no"
9159 LIBS="$ac_save_LIBS"
9162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9163 echo "$ac_t""yes" 1>&6
9164 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9166 cat >> confdefs.h <<EOF
9167 #define $ac_tr_lib 1
9173 echo "$ac_t""no" 1>&6
9177 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9178 echo "configure:9179: checking for winsock" >&5
9180 for curlib in ws2_32 wsock32; do
9181 LIBS="$LIBS -l$curlib"
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9188 char closesocket@4();
9189 char gethostname@8();
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9211 if test $have_winsock = yes; then
9212 cat >> confdefs.h <<\EOF
9213 #define HAVE_WINSOCK 1
9216 ac_cv_func_socket=yes
9217 ac_cv_func_select=yes
9218 ac_cv_func_closesocket=yes
9219 ac_cv_func_gethostname=yes
9220 if test $curlib = ws2_32; then
9221 have_winsock=winsock2
9222 cat >> confdefs.h <<\EOF
9223 #define HAVE_WINSOCK2 1
9231 echo "$ac_t""$have_winsock" 1>&6
9234 echo $ac_n "checking for socket""... $ac_c" 1>&6
9235 echo "configure:9236: checking for socket" >&5
9236 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242 /* System header to define __stub macros and hopefully few prototypes,
9243 which can conflict with char socket(); below. */
9245 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9253 /* The GNU C library defines this for functions which it implements
9254 to always fail with ENOSYS. Some functions are actually named
9255 something starting with __ and the normal name is an alias. */
9256 #if defined (__stub_socket) || defined (__stub___socket)
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9266 eval "ac_cv_func_socket=yes"
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9271 eval "ac_cv_func_socket=no"
9276 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9277 echo "$ac_t""yes" 1>&6
9280 echo "$ac_t""no" 1>&6
9282 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9283 echo "configure:9284: checking for main in -lsocket" >&5
9284 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9285 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9288 ac_save_LIBS="$LIBS"
9289 LIBS="-lsocket $LIBS"
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9298 if { (eval echo configure:9299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9300 eval "ac_cv_lib_$ac_lib_var=yes"
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9305 eval "ac_cv_lib_$ac_lib_var=no"
9308 LIBS="$ac_save_LIBS"
9311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9312 echo "$ac_t""yes" 1>&6
9313 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9315 cat >> confdefs.h <<EOF
9316 #define $ac_tr_lib 1
9319 LIBS="-lsocket $LIBS"
9322 echo "$ac_t""no" 1>&6
9325 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9326 echo "configure:9327: checking for main in -lnet" >&5
9327 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9329 echo $ac_n "(cached) $ac_c" 1>&6
9331 ac_save_LIBS="$LIBS"
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9343 eval "ac_cv_lib_$ac_lib_var=yes"
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9348 eval "ac_cv_lib_$ac_lib_var=no"
9351 LIBS="$ac_save_LIBS"
9354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9358 cat >> confdefs.h <<EOF
9359 #define $ac_tr_lib 1
9365 echo "$ac_t""no" 1>&6
9368 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9369 echo "configure:9370: checking for main in -lnsl_s" >&5
9370 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9374 ac_save_LIBS="$LIBS"
9375 LIBS="-lnsl_s $LIBS"
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9386 eval "ac_cv_lib_$ac_lib_var=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 eval "ac_cv_lib_$ac_lib_var=no"
9394 LIBS="$ac_save_LIBS"
9397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9398 echo "$ac_t""yes" 1>&6
9399 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9401 cat >> confdefs.h <<EOF
9402 #define $ac_tr_lib 1
9405 LIBS="-lnsl_s $LIBS"
9408 echo "$ac_t""no" 1>&6
9411 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9412 echo "configure:9413: checking for main in -lnsl" >&5
9413 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9414 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9415 echo $ac_n "(cached) $ac_c" 1>&6
9417 ac_save_LIBS="$LIBS"
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9427 if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 eval "ac_cv_lib_$ac_lib_var=yes"
9431 echo "configure: failed program was:" >&5
9432 cat conftest.$ac_ext >&5
9434 eval "ac_cv_lib_$ac_lib_var=no"
9437 LIBS="$ac_save_LIBS"
9440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9441 echo "$ac_t""yes" 1>&6
9442 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9444 cat >> confdefs.h <<EOF
9445 #define $ac_tr_lib 1
9451 echo "$ac_t""no" 1>&6
9454 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9455 echo "configure:9456: checking for socket in -linet" >&5
9456 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9457 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9460 ac_save_LIBS="$LIBS"
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9476 eval "ac_cv_lib_$ac_lib_var=yes"
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9481 eval "ac_cv_lib_$ac_lib_var=no"
9484 LIBS="$ac_save_LIBS"
9487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9491 cat >> confdefs.h <<EOF
9492 #define $ac_tr_lib 1
9498 echo "$ac_t""no" 1>&6
9501 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9502 echo "configure:9503: checking for main in -lgen" >&5
9503 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9507 ac_save_LIBS="$LIBS"
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9517 if { (eval echo configure:9518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9519 eval "ac_cv_lib_$ac_lib_var=yes"
9521 echo "configure: failed program was:" >&5
9522 cat conftest.$ac_ext >&5
9524 eval "ac_cv_lib_$ac_lib_var=no"
9527 LIBS="$ac_save_LIBS"
9530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9531 echo "$ac_t""yes" 1>&6
9532 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9534 cat >> confdefs.h <<EOF
9535 #define $ac_tr_lib 1
9541 echo "$ac_t""no" 1>&6
9548 echo $ac_n "checking for select""... $ac_c" 1>&6
9549 echo "configure:9550: checking for select" >&5
9550 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char select(); below. */
9559 /* Override any gcc2 internal prototype to avoid an error. */
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9567 /* The GNU C library defines this for functions which it implements
9568 to always fail with ENOSYS. Some functions are actually named
9569 something starting with __ and the normal name is an alias. */
9570 #if defined (__stub_select) || defined (__stub___select)
9578 if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9580 eval "ac_cv_func_select=yes"
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9585 eval "ac_cv_func_select=no"
9590 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9591 echo "$ac_t""yes" 1>&6
9594 echo "$ac_t""no" 1>&6
9595 { echo "configure: error: select() required." 1>&2; exit 1; }
9599 if test "${ac_cv_header_winsock_h}" != yes; then
9600 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9601 echo "configure:9602: checking types of arguments for select()" >&5
9602 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9605 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9608 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9609 echo $ac_n "(cached) $ac_c" 1>&6
9611 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9612 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9613 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9614 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9617 #ifdef HAVE_SYS_TYPES_H
9618 #include <sys/types.h>
9620 #ifdef HAVE_SYS_TIME_H
9621 #include <sys/time.h>
9623 #ifdef HAVE_SYS_SELECT_H
9624 #include <sys/select.h>
9626 #ifdef HAVE_SYS_SOCKET_H
9627 #include <sys/socket.h>
9629 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);
9634 if { (eval echo configure:9635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9636 ac_not_found=no ; break 3
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9653 if test "$ac_not_found" = yes; then
9654 ac_cv_func_select_arg1=int
9655 ac_cv_func_select_arg234='int *'
9656 ac_cv_func_select_arg5='struct timeval *'
9658 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9659 cat >> confdefs.h <<EOF
9660 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9663 cat >> confdefs.h <<EOF
9664 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9667 cat >> confdefs.h <<EOF
9668 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9675 for ac_hdr in regex.h
9677 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9678 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9679 echo "configure:9680: checking for $ac_hdr" >&5
9680 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9689 { (eval echo configure:9690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9691 if test -z "$ac_err"; then
9693 eval "ac_cv_header_$ac_safe=yes"
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9699 eval "ac_cv_header_$ac_safe=no"
9703 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9704 echo "$ac_t""yes" 1>&6
9705 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9706 cat >> confdefs.h <<EOF
9707 #define $ac_tr_hdr 1
9711 echo "$ac_t""no" 1>&6
9715 if test "$ac_cv_header_regex_h" != yes ; then
9716 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9719 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9720 echo "configure:9721: checking for library containing regfree" >&5
9721 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9724 ac_func_search_save_LIBS="$LIBS"
9725 ac_cv_search_regfree="no"
9726 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9729 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9738 if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9740 ac_cv_search_regfree="none required"
9742 echo "configure: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9746 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 /* We use char because int might match the return type of a gcc2
9753 builtin and then its argument prototype would still apply. */
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762 ac_cv_search_regfree="-l$ac_lib"
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9770 LIBS="$ac_func_search_save_LIBS"
9773 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9774 if test "$ac_cv_search_regfree" != "no"; then
9775 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9778 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9782 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9783 echo "configure:9784: checking for compatible POSIX regex" >&5
9784 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9788 if test "$cross_compiling" = yes; then
9789 ol_cv_c_posix_regex=cross
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9795 #include <sys/types.h>
9797 static char *pattern, *string;
9805 if(regcomp(&re, pattern, 0)) {
9809 string = "ALL MATCH";
9811 rc = regexec(&re, string, 0, (void*)0, 0);
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9820 ol_cv_c_posix_regex=yes
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9825 ol_cv_c_posix_regex=no
9832 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9834 if test "$ol_cv_c_posix_regex" = no ; then
9835 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9840 for ac_hdr in sys/uuid.h
9842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9844 echo "configure:9845: checking for $ac_hdr" >&5
9845 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9854 { (eval echo configure:9855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9856 if test -z "$ac_err"; then
9858 eval "ac_cv_header_$ac_safe=yes"
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9864 eval "ac_cv_header_$ac_safe=no"
9868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9869 echo "$ac_t""yes" 1>&6
9870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9871 cat >> confdefs.h <<EOF
9872 #define $ac_tr_hdr 1
9876 echo "$ac_t""no" 1>&6
9880 if test $ac_cv_header_sys_uuid_h = yes ; then
9883 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9884 echo "configure:9885: checking for library containing uuid_to_str" >&5
9885 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9888 ac_func_search_save_LIBS="$LIBS"
9889 ac_cv_search_uuid_to_str="no"
9890 cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9893 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9904 ac_cv_search_uuid_to_str="none required"
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9910 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9912 cat > conftest.$ac_ext <<EOF
9913 #line 9914 "configure"
9914 #include "confdefs.h"
9915 /* Override any gcc2 internal prototype to avoid an error. */
9916 /* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9924 if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9926 ac_cv_search_uuid_to_str="-l$ac_lib"
9929 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9934 LIBS="$ac_func_search_save_LIBS"
9937 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9938 if test "$ac_cv_search_uuid_to_str" != "no"; then
9939 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9946 if test have_uuid = yes ; then
9947 cat >> confdefs.h <<\EOF
9948 #define HAVE_UUID_TO_STR 1
9952 test "$ac_cv_search_uuid_to_str" = "none required" || \
9953 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9957 if test $have_uuid = no ; then
9958 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9959 echo "configure:9960: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9961 LIBS="$LIBS -lrpcrt4"
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9966 char UuidCreate@4();
9967 char UuidToStringA@8();
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9986 if test $need_rpcrt = yes; then
9987 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9990 echo "$ac_t""$need_rpcrt" 1>&6
9994 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9995 echo "configure:9996: checking for res_query" >&5
9996 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* System header to define __stub macros and hopefully few prototypes,
10003 which can conflict with char res_query(); below. */
10004 #include <assert.h>
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 /* We use char because int might match the return type of a gcc2
10007 builtin and then its argument prototype would still apply. */
10013 /* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
10016 #if defined (__stub_res_query) || defined (__stub___res_query)
10024 if { (eval echo configure:10025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 eval "ac_cv_func_res_query=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_func_res_query=no"
10036 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10040 echo "$ac_t""no" 1>&6
10043 if test $ac_cv_func_res_query = no ; then
10044 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10045 echo "configure:10046: checking for __res_query" >&5
10046 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char __res_query(); below. */
10054 #include <assert.h>
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10058 char __res_query();
10063 /* The GNU C library defines this for functions which it implements
10064 to always fail with ENOSYS. Some functions are actually named
10065 something starting with __ and the normal name is an alias. */
10066 #if defined (__stub___res_query) || defined (__stub_____res_query)
10074 if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 eval "ac_cv_func___res_query=yes"
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10081 eval "ac_cv_func___res_query=no"
10086 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10087 echo "$ac_t""yes" 1>&6
10090 echo "$ac_t""no" 1>&6
10093 ac_cv_func_res_query=$ac_cv_func___res_query
10096 if test $ac_cv_func_res_query = no ; then
10097 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10098 echo "configure:10099: checking for res_query in -lbind" >&5
10099 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10103 ac_save_LIBS="$LIBS"
10104 LIBS="-lbind $LIBS"
10105 cat > conftest.$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10108 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10119 eval "ac_cv_lib_$ac_lib_var=yes"
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10124 eval "ac_cv_lib_$ac_lib_var=no"
10127 LIBS="$ac_save_LIBS"
10130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10131 echo "$ac_t""yes" 1>&6
10132 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10134 cat >> confdefs.h <<EOF
10135 #define $ac_tr_lib 1
10138 LIBS="-lbind $LIBS"
10141 echo "$ac_t""no" 1>&6
10144 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10147 if test $ac_cv_func_res_query = no ; then
10148 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10149 echo "configure:10150: checking for __res_query in -lbind" >&5
10150 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10154 ac_save_LIBS="$LIBS"
10155 LIBS="-lbind $LIBS"
10156 cat > conftest.$ac_ext <<EOF
10157 #line 10158 "configure"
10158 #include "confdefs.h"
10159 /* Override any gcc2 internal prototype to avoid an error. */
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162 char __res_query();
10168 if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10170 eval "ac_cv_lib_$ac_lib_var=yes"
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10175 eval "ac_cv_lib_$ac_lib_var=no"
10178 LIBS="$ac_save_LIBS"
10181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10182 echo "$ac_t""yes" 1>&6
10183 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10184 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10185 cat >> confdefs.h <<EOF
10186 #define $ac_tr_lib 1
10189 LIBS="-lbind $LIBS"
10192 echo "$ac_t""no" 1>&6
10195 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10198 if test $ac_cv_func_res_query = no ; then
10199 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10200 echo "configure:10201: checking for res_query in -lresolv" >&5
10201 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10205 ac_save_LIBS="$LIBS"
10206 LIBS="-lresolv $LIBS"
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 eval "ac_cv_lib_$ac_lib_var=yes"
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 eval "ac_cv_lib_$ac_lib_var=no"
10229 LIBS="$ac_save_LIBS"
10232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10236 cat >> confdefs.h <<EOF
10237 #define $ac_tr_lib 1
10240 LIBS="-lresolv $LIBS"
10243 echo "$ac_t""no" 1>&6
10246 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10249 if test $ac_cv_func_res_query = no ; then
10250 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10251 echo "configure:10252: checking for __res_query in -lresolv" >&5
10252 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10254 echo $ac_n "(cached) $ac_c" 1>&6
10256 ac_save_LIBS="$LIBS"
10257 LIBS="-lresolv $LIBS"
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 /* Override any gcc2 internal prototype to avoid an error. */
10262 /* We use char because int might match the return type of a gcc2
10263 builtin and then its argument prototype would still apply. */
10264 char __res_query();
10270 if { (eval echo configure:10271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10272 eval "ac_cv_lib_$ac_lib_var=yes"
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10277 eval "ac_cv_lib_$ac_lib_var=no"
10280 LIBS="$ac_save_LIBS"
10283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10284 echo "$ac_t""yes" 1>&6
10285 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10287 cat >> confdefs.h <<EOF
10288 #define $ac_tr_lib 1
10291 LIBS="-lresolv $LIBS"
10294 echo "$ac_t""no" 1>&6
10297 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10300 if test "$ac_cv_func_res_query" = yes ; then
10301 cat >> confdefs.h <<\EOF
10302 #define HAVE_RES_QUERY 1
10306 if test $ol_enable_dnssrv != no ; then
10311 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10312 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10315 for ac_func in getaddrinfo gai_strerror inet_ntop
10317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10318 echo "configure:10319: checking for $ac_func" >&5
10319 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10320 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 /* System header to define __stub macros and hopefully few prototypes,
10326 which can conflict with char $ac_func(); below. */
10327 #include <assert.h>
10328 /* Override any gcc2 internal prototype to avoid an error. */
10329 /* We use char because int might match the return type of a gcc2
10330 builtin and then its argument prototype would still apply. */
10336 /* The GNU C library defines this for functions which it implements
10337 to always fail with ENOSYS. Some functions are actually named
10338 something starting with __ and the normal name is an alias. */
10339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_func_$ac_func=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_func_$ac_func=no"
10359 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10360 echo "$ac_t""yes" 1>&6
10361 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10362 cat >> confdefs.h <<EOF
10363 #define $ac_tr_func 1
10367 echo "$ac_t""no" 1>&6
10373 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10374 if test $ol_enable_ipv6 = yes ; then
10375 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10377 elif test $ol_enable_ipv6 != no ; then
10378 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10379 echo "configure:10380: checking INET6_ADDRSTRLEN" >&5
10380 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10388 # include <netinet/in.h>
10389 # ifdef INET6_ADDRSTRLEN
10390 __has_inet6_addrstrlen__;
10394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10395 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10397 ol_cv_inet6_addrstrlen=yes
10400 ol_cv_inet6_addrstrlen=no
10406 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10409 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10410 echo "configure:10411: checking struct sockaddr_storage" >&5
10411 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10412 echo $ac_n "(cached) $ac_c" 1>&6
10415 cat > conftest.$ac_ext <<EOF
10416 #line 10417 "configure"
10417 #include "confdefs.h"
10419 #include <sys/types.h>
10420 #include <sys/socket.h>
10424 struct sockaddr_storage ss;
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 ol_cv_struct_sockaddr_storage=yes
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10435 ol_cv_struct_sockaddr_storage=no
10440 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10442 if test $ol_cv_inet6_addrstrlen = yes \
10443 -a $ol_cv_struct_sockaddr_storage = yes ; then
10445 elif test $ol_enable_ipv6 = yes \
10446 -a $ol_cv_inet6_addrstrlen = no ; then
10447 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10448 elif test $ol_enable_ipv6 = yes \
10449 -a $ol_cv_struct_sockaddr_storage = no ; then
10450 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10454 if test $ol_enable_local != no ; then
10455 for ac_hdr in sys/un.h
10457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10459 echo "configure:10460: checking for $ac_hdr" >&5
10460 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10461 echo $ac_n "(cached) $ac_c" 1>&6
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10469 { (eval echo configure:10470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10471 if test -z "$ac_err"; then
10473 eval "ac_cv_header_$ac_safe=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_header_$ac_safe=no"
10483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10486 cat >> confdefs.h <<EOF
10487 #define $ac_tr_hdr 1
10491 echo "$ac_t""no" 1>&6
10496 if test $ol_enable_local = auto ; then
10497 ol_enable_local=$ac_cv_header_sys_un_h
10498 elif test $ac_cv_header_sys_un_h = no ; then
10499 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10508 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10509 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10510 -o $ol_with_kerberos = k425 ; then
10512 for ac_hdr in krb5.h
10514 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10515 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10516 echo "configure:10517: checking for $ac_hdr" >&5
10517 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10518 echo $ac_n "(cached) $ac_c" 1>&6
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10526 { (eval echo configure:10527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10528 if test -z "$ac_err"; then
10530 eval "ac_cv_header_$ac_safe=yes"
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10536 eval "ac_cv_header_$ac_safe=no"
10540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10541 echo "$ac_t""yes" 1>&6
10542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10543 cat >> confdefs.h <<EOF
10544 #define $ac_tr_hdr 1
10548 echo "$ac_t""no" 1>&6
10553 if test $ac_cv_header_krb5_h = yes ; then
10554 for ac_hdr in heim_err.h
10556 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10557 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10558 echo "configure:10559: checking for $ac_hdr" >&5
10559 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10562 cat > conftest.$ac_ext <<EOF
10563 #line 10564 "configure"
10564 #include "confdefs.h"
10567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10568 { (eval echo configure:10569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10570 if test -z "$ac_err"; then
10572 eval "ac_cv_header_$ac_safe=yes"
10575 echo "configure: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10578 eval "ac_cv_header_$ac_safe=no"
10582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10583 echo "$ac_t""yes" 1>&6
10584 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10585 cat >> confdefs.h <<EOF
10586 #define $ac_tr_hdr 1
10590 echo "$ac_t""no" 1>&6
10594 if test $ac_cv_header_heim_err_h = yes ; then
10600 if test $krb5_impl = mit; then
10601 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10602 echo "configure:10603: checking for main in -lk5crypto" >&5
10603 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10604 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10605 echo $ac_n "(cached) $ac_c" 1>&6
10607 ac_save_LIBS="$LIBS"
10608 LIBS="-lk5crypto $LIBS"
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10617 if { (eval echo configure:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10619 eval "ac_cv_lib_$ac_lib_var=yes"
10621 echo "configure: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10624 eval "ac_cv_lib_$ac_lib_var=no"
10627 LIBS="$ac_save_LIBS"
10630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 krb5crypto=k5crypto
10634 echo "$ac_t""no" 1>&6
10639 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10640 echo "configure:10641: checking for main in -lkrb5" >&5
10641 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10645 ac_save_LIBS="$LIBS"
10646 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10655 if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10657 eval "ac_cv_lib_$ac_lib_var=yes"
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10662 eval "ac_cv_lib_$ac_lib_var=no"
10665 LIBS="$ac_save_LIBS"
10668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10669 echo "$ac_t""yes" 1>&6
10671 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10673 echo "$ac_t""no" 1>&6
10678 elif test $krb5_impl = heimdal; then
10679 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10680 echo "configure:10681: checking for main in -ldes" >&5
10681 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10682 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10685 ac_save_LIBS="$LIBS"
10687 cat > conftest.$ac_ext <<EOF
10688 #line 10689 "configure"
10689 #include "confdefs.h"
10695 if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10697 eval "ac_cv_lib_$ac_lib_var=yes"
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10702 eval "ac_cv_lib_$ac_lib_var=no"
10705 LIBS="$ac_save_LIBS"
10708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10709 echo "$ac_t""yes" 1>&6
10712 echo "$ac_t""no" 1>&6
10717 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10718 echo "configure:10719: checking for main in -lkrb5" >&5
10719 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10720 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10721 echo $ac_n "(cached) $ac_c" 1>&6
10723 ac_save_LIBS="$LIBS"
10724 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10733 if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10735 eval "ac_cv_lib_$ac_lib_var=yes"
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10740 eval "ac_cv_lib_$ac_lib_var=no"
10743 LIBS="$ac_save_LIBS"
10746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10747 echo "$ac_t""yes" 1>&6
10749 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10751 echo "$ac_t""no" 1>&6
10756 cat >> confdefs.h <<\EOF
10757 #define HAVE_HEIMDAL_KERBEROS 1
10763 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10766 if test $have_krb5 = yes ; then
10769 cat >> confdefs.h <<\EOF
10770 #define HAVE_KRB5 1
10774 if test $ol_enable_kpasswd != no ; then
10775 ol_link_kpasswd=yes;
10778 if test $ol_with_kerberos = k5only ; then
10779 ol_with_kerberos=found
10782 elif test $ol_with_kerberos != auto ; then
10783 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10789 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10790 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10792 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10796 echo "configure:10797: checking for $ac_hdr" >&5
10797 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10800 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10806 { (eval echo configure:10807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10808 if test -z "$ac_err"; then
10810 eval "ac_cv_header_$ac_safe=yes"
10813 echo "configure: failed program was:" >&5
10814 cat conftest.$ac_ext >&5
10816 eval "ac_cv_header_$ac_safe=no"
10820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10821 echo "$ac_t""yes" 1>&6
10822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10823 cat >> confdefs.h <<EOF
10824 #define $ac_tr_hdr 1
10828 echo "$ac_t""no" 1>&6
10833 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10834 if test $krb5_impl = mit; then
10835 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10836 echo "configure:10837: checking for main in -lkrb4" >&5
10837 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 ac_save_LIBS="$LIBS"
10842 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10851 if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853 eval "ac_cv_lib_$ac_lib_var=yes"
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10858 eval "ac_cv_lib_$ac_lib_var=no"
10861 LIBS="$ac_save_LIBS"
10864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10867 KRB4_LIBS="-lkrb4 -ldes425"
10869 echo "$ac_t""no" 1>&6
10874 elif test $krb5_impl = heimdal; then
10875 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10876 echo "configure:10877: checking for main in -lkrb4" >&5
10877 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10879 echo $ac_n "(cached) $ac_c" 1>&6
10881 ac_save_LIBS="$LIBS"
10882 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10883 cat > conftest.$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10893 eval "ac_cv_lib_$ac_lib_var=yes"
10895 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10898 eval "ac_cv_lib_$ac_lib_var=no"
10901 LIBS="$ac_save_LIBS"
10904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10905 echo "$ac_t""yes" 1>&6
10909 echo "$ac_t""no" 1>&6
10916 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10919 if test $have_k425 = yes ; then
10920 ol_with_kerberos=found
10923 cat >> confdefs.h <<\EOF
10924 #define HAVE_KRB425 1
10927 cat >> confdefs.h <<\EOF
10928 #define HAVE_KRB4 1
10932 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10933 echo "configure:10934: checking for des_debug in Kerberos libraries" >&5
10934 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10939 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10944 #include <kerberosIV/krb.h>
10945 #include <kerberosIV/des.h>
10946 extern int des_debug;
10954 if { (eval echo configure:10955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10956 ol_cv_var_des_debug=yes
10958 echo "configure: failed program was:" >&5
10959 cat conftest.$ac_ext >&5
10961 ol_cv_var_des_debug=no
10968 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10970 if test $ol_cv_var_des_debug = yes ; then
10971 cat >> confdefs.h <<\EOF
10972 #define HAVE_DES_DEBUG 1
10982 if test $ol_link_krb5 = yes ; then
10983 ol_with_kerberos=found
10986 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10987 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10989 for ac_hdr in krb.h des.h krb-archaeology.h
10991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10993 echo "configure:10994: checking for $ac_hdr" >&5
10994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11003 { (eval echo configure:11004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11005 if test -z "$ac_err"; then
11007 eval "ac_cv_header_$ac_safe=yes"
11010 echo "configure: failed program was:" >&5
11011 cat conftest.$ac_ext >&5
11013 eval "ac_cv_header_$ac_safe=no"
11017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11018 echo "$ac_t""yes" 1>&6
11019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11020 cat >> confdefs.h <<EOF
11021 #define $ac_tr_hdr 1
11025 echo "$ac_t""no" 1>&6
11030 if test $ac_cv_header_krb_h = yes ; then
11031 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11032 echo "configure:11033: checking for main in -lkrb" >&5
11033 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11034 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11035 echo $ac_n "(cached) $ac_c" 1>&6
11037 ac_save_LIBS="$LIBS"
11038 LIBS="-lkrb -ldes $LIBS"
11039 cat > conftest.$ac_ext <<EOF
11040 #line 11041 "configure"
11041 #include "confdefs.h"
11047 if { (eval echo configure:11048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11049 eval "ac_cv_lib_$ac_lib_var=yes"
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 eval "ac_cv_lib_$ac_lib_var=no"
11057 LIBS="$ac_save_LIBS"
11060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11061 echo "$ac_t""yes" 1>&6
11064 echo "$ac_t""no" 1>&6
11069 if test $have_k4 = yes ; then
11070 ol_with_kerberos=found
11073 cat >> confdefs.h <<\EOF
11074 #define HAVE_KRB4 1
11078 KRB4_LIBS="-lkrb -ldes"
11080 if test $ac_cv_header_krb_archaeology_h = yes ; then
11081 cat >> confdefs.h <<\EOF
11082 #define HAVE_KTH_KERBEROS 1
11090 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11091 ol_link_kpasswd=yes
11094 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11097 elif test $ol_enable_kbind = yes ; then
11098 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11101 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11102 cat >> confdefs.h <<\EOF
11103 #define HAVE_KERBEROS 1
11107 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11108 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11112 if test $ol_with_tls != no ; then
11113 for ac_hdr in openssl/ssl.h ssl.h
11115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11117 echo "configure:11118: checking for $ac_hdr" >&5
11118 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11121 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11129 if test -z "$ac_err"; then
11131 eval "ac_cv_header_$ac_safe=yes"
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11137 eval "ac_cv_header_$ac_safe=no"
11141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11142 echo "$ac_t""yes" 1>&6
11143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11144 cat >> confdefs.h <<EOF
11145 #define $ac_tr_hdr 1
11149 echo "$ac_t""no" 1>&6
11154 if test $ac_cv_header_openssl_ssl_h = yes \
11155 -o $ac_cv_header_ssl_h = yes ; then
11156 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11157 echo "configure:11158: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11158 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11159 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11162 ac_save_LIBS="$LIBS"
11163 LIBS="-lssl -lcrypto $LIBS"
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11170 char SSLeay_add_ssl_algorithms();
11173 SSLeay_add_ssl_algorithms()
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11178 eval "ac_cv_lib_$ac_lib_var=yes"
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 eval "ac_cv_lib_$ac_lib_var=no"
11186 LIBS="$ac_save_LIBS"
11189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11190 echo "$ac_t""yes" 1>&6
11194 echo "$ac_t""no" 1>&6
11199 if test $have_ssleay = no ; then
11200 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11201 echo "configure:11202: checking for SSL_library_init in -lssl" >&5
11202 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11203 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11206 ac_save_LIBS="$LIBS"
11207 LIBS="-lssl -lcrypto $LIBS"
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char SSL_library_init();
11220 if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11222 eval "ac_cv_lib_$ac_lib_var=yes"
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11227 eval "ac_cv_lib_$ac_lib_var=no"
11230 LIBS="$ac_save_LIBS"
11233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11234 echo "$ac_t""yes" 1>&6
11238 echo "$ac_t""no" 1>&6
11244 if test $have_ssleay = no ; then
11245 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11246 echo "configure:11247: checking for ssl3_accept in -lssl" >&5
11247 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11248 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11251 ac_save_LIBS="$LIBS"
11252 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11256 /* Override any gcc2 internal prototype to avoid an error. */
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11259 char ssl3_accept();
11265 if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11267 eval "ac_cv_lib_$ac_lib_var=yes"
11269 echo "configure: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11272 eval "ac_cv_lib_$ac_lib_var=no"
11275 LIBS="$ac_save_LIBS"
11278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11279 echo "$ac_t""yes" 1>&6
11283 echo "$ac_t""no" 1>&6
11289 if test $have_ssleay = yes ; then
11293 cat >> confdefs.h <<\EOF
11294 #define HAVE_SSLEAY 1
11298 if test $need_rsaref = yes; then
11299 cat >> confdefs.h <<\EOF
11300 #define HAVE_RSAREF 1
11304 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11306 TLS_LIBS="-lssl -lcrypto"
11312 echo "configure: warning: TLS data protection not supported!" 1>&2
11315 if test $ol_link_tls = yes ; then
11316 cat >> confdefs.h <<\EOF
11321 elif test $ol_with_tls = auto ; then
11322 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11323 echo "configure: warning: TLS data protection not supported!" 1>&2
11325 elif test $ol_with_tls != no ; then
11326 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11329 if test $ol_enable_lmpasswd != no; then
11330 if test $ol_link_tls != yes ; then
11331 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11334 cat >> confdefs.h <<\EOF
11335 #define SLAPD_LMHASH 1
11342 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11343 -o $ol_with_threads = nt ; then
11346 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11347 echo "configure:11348: checking for _beginthread" >&5
11348 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11349 echo $ac_n "(cached) $ac_c" 1>&6
11351 cat > conftest.$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 /* System header to define __stub macros and hopefully few prototypes,
11355 which can conflict with char _beginthread(); below. */
11356 #include <assert.h>
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 /* We use char because int might match the return type of a gcc2
11359 builtin and then its argument prototype would still apply. */
11360 char _beginthread();
11365 /* The GNU C library defines this for functions which it implements
11366 to always fail with ENOSYS. Some functions are actually named
11367 something starting with __ and the normal name is an alias. */
11368 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11378 eval "ac_cv_func__beginthread=yes"
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11383 eval "ac_cv_func__beginthread=no"
11388 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11389 echo "$ac_t""yes" 1>&6
11392 echo "$ac_t""no" 1>&6
11396 if test $ac_cv_func__beginthread = yes ; then
11397 cat >> confdefs.h <<\EOF
11398 #define HAVE_NT_THREADS 1
11401 ol_cv_nt_threads=yes
11405 if test "$ol_cv_nt_threads" = yes ; then
11407 ol_with_threads=found
11408 ol_with_yielding_select=yes
11410 cat >> confdefs.h <<\EOF
11411 #define HAVE_NT_SERVICE_MANAGER 1
11414 cat >> confdefs.h <<\EOF
11415 #define HAVE_NT_EVENT_LOG 1
11420 if test $ol_with_threads = nt ; then
11421 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11425 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11426 -o $ol_with_threads = posix ; then
11428 for ac_hdr in pthread.h
11430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11432 echo "configure:11433: checking for $ac_hdr" >&5
11433 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11436 cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11442 { (eval echo configure:11443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11444 if test -z "$ac_err"; then
11446 eval "ac_cv_header_$ac_safe=yes"
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11452 eval "ac_cv_header_$ac_safe=no"
11456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11457 echo "$ac_t""yes" 1>&6
11458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11459 cat >> confdefs.h <<EOF
11460 #define $ac_tr_hdr 1
11464 echo "$ac_t""no" 1>&6
11469 if test $ac_cv_header_pthread_h = yes ; then
11470 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11471 echo "configure:11472: checking POSIX thread version" >&5
11472 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11480 # include <pthread.h>
11484 int i = PTHREAD_CREATE_JOINABLE;
11488 if { (eval echo configure:11489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11491 cat > conftest.$ac_ext <<EOF
11492 #line 11493 "configure"
11493 #include "confdefs.h"
11494 #include <pthread.h>
11496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497 egrep "pthread_detach" >/dev/null 2>&1; then
11499 ol_cv_pthread_version=10
11502 ol_cv_pthread_version=8
11507 echo "configure: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11511 cat > conftest.$ac_ext <<EOF
11512 #line 11513 "configure"
11513 #include "confdefs.h"
11515 # include <pthread.h>
11516 # ifdef PTHREAD_CREATE_UNDETACHED
11521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11522 egrep "draft7" >/dev/null 2>&1; then
11524 ol_cv_pthread_version=7
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include <pthread.h>
11533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11534 egrep "pthread_attr_init" >/dev/null 2>&1; then
11536 ol_cv_pthread_version=6
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11544 # include <pthread.h>
11545 #ifdef PTHREAD_MUTEX_INITIALIZER
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 egrep "draft5" >/dev/null 2>&1; then
11553 ol_cv_pthread_version=5
11556 ol_cv_pthread_version=4
11571 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11574 if test $ol_cv_pthread_version != 0 ; then
11575 cat >> confdefs.h <<EOF
11576 #define HAVE_PTHREADS $ol_cv_pthread_version
11580 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11583 # consider threads found
11584 ol_with_threads=found
11587 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11588 echo "configure:11589: checking for LinuxThreads pthread.h" >&5
11589 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include <pthread.h>
11597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11598 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11600 ol_cv_header_linux_threads=yes
11603 ol_cv_header_linux_threads=no
11610 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11611 if test $ol_cv_header_linux_threads = yes; then
11612 cat >> confdefs.h <<\EOF
11613 #define HAVE_LINUX_THREADS 1
11619 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11620 echo "configure:11621: checking for GNU Pth pthread.h" >&5
11621 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11627 #include <pthread.h>
11628 #ifdef _POSIX_THREAD_IS_GNU_PTH
11633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11634 egrep "__gnu_pth__" >/dev/null 2>&1; then
11636 ol_cv_header_gnu_pth_pthread_h=yes
11639 ol_cv_header_gnu_pth_pthread_h=no
11646 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11649 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11650 for ac_hdr in sched.h
11652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11654 echo "configure:11655: checking for $ac_hdr" >&5
11655 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11658 cat > conftest.$ac_ext <<EOF
11659 #line 11660 "configure"
11660 #include "confdefs.h"
11663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11664 { (eval echo configure:11665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11666 if test -z "$ac_err"; then
11668 eval "ac_cv_header_$ac_safe=yes"
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 eval "ac_cv_header_$ac_safe=no"
11678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11679 echo "$ac_t""yes" 1>&6
11680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11681 cat >> confdefs.h <<EOF
11682 #define $ac_tr_hdr 1
11686 echo "$ac_t""no" 1>&6
11693 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11694 echo "configure:11695: checking for pthread_create in default libraries" >&5
11695 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11699 if test "$cross_compiling" = yes; then
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 /* pthread test headers */
11704 #include <pthread.h>
11705 #if HAVE_PTHREADS < 7
11709 #define NULL (void*)0
11712 static void *task(p)
11715 return (void *) (p == NULL);
11720 /* pthread test function */
11721 #ifndef PTHREAD_CREATE_DETACHED
11722 #define PTHREAD_CREATE_DETACHED 1
11726 int detach = PTHREAD_CREATE_DETACHED;
11728 #if HAVE_PTHREADS > 4
11729 /* Final pthreads */
11730 pthread_attr_t attr;
11732 status = pthread_attr_init(&attr);
11733 if( status ) return status;
11735 #if HAVE_PTHREADS < 7
11736 status = pthread_attr_setdetachstate(&attr, &detach);
11737 if( status < 0 ) status = errno;
11739 status = pthread_attr_setdetachstate(&attr, detach);
11741 if( status ) return status;
11742 status = pthread_create( &t, &attr, task, NULL );
11743 #if HAVE_PTHREADS < 7
11744 if( status < 0 ) status = errno;
11746 if( status ) return status;
11748 /* Draft 4 pthreads */
11749 status = pthread_create( &t, pthread_attr_default, task, NULL );
11750 if( status ) return errno;
11752 /* give thread a chance to complete */
11753 /* it should remain joinable and hence detachable */
11756 status = pthread_detach( &t );
11757 if( status ) return errno;
11760 #ifdef HAVE_LINUX_THREADS
11761 pthread_kill_other_threads_np();
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11770 ol_cv_pthread_create=yes
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11775 ol_cv_pthread_create=no
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* pthread test headers */
11783 #include <pthread.h>
11784 #if HAVE_PTHREADS < 7
11788 #define NULL (void*)0
11791 static void *task(p)
11794 return (void *) (p == NULL);
11798 int main(argc, argv)
11803 /* pthread test function */
11804 #ifndef PTHREAD_CREATE_DETACHED
11805 #define PTHREAD_CREATE_DETACHED 1
11809 int detach = PTHREAD_CREATE_DETACHED;
11811 #if HAVE_PTHREADS > 4
11812 /* Final pthreads */
11813 pthread_attr_t attr;
11815 status = pthread_attr_init(&attr);
11816 if( status ) return status;
11818 #if HAVE_PTHREADS < 7
11819 status = pthread_attr_setdetachstate(&attr, &detach);
11820 if( status < 0 ) status = errno;
11822 status = pthread_attr_setdetachstate(&attr, detach);
11824 if( status ) return status;
11825 status = pthread_create( &t, &attr, task, NULL );
11826 #if HAVE_PTHREADS < 7
11827 if( status < 0 ) status = errno;
11829 if( status ) return status;
11831 /* Draft 4 pthreads */
11832 status = pthread_create( &t, pthread_attr_default, task, NULL );
11833 if( status ) return errno;
11835 /* give thread a chance to complete */
11836 /* it should remain joinable and hence detachable */
11839 status = pthread_detach( &t );
11840 if( status ) return errno;
11843 #ifdef HAVE_LINUX_THREADS
11844 pthread_kill_other_threads_np();
11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11854 ol_cv_pthread_create=yes
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11859 ol_cv_pthread_create=no
11866 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11868 if test $ol_cv_pthread_create != no ; then
11869 ol_link_threads=posix
11870 ol_link_pthreads=""
11873 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11874 if test "$ol_link_threads" = no ; then
11876 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11877 echo "configure:11878: checking for pthread link with -kthread" >&5
11878 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11884 LIBS="-kthread $LIBS"
11886 if test "$cross_compiling" = yes; then
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 /* pthread test headers */
11891 #include <pthread.h>
11892 #if HAVE_PTHREADS < 7
11896 #define NULL (void*)0
11899 static void *task(p)
11902 return (void *) (p == NULL);
11907 /* pthread test function */
11908 #ifndef PTHREAD_CREATE_DETACHED
11909 #define PTHREAD_CREATE_DETACHED 1
11913 int detach = PTHREAD_CREATE_DETACHED;
11915 #if HAVE_PTHREADS > 4
11916 /* Final pthreads */
11917 pthread_attr_t attr;
11919 status = pthread_attr_init(&attr);
11920 if( status ) return status;
11922 #if HAVE_PTHREADS < 7
11923 status = pthread_attr_setdetachstate(&attr, &detach);
11924 if( status < 0 ) status = errno;
11926 status = pthread_attr_setdetachstate(&attr, detach);
11928 if( status ) return status;
11929 status = pthread_create( &t, &attr, task, NULL );
11930 #if HAVE_PTHREADS < 7
11931 if( status < 0 ) status = errno;
11933 if( status ) return status;
11935 /* Draft 4 pthreads */
11936 status = pthread_create( &t, pthread_attr_default, task, NULL );
11937 if( status ) return errno;
11939 /* give thread a chance to complete */
11940 /* it should remain joinable and hence detachable */
11943 status = pthread_detach( &t );
11944 if( status ) return errno;
11947 #ifdef HAVE_LINUX_THREADS
11948 pthread_kill_other_threads_np();
11955 if { (eval echo configure:11956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11957 ol_cv_pthread_kthread=yes
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11962 ol_cv_pthread_kthread=no
11966 cat > conftest.$ac_ext <<EOF
11967 #line 11968 "configure"
11968 #include "confdefs.h"
11969 /* pthread test headers */
11970 #include <pthread.h>
11971 #if HAVE_PTHREADS < 7
11975 #define NULL (void*)0
11978 static void *task(p)
11981 return (void *) (p == NULL);
11985 int main(argc, argv)
11990 /* pthread test function */
11991 #ifndef PTHREAD_CREATE_DETACHED
11992 #define PTHREAD_CREATE_DETACHED 1
11996 int detach = PTHREAD_CREATE_DETACHED;
11998 #if HAVE_PTHREADS > 4
11999 /* Final pthreads */
12000 pthread_attr_t attr;
12002 status = pthread_attr_init(&attr);
12003 if( status ) return status;
12005 #if HAVE_PTHREADS < 7
12006 status = pthread_attr_setdetachstate(&attr, &detach);
12007 if( status < 0 ) status = errno;
12009 status = pthread_attr_setdetachstate(&attr, detach);
12011 if( status ) return status;
12012 status = pthread_create( &t, &attr, task, NULL );
12013 #if HAVE_PTHREADS < 7
12014 if( status < 0 ) status = errno;
12016 if( status ) return status;
12018 /* Draft 4 pthreads */
12019 status = pthread_create( &t, pthread_attr_default, task, NULL );
12020 if( status ) return errno;
12022 /* give thread a chance to complete */
12023 /* it should remain joinable and hence detachable */
12026 status = pthread_detach( &t );
12027 if( status ) return errno;
12030 #ifdef HAVE_LINUX_THREADS
12031 pthread_kill_other_threads_np();
12039 if { (eval echo configure:12040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12041 ol_cv_pthread_kthread=yes
12043 echo "configure: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12046 ol_cv_pthread_kthread=no
12057 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12059 if test $ol_cv_pthread_kthread = yes ; then
12060 ol_link_pthreads="-kthread"
12061 ol_link_threads=posix
12065 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12066 if test "$ol_link_threads" = no ; then
12068 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12069 echo "configure:12070: checking for pthread link with -pthread" >&5
12070 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12071 echo $ac_n "(cached) $ac_c" 1>&6
12076 LIBS="-pthread $LIBS"
12078 if test "$cross_compiling" = yes; then
12079 cat > conftest.$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 /* pthread test headers */
12083 #include <pthread.h>
12084 #if HAVE_PTHREADS < 7
12088 #define NULL (void*)0
12091 static void *task(p)
12094 return (void *) (p == NULL);
12099 /* pthread test function */
12100 #ifndef PTHREAD_CREATE_DETACHED
12101 #define PTHREAD_CREATE_DETACHED 1
12105 int detach = PTHREAD_CREATE_DETACHED;
12107 #if HAVE_PTHREADS > 4
12108 /* Final pthreads */
12109 pthread_attr_t attr;
12111 status = pthread_attr_init(&attr);
12112 if( status ) return status;
12114 #if HAVE_PTHREADS < 7
12115 status = pthread_attr_setdetachstate(&attr, &detach);
12116 if( status < 0 ) status = errno;
12118 status = pthread_attr_setdetachstate(&attr, detach);
12120 if( status ) return status;
12121 status = pthread_create( &t, &attr, task, NULL );
12122 #if HAVE_PTHREADS < 7
12123 if( status < 0 ) status = errno;
12125 if( status ) return status;
12127 /* Draft 4 pthreads */
12128 status = pthread_create( &t, pthread_attr_default, task, NULL );
12129 if( status ) return errno;
12131 /* give thread a chance to complete */
12132 /* it should remain joinable and hence detachable */
12135 status = pthread_detach( &t );
12136 if( status ) return errno;
12139 #ifdef HAVE_LINUX_THREADS
12140 pthread_kill_other_threads_np();
12147 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149 ol_cv_pthread_pthread=yes
12151 echo "configure: failed program was:" >&5
12152 cat conftest.$ac_ext >&5
12154 ol_cv_pthread_pthread=no
12158 cat > conftest.$ac_ext <<EOF
12159 #line 12160 "configure"
12160 #include "confdefs.h"
12161 /* pthread test headers */
12162 #include <pthread.h>
12163 #if HAVE_PTHREADS < 7
12167 #define NULL (void*)0
12170 static void *task(p)
12173 return (void *) (p == NULL);
12177 int main(argc, argv)
12182 /* pthread test function */
12183 #ifndef PTHREAD_CREATE_DETACHED
12184 #define PTHREAD_CREATE_DETACHED 1
12188 int detach = PTHREAD_CREATE_DETACHED;
12190 #if HAVE_PTHREADS > 4
12191 /* Final pthreads */
12192 pthread_attr_t attr;
12194 status = pthread_attr_init(&attr);
12195 if( status ) return status;
12197 #if HAVE_PTHREADS < 7
12198 status = pthread_attr_setdetachstate(&attr, &detach);
12199 if( status < 0 ) status = errno;
12201 status = pthread_attr_setdetachstate(&attr, detach);
12203 if( status ) return status;
12204 status = pthread_create( &t, &attr, task, NULL );
12205 #if HAVE_PTHREADS < 7
12206 if( status < 0 ) status = errno;
12208 if( status ) return status;
12210 /* Draft 4 pthreads */
12211 status = pthread_create( &t, pthread_attr_default, task, NULL );
12212 if( status ) return errno;
12214 /* give thread a chance to complete */
12215 /* it should remain joinable and hence detachable */
12218 status = pthread_detach( &t );
12219 if( status ) return errno;
12222 #ifdef HAVE_LINUX_THREADS
12223 pthread_kill_other_threads_np();
12231 if { (eval echo configure:12232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12233 ol_cv_pthread_pthread=yes
12235 echo "configure: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12238 ol_cv_pthread_pthread=no
12249 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12251 if test $ol_cv_pthread_pthread = yes ; then
12252 ol_link_pthreads="-pthread"
12253 ol_link_threads=posix
12257 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12258 if test "$ol_link_threads" = no ; then
12260 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12261 echo "configure:12262: checking for pthread link with -pthreads" >&5
12262 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12263 echo $ac_n "(cached) $ac_c" 1>&6
12268 LIBS="-pthreads $LIBS"
12270 if test "$cross_compiling" = yes; then
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12274 /* pthread test headers */
12275 #include <pthread.h>
12276 #if HAVE_PTHREADS < 7
12280 #define NULL (void*)0
12283 static void *task(p)
12286 return (void *) (p == NULL);
12291 /* pthread test function */
12292 #ifndef PTHREAD_CREATE_DETACHED
12293 #define PTHREAD_CREATE_DETACHED 1
12297 int detach = PTHREAD_CREATE_DETACHED;
12299 #if HAVE_PTHREADS > 4
12300 /* Final pthreads */
12301 pthread_attr_t attr;
12303 status = pthread_attr_init(&attr);
12304 if( status ) return status;
12306 #if HAVE_PTHREADS < 7
12307 status = pthread_attr_setdetachstate(&attr, &detach);
12308 if( status < 0 ) status = errno;
12310 status = pthread_attr_setdetachstate(&attr, detach);
12312 if( status ) return status;
12313 status = pthread_create( &t, &attr, task, NULL );
12314 #if HAVE_PTHREADS < 7
12315 if( status < 0 ) status = errno;
12317 if( status ) return status;
12319 /* Draft 4 pthreads */
12320 status = pthread_create( &t, pthread_attr_default, task, NULL );
12321 if( status ) return errno;
12323 /* give thread a chance to complete */
12324 /* it should remain joinable and hence detachable */
12327 status = pthread_detach( &t );
12328 if( status ) return errno;
12331 #ifdef HAVE_LINUX_THREADS
12332 pthread_kill_other_threads_np();
12339 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12341 ol_cv_pthread_pthreads=yes
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12346 ol_cv_pthread_pthreads=no
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 /* pthread test headers */
12354 #include <pthread.h>
12355 #if HAVE_PTHREADS < 7
12359 #define NULL (void*)0
12362 static void *task(p)
12365 return (void *) (p == NULL);
12369 int main(argc, argv)
12374 /* pthread test function */
12375 #ifndef PTHREAD_CREATE_DETACHED
12376 #define PTHREAD_CREATE_DETACHED 1
12380 int detach = PTHREAD_CREATE_DETACHED;
12382 #if HAVE_PTHREADS > 4
12383 /* Final pthreads */
12384 pthread_attr_t attr;
12386 status = pthread_attr_init(&attr);
12387 if( status ) return status;
12389 #if HAVE_PTHREADS < 7
12390 status = pthread_attr_setdetachstate(&attr, &detach);
12391 if( status < 0 ) status = errno;
12393 status = pthread_attr_setdetachstate(&attr, detach);
12395 if( status ) return status;
12396 status = pthread_create( &t, &attr, task, NULL );
12397 #if HAVE_PTHREADS < 7
12398 if( status < 0 ) status = errno;
12400 if( status ) return status;
12402 /* Draft 4 pthreads */
12403 status = pthread_create( &t, pthread_attr_default, task, NULL );
12404 if( status ) return errno;
12406 /* give thread a chance to complete */
12407 /* it should remain joinable and hence detachable */
12410 status = pthread_detach( &t );
12411 if( status ) return errno;
12414 #ifdef HAVE_LINUX_THREADS
12415 pthread_kill_other_threads_np();
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12425 ol_cv_pthread_pthreads=yes
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12430 ol_cv_pthread_pthreads=no
12441 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12443 if test $ol_cv_pthread_pthreads = yes ; then
12444 ol_link_pthreads="-pthreads"
12445 ol_link_threads=posix
12449 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12450 if test "$ol_link_threads" = no ; then
12452 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12453 echo "configure:12454: checking for pthread link with -mthreads" >&5
12454 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12455 echo $ac_n "(cached) $ac_c" 1>&6
12460 LIBS="-mthreads $LIBS"
12462 if test "$cross_compiling" = yes; then
12463 cat > conftest.$ac_ext <<EOF
12464 #line 12465 "configure"
12465 #include "confdefs.h"
12466 /* pthread test headers */
12467 #include <pthread.h>
12468 #if HAVE_PTHREADS < 7
12472 #define NULL (void*)0
12475 static void *task(p)
12478 return (void *) (p == NULL);
12483 /* pthread test function */
12484 #ifndef PTHREAD_CREATE_DETACHED
12485 #define PTHREAD_CREATE_DETACHED 1
12489 int detach = PTHREAD_CREATE_DETACHED;
12491 #if HAVE_PTHREADS > 4
12492 /* Final pthreads */
12493 pthread_attr_t attr;
12495 status = pthread_attr_init(&attr);
12496 if( status ) return status;
12498 #if HAVE_PTHREADS < 7
12499 status = pthread_attr_setdetachstate(&attr, &detach);
12500 if( status < 0 ) status = errno;
12502 status = pthread_attr_setdetachstate(&attr, detach);
12504 if( status ) return status;
12505 status = pthread_create( &t, &attr, task, NULL );
12506 #if HAVE_PTHREADS < 7
12507 if( status < 0 ) status = errno;
12509 if( status ) return status;
12511 /* Draft 4 pthreads */
12512 status = pthread_create( &t, pthread_attr_default, task, NULL );
12513 if( status ) return errno;
12515 /* give thread a chance to complete */
12516 /* it should remain joinable and hence detachable */
12519 status = pthread_detach( &t );
12520 if( status ) return errno;
12523 #ifdef HAVE_LINUX_THREADS
12524 pthread_kill_other_threads_np();
12531 if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12533 ol_cv_pthread_mthreads=yes
12535 echo "configure: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12538 ol_cv_pthread_mthreads=no
12542 cat > conftest.$ac_ext <<EOF
12543 #line 12544 "configure"
12544 #include "confdefs.h"
12545 /* pthread test headers */
12546 #include <pthread.h>
12547 #if HAVE_PTHREADS < 7
12551 #define NULL (void*)0
12554 static void *task(p)
12557 return (void *) (p == NULL);
12561 int main(argc, argv)
12566 /* pthread test function */
12567 #ifndef PTHREAD_CREATE_DETACHED
12568 #define PTHREAD_CREATE_DETACHED 1
12572 int detach = PTHREAD_CREATE_DETACHED;
12574 #if HAVE_PTHREADS > 4
12575 /* Final pthreads */
12576 pthread_attr_t attr;
12578 status = pthread_attr_init(&attr);
12579 if( status ) return status;
12581 #if HAVE_PTHREADS < 7
12582 status = pthread_attr_setdetachstate(&attr, &detach);
12583 if( status < 0 ) status = errno;
12585 status = pthread_attr_setdetachstate(&attr, detach);
12587 if( status ) return status;
12588 status = pthread_create( &t, &attr, task, NULL );
12589 #if HAVE_PTHREADS < 7
12590 if( status < 0 ) status = errno;
12592 if( status ) return status;
12594 /* Draft 4 pthreads */
12595 status = pthread_create( &t, pthread_attr_default, task, NULL );
12596 if( status ) return errno;
12598 /* give thread a chance to complete */
12599 /* it should remain joinable and hence detachable */
12602 status = pthread_detach( &t );
12603 if( status ) return errno;
12606 #ifdef HAVE_LINUX_THREADS
12607 pthread_kill_other_threads_np();
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12617 ol_cv_pthread_mthreads=yes
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12622 ol_cv_pthread_mthreads=no
12633 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12635 if test $ol_cv_pthread_mthreads = yes ; then
12636 ol_link_pthreads="-mthreads"
12637 ol_link_threads=posix
12641 # Pthread try link: -thread (ol_cv_pthread_thread)
12642 if test "$ol_link_threads" = no ; then
12644 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12645 echo "configure:12646: checking for pthread link with -thread" >&5
12646 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
12652 LIBS="-thread $LIBS"
12654 if test "$cross_compiling" = yes; then
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 /* pthread test headers */
12659 #include <pthread.h>
12660 #if HAVE_PTHREADS < 7
12664 #define NULL (void*)0
12667 static void *task(p)
12670 return (void *) (p == NULL);
12675 /* pthread test function */
12676 #ifndef PTHREAD_CREATE_DETACHED
12677 #define PTHREAD_CREATE_DETACHED 1
12681 int detach = PTHREAD_CREATE_DETACHED;
12683 #if HAVE_PTHREADS > 4
12684 /* Final pthreads */
12685 pthread_attr_t attr;
12687 status = pthread_attr_init(&attr);
12688 if( status ) return status;
12690 #if HAVE_PTHREADS < 7
12691 status = pthread_attr_setdetachstate(&attr, &detach);
12692 if( status < 0 ) status = errno;
12694 status = pthread_attr_setdetachstate(&attr, detach);
12696 if( status ) return status;
12697 status = pthread_create( &t, &attr, task, NULL );
12698 #if HAVE_PTHREADS < 7
12699 if( status < 0 ) status = errno;
12701 if( status ) return status;
12703 /* Draft 4 pthreads */
12704 status = pthread_create( &t, pthread_attr_default, task, NULL );
12705 if( status ) return errno;
12707 /* give thread a chance to complete */
12708 /* it should remain joinable and hence detachable */
12711 status = pthread_detach( &t );
12712 if( status ) return errno;
12715 #ifdef HAVE_LINUX_THREADS
12716 pthread_kill_other_threads_np();
12723 if { (eval echo configure:12724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12725 ol_cv_pthread_thread=yes
12727 echo "configure: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 ol_cv_pthread_thread=no
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12737 /* pthread test headers */
12738 #include <pthread.h>
12739 #if HAVE_PTHREADS < 7
12743 #define NULL (void*)0
12746 static void *task(p)
12749 return (void *) (p == NULL);
12753 int main(argc, argv)
12758 /* pthread test function */
12759 #ifndef PTHREAD_CREATE_DETACHED
12760 #define PTHREAD_CREATE_DETACHED 1
12764 int detach = PTHREAD_CREATE_DETACHED;
12766 #if HAVE_PTHREADS > 4
12767 /* Final pthreads */
12768 pthread_attr_t attr;
12770 status = pthread_attr_init(&attr);
12771 if( status ) return status;
12773 #if HAVE_PTHREADS < 7
12774 status = pthread_attr_setdetachstate(&attr, &detach);
12775 if( status < 0 ) status = errno;
12777 status = pthread_attr_setdetachstate(&attr, detach);
12779 if( status ) return status;
12780 status = pthread_create( &t, &attr, task, NULL );
12781 #if HAVE_PTHREADS < 7
12782 if( status < 0 ) status = errno;
12784 if( status ) return status;
12786 /* Draft 4 pthreads */
12787 status = pthread_create( &t, pthread_attr_default, task, NULL );
12788 if( status ) return errno;
12790 /* give thread a chance to complete */
12791 /* it should remain joinable and hence detachable */
12794 status = pthread_detach( &t );
12795 if( status ) return errno;
12798 #ifdef HAVE_LINUX_THREADS
12799 pthread_kill_other_threads_np();
12807 if { (eval echo configure:12808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12809 ol_cv_pthread_thread=yes
12811 echo "configure: failed program was:" >&5
12812 cat conftest.$ac_ext >&5
12814 ol_cv_pthread_thread=no
12825 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12827 if test $ol_cv_pthread_thread = yes ; then
12828 ol_link_pthreads="-thread"
12829 ol_link_threads=posix
12834 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12835 if test "$ol_link_threads" = no ; then
12836 # try -lpthread -lmach -lexc -lc_r
12837 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12838 echo "configure:12839: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12839 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12840 echo $ac_n "(cached) $ac_c" 1>&6
12845 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12847 if test "$cross_compiling" = yes; then
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 /* pthread test headers */
12852 #include <pthread.h>
12853 #if HAVE_PTHREADS < 7
12857 #define NULL (void*)0
12860 static void *task(p)
12863 return (void *) (p == NULL);
12868 /* pthread test function */
12869 #ifndef PTHREAD_CREATE_DETACHED
12870 #define PTHREAD_CREATE_DETACHED 1
12874 int detach = PTHREAD_CREATE_DETACHED;
12876 #if HAVE_PTHREADS > 4
12877 /* Final pthreads */
12878 pthread_attr_t attr;
12880 status = pthread_attr_init(&attr);
12881 if( status ) return status;
12883 #if HAVE_PTHREADS < 7
12884 status = pthread_attr_setdetachstate(&attr, &detach);
12885 if( status < 0 ) status = errno;
12887 status = pthread_attr_setdetachstate(&attr, detach);
12889 if( status ) return status;
12890 status = pthread_create( &t, &attr, task, NULL );
12891 #if HAVE_PTHREADS < 7
12892 if( status < 0 ) status = errno;
12894 if( status ) return status;
12896 /* Draft 4 pthreads */
12897 status = pthread_create( &t, pthread_attr_default, task, NULL );
12898 if( status ) return errno;
12900 /* give thread a chance to complete */
12901 /* it should remain joinable and hence detachable */
12904 status = pthread_detach( &t );
12905 if( status ) return errno;
12908 #ifdef HAVE_LINUX_THREADS
12909 pthread_kill_other_threads_np();
12916 if { (eval echo configure:12917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12918 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12920 echo "configure: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12923 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12927 cat > conftest.$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12930 /* pthread test headers */
12931 #include <pthread.h>
12932 #if HAVE_PTHREADS < 7
12936 #define NULL (void*)0
12939 static void *task(p)
12942 return (void *) (p == NULL);
12946 int main(argc, argv)
12951 /* pthread test function */
12952 #ifndef PTHREAD_CREATE_DETACHED
12953 #define PTHREAD_CREATE_DETACHED 1
12957 int detach = PTHREAD_CREATE_DETACHED;
12959 #if HAVE_PTHREADS > 4
12960 /* Final pthreads */
12961 pthread_attr_t attr;
12963 status = pthread_attr_init(&attr);
12964 if( status ) return status;
12966 #if HAVE_PTHREADS < 7
12967 status = pthread_attr_setdetachstate(&attr, &detach);
12968 if( status < 0 ) status = errno;
12970 status = pthread_attr_setdetachstate(&attr, detach);
12972 if( status ) return status;
12973 status = pthread_create( &t, &attr, task, NULL );
12974 #if HAVE_PTHREADS < 7
12975 if( status < 0 ) status = errno;
12977 if( status ) return status;
12979 /* Draft 4 pthreads */
12980 status = pthread_create( &t, pthread_attr_default, task, NULL );
12981 if( status ) return errno;
12983 /* give thread a chance to complete */
12984 /* it should remain joinable and hence detachable */
12987 status = pthread_detach( &t );
12988 if( status ) return errno;
12991 #ifdef HAVE_LINUX_THREADS
12992 pthread_kill_other_threads_np();
13000 if { (eval echo configure:13001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13002 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13004 echo "configure: failed program was:" >&5
13005 cat conftest.$ac_ext >&5
13007 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13018 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13020 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13021 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13022 ol_link_threads=posix
13026 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13027 if test "$ol_link_threads" = no ; then
13028 # try -lpthread -lmach -lexc
13029 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13030 echo "configure:13031: checking for pthread link with -lpthread -lmach -lexc" >&5
13031 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13032 echo $ac_n "(cached) $ac_c" 1>&6
13037 LIBS="-lpthread -lmach -lexc $LIBS"
13039 if test "$cross_compiling" = yes; then
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 /* pthread test headers */
13044 #include <pthread.h>
13045 #if HAVE_PTHREADS < 7
13049 #define NULL (void*)0
13052 static void *task(p)
13055 return (void *) (p == NULL);
13060 /* pthread test function */
13061 #ifndef PTHREAD_CREATE_DETACHED
13062 #define PTHREAD_CREATE_DETACHED 1
13066 int detach = PTHREAD_CREATE_DETACHED;
13068 #if HAVE_PTHREADS > 4
13069 /* Final pthreads */
13070 pthread_attr_t attr;
13072 status = pthread_attr_init(&attr);
13073 if( status ) return status;
13075 #if HAVE_PTHREADS < 7
13076 status = pthread_attr_setdetachstate(&attr, &detach);
13077 if( status < 0 ) status = errno;
13079 status = pthread_attr_setdetachstate(&attr, detach);
13081 if( status ) return status;
13082 status = pthread_create( &t, &attr, task, NULL );
13083 #if HAVE_PTHREADS < 7
13084 if( status < 0 ) status = errno;
13086 if( status ) return status;
13088 /* Draft 4 pthreads */
13089 status = pthread_create( &t, pthread_attr_default, task, NULL );
13090 if( status ) return errno;
13092 /* give thread a chance to complete */
13093 /* it should remain joinable and hence detachable */
13096 status = pthread_detach( &t );
13097 if( status ) return errno;
13100 #ifdef HAVE_LINUX_THREADS
13101 pthread_kill_other_threads_np();
13108 if { (eval echo configure:13109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110 ol_cv_pthread_lpthread_lmach_lexc=yes
13112 echo "configure: failed program was:" >&5
13113 cat conftest.$ac_ext >&5
13115 ol_cv_pthread_lpthread_lmach_lexc=no
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13122 /* pthread test headers */
13123 #include <pthread.h>
13124 #if HAVE_PTHREADS < 7
13128 #define NULL (void*)0
13131 static void *task(p)
13134 return (void *) (p == NULL);
13138 int main(argc, argv)
13143 /* pthread test function */
13144 #ifndef PTHREAD_CREATE_DETACHED
13145 #define PTHREAD_CREATE_DETACHED 1
13149 int detach = PTHREAD_CREATE_DETACHED;
13151 #if HAVE_PTHREADS > 4
13152 /* Final pthreads */
13153 pthread_attr_t attr;
13155 status = pthread_attr_init(&attr);
13156 if( status ) return status;
13158 #if HAVE_PTHREADS < 7
13159 status = pthread_attr_setdetachstate(&attr, &detach);
13160 if( status < 0 ) status = errno;
13162 status = pthread_attr_setdetachstate(&attr, detach);
13164 if( status ) return status;
13165 status = pthread_create( &t, &attr, task, NULL );
13166 #if HAVE_PTHREADS < 7
13167 if( status < 0 ) status = errno;
13169 if( status ) return status;
13171 /* Draft 4 pthreads */
13172 status = pthread_create( &t, pthread_attr_default, task, NULL );
13173 if( status ) return errno;
13175 /* give thread a chance to complete */
13176 /* it should remain joinable and hence detachable */
13179 status = pthread_detach( &t );
13180 if( status ) return errno;
13183 #ifdef HAVE_LINUX_THREADS
13184 pthread_kill_other_threads_np();
13192 if { (eval echo configure:13193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13194 ol_cv_pthread_lpthread_lmach_lexc=yes
13196 echo "configure: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13199 ol_cv_pthread_lpthread_lmach_lexc=no
13210 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13212 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13213 ol_link_pthreads="-lpthread -lmach -lexc"
13214 ol_link_threads=posix
13219 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13220 if test "$ol_link_threads" = no ; then
13221 # try -lpthread -Wl,-woff,85
13222 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13223 echo "configure:13224: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13224 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13225 echo $ac_n "(cached) $ac_c" 1>&6
13230 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13232 if test "$cross_compiling" = yes; then
13233 cat > conftest.$ac_ext <<EOF
13234 #line 13235 "configure"
13235 #include "confdefs.h"
13236 /* pthread test headers */
13237 #include <pthread.h>
13238 #if HAVE_PTHREADS < 7
13242 #define NULL (void*)0
13245 static void *task(p)
13248 return (void *) (p == NULL);
13253 /* pthread test function */
13254 #ifndef PTHREAD_CREATE_DETACHED
13255 #define PTHREAD_CREATE_DETACHED 1
13259 int detach = PTHREAD_CREATE_DETACHED;
13261 #if HAVE_PTHREADS > 4
13262 /* Final pthreads */
13263 pthread_attr_t attr;
13265 status = pthread_attr_init(&attr);
13266 if( status ) return status;
13268 #if HAVE_PTHREADS < 7
13269 status = pthread_attr_setdetachstate(&attr, &detach);
13270 if( status < 0 ) status = errno;
13272 status = pthread_attr_setdetachstate(&attr, detach);
13274 if( status ) return status;
13275 status = pthread_create( &t, &attr, task, NULL );
13276 #if HAVE_PTHREADS < 7
13277 if( status < 0 ) status = errno;
13279 if( status ) return status;
13281 /* Draft 4 pthreads */
13282 status = pthread_create( &t, pthread_attr_default, task, NULL );
13283 if( status ) return errno;
13285 /* give thread a chance to complete */
13286 /* it should remain joinable and hence detachable */
13289 status = pthread_detach( &t );
13290 if( status ) return errno;
13293 #ifdef HAVE_LINUX_THREADS
13294 pthread_kill_other_threads_np();
13301 if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 ol_cv_pthread_lib_lpthread_woff=yes
13305 echo "configure: failed program was:" >&5
13306 cat conftest.$ac_ext >&5
13308 ol_cv_pthread_lib_lpthread_woff=no
13312 cat > conftest.$ac_ext <<EOF
13313 #line 13314 "configure"
13314 #include "confdefs.h"
13315 /* pthread test headers */
13316 #include <pthread.h>
13317 #if HAVE_PTHREADS < 7
13321 #define NULL (void*)0
13324 static void *task(p)
13327 return (void *) (p == NULL);
13331 int main(argc, argv)
13336 /* pthread test function */
13337 #ifndef PTHREAD_CREATE_DETACHED
13338 #define PTHREAD_CREATE_DETACHED 1
13342 int detach = PTHREAD_CREATE_DETACHED;
13344 #if HAVE_PTHREADS > 4
13345 /* Final pthreads */
13346 pthread_attr_t attr;
13348 status = pthread_attr_init(&attr);
13349 if( status ) return status;
13351 #if HAVE_PTHREADS < 7
13352 status = pthread_attr_setdetachstate(&attr, &detach);
13353 if( status < 0 ) status = errno;
13355 status = pthread_attr_setdetachstate(&attr, detach);
13357 if( status ) return status;
13358 status = pthread_create( &t, &attr, task, NULL );
13359 #if HAVE_PTHREADS < 7
13360 if( status < 0 ) status = errno;
13362 if( status ) return status;
13364 /* Draft 4 pthreads */
13365 status = pthread_create( &t, pthread_attr_default, task, NULL );
13366 if( status ) return errno;
13368 /* give thread a chance to complete */
13369 /* it should remain joinable and hence detachable */
13372 status = pthread_detach( &t );
13373 if( status ) return errno;
13376 #ifdef HAVE_LINUX_THREADS
13377 pthread_kill_other_threads_np();
13385 if { (eval echo configure:13386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13387 ol_cv_pthread_lib_lpthread_woff=yes
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13392 ol_cv_pthread_lib_lpthread_woff=no
13403 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13405 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13406 ol_link_pthreads="-lpthread -Wl,-woff,85"
13407 ol_link_threads=posix
13412 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13413 if test "$ol_link_threads" = no ; then
13415 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13416 echo "configure:13417: checking for pthread link with -lpthread" >&5
13417 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13418 echo $ac_n "(cached) $ac_c" 1>&6
13423 LIBS="-lpthread $LIBS"
13425 if test "$cross_compiling" = yes; then
13426 cat > conftest.$ac_ext <<EOF
13427 #line 13428 "configure"
13428 #include "confdefs.h"
13429 /* pthread test headers */
13430 #include <pthread.h>
13431 #if HAVE_PTHREADS < 7
13435 #define NULL (void*)0
13438 static void *task(p)
13441 return (void *) (p == NULL);
13446 /* pthread test function */
13447 #ifndef PTHREAD_CREATE_DETACHED
13448 #define PTHREAD_CREATE_DETACHED 1
13452 int detach = PTHREAD_CREATE_DETACHED;
13454 #if HAVE_PTHREADS > 4
13455 /* Final pthreads */
13456 pthread_attr_t attr;
13458 status = pthread_attr_init(&attr);
13459 if( status ) return status;
13461 #if HAVE_PTHREADS < 7
13462 status = pthread_attr_setdetachstate(&attr, &detach);
13463 if( status < 0 ) status = errno;
13465 status = pthread_attr_setdetachstate(&attr, detach);
13467 if( status ) return status;
13468 status = pthread_create( &t, &attr, task, NULL );
13469 #if HAVE_PTHREADS < 7
13470 if( status < 0 ) status = errno;
13472 if( status ) return status;
13474 /* Draft 4 pthreads */
13475 status = pthread_create( &t, pthread_attr_default, task, NULL );
13476 if( status ) return errno;
13478 /* give thread a chance to complete */
13479 /* it should remain joinable and hence detachable */
13482 status = pthread_detach( &t );
13483 if( status ) return errno;
13486 #ifdef HAVE_LINUX_THREADS
13487 pthread_kill_other_threads_np();
13494 if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13496 ol_cv_pthread_lpthread=yes
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13501 ol_cv_pthread_lpthread=no
13505 cat > conftest.$ac_ext <<EOF
13506 #line 13507 "configure"
13507 #include "confdefs.h"
13508 /* pthread test headers */
13509 #include <pthread.h>
13510 #if HAVE_PTHREADS < 7
13514 #define NULL (void*)0
13517 static void *task(p)
13520 return (void *) (p == NULL);
13524 int main(argc, argv)
13529 /* pthread test function */
13530 #ifndef PTHREAD_CREATE_DETACHED
13531 #define PTHREAD_CREATE_DETACHED 1
13535 int detach = PTHREAD_CREATE_DETACHED;
13537 #if HAVE_PTHREADS > 4
13538 /* Final pthreads */
13539 pthread_attr_t attr;
13541 status = pthread_attr_init(&attr);
13542 if( status ) return status;
13544 #if HAVE_PTHREADS < 7
13545 status = pthread_attr_setdetachstate(&attr, &detach);
13546 if( status < 0 ) status = errno;
13548 status = pthread_attr_setdetachstate(&attr, detach);
13550 if( status ) return status;
13551 status = pthread_create( &t, &attr, task, NULL );
13552 #if HAVE_PTHREADS < 7
13553 if( status < 0 ) status = errno;
13555 if( status ) return status;
13557 /* Draft 4 pthreads */
13558 status = pthread_create( &t, pthread_attr_default, task, NULL );
13559 if( status ) return errno;
13561 /* give thread a chance to complete */
13562 /* it should remain joinable and hence detachable */
13565 status = pthread_detach( &t );
13566 if( status ) return errno;
13569 #ifdef HAVE_LINUX_THREADS
13570 pthread_kill_other_threads_np();
13578 if { (eval echo configure:13579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13580 ol_cv_pthread_lpthread=yes
13582 echo "configure: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13585 ol_cv_pthread_lpthread=no
13596 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13598 if test $ol_cv_pthread_lpthread = yes ; then
13599 ol_link_pthreads="-lpthread"
13600 ol_link_threads=posix
13604 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13605 if test "$ol_link_threads" = no ; then
13607 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13608 echo "configure:13609: checking for pthread link with -lc_r" >&5
13609 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13610 echo $ac_n "(cached) $ac_c" 1>&6
13617 if test "$cross_compiling" = yes; then
13618 cat > conftest.$ac_ext <<EOF
13619 #line 13620 "configure"
13620 #include "confdefs.h"
13621 /* pthread test headers */
13622 #include <pthread.h>
13623 #if HAVE_PTHREADS < 7
13627 #define NULL (void*)0
13630 static void *task(p)
13633 return (void *) (p == NULL);
13638 /* pthread test function */
13639 #ifndef PTHREAD_CREATE_DETACHED
13640 #define PTHREAD_CREATE_DETACHED 1
13644 int detach = PTHREAD_CREATE_DETACHED;
13646 #if HAVE_PTHREADS > 4
13647 /* Final pthreads */
13648 pthread_attr_t attr;
13650 status = pthread_attr_init(&attr);
13651 if( status ) return status;
13653 #if HAVE_PTHREADS < 7
13654 status = pthread_attr_setdetachstate(&attr, &detach);
13655 if( status < 0 ) status = errno;
13657 status = pthread_attr_setdetachstate(&attr, detach);
13659 if( status ) return status;
13660 status = pthread_create( &t, &attr, task, NULL );
13661 #if HAVE_PTHREADS < 7
13662 if( status < 0 ) status = errno;
13664 if( status ) return status;
13666 /* Draft 4 pthreads */
13667 status = pthread_create( &t, pthread_attr_default, task, NULL );
13668 if( status ) return errno;
13670 /* give thread a chance to complete */
13671 /* it should remain joinable and hence detachable */
13674 status = pthread_detach( &t );
13675 if( status ) return errno;
13678 #ifdef HAVE_LINUX_THREADS
13679 pthread_kill_other_threads_np();
13686 if { (eval echo configure:13687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13688 ol_cv_pthread_lc_r=yes
13690 echo "configure: failed program was:" >&5
13691 cat conftest.$ac_ext >&5
13693 ol_cv_pthread_lc_r=no
13697 cat > conftest.$ac_ext <<EOF
13698 #line 13699 "configure"
13699 #include "confdefs.h"
13700 /* pthread test headers */
13701 #include <pthread.h>
13702 #if HAVE_PTHREADS < 7
13706 #define NULL (void*)0
13709 static void *task(p)
13712 return (void *) (p == NULL);
13716 int main(argc, argv)
13721 /* pthread test function */
13722 #ifndef PTHREAD_CREATE_DETACHED
13723 #define PTHREAD_CREATE_DETACHED 1
13727 int detach = PTHREAD_CREATE_DETACHED;
13729 #if HAVE_PTHREADS > 4
13730 /* Final pthreads */
13731 pthread_attr_t attr;
13733 status = pthread_attr_init(&attr);
13734 if( status ) return status;
13736 #if HAVE_PTHREADS < 7
13737 status = pthread_attr_setdetachstate(&attr, &detach);
13738 if( status < 0 ) status = errno;
13740 status = pthread_attr_setdetachstate(&attr, detach);
13742 if( status ) return status;
13743 status = pthread_create( &t, &attr, task, NULL );
13744 #if HAVE_PTHREADS < 7
13745 if( status < 0 ) status = errno;
13747 if( status ) return status;
13749 /* Draft 4 pthreads */
13750 status = pthread_create( &t, pthread_attr_default, task, NULL );
13751 if( status ) return errno;
13753 /* give thread a chance to complete */
13754 /* it should remain joinable and hence detachable */
13757 status = pthread_detach( &t );
13758 if( status ) return errno;
13761 #ifdef HAVE_LINUX_THREADS
13762 pthread_kill_other_threads_np();
13770 if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13772 ol_cv_pthread_lc_r=yes
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13777 ol_cv_pthread_lc_r=no
13788 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13790 if test $ol_cv_pthread_lc_r = yes ; then
13791 ol_link_pthreads="-lc_r"
13792 ol_link_threads=posix
13797 # Pthread try link: -threads (ol_cv_pthread_threads)
13798 if test "$ol_link_threads" = no ; then
13800 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13801 echo "configure:13802: checking for pthread link with -threads" >&5
13802 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13803 echo $ac_n "(cached) $ac_c" 1>&6
13808 LIBS="-threads $LIBS"
13810 if test "$cross_compiling" = yes; then
13811 cat > conftest.$ac_ext <<EOF
13812 #line 13813 "configure"
13813 #include "confdefs.h"
13814 /* pthread test headers */
13815 #include <pthread.h>
13816 #if HAVE_PTHREADS < 7
13820 #define NULL (void*)0
13823 static void *task(p)
13826 return (void *) (p == NULL);
13831 /* pthread test function */
13832 #ifndef PTHREAD_CREATE_DETACHED
13833 #define PTHREAD_CREATE_DETACHED 1
13837 int detach = PTHREAD_CREATE_DETACHED;
13839 #if HAVE_PTHREADS > 4
13840 /* Final pthreads */
13841 pthread_attr_t attr;
13843 status = pthread_attr_init(&attr);
13844 if( status ) return status;
13846 #if HAVE_PTHREADS < 7
13847 status = pthread_attr_setdetachstate(&attr, &detach);
13848 if( status < 0 ) status = errno;
13850 status = pthread_attr_setdetachstate(&attr, detach);
13852 if( status ) return status;
13853 status = pthread_create( &t, &attr, task, NULL );
13854 #if HAVE_PTHREADS < 7
13855 if( status < 0 ) status = errno;
13857 if( status ) return status;
13859 /* Draft 4 pthreads */
13860 status = pthread_create( &t, pthread_attr_default, task, NULL );
13861 if( status ) return errno;
13863 /* give thread a chance to complete */
13864 /* it should remain joinable and hence detachable */
13867 status = pthread_detach( &t );
13868 if( status ) return errno;
13871 #ifdef HAVE_LINUX_THREADS
13872 pthread_kill_other_threads_np();
13879 if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13881 ol_cv_pthread_threads=yes
13883 echo "configure: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13886 ol_cv_pthread_threads=no
13890 cat > conftest.$ac_ext <<EOF
13891 #line 13892 "configure"
13892 #include "confdefs.h"
13893 /* pthread test headers */
13894 #include <pthread.h>
13895 #if HAVE_PTHREADS < 7
13899 #define NULL (void*)0
13902 static void *task(p)
13905 return (void *) (p == NULL);
13909 int main(argc, argv)
13914 /* pthread test function */
13915 #ifndef PTHREAD_CREATE_DETACHED
13916 #define PTHREAD_CREATE_DETACHED 1
13920 int detach = PTHREAD_CREATE_DETACHED;
13922 #if HAVE_PTHREADS > 4
13923 /* Final pthreads */
13924 pthread_attr_t attr;
13926 status = pthread_attr_init(&attr);
13927 if( status ) return status;
13929 #if HAVE_PTHREADS < 7
13930 status = pthread_attr_setdetachstate(&attr, &detach);
13931 if( status < 0 ) status = errno;
13933 status = pthread_attr_setdetachstate(&attr, detach);
13935 if( status ) return status;
13936 status = pthread_create( &t, &attr, task, NULL );
13937 #if HAVE_PTHREADS < 7
13938 if( status < 0 ) status = errno;
13940 if( status ) return status;
13942 /* Draft 4 pthreads */
13943 status = pthread_create( &t, pthread_attr_default, task, NULL );
13944 if( status ) return errno;
13946 /* give thread a chance to complete */
13947 /* it should remain joinable and hence detachable */
13950 status = pthread_detach( &t );
13951 if( status ) return errno;
13954 #ifdef HAVE_LINUX_THREADS
13955 pthread_kill_other_threads_np();
13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13965 ol_cv_pthread_threads=yes
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13970 ol_cv_pthread_threads=no
13981 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13983 if test $ol_cv_pthread_threads = yes ; then
13984 ol_link_pthreads="-threads"
13985 ol_link_threads=posix
13990 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13991 if test "$ol_link_threads" = no ; then
13992 # try -lpthreads -lmach -lexc -lc_r
13993 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13994 echo "configure:13995: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13995 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
14001 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14003 if test "$cross_compiling" = yes; then
14004 cat > conftest.$ac_ext <<EOF
14005 #line 14006 "configure"
14006 #include "confdefs.h"
14007 /* pthread test headers */
14008 #include <pthread.h>
14009 #if HAVE_PTHREADS < 7
14013 #define NULL (void*)0
14016 static void *task(p)
14019 return (void *) (p == NULL);
14024 /* pthread test function */
14025 #ifndef PTHREAD_CREATE_DETACHED
14026 #define PTHREAD_CREATE_DETACHED 1
14030 int detach = PTHREAD_CREATE_DETACHED;
14032 #if HAVE_PTHREADS > 4
14033 /* Final pthreads */
14034 pthread_attr_t attr;
14036 status = pthread_attr_init(&attr);
14037 if( status ) return status;
14039 #if HAVE_PTHREADS < 7
14040 status = pthread_attr_setdetachstate(&attr, &detach);
14041 if( status < 0 ) status = errno;
14043 status = pthread_attr_setdetachstate(&attr, detach);
14045 if( status ) return status;
14046 status = pthread_create( &t, &attr, task, NULL );
14047 #if HAVE_PTHREADS < 7
14048 if( status < 0 ) status = errno;
14050 if( status ) return status;
14052 /* Draft 4 pthreads */
14053 status = pthread_create( &t, pthread_attr_default, task, NULL );
14054 if( status ) return errno;
14056 /* give thread a chance to complete */
14057 /* it should remain joinable and hence detachable */
14060 status = pthread_detach( &t );
14061 if( status ) return errno;
14064 #ifdef HAVE_LINUX_THREADS
14065 pthread_kill_other_threads_np();
14072 if { (eval echo configure:14073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14074 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14079 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14083 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure"
14085 #include "confdefs.h"
14086 /* pthread test headers */
14087 #include <pthread.h>
14088 #if HAVE_PTHREADS < 7
14092 #define NULL (void*)0
14095 static void *task(p)
14098 return (void *) (p == NULL);
14102 int main(argc, argv)
14107 /* pthread test function */
14108 #ifndef PTHREAD_CREATE_DETACHED
14109 #define PTHREAD_CREATE_DETACHED 1
14113 int detach = PTHREAD_CREATE_DETACHED;
14115 #if HAVE_PTHREADS > 4
14116 /* Final pthreads */
14117 pthread_attr_t attr;
14119 status = pthread_attr_init(&attr);
14120 if( status ) return status;
14122 #if HAVE_PTHREADS < 7
14123 status = pthread_attr_setdetachstate(&attr, &detach);
14124 if( status < 0 ) status = errno;
14126 status = pthread_attr_setdetachstate(&attr, detach);
14128 if( status ) return status;
14129 status = pthread_create( &t, &attr, task, NULL );
14130 #if HAVE_PTHREADS < 7
14131 if( status < 0 ) status = errno;
14133 if( status ) return status;
14135 /* Draft 4 pthreads */
14136 status = pthread_create( &t, pthread_attr_default, task, NULL );
14137 if( status ) return errno;
14139 /* give thread a chance to complete */
14140 /* it should remain joinable and hence detachable */
14143 status = pthread_detach( &t );
14144 if( status ) return errno;
14147 #ifdef HAVE_LINUX_THREADS
14148 pthread_kill_other_threads_np();
14156 if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14158 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14163 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14174 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14176 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14177 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14178 ol_link_threads=posix
14182 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14183 if test "$ol_link_threads" = no ; then
14184 # try -lpthreads -lmach -lexc
14185 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14186 echo "configure:14187: checking for pthread link with -lpthreads -lmach -lexc" >&5
14187 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14188 echo $ac_n "(cached) $ac_c" 1>&6
14193 LIBS="-lpthreads -lmach -lexc $LIBS"
14195 if test "$cross_compiling" = yes; then
14196 cat > conftest.$ac_ext <<EOF
14197 #line 14198 "configure"
14198 #include "confdefs.h"
14199 /* pthread test headers */
14200 #include <pthread.h>
14201 #if HAVE_PTHREADS < 7
14205 #define NULL (void*)0
14208 static void *task(p)
14211 return (void *) (p == NULL);
14216 /* pthread test function */
14217 #ifndef PTHREAD_CREATE_DETACHED
14218 #define PTHREAD_CREATE_DETACHED 1
14222 int detach = PTHREAD_CREATE_DETACHED;
14224 #if HAVE_PTHREADS > 4
14225 /* Final pthreads */
14226 pthread_attr_t attr;
14228 status = pthread_attr_init(&attr);
14229 if( status ) return status;
14231 #if HAVE_PTHREADS < 7
14232 status = pthread_attr_setdetachstate(&attr, &detach);
14233 if( status < 0 ) status = errno;
14235 status = pthread_attr_setdetachstate(&attr, detach);
14237 if( status ) return status;
14238 status = pthread_create( &t, &attr, task, NULL );
14239 #if HAVE_PTHREADS < 7
14240 if( status < 0 ) status = errno;
14242 if( status ) return status;
14244 /* Draft 4 pthreads */
14245 status = pthread_create( &t, pthread_attr_default, task, NULL );
14246 if( status ) return errno;
14248 /* give thread a chance to complete */
14249 /* it should remain joinable and hence detachable */
14252 status = pthread_detach( &t );
14253 if( status ) return errno;
14256 #ifdef HAVE_LINUX_THREADS
14257 pthread_kill_other_threads_np();
14264 if { (eval echo configure:14265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14266 ol_cv_pthread_lpthreads_lmach_lexc=yes
14268 echo "configure: failed program was:" >&5
14269 cat conftest.$ac_ext >&5
14271 ol_cv_pthread_lpthreads_lmach_lexc=no
14275 cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 /* pthread test headers */
14279 #include <pthread.h>
14280 #if HAVE_PTHREADS < 7
14284 #define NULL (void*)0
14287 static void *task(p)
14290 return (void *) (p == NULL);
14294 int main(argc, argv)
14299 /* pthread test function */
14300 #ifndef PTHREAD_CREATE_DETACHED
14301 #define PTHREAD_CREATE_DETACHED 1
14305 int detach = PTHREAD_CREATE_DETACHED;
14307 #if HAVE_PTHREADS > 4
14308 /* Final pthreads */
14309 pthread_attr_t attr;
14311 status = pthread_attr_init(&attr);
14312 if( status ) return status;
14314 #if HAVE_PTHREADS < 7
14315 status = pthread_attr_setdetachstate(&attr, &detach);
14316 if( status < 0 ) status = errno;
14318 status = pthread_attr_setdetachstate(&attr, detach);
14320 if( status ) return status;
14321 status = pthread_create( &t, &attr, task, NULL );
14322 #if HAVE_PTHREADS < 7
14323 if( status < 0 ) status = errno;
14325 if( status ) return status;
14327 /* Draft 4 pthreads */
14328 status = pthread_create( &t, pthread_attr_default, task, NULL );
14329 if( status ) return errno;
14331 /* give thread a chance to complete */
14332 /* it should remain joinable and hence detachable */
14335 status = pthread_detach( &t );
14336 if( status ) return errno;
14339 #ifdef HAVE_LINUX_THREADS
14340 pthread_kill_other_threads_np();
14348 if { (eval echo configure:14349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14350 ol_cv_pthread_lpthreads_lmach_lexc=yes
14352 echo "configure: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14355 ol_cv_pthread_lpthreads_lmach_lexc=no
14366 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14368 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14369 ol_link_pthreads="-lpthreads -lmach -lexc"
14370 ol_link_threads=posix
14374 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14375 if test "$ol_link_threads" = no ; then
14376 # try -lpthreads -lexc
14377 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14378 echo "configure:14379: checking for pthread link with -lpthreads -lexc" >&5
14379 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14380 echo $ac_n "(cached) $ac_c" 1>&6
14385 LIBS="-lpthreads -lexc $LIBS"
14387 if test "$cross_compiling" = yes; then
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 /* pthread test headers */
14392 #include <pthread.h>
14393 #if HAVE_PTHREADS < 7
14397 #define NULL (void*)0
14400 static void *task(p)
14403 return (void *) (p == NULL);
14408 /* pthread test function */
14409 #ifndef PTHREAD_CREATE_DETACHED
14410 #define PTHREAD_CREATE_DETACHED 1
14414 int detach = PTHREAD_CREATE_DETACHED;
14416 #if HAVE_PTHREADS > 4
14417 /* Final pthreads */
14418 pthread_attr_t attr;
14420 status = pthread_attr_init(&attr);
14421 if( status ) return status;
14423 #if HAVE_PTHREADS < 7
14424 status = pthread_attr_setdetachstate(&attr, &detach);
14425 if( status < 0 ) status = errno;
14427 status = pthread_attr_setdetachstate(&attr, detach);
14429 if( status ) return status;
14430 status = pthread_create( &t, &attr, task, NULL );
14431 #if HAVE_PTHREADS < 7
14432 if( status < 0 ) status = errno;
14434 if( status ) return status;
14436 /* Draft 4 pthreads */
14437 status = pthread_create( &t, pthread_attr_default, task, NULL );
14438 if( status ) return errno;
14440 /* give thread a chance to complete */
14441 /* it should remain joinable and hence detachable */
14444 status = pthread_detach( &t );
14445 if( status ) return errno;
14448 #ifdef HAVE_LINUX_THREADS
14449 pthread_kill_other_threads_np();
14456 if { (eval echo configure:14457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14458 ol_cv_pthread_lpthreads_lexc=yes
14460 echo "configure: failed program was:" >&5
14461 cat conftest.$ac_ext >&5
14463 ol_cv_pthread_lpthreads_lexc=no
14467 cat > conftest.$ac_ext <<EOF
14468 #line 14469 "configure"
14469 #include "confdefs.h"
14470 /* pthread test headers */
14471 #include <pthread.h>
14472 #if HAVE_PTHREADS < 7
14476 #define NULL (void*)0
14479 static void *task(p)
14482 return (void *) (p == NULL);
14486 int main(argc, argv)
14491 /* pthread test function */
14492 #ifndef PTHREAD_CREATE_DETACHED
14493 #define PTHREAD_CREATE_DETACHED 1
14497 int detach = PTHREAD_CREATE_DETACHED;
14499 #if HAVE_PTHREADS > 4
14500 /* Final pthreads */
14501 pthread_attr_t attr;
14503 status = pthread_attr_init(&attr);
14504 if( status ) return status;
14506 #if HAVE_PTHREADS < 7
14507 status = pthread_attr_setdetachstate(&attr, &detach);
14508 if( status < 0 ) status = errno;
14510 status = pthread_attr_setdetachstate(&attr, detach);
14512 if( status ) return status;
14513 status = pthread_create( &t, &attr, task, NULL );
14514 #if HAVE_PTHREADS < 7
14515 if( status < 0 ) status = errno;
14517 if( status ) return status;
14519 /* Draft 4 pthreads */
14520 status = pthread_create( &t, pthread_attr_default, task, NULL );
14521 if( status ) return errno;
14523 /* give thread a chance to complete */
14524 /* it should remain joinable and hence detachable */
14527 status = pthread_detach( &t );
14528 if( status ) return errno;
14531 #ifdef HAVE_LINUX_THREADS
14532 pthread_kill_other_threads_np();
14540 if { (eval echo configure:14541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14542 ol_cv_pthread_lpthreads_lexc=yes
14544 echo "configure: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14547 ol_cv_pthread_lpthreads_lexc=no
14558 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14560 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14561 ol_link_pthreads="-lpthreads -lexc"
14562 ol_link_threads=posix
14567 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14568 if test "$ol_link_threads" = no ; then
14570 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14571 echo "configure:14572: checking for pthread link with -lpthreads" >&5
14572 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14573 echo $ac_n "(cached) $ac_c" 1>&6
14578 LIBS="-lpthreads $LIBS"
14580 if test "$cross_compiling" = yes; then
14581 cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14584 /* pthread test headers */
14585 #include <pthread.h>
14586 #if HAVE_PTHREADS < 7
14590 #define NULL (void*)0
14593 static void *task(p)
14596 return (void *) (p == NULL);
14601 /* pthread test function */
14602 #ifndef PTHREAD_CREATE_DETACHED
14603 #define PTHREAD_CREATE_DETACHED 1
14607 int detach = PTHREAD_CREATE_DETACHED;
14609 #if HAVE_PTHREADS > 4
14610 /* Final pthreads */
14611 pthread_attr_t attr;
14613 status = pthread_attr_init(&attr);
14614 if( status ) return status;
14616 #if HAVE_PTHREADS < 7
14617 status = pthread_attr_setdetachstate(&attr, &detach);
14618 if( status < 0 ) status = errno;
14620 status = pthread_attr_setdetachstate(&attr, detach);
14622 if( status ) return status;
14623 status = pthread_create( &t, &attr, task, NULL );
14624 #if HAVE_PTHREADS < 7
14625 if( status < 0 ) status = errno;
14627 if( status ) return status;
14629 /* Draft 4 pthreads */
14630 status = pthread_create( &t, pthread_attr_default, task, NULL );
14631 if( status ) return errno;
14633 /* give thread a chance to complete */
14634 /* it should remain joinable and hence detachable */
14637 status = pthread_detach( &t );
14638 if( status ) return errno;
14641 #ifdef HAVE_LINUX_THREADS
14642 pthread_kill_other_threads_np();
14649 if { (eval echo configure:14650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14651 ol_cv_pthread_lib_lpthreads=yes
14653 echo "configure: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14656 ol_cv_pthread_lib_lpthreads=no
14660 cat > conftest.$ac_ext <<EOF
14661 #line 14662 "configure"
14662 #include "confdefs.h"
14663 /* pthread test headers */
14664 #include <pthread.h>
14665 #if HAVE_PTHREADS < 7
14669 #define NULL (void*)0
14672 static void *task(p)
14675 return (void *) (p == NULL);
14679 int main(argc, argv)
14684 /* pthread test function */
14685 #ifndef PTHREAD_CREATE_DETACHED
14686 #define PTHREAD_CREATE_DETACHED 1
14690 int detach = PTHREAD_CREATE_DETACHED;
14692 #if HAVE_PTHREADS > 4
14693 /* Final pthreads */
14694 pthread_attr_t attr;
14696 status = pthread_attr_init(&attr);
14697 if( status ) return status;
14699 #if HAVE_PTHREADS < 7
14700 status = pthread_attr_setdetachstate(&attr, &detach);
14701 if( status < 0 ) status = errno;
14703 status = pthread_attr_setdetachstate(&attr, detach);
14705 if( status ) return status;
14706 status = pthread_create( &t, &attr, task, NULL );
14707 #if HAVE_PTHREADS < 7
14708 if( status < 0 ) status = errno;
14710 if( status ) return status;
14712 /* Draft 4 pthreads */
14713 status = pthread_create( &t, pthread_attr_default, task, NULL );
14714 if( status ) return errno;
14716 /* give thread a chance to complete */
14717 /* it should remain joinable and hence detachable */
14720 status = pthread_detach( &t );
14721 if( status ) return errno;
14724 #ifdef HAVE_LINUX_THREADS
14725 pthread_kill_other_threads_np();
14733 if { (eval echo configure:14734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14735 ol_cv_pthread_lib_lpthreads=yes
14737 echo "configure: failed program was:" >&5
14738 cat conftest.$ac_ext >&5
14740 ol_cv_pthread_lib_lpthreads=no
14751 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14753 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14754 ol_link_pthreads="-lpthreads"
14755 ol_link_threads=posix
14760 if test $ol_link_threads != no ; then
14761 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14763 save_CPPFLAGS="$CPPFLAGS"
14765 LIBS="$LTHREAD_LIBS $LIBS"
14767 for ac_func in sched_yield pthread_yield thr_yield
14769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14770 echo "configure:14771: checking for $ac_func" >&5
14771 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14772 echo $ac_n "(cached) $ac_c" 1>&6
14774 cat > conftest.$ac_ext <<EOF
14775 #line 14776 "configure"
14776 #include "confdefs.h"
14777 /* System header to define __stub macros and hopefully few prototypes,
14778 which can conflict with char $ac_func(); below. */
14779 #include <assert.h>
14780 /* Override any gcc2 internal prototype to avoid an error. */
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14788 /* The GNU C library defines this for functions which it implements
14789 to always fail with ENOSYS. Some functions are actually named
14790 something starting with __ and the normal name is an alias. */
14791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14799 if { (eval echo configure:14800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14801 eval "ac_cv_func_$ac_func=yes"
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14806 eval "ac_cv_func_$ac_func=no"
14811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14812 echo "$ac_t""yes" 1>&6
14813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14814 cat >> confdefs.h <<EOF
14815 #define $ac_tr_func 1
14819 echo "$ac_t""no" 1>&6
14824 if test $ac_cv_func_sched_yield = no -a \
14825 $ac_cv_func_pthread_yield = no -a \
14826 $ac_cv_func_thr_yield = no ; then
14827 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14828 echo "configure:14829: checking for sched_yield in -lrt" >&5
14829 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14831 echo $ac_n "(cached) $ac_c" 1>&6
14833 ac_save_LIBS="$LIBS"
14835 cat > conftest.$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14838 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841 char sched_yield();
14847 if { (eval echo configure:14848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849 eval "ac_cv_lib_$ac_lib_var=yes"
14851 echo "configure: failed program was:" >&5
14852 cat conftest.$ac_ext >&5
14854 eval "ac_cv_lib_$ac_lib_var=no"
14857 LIBS="$ac_save_LIBS"
14860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14861 echo "$ac_t""yes" 1>&6
14862 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14863 cat >> confdefs.h <<\EOF
14864 #define HAVE_SCHED_YIELD 1
14867 ac_cv_func_sched_yield=yes
14869 echo "$ac_t""no" 1>&6
14870 ac_cv_func_sched_yield=no
14874 if test $ac_cv_func_sched_yield = no -a \
14875 $ac_cv_func_pthread_yield = no -a \
14876 "$ac_cv_func_thr_yield" = no ; then
14877 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14880 for ac_func in pthread_kill pthread_rwlock_destroy
14882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14883 echo "configure:14884: checking for $ac_func" >&5
14884 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 /* System header to define __stub macros and hopefully few prototypes,
14891 which can conflict with char $ac_func(); below. */
14892 #include <assert.h>
14893 /* Override any gcc2 internal prototype to avoid an error. */
14894 /* We use char because int might match the return type of a gcc2
14895 builtin and then its argument prototype would still apply. */
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14912 if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14914 eval "ac_cv_func_$ac_func=yes"
14916 echo "configure: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14919 eval "ac_cv_func_$ac_func=no"
14924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14925 echo "$ac_t""yes" 1>&6
14926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14927 cat >> confdefs.h <<EOF
14928 #define $ac_tr_func 1
14932 echo "$ac_t""no" 1>&6
14937 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14938 echo "configure:14939: checking for pthread_detach with <pthread.h>" >&5
14939 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14940 echo $ac_n "(cached) $ac_c" 1>&6
14943 cat > conftest.$ac_ext <<EOF
14944 #line 14945 "configure"
14945 #include "confdefs.h"
14947 #include <pthread.h>
14949 #define NULL (void*)0
14953 pthread_detach(NULL);
14956 if { (eval echo configure:14957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14958 ol_cv_func_pthread_detach=yes
14960 echo "configure: failed program was:" >&5
14961 cat conftest.$ac_ext >&5
14963 ol_cv_func_pthread_detach=no
14969 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14971 if test $ol_cv_func_pthread_detach = no ; then
14972 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14975 cat >> confdefs.h <<\EOF
14976 #define HAVE_PTHREAD_DETACH 1
14981 pthread_setconcurrency \
14982 pthread_getconcurrency \
14983 thr_setconcurrency \
14984 thr_getconcurrency \
14987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14988 echo "configure:14989: checking for $ac_func" >&5
14989 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14990 echo $ac_n "(cached) $ac_c" 1>&6
14992 cat > conftest.$ac_ext <<EOF
14993 #line 14994 "configure"
14994 #include "confdefs.h"
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func(); below. */
14997 #include <assert.h>
14998 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15006 /* The GNU C library defines this for functions which it implements
15007 to always fail with ENOSYS. Some functions are actually named
15008 something starting with __ and the normal name is an alias. */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019 eval "ac_cv_func_$ac_func=yes"
15021 echo "configure: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15024 eval "ac_cv_func_$ac_func=no"
15029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15030 echo "$ac_t""yes" 1>&6
15031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15032 cat >> confdefs.h <<EOF
15033 #define $ac_tr_func 1
15037 echo "$ac_t""no" 1>&6
15043 for ac_func in pthread_kill_other_threads_np
15045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15046 echo "configure:15047: checking for $ac_func" >&5
15047 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15050 cat > conftest.$ac_ext <<EOF
15051 #line 15052 "configure"
15052 #include "confdefs.h"
15053 /* System header to define __stub macros and hopefully few prototypes,
15054 which can conflict with char $ac_func(); below. */
15055 #include <assert.h>
15056 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15064 /* The GNU C library defines this for functions which it implements
15065 to always fail with ENOSYS. Some functions are actually named
15066 something starting with __ and the normal name is an alias. */
15067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15075 if { (eval echo configure:15076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15077 eval "ac_cv_func_$ac_func=yes"
15079 echo "configure: failed program was:" >&5
15080 cat conftest.$ac_ext >&5
15082 eval "ac_cv_func_$ac_func=no"
15087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15088 echo "$ac_t""yes" 1>&6
15089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15090 cat >> confdefs.h <<EOF
15091 #define $ac_tr_func 1
15095 echo "$ac_t""no" 1>&6
15099 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15100 echo "configure:15101: checking for LinuxThreads implementation" >&5
15101 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15102 echo $ac_n "(cached) $ac_c" 1>&6
15104 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15107 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15112 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15113 echo "configure:15114: checking for LinuxThreads consistency" >&5
15114 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15118 if test $ol_cv_header_linux_threads = yes -a \
15119 $ol_cv_sys_linux_threads = yes; then
15120 ol_cv_linux_threads=yes
15121 elif test $ol_cv_header_linux_threads = no -a \
15122 $ol_cv_sys_linux_threads = no; then
15123 ol_cv_linux_threads=no
15125 ol_cv_linux_threads=error
15130 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15133 if test $ol_cv_linux_threads = error; then
15134 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15137 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15138 echo "configure:15139: checking if pthread_create() works" >&5
15139 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15140 echo $ac_n "(cached) $ac_c" 1>&6
15143 if test "$cross_compiling" = yes; then
15144 ol_cv_pthread_create_works=yes
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15149 /* pthread test headers */
15150 #include <pthread.h>
15151 #if HAVE_PTHREADS < 7
15155 #define NULL (void*)0
15158 static void *task(p)
15161 return (void *) (p == NULL);
15165 int main(argc, argv)
15170 /* pthread test function */
15171 #ifndef PTHREAD_CREATE_DETACHED
15172 #define PTHREAD_CREATE_DETACHED 1
15176 int detach = PTHREAD_CREATE_DETACHED;
15178 #if HAVE_PTHREADS > 4
15179 /* Final pthreads */
15180 pthread_attr_t attr;
15182 status = pthread_attr_init(&attr);
15183 if( status ) return status;
15185 #if HAVE_PTHREADS < 7
15186 status = pthread_attr_setdetachstate(&attr, &detach);
15187 if( status < 0 ) status = errno;
15189 status = pthread_attr_setdetachstate(&attr, detach);
15191 if( status ) return status;
15192 status = pthread_create( &t, &attr, task, NULL );
15193 #if HAVE_PTHREADS < 7
15194 if( status < 0 ) status = errno;
15196 if( status ) return status;
15198 /* Draft 4 pthreads */
15199 status = pthread_create( &t, pthread_attr_default, task, NULL );
15200 if( status ) return errno;
15202 /* give thread a chance to complete */
15203 /* it should remain joinable and hence detachable */
15206 status = pthread_detach( &t );
15207 if( status ) return errno;
15210 #ifdef HAVE_LINUX_THREADS
15211 pthread_kill_other_threads_np();
15219 if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15221 ol_cv_pthread_create_works=yes
15223 echo "configure: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15226 ol_cv_pthread_create_works=no
15233 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15235 if test $ol_cv_pthread_create_works = no ; then
15236 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15239 if test $ol_with_yielding_select = auto ; then
15240 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15241 echo "configure:15242: checking if select yields when using pthreads" >&5
15242 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15243 echo $ac_n "(cached) $ac_c" 1>&6
15246 if test "$cross_compiling" = yes; then
15247 ol_cv_pthread_select_yields=cross
15249 cat > conftest.$ac_ext <<EOF
15250 #line 15251 "configure"
15251 #include "confdefs.h"
15253 #include <sys/types.h>
15254 #include <sys/time.h>
15255 #include <unistd.h>
15256 #include <pthread.h>
15258 #define NULL (void*) 0
15261 static int fildes[2];
15263 static void *task(p)
15275 FD_SET(fildes[0], &rfds);
15277 /* we're not interested in any fds */
15278 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15285 exit(0); /* if we exit here, the select blocked the whole process */
15288 int main(argc, argv)
15294 /* create a pipe to select */
15295 if(pipe(&fildes[0])) {
15300 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15301 (void) pthread_setconcurrency(2);
15303 #ifdef HAVE_THR_SETCONCURRENCY
15304 /* Set Solaris LWP concurrency to 2 */
15305 thr_setconcurrency(2);
15309 #if HAVE_PTHREADS < 6
15310 pthread_create(&t, pthread_attr_default, task, NULL);
15312 pthread_create(&t, NULL, task, NULL);
15315 /* make sure task runs first */
15318 #elif defined( HAVE_SCHED_YIELD )
15320 #elif defined( HAVE_PTHREAD_YIELD )
15327 if { (eval echo configure:15328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15329 ol_cv_pthread_select_yields=no
15331 echo "configure: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15334 ol_cv_pthread_select_yields=yes
15341 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15343 if test $ol_cv_pthread_select_yields = cross ; then
15344 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15347 if test $ol_cv_pthread_select_yields = yes ; then
15348 ol_with_yielding_select=yes
15352 CPPFLAGS="$save_CPPFLAGS"
15355 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15359 if test $ol_with_threads = posix ; then
15360 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15364 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15365 -o $ol_with_threads = mach ; then
15367 for ac_hdr in mach/cthreads.h cthreads.h
15369 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15370 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15371 echo "configure:15372: checking for $ac_hdr" >&5
15372 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15373 echo $ac_n "(cached) $ac_c" 1>&6
15375 cat > conftest.$ac_ext <<EOF
15376 #line 15377 "configure"
15377 #include "confdefs.h"
15380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15381 { (eval echo configure:15382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15383 if test -z "$ac_err"; then
15385 eval "ac_cv_header_$ac_safe=yes"
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15391 eval "ac_cv_header_$ac_safe=no"
15395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15398 cat >> confdefs.h <<EOF
15399 #define $ac_tr_hdr 1
15403 echo "$ac_t""no" 1>&6
15407 if test $ac_cv_header_mach_cthreads_h = yes ; then
15408 ol_with_threads=found
15410 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15411 echo "configure:15412: checking for cthread_fork" >&5
15412 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15413 echo $ac_n "(cached) $ac_c" 1>&6
15415 cat > conftest.$ac_ext <<EOF
15416 #line 15417 "configure"
15417 #include "confdefs.h"
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char cthread_fork(); below. */
15420 #include <assert.h>
15421 /* Override any gcc2 internal prototype to avoid an error. */
15422 /* We use char because int might match the return type of a gcc2
15423 builtin and then its argument prototype would still apply. */
15424 char cthread_fork();
15429 /* The GNU C library defines this for functions which it implements
15430 to always fail with ENOSYS. Some functions are actually named
15431 something starting with __ and the normal name is an alias. */
15432 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15440 if { (eval echo configure:15441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15442 eval "ac_cv_func_cthread_fork=yes"
15444 echo "configure: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15447 eval "ac_cv_func_cthread_fork=no"
15452 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15453 echo "$ac_t""yes" 1>&6
15454 ol_link_threads=yes
15456 echo "$ac_t""no" 1>&6
15460 if test $ol_link_threads = no ; then
15461 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15462 echo "configure:15463: checking for cthread_fork with -all_load" >&5
15463 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15468 LIBS="-all_load $LIBS"
15469 cat > conftest.$ac_ext <<EOF
15470 #line 15471 "configure"
15471 #include "confdefs.h"
15472 #include <mach/cthreads.h>
15475 cthread_fork((void *)0, (void *)0);
15479 if { (eval echo configure:15480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15481 ol_cv_cthread_all_load=yes
15483 echo "configure: failed program was:" >&5
15484 cat conftest.$ac_ext >&5
15486 ol_cv_cthread_all_load=no
15493 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15495 if test $ol_cv_cthread_all_load = yes ; then
15496 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15497 ol_link_threads=mach
15498 ol_with_threads=found
15502 elif test $ac_cv_header_cthreads_h = yes ; then
15504 ol_with_threads=found
15507 LIBS="$LIBS -lthreads"
15508 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15509 echo "configure:15510: checking for cthread_fork" >&5
15510 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15513 cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15516 /* System header to define __stub macros and hopefully few prototypes,
15517 which can conflict with char cthread_fork(); below. */
15518 #include <assert.h>
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char cthread_fork();
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15538 if { (eval echo configure:15539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 eval "ac_cv_func_cthread_fork=yes"
15542 echo "configure: failed program was:" >&5
15543 cat conftest.$ac_ext >&5
15545 eval "ac_cv_func_cthread_fork=no"
15550 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15551 echo "$ac_t""yes" 1>&6
15552 ol_link_threads=yes
15554 echo "$ac_t""no" 1>&6
15559 if test $ol_link_threads = yes ; then
15560 LTHREAD_LIBS="-lthreads"
15561 ol_link_threads=mach
15562 ol_with_threads=found
15564 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15567 elif test $ol_with_threads = mach ; then
15568 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15571 if test $ol_link_threads = mach ; then
15572 cat >> confdefs.h <<\EOF
15573 #define HAVE_MACH_CTHREADS 1
15576 elif test $ol_with_threads = found ; then
15577 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15581 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15582 -o $ol_with_threads = pth ; then
15584 for ac_hdr in pth.h
15586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15588 echo "configure:15589: checking for $ac_hdr" >&5
15589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15590 echo $ac_n "(cached) $ac_c" 1>&6
15592 cat > conftest.$ac_ext <<EOF
15593 #line 15594 "configure"
15594 #include "confdefs.h"
15597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15598 { (eval echo configure:15599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15600 if test -z "$ac_err"; then
15602 eval "ac_cv_header_$ac_safe=yes"
15605 echo "configure: failed program was:" >&5
15606 cat conftest.$ac_ext >&5
15608 eval "ac_cv_header_$ac_safe=no"
15612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15613 echo "$ac_t""yes" 1>&6
15614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15615 cat >> confdefs.h <<EOF
15616 #define $ac_tr_hdr 1
15620 echo "$ac_t""no" 1>&6
15625 if test $ac_cv_header_pth_h = yes ; then
15626 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15627 echo "configure:15628: checking for pth_version in -lpth" >&5
15628 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15632 ac_save_LIBS="$LIBS"
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15640 char pth_version();
15646 if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15648 eval "ac_cv_lib_$ac_lib_var=yes"
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15653 eval "ac_cv_lib_$ac_lib_var=no"
15656 LIBS="$ac_save_LIBS"
15659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15663 echo "$ac_t""no" 1>&6
15668 if test $have_pth = yes ; then
15669 cat >> confdefs.h <<\EOF
15670 #define HAVE_GNU_PTH 1
15673 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15674 ol_link_threads=pth
15675 ol_with_threads=found
15677 if test $ol_with_yielding_select = auto ; then
15678 ol_with_yielding_select=yes
15684 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15685 -o $ol_with_threads = lwp ; then
15687 for ac_hdr in thread.h synch.h
15689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15691 echo "configure:15692: checking for $ac_hdr" >&5
15692 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15693 echo $ac_n "(cached) $ac_c" 1>&6
15695 cat > conftest.$ac_ext <<EOF
15696 #line 15697 "configure"
15697 #include "confdefs.h"
15700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15701 { (eval echo configure:15702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15703 if test -z "$ac_err"; then
15705 eval "ac_cv_header_$ac_safe=yes"
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15711 eval "ac_cv_header_$ac_safe=no"
15715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15716 echo "$ac_t""yes" 1>&6
15717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15718 cat >> confdefs.h <<EOF
15719 #define $ac_tr_hdr 1
15723 echo "$ac_t""no" 1>&6
15727 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15728 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15729 echo "configure:15730: checking for thr_create in -lthread" >&5
15730 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
15734 ac_save_LIBS="$LIBS"
15735 LIBS="-lthread $LIBS"
15736 cat > conftest.$ac_ext <<EOF
15737 #line 15738 "configure"
15738 #include "confdefs.h"
15739 /* Override any gcc2 internal prototype to avoid an error. */
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15748 if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15750 eval "ac_cv_lib_$ac_lib_var=yes"
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 eval "ac_cv_lib_$ac_lib_var=no"
15758 LIBS="$ac_save_LIBS"
15761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15762 echo "$ac_t""yes" 1>&6
15765 echo "$ac_t""no" 1>&6
15770 if test $have_thr = yes ; then
15771 cat >> confdefs.h <<\EOF
15775 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15776 ol_link_threads=thr
15778 if test $ol_with_yielding_select = auto ; then
15779 ol_with_yielding_select=yes
15783 thr_setconcurrency \
15784 thr_getconcurrency \
15787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15788 echo "configure:15789: checking for $ac_func" >&5
15789 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
15792 cat > conftest.$ac_ext <<EOF
15793 #line 15794 "configure"
15794 #include "confdefs.h"
15795 /* System header to define __stub macros and hopefully few prototypes,
15796 which can conflict with char $ac_func(); below. */
15797 #include <assert.h>
15798 /* Override any gcc2 internal prototype to avoid an error. */
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15817 if { (eval echo configure:15818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15819 eval "ac_cv_func_$ac_func=yes"
15821 echo "configure: failed program was:" >&5
15822 cat conftest.$ac_ext >&5
15824 eval "ac_cv_func_$ac_func=no"
15829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15830 echo "$ac_t""yes" 1>&6
15831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15832 cat >> confdefs.h <<EOF
15833 #define $ac_tr_func 1
15837 echo "$ac_t""no" 1>&6
15844 for ac_hdr in lwp/lwp.h
15846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15848 echo "configure:15849: checking for $ac_hdr" >&5
15849 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15850 echo $ac_n "(cached) $ac_c" 1>&6
15852 cat > conftest.$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15858 { (eval echo configure:15859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15860 if test -z "$ac_err"; then
15862 eval "ac_cv_header_$ac_safe=yes"
15865 echo "configure: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15868 eval "ac_cv_header_$ac_safe=no"
15872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15873 echo "$ac_t""yes" 1>&6
15874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15875 cat >> confdefs.h <<EOF
15876 #define $ac_tr_hdr 1
15880 echo "$ac_t""no" 1>&6
15884 if test $ac_cv_header_lwp_lwp_h = yes ; then
15885 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15886 echo "configure:15887: checking for lwp_create in -llwp" >&5
15887 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15889 echo $ac_n "(cached) $ac_c" 1>&6
15891 ac_save_LIBS="$LIBS"
15893 cat > conftest.$ac_ext <<EOF
15894 #line 15895 "configure"
15895 #include "confdefs.h"
15896 /* Override any gcc2 internal prototype to avoid an error. */
15897 /* We use char because int might match the return type of a gcc2
15898 builtin and then its argument prototype would still apply. */
15905 if { (eval echo configure:15906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15907 eval "ac_cv_lib_$ac_lib_var=yes"
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15912 eval "ac_cv_lib_$ac_lib_var=no"
15915 LIBS="$ac_save_LIBS"
15918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15919 echo "$ac_t""yes" 1>&6
15922 echo "$ac_t""no" 1>&6
15927 if test $have_lwp = yes ; then
15928 cat >> confdefs.h <<\EOF
15932 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15933 ol_link_threads=lwp
15935 if test $ol_with_yielding_select = auto ; then
15936 ol_with_yielding_select=no
15942 if test $ol_with_yielding_select = yes ; then
15943 cat >> confdefs.h <<\EOF
15944 #define HAVE_YIELDING_SELECT 1
15949 if test $ol_with_threads = manual ; then
15950 ol_link_threads=yes
15952 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15954 for ac_hdr in pthread.h sched.h
15956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15958 echo "configure:15959: checking for $ac_hdr" >&5
15959 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15960 echo $ac_n "(cached) $ac_c" 1>&6
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15968 { (eval echo configure:15969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15970 if test -z "$ac_err"; then
15972 eval "ac_cv_header_$ac_safe=yes"
15975 echo "configure: failed program was:" >&5
15976 cat conftest.$ac_ext >&5
15978 eval "ac_cv_header_$ac_safe=no"
15982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15983 echo "$ac_t""yes" 1>&6
15984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15985 cat >> confdefs.h <<EOF
15986 #define $ac_tr_hdr 1
15990 echo "$ac_t""no" 1>&6
15994 for ac_func in sched_yield pthread_yield
15996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15997 echo "configure:15998: checking for $ac_func" >&5
15998 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15999 echo $ac_n "(cached) $ac_c" 1>&6
16001 cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 /* System header to define __stub macros and hopefully few prototypes,
16005 which can conflict with char $ac_func(); below. */
16006 #include <assert.h>
16007 /* Override any gcc2 internal prototype to avoid an error. */
16008 /* We use char because int might match the return type of a gcc2
16009 builtin and then its argument prototype would still apply. */
16015 /* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
16018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16026 if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16028 eval "ac_cv_func_$ac_func=yes"
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16033 eval "ac_cv_func_$ac_func=no"
16038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16041 cat >> confdefs.h <<EOF
16042 #define $ac_tr_func 1
16046 echo "$ac_t""no" 1>&6
16051 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16052 echo "configure:16053: checking for LinuxThreads pthread.h" >&5
16053 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16054 echo $ac_n "(cached) $ac_c" 1>&6
16056 cat > conftest.$ac_ext <<EOF
16057 #line 16058 "configure"
16058 #include "confdefs.h"
16059 #include <pthread.h>
16061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16062 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16064 ol_cv_header_linux_threads=yes
16067 ol_cv_header_linux_threads=no
16074 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16075 if test $ol_cv_header_linux_threads = yes; then
16076 cat >> confdefs.h <<\EOF
16077 #define HAVE_LINUX_THREADS 1
16083 for ac_hdr in mach/cthreads.h
16085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16087 echo "configure:16088: checking for $ac_hdr" >&5
16088 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16089 echo $ac_n "(cached) $ac_c" 1>&6
16091 cat > conftest.$ac_ext <<EOF
16092 #line 16093 "configure"
16093 #include "confdefs.h"
16096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16097 { (eval echo configure:16098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16099 if test -z "$ac_err"; then
16101 eval "ac_cv_header_$ac_safe=yes"
16104 echo "configure: failed program was:" >&5
16105 cat conftest.$ac_ext >&5
16107 eval "ac_cv_header_$ac_safe=no"
16111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16112 echo "$ac_t""yes" 1>&6
16113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16114 cat >> confdefs.h <<EOF
16115 #define $ac_tr_hdr 1
16119 echo "$ac_t""no" 1>&6
16123 for ac_hdr in lwp/lwp.h
16125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16127 echo "configure:16128: checking for $ac_hdr" >&5
16128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16129 echo $ac_n "(cached) $ac_c" 1>&6
16131 cat > conftest.$ac_ext <<EOF
16132 #line 16133 "configure"
16133 #include "confdefs.h"
16136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16137 { (eval echo configure:16138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16139 if test -z "$ac_err"; then
16141 eval "ac_cv_header_$ac_safe=yes"
16144 echo "configure: failed program was:" >&5
16145 cat conftest.$ac_ext >&5
16147 eval "ac_cv_header_$ac_safe=no"
16151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16152 echo "$ac_t""yes" 1>&6
16153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16154 cat >> confdefs.h <<EOF
16155 #define $ac_tr_hdr 1
16159 echo "$ac_t""no" 1>&6
16163 for ac_hdr in thread.h synch.h
16165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16167 echo "configure:16168: checking for $ac_hdr" >&5
16168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16169 echo $ac_n "(cached) $ac_c" 1>&6
16171 cat > conftest.$ac_ext <<EOF
16172 #line 16173 "configure"
16173 #include "confdefs.h"
16176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16177 { (eval echo configure:16178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16179 if test -z "$ac_err"; then
16181 eval "ac_cv_header_$ac_safe=yes"
16184 echo "configure: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16187 eval "ac_cv_header_$ac_safe=no"
16191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16192 echo "$ac_t""yes" 1>&6
16193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16194 cat >> confdefs.h <<EOF
16195 #define $ac_tr_hdr 1
16199 echo "$ac_t""no" 1>&6
16205 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16206 cat >> confdefs.h <<\EOF
16207 #define REENTRANT 1
16210 cat >> confdefs.h <<\EOF
16211 #define _REENTRANT 1
16214 cat >> confdefs.h <<\EOF
16215 #define THREAD_SAFE 1
16218 cat >> confdefs.h <<\EOF
16219 #define _THREAD_SAFE 1
16222 cat >> confdefs.h <<\EOF
16223 #define THREADSAFE 1
16226 cat >> confdefs.h <<\EOF
16227 #define _THREADSAFE 1
16230 cat >> confdefs.h <<\EOF
16231 #define _SGI_MP_SOURCE 1
16235 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16236 echo "configure:16237: checking for thread specific errno" >&5
16237 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16238 echo $ac_n "(cached) $ac_c" 1>&6
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16249 if { (eval echo configure:16250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16251 ol_cv_errno_thread_specific=yes
16253 echo "configure: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16256 ol_cv_errno_thread_specific=no
16262 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16264 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16265 echo "configure:16266: checking for thread specific h_errno" >&5
16266 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16267 echo $ac_n "(cached) $ac_c" 1>&6
16270 cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16278 if { (eval echo configure:16279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16280 ol_cv_h_errno_thread_specific=yes
16282 echo "configure: failed program was:" >&5
16283 cat conftest.$ac_ext >&5
16285 ol_cv_h_errno_thread_specific=no
16291 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16293 if test $ol_cv_errno_thread_specific != yes \
16294 -o $ol_cv_h_errno_thread_specific != yes ; then
16295 LIBS="$LTHREAD_LIBS $LIBS"
16301 if test $ol_link_threads = no ; then
16302 if test $ol_with_threads = yes ; then
16303 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16306 if test $ol_with_threads = auto ; then
16307 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16311 cat >> confdefs.h <<\EOF
16312 #define NO_THREADS 1
16318 if test $ol_link_threads != no ; then
16319 cat >> confdefs.h <<\EOF
16320 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16327 gethostbyname_r gethostbyaddr_r \
16330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16331 echo "configure:16332: checking for $ac_func" >&5
16332 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16333 echo $ac_n "(cached) $ac_c" 1>&6
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16338 /* System header to define __stub macros and hopefully few prototypes,
16339 which can conflict with char $ac_func(); below. */
16340 #include <assert.h>
16341 /* Override any gcc2 internal prototype to avoid an error. */
16342 /* We use char because int might match the return type of a gcc2
16343 builtin and then its argument prototype would still apply. */
16349 /* The GNU C library defines this for functions which it implements
16350 to always fail with ENOSYS. Some functions are actually named
16351 something starting with __ and the normal name is an alias. */
16352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16360 if { (eval echo configure:16361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16362 eval "ac_cv_func_$ac_func=yes"
16364 echo "configure: failed program was:" >&5
16365 cat conftest.$ac_ext >&5
16367 eval "ac_cv_func_$ac_func=no"
16372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16373 echo "$ac_t""yes" 1>&6
16374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16375 cat >> confdefs.h <<EOF
16376 #define $ac_tr_func 1
16380 echo "$ac_t""no" 1>&6
16385 if test "$ac_cv_func_ctime_r" = no ; then
16386 ol_cv_func_ctime_r_nargs=0
16388 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16389 echo "configure:16390: checking number of arguments of ctime_r" >&5
16390 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16391 echo $ac_n "(cached) $ac_c" 1>&6
16393 cat > conftest.$ac_ext <<EOF
16394 #line 16395 "configure"
16395 #include "confdefs.h"
16398 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16401 if { (eval echo configure:16402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16403 ol_cv_func_ctime_r_nargs3=yes
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16408 ol_cv_func_ctime_r_nargs3=no
16412 cat > conftest.$ac_ext <<EOF
16413 #line 16414 "configure"
16414 #include "confdefs.h"
16417 time_t ti; char *buffer; ctime_r(&ti,buffer);
16420 if { (eval echo configure:16421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16422 ol_cv_func_ctime_r_nargs2=yes
16424 echo "configure: failed program was:" >&5
16425 cat conftest.$ac_ext >&5
16427 ol_cv_func_ctime_r_nargs2=no
16431 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16432 $ol_cv_func_ctime_r_nargs2 = no ; then
16434 ol_cv_func_ctime_r_nargs=3
16436 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16437 $ol_cv_func_ctime_r_nargs2 = yes ; then
16439 ol_cv_func_ctime_r_nargs=2
16442 ol_cv_func_ctime_r_nargs=0
16447 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16449 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16450 cat >> confdefs.h <<EOF
16451 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16458 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16459 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16460 echo "configure:16461: checking number of arguments of gethostbyname_r" >&5
16461 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16462 echo $ac_n "(cached) $ac_c" 1>&6
16464 cat > conftest.$ac_ext <<EOF
16465 #line 16466 "configure"
16466 #include "confdefs.h"
16467 #include <sys/types.h>
16468 #include <sys/socket.h>
16469 #include <netinet/in.h>
16471 #define BUFSIZE (sizeof(struct hostent)+10)
16473 struct hostent hent; char buffer[BUFSIZE];
16474 int bufsize=BUFSIZE;int h_errno;
16475 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16476 buffer, bufsize, &h_errno);
16479 if { (eval echo configure:16480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16481 ol_cv_func_gethostbyname_r_nargs5=yes
16483 echo "configure: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16486 ol_cv_func_gethostbyname_r_nargs5=no
16490 cat > conftest.$ac_ext <<EOF
16491 #line 16492 "configure"
16492 #include "confdefs.h"
16493 #include <sys/types.h>
16494 #include <sys/socket.h>
16495 #include <netinet/in.h>
16497 #define BUFSIZE (sizeof(struct hostent)+10)
16499 struct hostent hent;struct hostent *rhent;
16500 char buffer[BUFSIZE];
16501 int bufsize=BUFSIZE;int h_errno;
16502 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16506 if { (eval echo configure:16507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16508 ol_cv_func_gethostbyname_r_nargs6=yes
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16513 ol_cv_func_gethostbyname_r_nargs6=no
16517 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16518 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16520 ol_cv_func_gethostbyname_r_nargs=5
16522 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16523 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16525 ol_cv_func_gethostbyname_r_nargs=6
16528 ol_cv_func_gethostbyname_r_nargs=0
16533 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16534 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16535 cat >> confdefs.h <<EOF
16536 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16542 ol_cv_func_gethostbyname_r_nargs=0
16545 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16546 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16547 echo "configure:16548: checking number of arguments of gethostbyaddr_r" >&5
16548 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16549 echo $ac_n "(cached) $ac_c" 1>&6
16551 cat > conftest.$ac_ext <<EOF
16552 #line 16553 "configure"
16553 #include "confdefs.h"
16554 #include <sys/types.h>
16555 #include <sys/socket.h>
16556 #include <netinet/in.h>
16558 #define BUFSIZE (sizeof(struct hostent)+10)
16560 struct hostent hent; char buffer[BUFSIZE];
16561 struct in_addr add;
16562 size_t alen=sizeof(struct in_addr);
16563 int bufsize=BUFSIZE;int h_errno;
16564 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16565 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16568 if { (eval echo configure:16569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16570 ol_cv_func_gethostbyaddr_r_nargs7=yes
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16575 ol_cv_func_gethostbyaddr_r_nargs7=no
16579 cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16582 #include <sys/types.h>
16583 #include <sys/socket.h>
16584 #include <netinet/in.h>
16586 #define BUFSIZE (sizeof(struct hostent)+10)
16588 struct hostent hent;
16589 struct hostent *rhent; char buffer[BUFSIZE];
16590 struct in_addr add;
16591 size_t alen=sizeof(struct in_addr);
16592 int bufsize=BUFSIZE;int h_errno;
16593 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16594 alen, AF_INET, &hent, buffer, bufsize,
16598 if { (eval echo configure:16599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16600 ol_cv_func_gethostbyaddr_r_nargs8=yes
16602 echo "configure: failed program was:" >&5
16603 cat conftest.$ac_ext >&5
16605 ol_cv_func_gethostbyaddr_r_nargs8=no
16609 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16610 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16612 ol_cv_func_gethostbyaddr_r_nargs=7
16614 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16615 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16617 ol_cv_func_gethostbyaddr_r_nargs=8
16620 ol_cv_func_gethostbyaddr_r_nargs=0
16625 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16626 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16627 cat >> confdefs.h <<EOF
16628 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16634 ol_cv_func_gethostbyaddr_r_nargs=0
16639 if test $ol_with_ldbm_api = auto \
16640 -o $ol_with_ldbm_api = berkeley \
16641 -o $ol_with_ldbm_api = bcompat ; then
16643 if test $ol_with_ldbm_api = bcompat; then \
16644 for ac_hdr in db_185.h db.h
16646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16648 echo "configure:16649: checking for $ac_hdr" >&5
16649 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16650 echo $ac_n "(cached) $ac_c" 1>&6
16652 cat > conftest.$ac_ext <<EOF
16653 #line 16654 "configure"
16654 #include "confdefs.h"
16657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16658 { (eval echo configure:16659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16660 if test -z "$ac_err"; then
16662 eval "ac_cv_header_$ac_safe=yes"
16665 echo "configure: failed program was:" >&5
16666 cat conftest.$ac_ext >&5
16668 eval "ac_cv_header_$ac_safe=no"
16672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16673 echo "$ac_t""yes" 1>&6
16674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16675 cat >> confdefs.h <<EOF
16676 #define $ac_tr_hdr 1
16680 echo "$ac_t""no" 1>&6
16684 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16685 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16686 echo "configure:16687: checking if Berkeley DB header compatibility" >&5
16687 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16688 echo $ac_n "(cached) $ac_c" 1>&6
16691 cat > conftest.$ac_ext <<EOF
16692 #line 16693 "configure"
16693 #include "confdefs.h"
16696 # include <db_185.h>
16701 /* this check could be improved */
16702 #ifndef DB_VERSION_MAJOR
16703 # define DB_VERSION_MAJOR 1
16706 #if DB_VERSION_MAJOR == 1
16711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16712 egrep "__db_version_1" >/dev/null 2>&1; then
16714 ol_cv_header_db1=yes
16717 ol_cv_header_db1=no
16723 echo "$ac_t""$ol_cv_header_db1" 1>&6
16725 if test $ol_cv_header_db1 = yes ; then
16727 if test $ol_cv_lib_db = no ; then
16728 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16729 echo "configure:16730: checking for Berkeley DB link (default)" >&5
16730 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16731 echo $ac_n "(cached) $ac_c" 1>&6
16736 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16738 cat > conftest.$ac_ext <<EOF
16739 #line 16740 "configure"
16740 #include "confdefs.h"
16742 #ifdef HAVE_DB_185_H
16743 # include <db_185.h>
16748 #ifndef DB_VERSION_MAJOR
16749 # define DB_VERSION_MAJOR 1
16753 #define NULL ((void*)0)
16758 #if DB_VERSION_MAJOR > 1
16761 int major, minor, patch;
16763 version = db_version( &major, &minor, &patch );
16765 if( major != DB_VERSION_MAJOR ||
16766 minor < DB_VERSION_MINOR )
16768 printf("Berkeley DB version mismatch\n"
16769 "\texpected: %s\n\tgot: %s\n",
16770 DB_VERSION_STRING, version);
16776 #if DB_VERSION_MAJOR > 2
16777 db_env_create( NULL, 0 );
16778 #elif DB_VERSION_MAJOR > 1
16779 db_appexit( NULL );
16781 (void) dbopen( NULL, 0, 0, 0, NULL);
16786 if { (eval echo configure:16787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16801 echo "$ac_t""$ol_cv_db_none" 1>&6
16803 if test $ol_cv_db_none = yes ; then
16808 if test $ol_cv_lib_db = no ; then
16809 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16810 echo "configure:16811: checking for Berkeley DB link (-ldb4)" >&5
16811 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16819 cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16823 #ifdef HAVE_DB_185_H
16824 # include <db_185.h>
16829 #ifndef DB_VERSION_MAJOR
16830 # define DB_VERSION_MAJOR 1
16834 #define NULL ((void*)0)
16839 #if DB_VERSION_MAJOR > 1
16842 int major, minor, patch;
16844 version = db_version( &major, &minor, &patch );
16846 if( major != DB_VERSION_MAJOR ||
16847 minor < DB_VERSION_MINOR )
16849 printf("Berkeley DB version mismatch\n"
16850 "\texpected: %s\n\tgot: %s\n",
16851 DB_VERSION_STRING, version);
16857 #if DB_VERSION_MAJOR > 2
16858 db_env_create( NULL, 0 );
16859 #elif DB_VERSION_MAJOR > 1
16860 db_appexit( NULL );
16862 (void) dbopen( NULL, 0, 0, 0, NULL);
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16882 echo "$ac_t""$ol_cv_db_db4" 1>&6
16884 if test $ol_cv_db_db4 = yes ; then
16889 if test $ol_cv_lib_db = no ; then
16890 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16891 echo "configure:16892: checking for Berkeley DB link (-ldb-4)" >&5
16892 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16893 echo $ac_n "(cached) $ac_c" 1>&6
16898 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16900 cat > conftest.$ac_ext <<EOF
16901 #line 16902 "configure"
16902 #include "confdefs.h"
16904 #ifdef HAVE_DB_185_H
16905 # include <db_185.h>
16910 #ifndef DB_VERSION_MAJOR
16911 # define DB_VERSION_MAJOR 1
16915 #define NULL ((void*)0)
16920 #if DB_VERSION_MAJOR > 1
16923 int major, minor, patch;
16925 version = db_version( &major, &minor, &patch );
16927 if( major != DB_VERSION_MAJOR ||
16928 minor < DB_VERSION_MINOR )
16930 printf("Berkeley DB version mismatch\n"
16931 "\texpected: %s\n\tgot: %s\n",
16932 DB_VERSION_STRING, version);
16938 #if DB_VERSION_MAJOR > 2
16939 db_env_create( NULL, 0 );
16940 #elif DB_VERSION_MAJOR > 1
16941 db_appexit( NULL );
16943 (void) dbopen( NULL, 0, 0, 0, NULL);
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16963 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16965 if test $ol_cv_db_db_4 = yes ; then
16966 ol_cv_lib_db=-ldb-4
16970 if test $ol_cv_lib_db = no ; then
16971 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16972 echo "configure:16973: checking for Berkeley DB link (-ldb)" >&5
16973 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16974 echo $ac_n "(cached) $ac_c" 1>&6
16979 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16983 "configure"
16983 #include "confdefs.h"
16985 #ifdef HAVE_DB_185_H
16986 # include <db_185.h>
16991 #ifndef DB_VERSION_MAJOR
16992 # define DB_VERSION_MAJOR 1
16996 #define NULL ((void*)0)
17001 #if DB_VERSION_MAJOR > 1
17004 int major, minor, patch;
17006 version = db_version( &major, &minor, &patch );
17008 if( major != DB_VERSION_MAJOR ||
17009 minor < DB_VERSION_MINOR )
17011 printf("Berkeley DB version mismatch\n"
17012 "\texpected: %s\n\tgot: %s\n",
17013 DB_VERSION_STRING, version);
17019 #if DB_VERSION_MAJOR > 2
17020 db_env_create( NULL, 0 );
17021 #elif DB_VERSION_MAJOR > 1
17022 db_appexit( NULL );
17024 (void) dbopen( NULL, 0, 0, 0, NULL);
17029 if { (eval echo configure:17030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 echo "configure: failed program was:" >&5
17034 cat conftest.$ac_ext >&5
17044 echo "$ac_t""$ol_cv_db_db" 1>&6
17046 if test $ol_cv_db_db = yes ; then
17051 if test $ol_cv_lib_db = no ; then
17052 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17053 echo "configure:17054: checking for Berkeley DB link (-ldb3)" >&5
17054 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17055 echo $ac_n "(cached) $ac_c" 1>&6
17060 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17062 cat > conftest.$ac_ext <<EOF
17063 #line 17064 "configure"
17064 #include "confdefs.h"
17066 #ifdef HAVE_DB_185_H
17067 # include <db_185.h>
17072 #ifndef DB_VERSION_MAJOR
17073 # define DB_VERSION_MAJOR 1
17077 #define NULL ((void*)0)
17082 #if DB_VERSION_MAJOR > 1
17085 int major, minor, patch;
17087 version = db_version( &major, &minor, &patch );
17089 if( major != DB_VERSION_MAJOR ||
17090 minor < DB_VERSION_MINOR )
17092 printf("Berkeley DB version mismatch\n"
17093 "\texpected: %s\n\tgot: %s\n",
17094 DB_VERSION_STRING, version);
17100 #if DB_VERSION_MAJOR > 2
17101 db_env_create( NULL, 0 );
17102 #elif DB_VERSION_MAJOR > 1
17103 db_appexit( NULL );
17105 (void) dbopen( NULL, 0, 0, 0, NULL);
17110 if { (eval echo configure:17111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17114 echo "configure: failed program was:" >&5
17115 cat conftest.$ac_ext >&5
17125 echo "$ac_t""$ol_cv_db_db3" 1>&6
17127 if test $ol_cv_db_db3 = yes ; then
17132 if test $ol_cv_lib_db = no ; then
17133 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17134 echo "configure:17135: checking for Berkeley DB link (-ldb-3)" >&5
17135 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17136 echo $ac_n "(cached) $ac_c" 1>&6
17141 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17143 cat > conftest.$ac_ext <<EOF
17144 #line 17145 "configure"
17145 #include "confdefs.h"
17147 #ifdef HAVE_DB_185_H
17148 # include <db_185.h>
17153 #ifndef DB_VERSION_MAJOR
17154 # define DB_VERSION_MAJOR 1
17158 #define NULL ((void*)0)
17163 #if DB_VERSION_MAJOR > 1
17166 int major, minor, patch;
17168 version = db_version( &major, &minor, &patch );
17170 if( major != DB_VERSION_MAJOR ||
17171 minor < DB_VERSION_MINOR )
17173 printf("Berkeley DB version mismatch\n"
17174 "\texpected: %s\n\tgot: %s\n",
17175 DB_VERSION_STRING, version);
17181 #if DB_VERSION_MAJOR > 2
17182 db_env_create( NULL, 0 );
17183 #elif DB_VERSION_MAJOR > 1
17184 db_appexit( NULL );
17186 (void) dbopen( NULL, 0, 0, 0, NULL);
17191 if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17195 echo "configure: failed program was:" >&5
17196 cat conftest.$ac_ext >&5
17206 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17208 if test $ol_cv_db_db_3 = yes ; then
17209 ol_cv_lib_db=-ldb-3
17213 if test $ol_cv_lib_db = no ; then
17214 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17215 echo "configure:17216: checking for Berkeley DB link (-ldb2)" >&5
17216 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
17222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17224 cat > conftest.$ac_ext <<EOF
17225 #line 17226 "configure"
17226 #include "confdefs.h"
17228 #ifdef HAVE_DB_185_H
17229 # include <db_185.h>
17234 #ifndef DB_VERSION_MAJOR
17235 # define DB_VERSION_MAJOR 1
17239 #define NULL ((void*)0)
17244 #if DB_VERSION_MAJOR > 1
17247 int major, minor, patch;
17249 version = db_version( &major, &minor, &patch );
17251 if( major != DB_VERSION_MAJOR ||
17252 minor < DB_VERSION_MINOR )
17254 printf("Berkeley DB version mismatch\n"
17255 "\texpected: %s\n\tgot: %s\n",
17256 DB_VERSION_STRING, version);
17262 #if DB_VERSION_MAJOR > 2
17263 db_env_create( NULL, 0 );
17264 #elif DB_VERSION_MAJOR > 1
17265 db_appexit( NULL );
17267 (void) dbopen( NULL, 0, 0, 0, NULL);
17272 if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17287 echo "$ac_t""$ol_cv_db_db2" 1>&6
17289 if test $ol_cv_db_db2 = yes ; then
17294 if test $ol_cv_lib_db = no ; then
17295 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17296 echo "configure:17297: checking for Berkeley DB link (-ldb-2)" >&5
17297 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17298 echo $ac_n "(cached) $ac_c" 1>&6
17303 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17305 cat > conftest.$ac_ext <<EOF
17306 #line 17307 "configure"
17307 #include "confdefs.h"
17309 #ifdef HAVE_DB_185_H
17310 # include <db_185.h>
17315 #ifndef DB_VERSION_MAJOR
17316 # define DB_VERSION_MAJOR 1
17320 #define NULL ((void*)0)
17325 #if DB_VERSION_MAJOR > 1
17328 int major, minor, patch;
17330 version = db_version( &major, &minor, &patch );
17332 if( major != DB_VERSION_MAJOR ||
17333 minor < DB_VERSION_MINOR )
17335 printf("Berkeley DB version mismatch\n"
17336 "\texpected: %s\n\tgot: %s\n",
17337 DB_VERSION_STRING, version);
17343 #if DB_VERSION_MAJOR > 2
17344 db_env_create( NULL, 0 );
17345 #elif DB_VERSION_MAJOR > 1
17346 db_appexit( NULL );
17348 (void) dbopen( NULL, 0, 0, 0, NULL);
17353 if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17357 echo "configure: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17368 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17370 if test $ol_cv_db_db_2 = yes ; then
17371 ol_cv_lib_db=-ldb-2
17375 if test $ol_cv_lib_db = no ; then
17376 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17377 echo "configure:17378: checking for Berkeley DB link (-ldb1)" >&5
17378 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17379 echo $ac_n "(cached) $ac_c" 1>&6
17384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17386 cat > conftest.$ac_ext <<EOF
17387 #line 17388 "configure"
17388 #include "confdefs.h"
17390 #ifdef HAVE_DB_185_H
17391 # include <db_185.h>
17396 #ifndef DB_VERSION_MAJOR
17397 # define DB_VERSION_MAJOR 1
17401 #define NULL ((void*)0)
17406 #if DB_VERSION_MAJOR > 1
17409 int major, minor, patch;
17411 version = db_version( &major, &minor, &patch );
17413 if( major != DB_VERSION_MAJOR ||
17414 minor < DB_VERSION_MINOR )
17416 printf("Berkeley DB version mismatch\n"
17417 "\texpected: %s\n\tgot: %s\n",
17418 DB_VERSION_STRING, version);
17424 #if DB_VERSION_MAJOR > 2
17425 db_env_create( NULL, 0 );
17426 #elif DB_VERSION_MAJOR > 1
17427 db_appexit( NULL );
17429 (void) dbopen( NULL, 0, 0, 0, NULL);
17434 if { (eval echo configure:17435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17438 echo "configure: failed program was:" >&5
17439 cat conftest.$ac_ext >&5
17449 echo "$ac_t""$ol_cv_db_db1" 1>&6
17451 if test $ol_cv_db_db1 = yes ; then
17456 if test $ol_cv_lib_db = no ; then
17457 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17458 echo "configure:17459: checking for Berkeley DB link (-ldb-1)" >&5
17459 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17460 echo $ac_n "(cached) $ac_c" 1>&6
17465 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17467 cat > conftest.$ac_ext <<EOF
17468 #line 17469 "configure"
17469 #include "confdefs.h"
17471 #ifdef HAVE_DB_185_H
17472 # include <db_185.h>
17477 #ifndef DB_VERSION_MAJOR
17478 # define DB_VERSION_MAJOR 1
17482 #define NULL ((void*)0)
17487 #if DB_VERSION_MAJOR > 1
17490 int major, minor, patch;
17492 version = db_version( &major, &minor, &patch );
17494 if( major != DB_VERSION_MAJOR ||
17495 minor < DB_VERSION_MINOR )
17497 printf("Berkeley DB version mismatch\n"
17498 "\texpected: %s\n\tgot: %s\n",
17499 DB_VERSION_STRING, version);
17505 #if DB_VERSION_MAJOR > 2
17506 db_env_create( NULL, 0 );
17507 #elif DB_VERSION_MAJOR > 1
17508 db_appexit( NULL );
17510 (void) dbopen( NULL, 0, 0, 0, NULL);
17515 if { (eval echo configure:17516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 echo "configure: failed program was:" >&5
17520 cat conftest.$ac_ext >&5
17530 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17532 if test $ol_cv_db_db_1 = yes ; then
17533 ol_cv_lib_db=-ldb-1
17538 if test "$ol_cv_lib_db" != no ; then
17539 ol_cv_berkeley_db=yes
17545 ol_cv_berkeley_db=no
17548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17550 echo "configure:17551: checking for $ac_hdr" >&5
17551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17552 echo $ac_n "(cached) $ac_c" 1>&6
17554 cat > conftest.$ac_ext <<EOF
17555 #line 17556 "configure"
17556 #include "confdefs.h"
17559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17560 { (eval echo configure:17561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17562 if test -z "$ac_err"; then
17564 eval "ac_cv_header_$ac_safe=yes"
17567 echo "configure: failed program was:" >&5
17568 cat conftest.$ac_ext >&5
17570 eval "ac_cv_header_$ac_safe=no"
17574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17575 echo "$ac_t""yes" 1>&6
17576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17577 cat >> confdefs.h <<EOF
17578 #define $ac_tr_hdr 1
17582 echo "$ac_t""no" 1>&6
17586 if test $ac_cv_header_db_h = yes; then
17588 if test $ol_cv_lib_db = no ; then
17589 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17590 echo "configure:17591: checking for Berkeley DB link (default)" >&5
17591 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17592 echo $ac_n "(cached) $ac_c" 1>&6
17597 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17599 cat > conftest.$ac_ext <<EOF
17600 #line 17601 "configure"
17601 #include "confdefs.h"
17603 #ifdef HAVE_DB_185_H
17604 # include <db_185.h>
17609 #ifndef DB_VERSION_MAJOR
17610 # define DB_VERSION_MAJOR 1
17614 #define NULL ((void*)0)
17619 #if DB_VERSION_MAJOR > 1
17622 int major, minor, patch;
17624 version = db_version( &major, &minor, &patch );
17626 if( major != DB_VERSION_MAJOR ||
17627 minor < DB_VERSION_MINOR )
17629 printf("Berkeley DB version mismatch\n"
17630 "\texpected: %s\n\tgot: %s\n",
17631 DB_VERSION_STRING, version);
17637 #if DB_VERSION_MAJOR > 2
17638 db_env_create( NULL, 0 );
17639 #elif DB_VERSION_MAJOR > 1
17640 db_appexit( NULL );
17642 (void) dbopen( NULL, 0, 0, 0, NULL);
17647 if { (eval echo configure:17648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17662 echo "$ac_t""$ol_cv_db_none" 1>&6
17664 if test $ol_cv_db_none = yes ; then
17669 if test $ol_cv_lib_db = no ; then
17670 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17671 echo "configure:17672: checking for Berkeley DB link (-ldb4)" >&5
17672 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17673 echo $ac_n "(cached) $ac_c" 1>&6
17678 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17680 cat > conftest.$ac_ext <<EOF
17681 #line 17682 "configure"
17682 #include "confdefs.h"
17684 #ifdef HAVE_DB_185_H
17685 # include <db_185.h>
17690 #ifndef DB_VERSION_MAJOR
17691 # define DB_VERSION_MAJOR 1
17695 #define NULL ((void*)0)
17700 #if DB_VERSION_MAJOR > 1
17703 int major, minor, patch;
17705 version = db_version( &major, &minor, &patch );
17707 if( major != DB_VERSION_MAJOR ||
17708 minor < DB_VERSION_MINOR )
17710 printf("Berkeley DB version mismatch\n"
17711 "\texpected: %s\n\tgot: %s\n",
17712 DB_VERSION_STRING, version);
17718 #if DB_VERSION_MAJOR > 2
17719 db_env_create( NULL, 0 );
17720 #elif DB_VERSION_MAJOR > 1
17721 db_appexit( NULL );
17723 (void) dbopen( NULL, 0, 0, 0, NULL);
17728 if { (eval echo configure:17729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17732 echo "configure: failed program was:" >&5
17733 cat conftest.$ac_ext >&5
17743 echo "$ac_t""$ol_cv_db_db4" 1>&6
17745 if test $ol_cv_db_db4 = yes ; then
17750 if test $ol_cv_lib_db = no ; then
17751 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17752 echo "configure:17753: checking for Berkeley DB link (-ldb-4)" >&5
17753 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17754 echo $ac_n "(cached) $ac_c" 1>&6
17759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17761 cat > conftest.$ac_ext <<EOF
17762 #line 17763 "configure"
17763 #include "confdefs.h"
17765 #ifdef HAVE_DB_185_H
17766 # include <db_185.h>
17771 #ifndef DB_VERSION_MAJOR
17772 # define DB_VERSION_MAJOR 1
17776 #define NULL ((void*)0)
17781 #if DB_VERSION_MAJOR > 1
17784 int major, minor, patch;
17786 version = db_version( &major, &minor, &patch );
17788 if( major != DB_VERSION_MAJOR ||
17789 minor < DB_VERSION_MINOR )
17791 printf("Berkeley DB version mismatch\n"
17792 "\texpected: %s\n\tgot: %s\n",
17793 DB_VERSION_STRING, version);
17799 #if DB_VERSION_MAJOR > 2
17800 db_env_create( NULL, 0 );
17801 #elif DB_VERSION_MAJOR > 1
17802 db_appexit( NULL );
17804 (void) dbopen( NULL, 0, 0, 0, NULL);
17809 if { (eval echo configure:17810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17813 echo "configure: failed program was:" >&5
17814 cat conftest.$ac_ext >&5
17824 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17826 if test $ol_cv_db_db_4 = yes ; then
17827 ol_cv_lib_db=-ldb-4
17831 if test $ol_cv_lib_db = no ; then
17832 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17833 echo "configure:17834: checking for Berkeley DB link (-ldb)" >&5
17834 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17840 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17842 cat > conftest.$ac_ext <<EOF
17843 #line 17844 "configure"
17844 #include "confdefs.h"
17846 #ifdef HAVE_DB_185_H
17847 # include <db_185.h>
17852 #ifndef DB_VERSION_MAJOR
17853 # define DB_VERSION_MAJOR 1
17857 #define NULL ((void*)0)
17862 #if DB_VERSION_MAJOR > 1
17865 int major, minor, patch;
17867 version = db_version( &major, &minor, &patch );
17869 if( major != DB_VERSION_MAJOR ||
17870 minor < DB_VERSION_MINOR )
17872 printf("Berkeley DB version mismatch\n"
17873 "\texpected: %s\n\tgot: %s\n",
17874 DB_VERSION_STRING, version);
17880 #if DB_VERSION_MAJOR > 2
17881 db_env_create( NULL, 0 );
17882 #elif DB_VERSION_MAJOR > 1
17883 db_appexit( NULL );
17885 (void) dbopen( NULL, 0, 0, 0, NULL);
17890 if { (eval echo configure:17891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17894 echo "configure: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17905 echo "$ac_t""$ol_cv_db_db" 1>&6
17907 if test $ol_cv_db_db = yes ; then
17912 if test $ol_cv_lib_db = no ; then
17913 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17914 echo "configure:17915: checking for Berkeley DB link (-ldb3)" >&5
17915 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17916 echo $ac_n "(cached) $ac_c" 1>&6
17921 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17923 cat > conftest.$ac_ext <<EOF
17924 #line 17925 "configure"
17925 #include "confdefs.h"
17927 #ifdef HAVE_DB_185_H
17928 # include <db_185.h>
17933 #ifndef DB_VERSION_MAJOR
17934 # define DB_VERSION_MAJOR 1
17938 #define NULL ((void*)0)
17943 #if DB_VERSION_MAJOR > 1
17946 int major, minor, patch;
17948 version = db_version( &major, &minor, &patch );
17950 if( major != DB_VERSION_MAJOR ||
17951 minor < DB_VERSION_MINOR )
17953 printf("Berkeley DB version mismatch\n"
17954 "\texpected: %s\n\tgot: %s\n",
17955 DB_VERSION_STRING, version);
17961 #if DB_VERSION_MAJOR > 2
17962 db_env_create( NULL, 0 );
17963 #elif DB_VERSION_MAJOR > 1
17964 db_appexit( NULL );
17966 (void) dbopen( NULL, 0, 0, 0, NULL);
17971 if { (eval echo configure:17972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17975 echo "configure: failed program was:" >&5
17976 cat conftest.$ac_ext >&5
17986 echo "$ac_t""$ol_cv_db_db3" 1>&6
17988 if test $ol_cv_db_db3 = yes ; then
17993 if test $ol_cv_lib_db = no ; then
17994 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17995 echo "configure:17996: checking for Berkeley DB link (-ldb-3)" >&5
17996 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17997 echo $ac_n "(cached) $ac_c" 1>&6
18002 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18008 #ifdef HAVE_DB_185_H
18009 # include <db_185.h>
18014 #ifndef DB_VERSION_MAJOR
18015 # define DB_VERSION_MAJOR 1
18019 #define NULL ((void*)0)
18024 #if DB_VERSION_MAJOR > 1
18027 int major, minor, patch;
18029 version = db_version( &major, &minor, &patch );
18031 if( major != DB_VERSION_MAJOR ||
18032 minor < DB_VERSION_MINOR )
18034 printf("Berkeley DB version mismatch\n"
18035 "\texpected: %s\n\tgot: %s\n",
18036 DB_VERSION_STRING, version);
18042 #if DB_VERSION_MAJOR > 2
18043 db_env_create( NULL, 0 );
18044 #elif DB_VERSION_MAJOR > 1
18045 db_appexit( NULL );
18047 (void) dbopen( NULL, 0, 0, 0, NULL);
18052 if { (eval echo configure:18053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18056 echo "configure: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18067 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18069 if test $ol_cv_db_db_3 = yes ; then
18070 ol_cv_lib_db=-ldb-3
18074 if test $ol_cv_lib_db = no ; then
18075 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18076 echo "configure:18077: checking for Berkeley DB link (-ldb2)" >&5
18077 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18078 echo $ac_n "(cached) $ac_c" 1>&6
18083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18087 "configure"
18087 #include "confdefs.h"
18089 #ifdef HAVE_DB_185_H
18090 # include <db_185.h>
18095 #ifndef DB_VERSION_MAJOR
18096 # define DB_VERSION_MAJOR 1
18100 #define NULL ((void*)0)
18105 #if DB_VERSION_MAJOR > 1
18108 int major, minor, patch;
18110 version = db_version( &major, &minor, &patch );
18112 if( major != DB_VERSION_MAJOR ||
18113 minor < DB_VERSION_MINOR )
18115 printf("Berkeley DB version mismatch\n"
18116 "\texpected: %s\n\tgot: %s\n",
18117 DB_VERSION_STRING, version);
18123 #if DB_VERSION_MAJOR > 2
18124 db_env_create( NULL, 0 );
18125 #elif DB_VERSION_MAJOR > 1
18126 db_appexit( NULL );
18128 (void) dbopen( NULL, 0, 0, 0, NULL);
18133 if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18137 echo "configure: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18148 echo "$ac_t""$ol_cv_db_db2" 1>&6
18150 if test $ol_cv_db_db2 = yes ; then
18155 if test $ol_cv_lib_db = no ; then
18156 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18157 echo "configure:18158: checking for Berkeley DB link (-ldb-2)" >&5
18158 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18159 echo $ac_n "(cached) $ac_c" 1>&6
18164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18170 #ifdef HAVE_DB_185_H
18171 # include <db_185.h>
18176 #ifndef DB_VERSION_MAJOR
18177 # define DB_VERSION_MAJOR 1
18181 #define NULL ((void*)0)
18186 #if DB_VERSION_MAJOR > 1
18189 int major, minor, patch;
18191 version = db_version( &major, &minor, &patch );
18193 if( major != DB_VERSION_MAJOR ||
18194 minor < DB_VERSION_MINOR )
18196 printf("Berkeley DB version mismatch\n"
18197 "\texpected: %s\n\tgot: %s\n",
18198 DB_VERSION_STRING, version);
18204 #if DB_VERSION_MAJOR > 2
18205 db_env_create( NULL, 0 );
18206 #elif DB_VERSION_MAJOR > 1
18207 db_appexit( NULL );
18209 (void) dbopen( NULL, 0, 0, 0, NULL);
18214 if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18229 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18231 if test $ol_cv_db_db_2 = yes ; then
18232 ol_cv_lib_db=-ldb-2
18236 if test $ol_cv_lib_db = no ; then
18237 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18238 echo "configure:18239: checking for Berkeley DB link (-ldb1)" >&5
18239 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18245 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18247 cat > conftest.$ac_ext <<EOF
18248 #line 18249 "configure"
18249 #include "confdefs.h"
18251 #ifdef HAVE_DB_185_H
18252 # include <db_185.h>
18257 #ifndef DB_VERSION_MAJOR
18258 # define DB_VERSION_MAJOR 1
18262 #define NULL ((void*)0)
18267 #if DB_VERSION_MAJOR > 1
18270 int major, minor, patch;
18272 version = db_version( &major, &minor, &patch );
18274 if( major != DB_VERSION_MAJOR ||
18275 minor < DB_VERSION_MINOR )
18277 printf("Berkeley DB version mismatch\n"
18278 "\texpected: %s\n\tgot: %s\n",
18279 DB_VERSION_STRING, version);
18285 #if DB_VERSION_MAJOR > 2
18286 db_env_create( NULL, 0 );
18287 #elif DB_VERSION_MAJOR > 1
18288 db_appexit( NULL );
18290 (void) dbopen( NULL, 0, 0, 0, NULL);
18295 if { (eval echo configure:18296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18299 echo "configure: failed program was:" >&5
18300 cat conftest.$ac_ext >&5
18310 echo "$ac_t""$ol_cv_db_db1" 1>&6
18312 if test $ol_cv_db_db1 = yes ; then
18317 if test $ol_cv_lib_db = no ; then
18318 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18319 echo "configure:18320: checking for Berkeley DB link (-ldb-1)" >&5
18320 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18321 echo $ac_n "(cached) $ac_c" 1>&6
18326 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18328 cat > conftest.$ac_ext <<EOF
18329 #line 18330 "configure"
18330 #include "confdefs.h"
18332 #ifdef HAVE_DB_185_H
18333 # include <db_185.h>
18338 #ifndef DB_VERSION_MAJOR
18339 # define DB_VERSION_MAJOR 1
18343 #define NULL ((void*)0)
18348 #if DB_VERSION_MAJOR > 1
18351 int major, minor, patch;
18353 version = db_version( &major, &minor, &patch );
18355 if( major != DB_VERSION_MAJOR ||
18356 minor < DB_VERSION_MINOR )
18358 printf("Berkeley DB version mismatch\n"
18359 "\texpected: %s\n\tgot: %s\n",
18360 DB_VERSION_STRING, version);
18366 #if DB_VERSION_MAJOR > 2
18367 db_env_create( NULL, 0 );
18368 #elif DB_VERSION_MAJOR > 1
18369 db_appexit( NULL );
18371 (void) dbopen( NULL, 0, 0, 0, NULL);
18376 if { (eval echo configure:18377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18380 echo "configure: failed program was:" >&5
18381 cat conftest.$ac_ext >&5
18391 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18393 if test $ol_cv_db_db_1 = yes ; then
18394 ol_cv_lib_db=-ldb-1
18399 if test "$ol_cv_lib_db" != no ; then
18400 ol_cv_berkeley_db=yes
18401 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18402 echo "configure:18403: checking for Berkeley DB thread support" >&5
18403 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18404 echo $ac_n "(cached) $ac_c" 1>&6
18408 LIBS="$LTHREAD_LIBS $LIBS"
18409 if test $ol_cv_lib_db != yes ; then
18410 LIBS="$ol_cv_lib_db $LIBS"
18413 if test "$cross_compiling" = yes; then
18414 ol_cv_berkeley_db_thread=cross
18416 cat > conftest.$ac_ext <<EOF
18417 #line 18418 "configure"
18418 #include "confdefs.h"
18420 #ifdef HAVE_DB_185_H
18426 #define NULL ((void *)0)
18431 u_int32_t flags = DB_CREATE |
18437 #if DB_VERSION_MAJOR > 2
18438 DB_ENV *env = NULL;
18440 rc = db_env_create( &env, 0 );
18442 flags |= DB_INIT_MPOOL;
18443 #ifdef DB_MPOOL_PRIVATE
18444 flags |= DB_MPOOL_PRIVATE;
18448 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18452 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18453 rc = env->open( env, NULL, flags, 0 );
18455 rc = env->open( env, NULL, NULL, flags, 0 );
18459 rc = env->close( env, 0 );
18463 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18469 memset( &env, '\0', sizeof(env) );
18471 rc = db_appinit( NULL, NULL, &env, flags );
18474 db_appexit( &env );
18477 unlink("__db_mpool.share");
18478 unlink("__db_lock.share");
18484 if { (eval echo configure:18485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18486 ol_cv_berkeley_db_thread=yes
18488 echo "configure: failed program was:" >&5
18489 cat conftest.$ac_ext >&5
18491 ol_cv_berkeley_db_thread=no
18501 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18503 if test $ol_cv_berkeley_db_thread != no ; then
18504 cat >> confdefs.h <<\EOF
18505 #define HAVE_BERKELEY_DB_THREAD 1
18515 if test $ol_cv_berkeley_db != no ; then
18516 cat >> confdefs.h <<\EOF
18517 #define HAVE_BERKELEY_DB 1
18521 ol_link_ldbm=berkeley
18522 ol_with_ldbm_api=berkeley
18524 if test $ol_with_ldbm_type = hash ; then
18525 cat >> confdefs.h <<\EOF
18526 #define LDBM_USE_DBHASH 1
18530 cat >> confdefs.h <<\EOF
18531 #define LDBM_USE_DBBTREE 1
18536 if test $ol_cv_lib_db != yes ; then
18537 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18542 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18543 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18544 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18545 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18546 echo "configure:18547: checking Berkeley DB version for BDB backend" >&5
18547 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18548 echo $ac_n "(cached) $ac_c" 1>&6
18551 cat > conftest.$ac_ext <<EOF
18552 #line 18553 "configure"
18553 #include "confdefs.h"
18557 /* this check could be improved */
18558 #ifndef DB_VERSION_MAJOR
18559 # define DB_VERSION_MAJOR 1
18562 /* require 4.0 or later */
18563 #if DB_VERSION_MAJOR >= 4
18564 __db_version_compat
18568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18569 egrep "__db_version_compat" >/dev/null 2>&1; then
18571 ol_cv_bdb_compat=yes
18574 ol_cv_bdb_compat=no
18580 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18583 if test $ol_cv_bdb_compat = yes ; then
18585 elif test $ol_enable_bdb = yes ; then
18586 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18592 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18593 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18594 ol_with_ldbm_api=none
18597 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18598 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18599 echo "configure:18600: checking for MDBM library" >&5
18600 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18601 echo $ac_n "(cached) $ac_c" 1>&6
18604 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18605 echo "configure:18606: checking for mdbm_set_chain" >&5
18606 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18607 echo $ac_n "(cached) $ac_c" 1>&6
18609 cat > conftest.$ac_ext <<EOF
18610 #line 18611 "configure"
18611 #include "confdefs.h"
18612 /* System header to define __stub macros and hopefully few prototypes,
18613 which can conflict with char mdbm_set_chain(); below. */
18614 #include <assert.h>
18615 /* Override any gcc2 internal prototype to avoid an error. */
18616 /* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618 char mdbm_set_chain();
18623 /* The GNU C library defines this for functions which it implements
18624 to always fail with ENOSYS. Some functions are actually named
18625 something starting with __ and the normal name is an alias. */
18626 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18629 f = mdbm_set_chain;
18634 if { (eval echo configure:18635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18636 eval "ac_cv_func_mdbm_set_chain=yes"
18638 echo "configure: failed program was:" >&5
18639 cat conftest.$ac_ext >&5
18641 eval "ac_cv_func_mdbm_set_chain=no"
18646 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18647 echo "$ac_t""yes" 1>&6
18650 echo "$ac_t""no" 1>&6
18652 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18653 echo "configure:18654: checking for mdbm_set_chain in -lmdbm" >&5
18654 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18655 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18656 echo $ac_n "(cached) $ac_c" 1>&6
18658 ac_save_LIBS="$LIBS"
18659 LIBS="-lmdbm $LIBS"
18660 cat > conftest.$ac_ext <<EOF
18661 #line 18662 "configure"
18662 #include "confdefs.h"
18663 /* Override any gcc2 internal prototype to avoid an error. */
18664 /* We use char because int might match the return type of a gcc2
18665 builtin and then its argument prototype would still apply. */
18666 char mdbm_set_chain();
18672 if { (eval echo configure:18673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18674 eval "ac_cv_lib_$ac_lib_var=yes"
18676 echo "configure: failed program was:" >&5
18677 cat conftest.$ac_ext >&5
18679 eval "ac_cv_lib_$ac_lib_var=no"
18682 LIBS="$ac_save_LIBS"
18685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18686 echo "$ac_t""yes" 1>&6
18687 ol_cv_lib_mdbm=-lmdbm
18689 echo "$ac_t""no" 1>&6
18700 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18703 for ac_hdr in mdbm.h
18705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18707 echo "configure:18708: checking for $ac_hdr" >&5
18708 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18709 echo $ac_n "(cached) $ac_c" 1>&6
18711 cat > conftest.$ac_ext <<EOF
18712 #line 18713 "configure"
18713 #include "confdefs.h"
18716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18717 { (eval echo configure:18718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18719 if test -z "$ac_err"; then
18721 eval "ac_cv_header_$ac_safe=yes"
18724 echo "configure: failed program was:" >&5
18725 cat conftest.$ac_ext >&5
18727 eval "ac_cv_header_$ac_safe=no"
18731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18732 echo "$ac_t""yes" 1>&6
18733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18734 cat >> confdefs.h <<EOF
18735 #define $ac_tr_hdr 1
18739 echo "$ac_t""no" 1>&6
18743 echo $ac_n "checking for db""... $ac_c" 1>&6
18744 echo "configure:18745: checking for db" >&5
18745 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18746 echo $ac_n "(cached) $ac_c" 1>&6
18749 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18757 echo "$ac_t""$ol_cv_mdbm" 1>&6
18758 if test $ol_cv_mdbm = yes ; then
18759 cat >> confdefs.h <<\EOF
18760 #define HAVE_MDBM 1
18766 if test $ol_cv_mdbm = yes ; then
18768 ol_with_ldbm_api=mdbm
18769 if test $ol_cv_lib_mdbm != yes ; then
18770 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18775 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18776 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18777 echo "configure:18778: checking for GDBM library" >&5
18778 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18779 echo $ac_n "(cached) $ac_c" 1>&6
18782 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18783 echo "configure:18784: checking for gdbm_open" >&5
18784 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18785 echo $ac_n "(cached) $ac_c" 1>&6
18787 cat > conftest.$ac_ext <<EOF
18788 #line 18789 "configure"
18789 #include "confdefs.h"
18790 /* System header to define __stub macros and hopefully few prototypes,
18791 which can conflict with char gdbm_open(); below. */
18792 #include <assert.h>
18793 /* Override any gcc2 internal prototype to avoid an error. */
18794 /* We use char because int might match the return type of a gcc2
18795 builtin and then its argument prototype would still apply. */
18801 /* The GNU C library defines this for functions which it implements
18802 to always fail with ENOSYS. Some functions are actually named
18803 something starting with __ and the normal name is an alias. */
18804 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18814 eval "ac_cv_func_gdbm_open=yes"
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18819 eval "ac_cv_func_gdbm_open=no"
18824 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18825 echo "$ac_t""yes" 1>&6
18828 echo "$ac_t""no" 1>&6
18830 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18831 echo "configure:18832: checking for gdbm_open in -lgdbm" >&5
18832 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18833 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18834 echo $ac_n "(cached) $ac_c" 1>&6
18836 ac_save_LIBS="$LIBS"
18837 LIBS="-lgdbm $LIBS"
18838 cat > conftest.$ac_ext <<EOF
18839 #line 18840 "configure"
18840 #include "confdefs.h"
18841 /* Override any gcc2 internal prototype to avoid an error. */
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18850 if { (eval echo configure:18851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18852 eval "ac_cv_lib_$ac_lib_var=yes"
18854 echo "configure: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18857 eval "ac_cv_lib_$ac_lib_var=no"
18860 LIBS="$ac_save_LIBS"
18863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18864 echo "$ac_t""yes" 1>&6
18865 ol_cv_lib_gdbm=-lgdbm
18867 echo "$ac_t""no" 1>&6
18878 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18881 for ac_hdr in gdbm.h
18883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18885 echo "configure:18886: checking for $ac_hdr" >&5
18886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18887 echo $ac_n "(cached) $ac_c" 1>&6
18889 cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18895 { (eval echo configure:18896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18897 if test -z "$ac_err"; then
18899 eval "ac_cv_header_$ac_safe=yes"
18902 echo "configure: failed program was:" >&5
18903 cat conftest.$ac_ext >&5
18905 eval "ac_cv_header_$ac_safe=no"
18909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18910 echo "$ac_t""yes" 1>&6
18911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18912 cat >> confdefs.h <<EOF
18913 #define $ac_tr_hdr 1
18917 echo "$ac_t""no" 1>&6
18921 echo $ac_n "checking for db""... $ac_c" 1>&6
18922 echo "configure:18923: checking for db" >&5
18923 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18924 echo $ac_n "(cached) $ac_c" 1>&6
18927 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18935 echo "$ac_t""$ol_cv_gdbm" 1>&6
18936 if test $ol_cv_gdbm = yes ; then
18937 cat >> confdefs.h <<\EOF
18938 #define HAVE_GDBM 1
18944 if test $ol_cv_gdbm = yes ; then
18946 ol_with_ldbm_api=gdbm
18948 if test $ol_cv_lib_gdbm != yes ; then
18949 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18954 if test $ol_with_ldbm_api = ndbm ; then
18955 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18956 echo "configure:18957: checking for NDBM library" >&5
18957 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18961 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18962 echo "configure:18963: checking for dbm_open" >&5
18963 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18966 cat > conftest.$ac_ext <<EOF
18967 #line 18968 "configure"
18968 #include "confdefs.h"
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char dbm_open(); below. */
18971 #include <assert.h>
18972 /* Override any gcc2 internal prototype to avoid an error. */
18973 /* We use char because int might match the return type of a gcc2
18974 builtin and then its argument prototype would still apply. */
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18991 if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18993 eval "ac_cv_func_dbm_open=yes"
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18998 eval "ac_cv_func_dbm_open=no"
19003 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19004 echo "$ac_t""yes" 1>&6
19007 echo "$ac_t""no" 1>&6
19009 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19010 echo "configure:19011: checking for dbm_open in -lndbm" >&5
19011 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19012 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19013 echo $ac_n "(cached) $ac_c" 1>&6
19015 ac_save_LIBS="$LIBS"
19016 LIBS="-lndbm $LIBS"
19017 cat > conftest.$ac_ext <<EOF
19018 #line 19019 "configure"
19019 #include "confdefs.h"
19020 /* Override any gcc2 internal prototype to avoid an error. */
19021 /* We use char because int might match the return type of a gcc2
19022 builtin and then its argument prototype would still apply. */
19029 if { (eval echo configure:19030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19031 eval "ac_cv_lib_$ac_lib_var=yes"
19033 echo "configure: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19036 eval "ac_cv_lib_$ac_lib_var=no"
19039 LIBS="$ac_save_LIBS"
19042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19043 echo "$ac_t""yes" 1>&6
19044 ol_cv_lib_ndbm=-lndbm
19046 echo "$ac_t""no" 1>&6
19048 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19049 echo "configure:19050: checking for dbm_open in -ldbm" >&5
19050 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19051 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19052 echo $ac_n "(cached) $ac_c" 1>&6
19054 ac_save_LIBS="$LIBS"
19056 cat > conftest.$ac_ext <<EOF
19057 #line 19058 "configure"
19058 #include "confdefs.h"
19059 /* Override any gcc2 internal prototype to avoid an error. */
19060 /* We use char because int might match the return type of a gcc2
19061 builtin and then its argument prototype would still apply. */
19068 if { (eval echo configure:19069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19070 eval "ac_cv_lib_$ac_lib_var=yes"
19072 echo "configure: failed program was:" >&5
19073 cat conftest.$ac_ext >&5
19075 eval "ac_cv_lib_$ac_lib_var=no"
19078 LIBS="$ac_save_LIBS"
19081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19082 echo "$ac_t""yes" 1>&6
19083 ol_cv_lib_ndbm=-ldbm
19085 echo "$ac_t""no" 1>&6
19098 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19101 for ac_hdr in ndbm.h
19103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19105 echo "configure:19106: checking for $ac_hdr" >&5
19106 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19107 echo $ac_n "(cached) $ac_c" 1>&6
19109 cat > conftest.$ac_ext <<EOF
19110 #line 19111 "configure"
19111 #include "confdefs.h"
19114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19115 { (eval echo configure:19116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19117 if test -z "$ac_err"; then
19119 eval "ac_cv_header_$ac_safe=yes"
19122 echo "configure: failed program was:" >&5
19123 cat conftest.$ac_ext >&5
19125 eval "ac_cv_header_$ac_safe=no"
19129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19130 echo "$ac_t""yes" 1>&6
19131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19132 cat >> confdefs.h <<EOF
19133 #define $ac_tr_hdr 1
19137 echo "$ac_t""no" 1>&6
19141 echo $ac_n "checking for db""... $ac_c" 1>&6
19142 echo "configure:19143: checking for db" >&5
19143 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19147 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19155 echo "$ac_t""$ol_cv_ndbm" 1>&6
19156 if test $ol_cv_ndbm = yes ; then
19157 cat >> confdefs.h <<\EOF
19158 #define HAVE_NDBM 1
19164 if test $ol_cv_ndbm = yes ; then
19166 ol_with_ldbm_api=ndbm
19168 if test $ol_cv_lib_ndbm != yes ; then
19169 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19174 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19175 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19176 if test $ol_enable_ldbm = yes ; then
19177 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19180 echo "configure: warning: disabling LDBM" 1>&2
19184 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19185 BUILD_LIBS_DYNAMIC=shared
19186 cat >> confdefs.h <<\EOF
19187 #define LDAP_LIBS_DYNAMIC 1
19191 BUILD_LIBS_DYNAMIC=static
19194 if test $ol_enable_wrappers != no ; then
19195 for ac_hdr in tcpd.h
19197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19199 echo "configure:19200: checking for $ac_hdr" >&5
19200 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19203 cat > conftest.$ac_ext <<EOF
19204 #line 19205 "configure"
19205 #include "confdefs.h"
19208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19209 { (eval echo configure:19210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19211 if test -z "$ac_err"; then
19213 eval "ac_cv_header_$ac_safe=yes"
19216 echo "configure: failed program was:" >&5
19217 cat conftest.$ac_ext >&5
19219 eval "ac_cv_header_$ac_safe=no"
19223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19224 echo "$ac_t""yes" 1>&6
19225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19226 cat >> confdefs.h <<EOF
19227 #define $ac_tr_hdr 1
19230 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19231 echo "configure:19232: checking for TCP wrappers library" >&5
19233 LIBS="$LIBS -lwrap"
19234 cat > conftest.$ac_ext <<EOF
19235 #line 19236 "configure"
19236 #include "confdefs.h"
19239 int allow_severity = 0;
19240 int deny_severity = 0;
19242 struct request_info *req;
19250 if { (eval echo configure:19251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19252 echo "$ac_t""-lwrap" 1>&6
19256 echo "configure: failed program was:" >&5
19257 cat conftest.$ac_ext >&5
19261 cat > conftest.$ac_ext <<EOF
19262 #line 19263 "configure"
19263 #include "confdefs.h"
19266 int allow_severity = 0;
19267 int deny_severity = 0;
19269 struct request_info *req;
19277 if { (eval echo configure:19278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19279 echo "$ac_t""-lwrap -lnsl" 1>&6
19281 LIBS="$save_LIBS -lnsl"
19283 echo "configure: failed program was:" >&5
19284 cat conftest.$ac_ext >&5
19287 echo "$ac_t""no" 1>&6
19295 echo "$ac_t""no" 1>&6
19301 if test $have_wrappers = yes ; then
19302 cat >> confdefs.h <<\EOF
19303 #define HAVE_TCPD 1
19307 elif test $ol_enable_wrappers = yes ; then
19308 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19310 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19315 if test $ol_enable_syslog != no ; then
19316 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19317 echo "configure:19318: checking for openlog" >&5
19318 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19319 echo $ac_n "(cached) $ac_c" 1>&6
19321 cat > conftest.$ac_ext <<EOF
19322 #line 19323 "configure"
19323 #include "confdefs.h"
19324 /* System header to define __stub macros and hopefully few prototypes,
19325 which can conflict with char openlog(); below. */
19326 #include <assert.h>
19327 /* Override any gcc2 internal prototype to avoid an error. */
19328 /* We use char because int might match the return type of a gcc2
19329 builtin and then its argument prototype would still apply. */
19335 /* The GNU C library defines this for functions which it implements
19336 to always fail with ENOSYS. Some functions are actually named
19337 something starting with __ and the normal name is an alias. */
19338 #if defined (__stub_openlog) || defined (__stub___openlog)
19346 if { (eval echo configure:19347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19348 eval "ac_cv_func_openlog=yes"
19350 echo "configure: failed program was:" >&5
19351 cat conftest.$ac_ext >&5
19353 eval "ac_cv_func_openlog=no"
19358 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19359 echo "$ac_t""yes" 1>&6
19362 echo "$ac_t""no" 1>&6
19365 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19366 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19368 ol_enable_syslog=$ac_cv_func_openlog
19373 if test $ol_enable_sql != no ; then
19374 for ac_hdr in sql.h sqlext.h
19376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19378 echo "configure:19379: checking for $ac_hdr" >&5
19379 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19380 echo $ac_n "(cached) $ac_c" 1>&6
19382 cat > conftest.$ac_ext <<EOF
19383 #line 19384 "configure"
19384 #include "confdefs.h"
19387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19388 { (eval echo configure:19389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19390 if test -z "$ac_err"; then
19392 eval "ac_cv_header_$ac_safe=yes"
19395 echo "configure: failed program was:" >&5
19396 cat conftest.$ac_ext >&5
19398 eval "ac_cv_header_$ac_safe=no"
19402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19403 echo "$ac_t""yes" 1>&6
19404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19405 cat >> confdefs.h <<EOF
19406 #define $ac_tr_hdr 1
19410 echo "$ac_t""no" 1>&6
19411 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19417 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19418 echo "configure:19419: checking for SQLDriverConnect in -liodbc" >&5
19419 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19420 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19421 echo $ac_n "(cached) $ac_c" 1>&6
19423 ac_save_LIBS="$LIBS"
19424 LIBS="-liodbc $LIBS"
19425 cat > conftest.$ac_ext <<EOF
19426 #line 19427 "configure"
19427 #include "confdefs.h"
19428 /* Override any gcc2 internal prototype to avoid an error. */
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19431 char SQLDriverConnect();
19437 if { (eval echo configure:19438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19439 eval "ac_cv_lib_$ac_lib_var=yes"
19441 echo "configure: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19444 eval "ac_cv_lib_$ac_lib_var=no"
19447 LIBS="$ac_save_LIBS"
19450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19451 echo "$ac_t""yes" 1>&6
19454 echo "$ac_t""no" 1>&6
19458 if test $have_iodbc = yes ; then
19459 ol_link_sql="-liodbc"
19461 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19462 echo "configure:19463: checking for SQLDriverConnect in -lodbc" >&5
19463 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19465 echo $ac_n "(cached) $ac_c" 1>&6
19467 ac_save_LIBS="$LIBS"
19468 LIBS="-lodbc $LIBS"
19469 cat > conftest.$ac_ext <<EOF
19470 #line 19471 "configure"
19471 #include "confdefs.h"
19472 /* Override any gcc2 internal prototype to avoid an error. */
19473 /* We use char because int might match the return type of a gcc2
19474 builtin and then its argument prototype would still apply. */
19475 char SQLDriverConnect();
19481 if { (eval echo configure:19482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19483 eval "ac_cv_lib_$ac_lib_var=yes"
19485 echo "configure: failed program was:" >&5
19486 cat conftest.$ac_ext >&5
19488 eval "ac_cv_lib_$ac_lib_var=no"
19491 LIBS="$ac_save_LIBS"
19494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19495 echo "$ac_t""yes" 1>&6
19498 echo "$ac_t""no" 1>&6
19502 if test $have_odbc = yes ; then
19503 ol_link_sql="-lodbc"
19507 if test $ol_link_sql != no ; then
19508 SLAPD_SQL_LIBS="$ol_link_sql"
19510 elif test $ol_enable_sql != auto ; then
19511 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19515 if test $ol_enable_tcl != no ; then
19516 for ac_hdr in tcl.h
19518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19520 echo "configure:19521: checking for $ac_hdr" >&5
19521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19522 echo $ac_n "(cached) $ac_c" 1>&6
19524 cat > conftest.$ac_ext <<EOF
19525 #line 19526 "configure"
19526 #include "confdefs.h"
19529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19530 { (eval echo configure:19531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19532 if test -z "$ac_err"; then
19534 eval "ac_cv_header_$ac_safe=yes"
19537 echo "configure: failed program was:" >&5
19538 cat conftest.$ac_ext >&5
19540 eval "ac_cv_header_$ac_safe=no"
19544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19545 echo "$ac_t""yes" 1>&6
19546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19547 cat >> confdefs.h <<EOF
19548 #define $ac_tr_hdr 1
19552 echo "$ac_t""no" 1>&6
19557 if test $ac_cv_header_tcl_h != yes ; then
19560 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19561 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19562 echo "configure:19563: checking for main in -l$lib" >&5
19563 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19564 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19565 echo $ac_n "(cached) $ac_c" 1>&6
19567 ac_save_LIBS="$LIBS"
19568 LIBS="-l$lib $LIBS"
19569 cat > conftest.$ac_ext <<EOF
19570 #line 19571 "configure"
19571 #include "confdefs.h"
19577 if { (eval echo configure:19578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19579 eval "ac_cv_lib_$ac_lib_var=yes"
19581 echo "configure: failed program was:" >&5
19582 cat conftest.$ac_ext >&5
19584 eval "ac_cv_lib_$ac_lib_var=no"
19587 LIBS="$ac_save_LIBS"
19590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19591 echo "$ac_t""yes" 1>&6
19593 if test x"$ol_with_tcl_module" = "xstatic" ; then
19594 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19596 MOD_TCL_LIB="-l${lib}"
19599 echo "$ac_t""no" 1>&6
19606 if test $have_tcl != yes ; then
19607 echo "configure: warning: could not find -ltcl" 1>&2
19608 if test $ol_enable_tcl = yes ; then
19609 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19617 for ac_hdr in termcap.h ncurses.h
19619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19621 echo "configure:19622: checking for $ac_hdr" >&5
19622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19623 echo $ac_n "(cached) $ac_c" 1>&6
19625 cat > conftest.$ac_ext <<EOF
19626 #line 19627 "configure"
19627 #include "confdefs.h"
19630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19631 { (eval echo configure:19632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19633 if test -z "$ac_err"; then
19635 eval "ac_cv_header_$ac_safe=yes"
19638 echo "configure: failed program was:" >&5
19639 cat conftest.$ac_ext >&5
19641 eval "ac_cv_header_$ac_safe=no"
19645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19646 echo "$ac_t""yes" 1>&6
19647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19648 cat >> confdefs.h <<EOF
19649 #define $ac_tr_hdr 1
19653 echo "$ac_t""no" 1>&6
19658 if test $ol_link_termcap = no ; then
19659 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19660 echo "configure:19661: checking for tputs in -ltermcap" >&5
19661 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19662 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19663 echo $ac_n "(cached) $ac_c" 1>&6
19665 ac_save_LIBS="$LIBS"
19666 LIBS="-ltermcap $LIBS"
19667 cat > conftest.$ac_ext <<EOF
19668 #line 19669 "configure"
19669 #include "confdefs.h"
19670 /* Override any gcc2 internal prototype to avoid an error. */
19671 /* We use char because int might match the return type of a gcc2
19672 builtin and then its argument prototype would still apply. */
19679 if { (eval echo configure:19680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19681 eval "ac_cv_lib_$ac_lib_var=yes"
19683 echo "configure: failed program was:" >&5
19684 cat conftest.$ac_ext >&5
19686 eval "ac_cv_lib_$ac_lib_var=no"
19689 LIBS="$ac_save_LIBS"
19692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19693 echo "$ac_t""yes" 1>&6
19696 echo "$ac_t""no" 1>&6
19700 if test $have_termcap = yes ; then
19701 cat >> confdefs.h <<\EOF
19702 #define HAVE_TERMCAP 1
19705 ol_link_termcap=yes
19706 TERMCAP_LIBS=-ltermcap
19710 if test $ol_link_termcap = no ; then
19711 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19712 echo "configure:19713: checking for initscr in -lncurses" >&5
19713 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19714 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19715 echo $ac_n "(cached) $ac_c" 1>&6
19717 ac_save_LIBS="$LIBS"
19718 LIBS="-lncurses $LIBS"
19719 cat > conftest.$ac_ext <<EOF
19720 #line 19721 "configure"
19721 #include "confdefs.h"
19722 /* Override any gcc2 internal prototype to avoid an error. */
19723 /* We use char because int might match the return type of a gcc2
19724 builtin and then its argument prototype would still apply. */
19731 if { (eval echo configure:19732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19733 eval "ac_cv_lib_$ac_lib_var=yes"
19735 echo "configure: failed program was:" >&5
19736 cat conftest.$ac_ext >&5
19738 eval "ac_cv_lib_$ac_lib_var=no"
19741 LIBS="$ac_save_LIBS"
19744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19745 echo "$ac_t""yes" 1>&6
19748 echo "$ac_t""no" 1>&6
19752 if test $have_ncurses = yes ; then
19753 cat >> confdefs.h <<\EOF
19754 #define HAVE_NCURSES 1
19757 ol_link_termcap=yes
19758 TERMCAP_LIBS=-lncurses
19762 if test $ol_link_termcap = no ; then
19763 cat >> confdefs.h <<\EOF
19764 #define NO_TERMCAP 1
19772 if test $ol_with_cyrus_sasl != no ; then
19773 for ac_hdr in sasl/sasl.h sasl.h
19775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19777 echo "configure:19778: checking for $ac_hdr" >&5
19778 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19779 echo $ac_n "(cached) $ac_c" 1>&6
19781 cat > conftest.$ac_ext <<EOF
19782 #line 19783 "configure"
19783 #include "confdefs.h"
19786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19787 { (eval echo configure:19788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19789 if test -z "$ac_err"; then
19791 eval "ac_cv_header_$ac_safe=yes"
19794 echo "configure: failed program was:" >&5
19795 cat conftest.$ac_ext >&5
19797 eval "ac_cv_header_$ac_safe=no"
19801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19802 echo "$ac_t""yes" 1>&6
19803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19804 cat >> confdefs.h <<EOF
19805 #define $ac_tr_hdr 1
19809 echo "$ac_t""no" 1>&6
19814 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19815 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19816 echo "configure:19817: checking for sasl_client_init in -lsasl2" >&5
19817 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19818 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19819 echo $ac_n "(cached) $ac_c" 1>&6
19821 ac_save_LIBS="$LIBS"
19822 LIBS="-lsasl2 $LIBS"
19823 cat > conftest.$ac_ext <<EOF
19824 #line 19825 "configure"
19825 #include "confdefs.h"
19826 /* Override any gcc2 internal prototype to avoid an error. */
19827 /* We use char because int might match the return type of a gcc2
19828 builtin and then its argument prototype would still apply. */
19829 char sasl_client_init();
19835 if { (eval echo configure:19836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19837 eval "ac_cv_lib_$ac_lib_var=yes"
19839 echo "configure: failed program was:" >&5
19840 cat conftest.$ac_ext >&5
19842 eval "ac_cv_lib_$ac_lib_var=no"
19845 LIBS="$ac_save_LIBS"
19848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19849 echo "$ac_t""yes" 1>&6
19850 ol_link_sasl="-lsasl2"
19852 echo "$ac_t""no" 1>&6
19853 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19854 echo "configure:19855: checking for sasl_client_init in -lsasl" >&5
19855 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19857 echo $ac_n "(cached) $ac_c" 1>&6
19859 ac_save_LIBS="$LIBS"
19860 LIBS="-lsasl $LIBS"
19861 cat > conftest.$ac_ext <<EOF
19862 #line 19863 "configure"
19863 #include "confdefs.h"
19864 /* Override any gcc2 internal prototype to avoid an error. */
19865 /* We use char because int might match the return type of a gcc2
19866 builtin and then its argument prototype would still apply. */
19867 char sasl_client_init();
19873 if { (eval echo configure:19874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19875 eval "ac_cv_lib_$ac_lib_var=yes"
19877 echo "configure: failed program was:" >&5
19878 cat conftest.$ac_ext >&5
19880 eval "ac_cv_lib_$ac_lib_var=no"
19883 LIBS="$ac_save_LIBS"
19886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19887 echo "$ac_t""yes" 1>&6
19888 ol_link_sasl="-lsasl"
19890 echo "$ac_t""no" 1>&6
19897 if test $ol_link_sasl = no ; then
19898 if test $ol_with_cyrus_sasl != auto ; then
19899 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19901 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19902 echo "configure: warning: SASL authentication not supported!" 1>&2
19903 if test $ol_link_tls = no ; then
19904 echo "configure: warning: Strong authentication not supported!" 1>&2
19908 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19909 echo "configure:19910: checking Cyrus SASL library version" >&5
19910 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19911 echo $ac_n "(cached) $ac_c" 1>&6
19914 cat > conftest.$ac_ext <<EOF
19915 #line 19916 "configure"
19916 #include "confdefs.h"
19918 #ifdef HAVE_SASL_SASL_H
19919 #include <sasl/sasl.h>
19924 /* require 2.1.3 or later */
19925 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19926 char *__sasl_compat = "1.5.x okay";
19927 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19928 __sasl_compat "2.2+ or better okay (we guess)";
19929 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19930 && SASL_VERSION_STEP >=3
19931 __sasl_compat = "2.1.3+ or better okay";
19935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19936 egrep "__sasl_compat" >/dev/null 2>&1; then
19938 ol_cv_sasl_compat=yes
19941 ol_cv_sasl_compat=no
19947 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19949 if test $ol_cv_sasl_compat = no ; then
19951 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19954 cat >> confdefs.h <<\EOF
19955 #define HAVE_CYRUS_SASL 1
19958 SASL_LIBS="$ol_link_sasl"
19959 if test $ol_enable_spasswd != no ; then
19960 ol_link_spasswd=yes
19963 ac_save_LIBS="$LIBS"
19964 LIBS="$LIBS $ol_link_sasl"
19965 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19966 echo "configure:19967: checking for sasl_version" >&5
19967 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19968 echo $ac_n "(cached) $ac_c" 1>&6
19970 cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19973 /* System header to define __stub macros and hopefully few prototypes,
19974 which can conflict with char sasl_version(); below. */
19975 #include <assert.h>
19976 /* Override any gcc2 internal prototype to avoid an error. */
19977 /* We use char because int might match the return type of a gcc2
19978 builtin and then its argument prototype would still apply. */
19979 char sasl_version();
19984 /* The GNU C library defines this for functions which it implements
19985 to always fail with ENOSYS. Some functions are actually named
19986 something starting with __ and the normal name is an alias. */
19987 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19995 if { (eval echo configure:19996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19997 eval "ac_cv_func_sasl_version=yes"
19999 echo "configure: failed program was:" >&5
20000 cat conftest.$ac_ext >&5
20002 eval "ac_cv_func_sasl_version=no"
20007 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20008 echo "$ac_t""yes" 1>&6
20009 cat >> confdefs.h <<\EOF
20010 #define HAVE_SASL_VERSION 1
20014 echo "$ac_t""no" 1>&6
20017 LIBS="$ac_save_LIBS"
20021 echo "configure: warning: SASL authentication not supported!" 1>&2
20022 if test $ol_link_tls = no ; then
20023 echo "configure: warning: Strong authentication not supported!" 1>&2
20027 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20029 if test -r /dev/urandom ; then
20030 dev="/dev/urandom";
20031 elif test -r /idev/urandom ; then
20032 dev="/idev/urandom";
20033 elif test -r /dev/srandom ; then
20034 dev="/dev/srandom";
20035 elif test -r /dev/random ; then
20037 elif test -r /idev/random ; then
20038 dev="/idev/random";
20041 if test $dev != no ; then
20042 cat >> confdefs.h <<EOF
20043 #define URANDOM_DEVICE "$dev"
20050 if test $ol_with_fetch != no ; then
20052 LIBS="-lfetch -lcom_err $LIBS"
20053 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20054 echo "configure:20055: checking fetch(3) library" >&5
20055 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20056 echo $ac_n "(cached) $ac_c" 1>&6
20059 cat > conftest.$ac_ext <<EOF
20060 #line 20061 "configure"
20061 #include "confdefs.h"
20063 #include <sys/param.h>
20067 struct url *u = fetchParseURL("file:///");
20070 if { (eval echo configure:20071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20072 ol_cv_lib_fetch=yes
20074 echo "configure: failed program was:" >&5
20075 cat conftest.$ac_ext >&5
20082 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20084 if test $ol_cv_lib_fetch != no ; then
20085 ol_link_fetch="-lfetch -lcom_err"
20086 cat >> confdefs.h <<\EOF
20087 #define HAVE_FETCH 1
20093 if test $ol_cv_lib_fetch != no ; then
20094 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20095 ol_link_fetch=freebsd
20097 elif test $ol_with_fetch != auto ; then
20098 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20102 ol_link_readline=no
20103 if test $ol_with_readline != no ; then
20104 for ac_hdr in readline/readline.h readline/history.h
20106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20108 echo "configure:20109: checking for $ac_hdr" >&5
20109 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20118 { (eval echo configure:20119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20120 if test -z "$ac_err"; then
20122 eval "ac_cv_header_$ac_safe=yes"
20125 echo "configure: failed program was:" >&5
20126 cat conftest.$ac_ext >&5
20128 eval "ac_cv_header_$ac_safe=no"
20132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20133 echo "$ac_t""yes" 1>&6
20134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20135 cat >> confdefs.h <<EOF
20136 #define $ac_tr_hdr 1
20140 echo "$ac_t""no" 1>&6
20145 if test $ac_cv_header_readline_readline_h = yes ; then
20147 LIBS="$TERMCAP_LIBS $LIBS"
20148 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20149 echo "configure:20150: checking for readline in -lreadline" >&5
20150 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20152 echo $ac_n "(cached) $ac_c" 1>&6
20154 ac_save_LIBS="$LIBS"
20155 LIBS="-lreadline $LIBS"
20156 cat > conftest.$ac_ext <<EOF
20157 #line 20158 "configure"
20158 #include "confdefs.h"
20159 /* Override any gcc2 internal prototype to avoid an error. */
20160 /* We use char because int might match the return type of a gcc2
20161 builtin and then its argument prototype would still apply. */
20168 if { (eval echo configure:20169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20170 eval "ac_cv_lib_$ac_lib_var=yes"
20172 echo "configure: failed program was:" >&5
20173 cat conftest.$ac_ext >&5
20175 eval "ac_cv_lib_$ac_lib_var=no"
20178 LIBS="$ac_save_LIBS"
20181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20182 echo "$ac_t""yes" 1>&6
20185 echo "$ac_t""no" 1>&6
20191 if test $have_readline = yes ; then
20192 ol_with_readline=found
20193 ol_link_readline=yes
20195 READLINE_LIBS="-lreadline"
20200 if test $ol_link_readline = yes ; then
20201 cat >> confdefs.h <<\EOF
20202 #define HAVE_READLINE 1
20208 if test $ol_enable_crypt != no ; then
20210 LIBS="$TLS_LIBS $LIBS"
20212 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20213 echo "configure:20214: checking for crypt" >&5
20214 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20215 echo $ac_n "(cached) $ac_c" 1>&6
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 /* System header to define __stub macros and hopefully few prototypes,
20221 which can conflict with char crypt(); below. */
20222 #include <assert.h>
20223 /* Override any gcc2 internal prototype to avoid an error. */
20224 /* We use char because int might match the return type of a gcc2
20225 builtin and then its argument prototype would still apply. */
20231 /* The GNU C library defines this for functions which it implements
20232 to always fail with ENOSYS. Some functions are actually named
20233 something starting with __ and the normal name is an alias. */
20234 #if defined (__stub_crypt) || defined (__stub___crypt)
20242 if { (eval echo configure:20243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20244 eval "ac_cv_func_crypt=yes"
20246 echo "configure: failed program was:" >&5
20247 cat conftest.$ac_ext >&5
20249 eval "ac_cv_func_crypt=no"
20254 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20255 echo "$ac_t""yes" 1>&6
20258 echo "$ac_t""no" 1>&6
20261 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20262 echo "configure:20263: checking for crypt in -lcrypt" >&5
20263 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20264 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20265 echo $ac_n "(cached) $ac_c" 1>&6
20267 ac_save_LIBS="$LIBS"
20268 LIBS="-lcrypt $LIBS"
20269 cat > conftest.$ac_ext <<EOF
20270 #line 20271 "configure"
20271 #include "confdefs.h"
20272 /* Override any gcc2 internal prototype to avoid an error. */
20273 /* We use char because int might match the return type of a gcc2
20274 builtin and then its argument prototype would still apply. */
20281 if { (eval echo configure:20282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20283 eval "ac_cv_lib_$ac_lib_var=yes"
20285 echo "configure: failed program was:" >&5
20286 cat conftest.$ac_ext >&5
20288 eval "ac_cv_lib_$ac_lib_var=no"
20291 LIBS="$ac_save_LIBS"
20294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20295 echo "$ac_t""yes" 1>&6
20296 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20299 echo "$ac_t""no" 1>&6
20308 if test $have_crypt = yes ; then
20309 cat >> confdefs.h <<\EOF
20310 #define HAVE_CRYPT 1
20314 echo "configure: warning: could not find crypt" 1>&2
20315 if test $ol_enable_crypt = yes ; then
20316 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20319 echo "configure: warning: disabling crypt support" 1>&2
20324 if test $ol_enable_proctitle != no ; then
20325 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20326 echo "configure:20327: checking for setproctitle" >&5
20327 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20328 echo $ac_n "(cached) $ac_c" 1>&6
20330 cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 /* System header to define __stub macros and hopefully few prototypes,
20334 which can conflict with char setproctitle(); below. */
20335 #include <assert.h>
20336 /* Override any gcc2 internal prototype to avoid an error. */
20337 /* We use char because int might match the return type of a gcc2
20338 builtin and then its argument prototype would still apply. */
20339 char setproctitle();
20344 /* The GNU C library defines this for functions which it implements
20345 to always fail with ENOSYS. Some functions are actually named
20346 something starting with __ and the normal name is an alias. */
20347 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20355 if { (eval echo configure:20356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20357 eval "ac_cv_func_setproctitle=yes"
20359 echo "configure: failed program was:" >&5
20360 cat conftest.$ac_ext >&5
20362 eval "ac_cv_func_setproctitle=no"
20367 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20368 echo "$ac_t""yes" 1>&6
20369 have_setproctitle=yes
20371 echo "$ac_t""no" 1>&6
20373 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20374 echo "configure:20375: checking for setproctitle in -lutil" >&5
20375 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20377 echo $ac_n "(cached) $ac_c" 1>&6
20379 ac_save_LIBS="$LIBS"
20380 LIBS="-lutil $LIBS"
20381 cat > conftest.$ac_ext <<EOF
20382 #line 20383 "configure"
20383 #include "confdefs.h"
20384 /* Override any gcc2 internal prototype to avoid an error. */
20385 /* We use char because int might match the return type of a gcc2
20386 builtin and then its argument prototype would still apply. */
20387 char setproctitle();
20393 if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20395 eval "ac_cv_lib_$ac_lib_var=yes"
20397 echo "configure: failed program was:" >&5
20398 cat conftest.$ac_ext >&5
20400 eval "ac_cv_lib_$ac_lib_var=no"
20403 LIBS="$ac_save_LIBS"
20406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20407 echo "$ac_t""yes" 1>&6
20408 have_setproctitle=yes
20409 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20411 echo "$ac_t""no" 1>&6
20412 have_setproctitle=no
20413 LIBOBJS="$LIBOBJS setproctitle.o"
20414 LIBSRCS="$LIBSRCS setproctitle.c"
20420 if test $have_setproctitle = yes ; then
20421 cat >> confdefs.h <<\EOF
20422 #define HAVE_SETPROCTITLE 1
20428 if test $ol_enable_slp != no ; then
20429 for ac_hdr in slp.h
20431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20433 echo "configure:20434: checking for $ac_hdr" >&5
20434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20435 echo $ac_n "(cached) $ac_c" 1>&6
20437 cat > conftest.$ac_ext <<EOF
20438 #line 20439 "configure"
20439 #include "confdefs.h"
20442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20443 { (eval echo configure:20444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20445 if test -z "$ac_err"; then
20447 eval "ac_cv_header_$ac_safe=yes"
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20453 eval "ac_cv_header_$ac_safe=no"
20457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20458 echo "$ac_t""yes" 1>&6
20459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20460 cat >> confdefs.h <<EOF
20461 #define $ac_tr_hdr 1
20465 echo "$ac_t""no" 1>&6
20470 if test $ac_cv_header_slp_h = yes ; then
20471 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20472 echo "configure:20473: checking for SLPOpen in -lslp" >&5
20473 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20474 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20475 echo $ac_n "(cached) $ac_c" 1>&6
20477 ac_save_LIBS="$LIBS"
20479 cat > conftest.$ac_ext <<EOF
20480 #line 20481 "configure"
20481 #include "confdefs.h"
20482 /* Override any gcc2 internal prototype to avoid an error. */
20483 /* We use char because int might match the return type of a gcc2
20484 builtin and then its argument prototype would still apply. */
20491 if { (eval echo configure:20492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20493 eval "ac_cv_lib_$ac_lib_var=yes"
20495 echo "configure: failed program was:" >&5
20496 cat conftest.$ac_ext >&5
20498 eval "ac_cv_lib_$ac_lib_var=no"
20501 LIBS="$ac_save_LIBS"
20504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20505 echo "$ac_t""yes" 1>&6
20508 echo "$ac_t""no" 1>&6
20512 if test $have_slp = yes ; then
20513 cat >> confdefs.h <<\EOF
20517 SLAPD_SLP_LIBS=-lslp
20520 elif test $ol_enable_slp = yes ; then
20521 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20525 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20526 echo "configure:20527: checking for ANSI C header files" >&5
20527 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20528 echo $ac_n "(cached) $ac_c" 1>&6
20530 cat > conftest.$ac_ext <<EOF
20531 #line 20532 "configure"
20532 #include "confdefs.h"
20533 #include <stdlib.h>
20534 #include <stdarg.h>
20535 #include <string.h>
20538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20539 { (eval echo configure:20540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20541 if test -z "$ac_err"; then
20543 ac_cv_header_stdc=yes
20546 echo "configure: failed program was:" >&5
20547 cat conftest.$ac_ext >&5
20549 ac_cv_header_stdc=no
20553 if test $ac_cv_header_stdc = yes; then
20554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20555 cat > conftest.$ac_ext <<EOF
20556 #line 20557 "configure"
20557 #include "confdefs.h"
20558 #include <string.h>
20560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20561 egrep "memchr" >/dev/null 2>&1; then
20565 ac_cv_header_stdc=no
20571 if test $ac_cv_header_stdc = yes; then
20572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20573 cat > conftest.$ac_ext <<EOF
20574 #line 20575 "configure"
20575 #include "confdefs.h"
20576 #include <stdlib.h>
20578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20579 egrep "free" >/dev/null 2>&1; then
20583 ac_cv_header_stdc=no
20589 if test $ac_cv_header_stdc = yes; then
20590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20591 if test "$cross_compiling" = yes; then
20594 cat > conftest.$ac_ext <<EOF
20595 #line 20596 "configure"
20596 #include "confdefs.h"
20598 #if ((' ' & 0x0FF) == 0x020)
20599 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20600 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20602 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20603 || ('j' <= (c) && (c) <= 'r') \
20604 || ('s' <= (c) && (c) <= 'z'))
20605 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20608 int main () { int i; for (i = 0; i < 256; i++)
20609 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20613 if { (eval echo configure:20614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20617 echo "configure: failed program was:" >&5
20618 cat conftest.$ac_ext >&5
20620 ac_cv_header_stdc=no
20628 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20629 if test $ac_cv_header_stdc = yes; then
20630 cat >> confdefs.h <<\EOF
20631 #define STDC_HEADERS 1
20636 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20637 echo "configure:20638: checking for mode_t" >&5
20638 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20639 echo $ac_n "(cached) $ac_c" 1>&6
20641 cat > conftest.$ac_ext <<EOF
20642 #line 20643 "configure"
20643 #include "confdefs.h"
20644 #include <sys/types.h>
20646 #include <stdlib.h>
20647 #include <stddef.h>
20651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20652 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20654 eval "ac_cv_type_mode_t=yes"
20657 eval "ac_cv_type_mode_t=no"
20662 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20663 echo "$ac_t""yes" 1>&6
20665 echo "$ac_t""no" 1>&6
20666 cat >> confdefs.h <<EOF
20672 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20673 echo "configure:20674: checking for off_t" >&5
20674 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20675 echo $ac_n "(cached) $ac_c" 1>&6
20677 cat > conftest.$ac_ext <<EOF
20678 #line 20679 "configure"
20679 #include "confdefs.h"
20680 #include <sys/types.h>
20682 #include <stdlib.h>
20683 #include <stddef.h>
20687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20688 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20690 eval "ac_cv_type_off_t=yes"
20693 eval "ac_cv_type_off_t=no"
20698 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20699 echo "$ac_t""yes" 1>&6
20701 echo "$ac_t""no" 1>&6
20702 cat >> confdefs.h <<EOF
20708 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20709 echo "configure:20710: checking for pid_t" >&5
20710 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20711 echo $ac_n "(cached) $ac_c" 1>&6
20713 cat > conftest.$ac_ext <<EOF
20714 #line 20715 "configure"
20715 #include "confdefs.h"
20716 #include <sys/types.h>
20718 #include <stdlib.h>
20719 #include <stddef.h>
20723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20724 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20726 eval "ac_cv_type_pid_t=yes"
20729 eval "ac_cv_type_pid_t=no"
20734 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20735 echo "$ac_t""yes" 1>&6
20737 echo "$ac_t""no" 1>&6
20738 cat >> confdefs.h <<EOF
20744 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20745 echo "configure:20746: checking for ptrdiff_t" >&5
20746 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20747 echo $ac_n "(cached) $ac_c" 1>&6
20749 cat > conftest.$ac_ext <<EOF
20750 #line 20751 "configure"
20751 #include "confdefs.h"
20752 #include <stddef.h>
20757 if { (eval echo configure:20758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20759 am_cv_type_ptrdiff_t=yes
20761 echo "configure: failed program was:" >&5
20762 cat conftest.$ac_ext >&5
20764 am_cv_type_ptrdiff_t=no
20769 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20770 if test $am_cv_type_ptrdiff_t = yes; then
20771 cat >> confdefs.h <<\EOF
20772 #define HAVE_PTRDIFF_T 1
20777 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20778 echo "configure:20779: checking return type of signal handlers" >&5
20779 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20780 echo $ac_n "(cached) $ac_c" 1>&6
20782 cat > conftest.$ac_ext <<EOF
20783 #line 20784 "configure"
20784 #include "confdefs.h"
20785 #include <sys/types.h>
20786 #include <signal.h>
20791 extern "C" void (*signal (int, void (*)(int)))(int);
20793 void (*signal ()) ();
20800 if { (eval echo configure:20801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20802 ac_cv_type_signal=void
20804 echo "configure: failed program was:" >&5
20805 cat conftest.$ac_ext >&5
20807 ac_cv_type_signal=int
20812 echo "$ac_t""$ac_cv_type_signal" 1>&6
20813 cat >> confdefs.h <<EOF
20814 #define RETSIGTYPE $ac_cv_type_signal
20818 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20819 echo "configure:20820: checking for size_t" >&5
20820 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20821 echo $ac_n "(cached) $ac_c" 1>&6
20823 cat > conftest.$ac_ext <<EOF
20824 #line 20825 "configure"
20825 #include "confdefs.h"
20826 #include <sys/types.h>
20828 #include <stdlib.h>
20829 #include <stddef.h>
20833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20834 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20836 eval "ac_cv_type_size_t=yes"
20839 eval "ac_cv_type_size_t=no"
20844 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20845 echo "$ac_t""yes" 1>&6
20847 echo "$ac_t""no" 1>&6
20848 cat >> confdefs.h <<EOF
20849 #define size_t unsigned
20855 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20856 echo "configure:20857: checking for ssize_t" >&5
20857 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20858 echo $ac_n "(cached) $ac_c" 1>&6
20860 cat > conftest.$ac_ext <<EOF
20861 #line 20862 "configure"
20862 #include "confdefs.h"
20863 #include <sys/types.h>
20865 #include <stdlib.h>
20866 #include <stddef.h>
20870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20871 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20873 eval "ac_cv_type_ssize_t=yes"
20876 eval "ac_cv_type_ssize_t=no"
20881 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20882 echo "$ac_t""yes" 1>&6
20884 echo "$ac_t""no" 1>&6
20885 cat >> confdefs.h <<EOF
20886 #define ssize_t signed int
20891 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20892 echo "configure:20893: checking for caddr_t" >&5
20893 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20894 echo $ac_n "(cached) $ac_c" 1>&6
20896 cat > conftest.$ac_ext <<EOF
20897 #line 20898 "configure"
20898 #include "confdefs.h"
20899 #include <sys/types.h>
20901 #include <stdlib.h>
20902 #include <stddef.h>
20906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20907 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20909 eval "ac_cv_type_caddr_t=yes"
20912 eval "ac_cv_type_caddr_t=no"
20917 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20918 echo "$ac_t""yes" 1>&6
20920 echo "$ac_t""no" 1>&6
20921 cat >> confdefs.h <<EOF
20922 #define caddr_t char *
20928 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20929 echo "configure:20930: checking for socklen_t" >&5
20930 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20931 echo $ac_n "(cached) $ac_c" 1>&6
20933 cat > conftest.$ac_ext <<EOF
20934 #line 20935 "configure"
20935 #include "confdefs.h"
20937 #ifdef HAVE_SYS_TYPES_H
20938 #include <sys/types.h>
20940 #ifdef HAVE_SYS_SOCKET_H
20941 #include <sys/socket.h>
20948 if { (eval echo configure:20949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20950 ol_cv_type_socklen_t=yes
20952 echo "configure: failed program was:" >&5
20953 cat conftest.$ac_ext >&5
20955 ol_cv_type_socklen_t=no
20960 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20961 if test $ol_cv_type_socklen_t = no; then
20962 cat >> confdefs.h <<\EOF
20963 #define socklen_t int
20968 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20969 echo "configure:20970: checking for member st_blksize in aggregate type struct stat" >&5
20970 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20971 echo $ac_n "(cached) $ac_c" 1>&6
20973 cat > conftest.$ac_ext <<EOF
20974 #line 20975 "configure"
20975 #include "confdefs.h"
20976 #include <sys/types.h>
20977 #include <sys/stat.h>
20979 struct stat foo; foo.st_blksize;
20982 if { (eval echo configure:20983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20984 ac_cv_c_struct_member_st_blksize=yes
20986 echo "configure: failed program was:" >&5
20987 cat conftest.$ac_ext >&5
20989 ac_cv_c_struct_member_st_blksize=no
20994 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20995 st_blksize="$ac_cv_c_struct_member_st_blksize"
20996 if test $ac_cv_c_struct_member_st_blksize = yes; then
20997 cat >> confdefs.h <<\EOF
20998 #define HAVE_ST_BLKSIZE 1
21003 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21004 echo "configure:21005: checking whether time.h and sys/time.h may both be included" >&5
21005 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21006 echo $ac_n "(cached) $ac_c" 1>&6
21008 cat > conftest.$ac_ext <<EOF
21009 #line 21010 "configure"
21010 #include "confdefs.h"
21011 #include <sys/types.h>
21012 #include <sys/time.h>
21018 if { (eval echo configure:21019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21020 ac_cv_header_time=yes
21022 echo "configure: failed program was:" >&5
21023 cat conftest.$ac_ext >&5
21025 ac_cv_header_time=no
21030 echo "$ac_t""$ac_cv_header_time" 1>&6
21031 if test $ac_cv_header_time = yes; then
21032 cat >> confdefs.h <<\EOF
21033 #define TIME_WITH_SYS_TIME 1
21038 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21039 echo "configure:21040: checking whether struct tm is in sys/time.h or time.h" >&5
21040 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21041 echo $ac_n "(cached) $ac_c" 1>&6
21043 cat > conftest.$ac_ext <<EOF
21044 #line 21045 "configure"
21045 #include "confdefs.h"
21046 #include <sys/types.h>
21049 struct tm *tp; tp->tm_sec;
21052 if { (eval echo configure:21053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21054 ac_cv_struct_tm=time.h
21056 echo "configure: failed program was:" >&5
21057 cat conftest.$ac_ext >&5
21059 ac_cv_struct_tm=sys/time.h
21064 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21065 if test $ac_cv_struct_tm = sys/time.h; then
21066 cat >> confdefs.h <<\EOF
21067 #define TM_IN_SYS_TIME 1
21072 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21073 echo "configure:21074: checking for uid_t in sys/types.h" >&5
21074 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21075 echo $ac_n "(cached) $ac_c" 1>&6
21077 cat > conftest.$ac_ext <<EOF
21078 #line 21079 "configure"
21079 #include "confdefs.h"
21080 #include <sys/types.h>
21082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21083 egrep "uid_t" >/dev/null 2>&1; then
21085 ac_cv_type_uid_t=yes
21088 ac_cv_type_uid_t=no
21094 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21095 if test $ac_cv_type_uid_t = no; then
21096 cat >> confdefs.h <<\EOF
21100 cat >> confdefs.h <<\EOF
21106 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21107 echo "configure:21108: checking for sig_atomic_t" >&5
21108 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21109 echo $ac_n "(cached) $ac_c" 1>&6
21111 cat > conftest.$ac_ext <<EOF
21112 #line 21113 "configure"
21113 #include "confdefs.h"
21114 #include <signal.h>
21116 sig_atomic_t atomic;
21119 if { (eval echo configure:21120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21121 ol_cv_type_sig_atomic_t=yes
21123 echo "configure: failed program was:" >&5
21124 cat conftest.$ac_ext >&5
21126 ol_cv_type_sig_atomic_t=no
21131 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21132 if test $ol_cv_type_sig_atomic_t = no; then
21133 cat >> confdefs.h <<\EOF
21134 #define sig_atomic_t int
21141 # test for pw_gecos in struct passwd
21142 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21143 echo "configure:21144: checking struct passwd for pw_gecos" >&5
21144 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21145 echo $ac_n "(cached) $ac_c" 1>&6
21148 cat > conftest.$ac_ext <<EOF
21149 #line 21150 "configure"
21150 #include "confdefs.h"
21155 pwd.pw_gecos = pwd.pw_name;
21159 if { (eval echo configure:21160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21161 ol_cv_struct_passwd_pw_gecos=yes
21163 echo "configure: failed program was:" >&5
21164 cat conftest.$ac_ext >&5
21166 ol_cv_struct_passwd_pw_gecos=no
21171 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21172 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21173 cat >> confdefs.h <<\EOF
21174 #define HAVE_PW_GECOS 1
21179 # test for pw_passwd in struct passwd
21180 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21181 echo "configure:21182: checking struct passwd for pw_passwd" >&5
21182 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21183 echo $ac_n "(cached) $ac_c" 1>&6
21186 cat > conftest.$ac_ext <<EOF
21187 #line 21188 "configure"
21188 #include "confdefs.h"
21193 pwd.pw_passwd = pwd.pw_name;
21197 if { (eval echo configure:21198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21199 ol_cv_struct_passwd_pw_passwd=yes
21201 echo "configure: failed program was:" >&5
21202 cat conftest.$ac_ext >&5
21204 ol_cv_struct_passwd_pw_passwd=no
21209 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21210 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21211 cat >> confdefs.h <<\EOF
21212 #define HAVE_PW_PASSWD 1
21218 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21219 echo "configure:21220: checking if toupper() requires islower()" >&5
21220 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21221 echo $ac_n "(cached) $ac_c" 1>&6
21224 if test "$cross_compiling" = yes; then
21225 ol_cv_c_upper_lower=safe
21227 cat > conftest.$ac_ext <<EOF
21228 #line 21229 "configure"
21229 #include "confdefs.h"
21234 if ('C' == toupper('C'))
21240 if { (eval echo configure:21241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21242 ol_cv_c_upper_lower=no
21244 echo "configure: failed program was:" >&5
21245 cat conftest.$ac_ext >&5
21247 ol_cv_c_upper_lower=yes
21254 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21255 if test $ol_cv_c_upper_lower != no ; then
21256 cat >> confdefs.h <<\EOF
21257 #define C_UPPER_LOWER 1
21262 echo $ac_n "checking for working const""... $ac_c" 1>&6
21263 echo "configure:21264: checking for working const" >&5
21264 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21265 echo $ac_n "(cached) $ac_c" 1>&6
21267 cat > conftest.$ac_ext <<EOF
21268 #line 21269 "configure"
21269 #include "confdefs.h"
21273 /* Ultrix mips cc rejects this. */
21274 typedef int charset[2]; const charset x;
21275 /* SunOS 4.1.1 cc rejects this. */
21276 char const *const *ccp;
21278 /* NEC SVR4.0.2 mips cc rejects this. */
21279 struct point {int x, y;};
21280 static struct point const zero = {0,0};
21281 /* AIX XL C 1.02.0.0 rejects this.
21282 It does not let you subtract one const X* pointer from another in an arm
21283 of an if-expression whose if-part is not a constant expression */
21284 const char *g = "string";
21285 ccp = &g + (g ? g-g : 0);
21286 /* HPUX 7.0 cc rejects these. */
21289 ccp = (char const *const *) p;
21290 { /* SCO 3.2v4 cc rejects this. */
21292 char const *s = 0 ? (char *) 0 : (char const *) 0;
21296 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21297 int x[] = {25, 17};
21298 const int *foo = &x[0];
21301 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21302 typedef const int *iptr;
21306 { /* AIX XL C 1.02.0.0 rejects this saying
21307 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21308 struct s { int j; const int *ap[3]; };
21309 struct s *b; b->j = 5;
21311 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21312 const int foo = 10;
21317 if { (eval echo configure:21318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21321 echo "configure: failed program was:" >&5
21322 cat conftest.$ac_ext >&5
21329 echo "$ac_t""$ac_cv_c_const" 1>&6
21330 if test $ac_cv_c_const = no; then
21331 cat >> confdefs.h <<\EOF
21337 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21338 echo "configure:21339: checking if compiler understands volatile" >&5
21339 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21340 echo $ac_n "(cached) $ac_c" 1>&6
21342 cat > conftest.$ac_ext <<EOF
21343 #line 21344 "configure"
21344 #include "confdefs.h"
21347 volatile int a; int * volatile b = x ? &y : &z;
21348 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21352 if { (eval echo configure:21353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21354 ol_cv_c_volatile=yes
21356 echo "configure: failed program was:" >&5
21357 cat conftest.$ac_ext >&5
21359 ol_cv_c_volatile=no
21364 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21365 if test $ol_cv_c_volatile = yes; then
21368 cat >> confdefs.h <<\EOF
21375 if test $cross_compiling = yes ; then
21376 cat >> confdefs.h <<\EOF
21377 #define CROSS_COMPILING 1
21381 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21382 echo "configure:21383: checking whether byte ordering is bigendian" >&5
21383 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21384 echo $ac_n "(cached) $ac_c" 1>&6
21386 ac_cv_c_bigendian=unknown
21387 # See if sys/param.h defines the BYTE_ORDER macro.
21388 cat > conftest.$ac_ext <<EOF
21389 #line 21390 "configure"
21390 #include "confdefs.h"
21391 #include <sys/types.h>
21392 #include <sys/param.h>
21395 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21396 bogus endian macros
21400 if { (eval echo configure:21401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21402 # It does; now see whether it defined to BIG_ENDIAN or not.
21403 cat > conftest.$ac_ext <<EOF
21404 #line 21405 "configure"
21405 #include "confdefs.h"
21406 #include <sys/types.h>
21407 #include <sys/param.h>
21410 #if BYTE_ORDER != BIG_ENDIAN
21415 if { (eval echo configure:21416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21417 ac_cv_c_bigendian=yes
21419 echo "configure: failed program was:" >&5
21420 cat conftest.$ac_ext >&5
21422 ac_cv_c_bigendian=no
21426 echo "configure: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21430 if test $ac_cv_c_bigendian = unknown; then
21431 if test "$cross_compiling" = yes; then
21432 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21434 cat > conftest.$ac_ext <<EOF
21435 #line 21436 "configure"
21436 #include "confdefs.h"
21438 /* Are we little or big endian? From Harbison&Steele. */
21442 char c[sizeof (long)];
21445 exit (u.c[sizeof (long) - 1] == 1);
21448 if { (eval echo configure:21449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21450 ac_cv_c_bigendian=no
21452 echo "configure: failed program was:" >&5
21453 cat conftest.$ac_ext >&5
21455 ac_cv_c_bigendian=yes
21463 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21464 if test $ac_cv_c_bigendian = yes; then
21465 cat >> confdefs.h <<\EOF
21466 #define WORDS_BIGENDIAN 1
21473 echo $ac_n "checking size of short""... $ac_c" 1>&6
21474 echo "configure:21475: checking size of short" >&5
21475 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21478 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21479 cat > conftest.$ac_ext <<EOF
21480 #line 21481 "configure"
21481 #include "confdefs.h"
21482 #include "confdefs.h"
21483 #include <sys/types.h>
21487 switch (0) case 0: case (sizeof (short) == $ac_size):;
21490 if { (eval echo configure:21491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21492 ac_cv_sizeof_short=$ac_size
21494 echo "configure: failed program was:" >&5
21495 cat conftest.$ac_ext >&5
21498 if test x$ac_cv_sizeof_short != x ; then break; fi
21503 if test x$ac_cv_sizeof_short = x ; then
21504 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21506 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21507 cat >> confdefs.h <<EOF
21508 #define SIZEOF_SHORT $ac_cv_sizeof_short
21512 echo $ac_n "checking size of int""... $ac_c" 1>&6
21513 echo "configure:21514: checking size of int" >&5
21514 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21515 echo $ac_n "(cached) $ac_c" 1>&6
21517 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21518 cat > conftest.$ac_ext <<EOF
21519 #line 21520 "configure"
21520 #include "confdefs.h"
21521 #include "confdefs.h"
21522 #include <sys/types.h>
21526 switch (0) case 0: case (sizeof (int) == $ac_size):;
21529 if { (eval echo configure:21530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21531 ac_cv_sizeof_int=$ac_size
21533 echo "configure: failed program was:" >&5
21534 cat conftest.$ac_ext >&5
21537 if test x$ac_cv_sizeof_int != x ; then break; fi
21542 if test x$ac_cv_sizeof_int = x ; then
21543 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21545 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21546 cat >> confdefs.h <<EOF
21547 #define SIZEOF_INT $ac_cv_sizeof_int
21551 echo $ac_n "checking size of long""... $ac_c" 1>&6
21552 echo "configure:21553: checking size of long" >&5
21553 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21554 echo $ac_n "(cached) $ac_c" 1>&6
21556 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21557 cat > conftest.$ac_ext <<EOF
21558 #line 21559 "configure"
21559 #include "confdefs.h"
21560 #include "confdefs.h"
21561 #include <sys/types.h>
21565 switch (0) case 0: case (sizeof (long) == $ac_size):;
21568 if { (eval echo configure:21569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21570 ac_cv_sizeof_long=$ac_size
21572 echo "configure: failed program was:" >&5
21573 cat conftest.$ac_ext >&5
21576 if test x$ac_cv_sizeof_long != x ; then break; fi
21581 if test x$ac_cv_sizeof_long = x ; then
21582 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21584 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21585 cat >> confdefs.h <<EOF
21586 #define SIZEOF_LONG $ac_cv_sizeof_long
21591 if test "$ac_cv_sizeof_int" -lt 4 ; then
21592 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21594 cat >> confdefs.h <<\EOF
21595 #define LBER_INT_T long
21599 cat >> confdefs.h <<\EOF
21600 #define LBER_INT_T int
21605 cat >> confdefs.h <<\EOF
21606 #define LBER_LEN_T long
21609 cat >> confdefs.h <<\EOF
21610 #define LBER_SOCKET_T int
21613 cat >> confdefs.h <<\EOF
21614 #define LBER_TAG_T long
21618 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21619 echo "configure:21620: checking for 8-bit clean memcmp" >&5
21620 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21621 echo $ac_n "(cached) $ac_c" 1>&6
21623 if test "$cross_compiling" = yes; then
21624 ac_cv_func_memcmp_clean=no
21626 cat > conftest.$ac_ext <<EOF
21627 #line 21628 "configure"
21628 #include "confdefs.h"
21632 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21633 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21637 if { (eval echo configure:21638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21639 ac_cv_func_memcmp_clean=yes
21641 echo "configure: failed program was:" >&5
21642 cat conftest.$ac_ext >&5
21644 ac_cv_func_memcmp_clean=no
21651 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21652 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21654 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21655 echo "configure:21656: checking for strftime" >&5
21656 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21657 echo $ac_n "(cached) $ac_c" 1>&6
21659 cat > conftest.$ac_ext <<EOF
21660 #line 21661 "configure"
21661 #include "confdefs.h"
21662 /* System header to define __stub macros and hopefully few prototypes,
21663 which can conflict with char strftime(); below. */
21664 #include <assert.h>
21665 /* Override any gcc2 internal prototype to avoid an error. */
21666 /* We use char because int might match the return type of a gcc2
21667 builtin and then its argument prototype would still apply. */
21673 /* The GNU C library defines this for functions which it implements
21674 to always fail with ENOSYS. Some functions are actually named
21675 something starting with __ and the normal name is an alias. */
21676 #if defined (__stub_strftime) || defined (__stub___strftime)
21684 if { (eval echo configure:21685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21686 eval "ac_cv_func_strftime=yes"
21688 echo "configure: failed program was:" >&5
21689 cat conftest.$ac_ext >&5
21691 eval "ac_cv_func_strftime=no"
21696 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21697 echo "$ac_t""yes" 1>&6
21698 cat >> confdefs.h <<\EOF
21699 #define HAVE_STRFTIME 1
21703 echo "$ac_t""no" 1>&6
21704 # strftime is in -lintl on SCO UNIX.
21705 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21706 echo "configure:21707: checking for strftime in -lintl" >&5
21707 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21709 echo $ac_n "(cached) $ac_c" 1>&6
21711 ac_save_LIBS="$LIBS"
21712 LIBS="-lintl $LIBS"
21713 cat > conftest.$ac_ext <<EOF
21714 #line 21715 "configure"
21715 #include "confdefs.h"
21716 /* Override any gcc2 internal prototype to avoid an error. */
21717 /* We use char because int might match the return type of a gcc2
21718 builtin and then its argument prototype would still apply. */
21725 if { (eval echo configure:21726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21727 eval "ac_cv_lib_$ac_lib_var=yes"
21729 echo "configure: failed program was:" >&5
21730 cat conftest.$ac_ext >&5
21732 eval "ac_cv_lib_$ac_lib_var=no"
21735 LIBS="$ac_save_LIBS"
21738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21739 echo "$ac_t""yes" 1>&6
21740 cat >> confdefs.h <<\EOF
21741 #define HAVE_STRFTIME 1
21744 LIBS="-lintl $LIBS"
21746 echo "$ac_t""no" 1>&6
21752 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21753 echo "configure:21754: checking for inet_aton()" >&5
21754 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21755 echo $ac_n "(cached) $ac_c" 1>&6
21757 cat > conftest.$ac_ext <<EOF
21758 #line 21759 "configure"
21759 #include "confdefs.h"
21761 #ifdef HAVE_SYS_TYPES_H
21762 # include <sys/types.h>
21764 #ifdef HAVE_SYS_SOCKET_H
21765 # include <sys/socket.h>
21766 # ifdef HAVE_SYS_SELECT_H
21767 # include <sys/select.h>
21769 # include <netinet/in.h>
21770 # ifdef HAVE_ARPA_INET_H
21771 # include <arpa/inet.h>
21777 int rc = inet_aton( "255.255.255.255", &in );
21780 if { (eval echo configure:21781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21782 ol_cv_func_inet_aton=yes
21784 echo "configure: failed program was:" >&5
21785 cat conftest.$ac_ext >&5
21787 ol_cv_func_inet_aton=no
21792 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21793 if test $ol_cv_func_inet_aton != no; then
21794 cat >> confdefs.h <<\EOF
21795 #define HAVE_INET_ATON 1
21801 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21802 echo "configure:21803: checking for _spawnlp" >&5
21803 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21804 echo $ac_n "(cached) $ac_c" 1>&6
21806 cat > conftest.$ac_ext <<EOF
21807 #line 21808 "configure"
21808 #include "confdefs.h"
21809 /* System header to define __stub macros and hopefully few prototypes,
21810 which can conflict with char _spawnlp(); below. */
21811 #include <assert.h>
21812 /* Override any gcc2 internal prototype to avoid an error. */
21813 /* We use char because int might match the return type of a gcc2
21814 builtin and then its argument prototype would still apply. */
21820 /* The GNU C library defines this for functions which it implements
21821 to always fail with ENOSYS. Some functions are actually named
21822 something starting with __ and the normal name is an alias. */
21823 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21831 if { (eval echo configure:21832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21833 eval "ac_cv_func__spawnlp=yes"
21835 echo "configure: failed program was:" >&5
21836 cat conftest.$ac_ext >&5
21838 eval "ac_cv_func__spawnlp=no"
21843 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21844 echo "$ac_t""yes" 1>&6
21845 cat >> confdefs.h <<\EOF
21846 #define HAVE_SPAWNLP 1
21850 echo "$ac_t""no" 1>&6
21854 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21855 echo "configure:21856: checking for _snprintf" >&5
21856 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21857 echo $ac_n "(cached) $ac_c" 1>&6
21859 cat > conftest.$ac_ext <<EOF
21860 #line 21861 "configure"
21861 #include "confdefs.h"
21862 /* System header to define __stub macros and hopefully few prototypes,
21863 which can conflict with char _snprintf(); below. */
21864 #include <assert.h>
21865 /* Override any gcc2 internal prototype to avoid an error. */
21866 /* We use char because int might match the return type of a gcc2
21867 builtin and then its argument prototype would still apply. */
21873 /* The GNU C library defines this for functions which it implements
21874 to always fail with ENOSYS. Some functions are actually named
21875 something starting with __ and the normal name is an alias. */
21876 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21884 if { (eval echo configure:21885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21886 eval "ac_cv_func__snprintf=yes"
21888 echo "configure: failed program was:" >&5
21889 cat conftest.$ac_ext >&5
21891 eval "ac_cv_func__snprintf=no"
21896 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21897 echo "$ac_t""yes" 1>&6
21898 ac_cv_func_snprintf=yes
21899 cat >> confdefs.h <<\EOF
21900 #define snprintf _snprintf
21905 echo "$ac_t""no" 1>&6
21909 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21910 echo "configure:21911: checking for _vsnprintf" >&5
21911 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21912 echo $ac_n "(cached) $ac_c" 1>&6
21914 cat > conftest.$ac_ext <<EOF
21915 #line 21916 "configure"
21916 #include "confdefs.h"
21917 /* System header to define __stub macros and hopefully few prototypes,
21918 which can conflict with char _vsnprintf(); below. */
21919 #include <assert.h>
21920 /* Override any gcc2 internal prototype to avoid an error. */
21921 /* We use char because int might match the return type of a gcc2
21922 builtin and then its argument prototype would still apply. */
21928 /* The GNU C library defines this for functions which it implements
21929 to always fail with ENOSYS. Some functions are actually named
21930 something starting with __ and the normal name is an alias. */
21931 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21939 if { (eval echo configure:21940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21941 eval "ac_cv_func__vsnprintf=yes"
21943 echo "configure: failed program was:" >&5
21944 cat conftest.$ac_ext >&5
21946 eval "ac_cv_func__vsnprintf=no"
21951 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21952 echo "$ac_t""yes" 1>&6
21953 ac_cv_func_vsnprintf=yes
21954 cat >> confdefs.h <<\EOF
21955 #define vsnprintf _vsnprintf
21960 echo "$ac_t""no" 1>&6
21964 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21965 echo "configure:21966: checking for vprintf" >&5
21966 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21967 echo $ac_n "(cached) $ac_c" 1>&6
21969 cat > conftest.$ac_ext <<EOF
21970 #line 21971 "configure"
21971 #include "confdefs.h"
21972 /* System header to define __stub macros and hopefully few prototypes,
21973 which can conflict with char vprintf(); below. */
21974 #include <assert.h>
21975 /* Override any gcc2 internal prototype to avoid an error. */
21976 /* We use char because int might match the return type of a gcc2
21977 builtin and then its argument prototype would still apply. */
21983 /* The GNU C library defines this for functions which it implements
21984 to always fail with ENOSYS. Some functions are actually named
21985 something starting with __ and the normal name is an alias. */
21986 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21994 if { (eval echo configure:21995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21996 eval "ac_cv_func_vprintf=yes"
21998 echo "configure: failed program was:" >&5
21999 cat conftest.$ac_ext >&5
22001 eval "ac_cv_func_vprintf=no"
22006 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22007 echo "$ac_t""yes" 1>&6
22008 cat >> confdefs.h <<\EOF
22009 #define HAVE_VPRINTF 1
22013 echo "$ac_t""no" 1>&6
22016 if test "$ac_cv_func_vprintf" != yes; then
22017 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22018 echo "configure:22019: checking for _doprnt" >&5
22019 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22020 echo $ac_n "(cached) $ac_c" 1>&6
22022 cat > conftest.$ac_ext <<EOF
22023 #line 22024 "configure"
22024 #include "confdefs.h"
22025 /* System header to define __stub macros and hopefully few prototypes,
22026 which can conflict with char _doprnt(); below. */
22027 #include <assert.h>
22028 /* Override any gcc2 internal prototype to avoid an error. */
22029 /* We use char because int might match the return type of a gcc2
22030 builtin and then its argument prototype would still apply. */
22036 /* The GNU C library defines this for functions which it implements
22037 to always fail with ENOSYS. Some functions are actually named
22038 something starting with __ and the normal name is an alias. */
22039 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22047 if { (eval echo configure:22048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22049 eval "ac_cv_func__doprnt=yes"
22051 echo "configure: failed program was:" >&5
22052 cat conftest.$ac_ext >&5
22054 eval "ac_cv_func__doprnt=no"
22059 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22060 echo "$ac_t""yes" 1>&6
22061 cat >> confdefs.h <<\EOF
22062 #define HAVE_DOPRNT 1
22066 echo "$ac_t""no" 1>&6
22072 if test $ac_cv_func_vprintf = yes ; then
22073 for ac_func in snprintf vsnprintf
22075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22076 echo "configure:22077: checking for $ac_func" >&5
22077 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 /* System header to define __stub macros and hopefully few prototypes,
22084 which can conflict with char $ac_func(); below. */
22085 #include <assert.h>
22086 /* Override any gcc2 internal prototype to avoid an error. */
22087 /* We use char because int might match the return type of a gcc2
22088 builtin and then its argument prototype would still apply. */
22094 /* The GNU C library defines this for functions which it implements
22095 to always fail with ENOSYS. Some functions are actually named
22096 something starting with __ and the normal name is an alias. */
22097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22105 if { (eval echo configure:22106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22107 eval "ac_cv_func_$ac_func=yes"
22109 echo "configure: failed program was:" >&5
22110 cat conftest.$ac_ext >&5
22112 eval "ac_cv_func_$ac_func=no"
22117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22118 echo "$ac_t""yes" 1>&6
22119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22120 cat >> confdefs.h <<EOF
22121 #define $ac_tr_func 1
22125 echo "$ac_t""no" 1>&6
22187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22188 echo "configure:22189: checking for $ac_func" >&5
22189 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22190 echo $ac_n "(cached) $ac_c" 1>&6
22192 cat > conftest.$ac_ext <<EOF
22193 #line 22194 "configure"
22194 #include "confdefs.h"
22195 /* System header to define __stub macros and hopefully few prototypes,
22196 which can conflict with char $ac_func(); below. */
22197 #include <assert.h>
22198 /* Override any gcc2 internal prototype to avoid an error. */
22199 /* We use char because int might match the return type of a gcc2
22200 builtin and then its argument prototype would still apply. */
22206 /* The GNU C library defines this for functions which it implements
22207 to always fail with ENOSYS. Some functions are actually named
22208 something starting with __ and the normal name is an alias. */
22209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22217 if { (eval echo configure:22218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22219 eval "ac_cv_func_$ac_func=yes"
22221 echo "configure: failed program was:" >&5
22222 cat conftest.$ac_ext >&5
22224 eval "ac_cv_func_$ac_func=no"
22229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22230 echo "$ac_t""yes" 1>&6
22231 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22232 cat >> confdefs.h <<EOF
22233 #define $ac_tr_func 1
22237 echo "$ac_t""no" 1>&6
22242 for ac_func in getopt getpeereid
22244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22245 echo "configure:22246: checking for $ac_func" >&5
22246 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22247 echo $ac_n "(cached) $ac_c" 1>&6
22249 cat > conftest.$ac_ext <<EOF
22250 #line 22251 "configure"
22251 #include "confdefs.h"
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func(); below. */
22254 #include <assert.h>
22255 /* Override any gcc2 internal prototype to avoid an error. */
22256 /* We use char because int might match the return type of a gcc2
22257 builtin and then its argument prototype would still apply. */
22263 /* The GNU C library defines this for functions which it implements
22264 to always fail with ENOSYS. Some functions are actually named
22265 something starting with __ and the normal name is an alias. */
22266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22274 if { (eval echo configure:22275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22276 eval "ac_cv_func_$ac_func=yes"
22278 echo "configure: failed program was:" >&5
22279 cat conftest.$ac_ext >&5
22281 eval "ac_cv_func_$ac_func=no"
22286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22287 echo "$ac_t""yes" 1>&6
22288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22289 cat >> confdefs.h <<EOF
22290 #define $ac_tr_func 1
22294 echo "$ac_t""no" 1>&6
22295 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22301 if test "$ac_cv_func_getopt" != yes; then
22302 LIBSRCS="$LIBSRCS getopt.c"
22304 if test "$ac_cv_func_getpeereid" != yes; then
22305 LIBSRCS="$LIBSRCS getpeereid.c"
22307 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22308 if test "$ac_cv_func_snprintf" != yes; then
22309 cat >> confdefs.h <<\EOF
22310 #define snprintf ber_pvt_snprintf
22314 if test "$ac_cv_func_vsnprintf" != yes; then
22315 cat >> confdefs.h <<\EOF
22316 #define vsnprintf ber_pvt_vsnprintf
22322 # Check Configuration
22323 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22324 echo "configure:22325: checking declaration of sys_errlist" >&5
22325 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22326 echo $ac_n "(cached) $ac_c" 1>&6
22329 cat > conftest.$ac_ext <<EOF
22330 #line 22331 "configure"
22331 #include "confdefs.h"
22334 #include <sys/types.h>
22337 #include <stdlib.h>
22340 char *c = (char *) *sys_errlist
22343 if { (eval echo configure:22344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22345 ol_cv_dcl_sys_errlist=yes
22346 ol_cv_have_sys_errlist=yes
22348 echo "configure: failed program was:" >&5
22349 cat conftest.$ac_ext >&5
22351 ol_cv_dcl_sys_errlist=no
22356 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22358 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22359 if test $ol_cv_dcl_sys_errlist = no ; then
22360 cat >> confdefs.h <<\EOF
22361 #define DECL_SYS_ERRLIST 1
22365 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22366 echo "configure:22367: checking existence of sys_errlist" >&5
22367 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22368 echo $ac_n "(cached) $ac_c" 1>&6
22371 cat > conftest.$ac_ext <<EOF
22372 #line 22373 "configure"
22373 #include "confdefs.h"
22376 char *c = (char *) *sys_errlist
22379 if { (eval echo configure:22380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22381 ol_cv_have_sys_errlist=yes
22383 echo "configure: failed program was:" >&5
22384 cat conftest.$ac_ext >&5
22386 ol_cv_have_sys_errlist=no
22391 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22393 if test $ol_cv_have_sys_errlist = yes ; then
22394 cat >> confdefs.h <<\EOF
22395 #define HAVE_SYS_ERRLIST 1
22402 if test "$ol_enable_slapi" != no ; then
22403 for ac_hdr in ltdl.h
22405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22407 echo "configure:22408: checking for $ac_hdr" >&5
22408 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22409 echo $ac_n "(cached) $ac_c" 1>&6
22411 cat > conftest.$ac_ext <<EOF
22412 #line 22413 "configure"
22413 #include "confdefs.h"
22416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22417 { (eval echo configure:22418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22419 if test -z "$ac_err"; then
22421 eval "ac_cv_header_$ac_safe=yes"
22424 echo "configure: failed program was:" >&5
22425 cat conftest.$ac_ext >&5
22427 eval "ac_cv_header_$ac_safe=no"
22431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22432 echo "$ac_t""yes" 1>&6
22433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22434 cat >> confdefs.h <<EOF
22435 #define $ac_tr_hdr 1
22439 echo "$ac_t""no" 1>&6
22444 if test $ac_cv_header_ltdl_h != yes ; then
22445 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22447 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
22448 echo "configure:22449: checking for lt_dlinit in -lltdl" >&5
22449 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
22450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22451 echo $ac_n "(cached) $ac_c" 1>&6
22453 ac_save_LIBS="$LIBS"
22454 LIBS="-lltdl $LIBS"
22455 cat > conftest.$ac_ext <<EOF
22456 #line 22457 "configure"
22457 #include "confdefs.h"
22458 /* Override any gcc2 internal prototype to avoid an error. */
22459 /* We use char because int might match the return type of a gcc2
22460 builtin and then its argument prototype would still apply. */
22467 if { (eval echo configure:22468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22469 eval "ac_cv_lib_$ac_lib_var=yes"
22471 echo "configure: failed program was:" >&5
22472 cat conftest.$ac_ext >&5
22474 eval "ac_cv_lib_$ac_lib_var=no"
22477 LIBS="$ac_save_LIBS"
22480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22481 echo "$ac_t""yes" 1>&6
22484 LIBSLAPI=./libslapi.a
22485 LIBSLAPITOOLS=../libslapi.a
22486 cat >> confdefs.h <<\EOF
22487 #define HAVE_LIBLTDL 1
22492 echo "$ac_t""no" 1>&6
22493 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
22497 cat >> confdefs.h <<\EOF
22498 #define LDAP_SLAPI 1
22503 if test "$ol_enable_debug" != no ; then
22504 cat >> confdefs.h <<\EOF
22505 #define LDAP_DEBUG 1
22509 if test "$ol_enable_syslog" = yes ; then
22510 cat >> confdefs.h <<\EOF
22511 #define LDAP_SYSLOG 1
22515 if test "$ol_enable_cache" = no ; then
22516 cat >> confdefs.h <<\EOF
22517 #define LDAP_NOCACHE 1
22521 if test "$ol_link_kbind" != no ; then
22522 cat >> confdefs.h <<\EOF
22523 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22527 if test "$ol_enable_proctitle" != no ; then
22528 cat >> confdefs.h <<\EOF
22529 #define LDAP_PROCTITLE 1
22533 if test "$ol_enable_referrals" != no ; then
22534 cat >> confdefs.h <<\EOF
22535 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22539 if test "$ol_enable_local" != no; then
22540 cat >> confdefs.h <<\EOF
22541 #define LDAP_PF_LOCAL 1
22545 if test "$ol_link_ipv6" != no; then
22546 cat >> confdefs.h <<\EOF
22547 #define LDAP_PF_INET6 1
22551 if test "$ol_enable_cleartext" != no ; then
22552 cat >> confdefs.h <<\EOF
22553 #define SLAPD_CLEARTEXT 1
22557 if test "$ol_enable_crypt" != no ; then
22558 cat >> confdefs.h <<\EOF
22559 #define SLAPD_CRYPT 1
22563 if test "$ol_link_kpasswd" != no ; then
22564 cat >> confdefs.h <<\EOF
22565 #define SLAPD_KPASSWD 1
22569 if test "$ol_link_spasswd" != no ; then
22570 cat >> confdefs.h <<\EOF
22571 #define SLAPD_SPASSWD 1
22575 if test "$ol_enable_multimaster" != no ; then
22576 cat >> confdefs.h <<\EOF
22577 #define SLAPD_MULTIMASTER 1
22581 if test "$ol_enable_phonetic" != no ; then
22582 cat >> confdefs.h <<\EOF
22583 #define SLAPD_PHONETIC 1
22587 if test "$ol_enable_rlookups" != no ; then
22588 cat >> confdefs.h <<\EOF
22589 #define SLAPD_RLOOKUPS 1
22593 if test "$ol_enable_aci" != no ; then
22594 cat >> confdefs.h <<\EOF
22595 #define SLAPD_ACI_ENABLED 1
22600 if test "$ol_link_modules" != no ; then
22601 cat >> confdefs.h <<\EOF
22602 #define SLAPD_MODULES 1
22606 SLAPD_MODULES_LDFLAGS="-dlopen self"
22609 if test "$ol_enable_bdb" != no ; then
22610 cat >> confdefs.h <<\EOF
22611 #define SLAPD_BDB 1
22616 if test "$ol_with_bdb_module" != static ; then
22617 cat >> confdefs.h <<\EOF
22618 #define SLAPD_BDB_DYNAMIC 1
22622 BUILD_BDB_DYNAMIC=shared
22623 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22625 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22629 if test "$ol_link_dnssrv" != no ; then
22630 cat >> confdefs.h <<\EOF
22631 #define SLAPD_DNSSRV 1
22636 if test "$ol_with_dnssrv_module" != static ; then
22637 cat >> confdefs.h <<\EOF
22638 #define SLAPD_DNSSRV_DYNAMIC 1
22642 BUILD_DNSSRV_DYNAMIC=shared
22643 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22645 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22649 if test "$ol_enable_ldap" != no ; then
22650 cat >> confdefs.h <<\EOF
22651 #define SLAPD_LDAP 1
22656 if test "$ol_with_ldap_module" != static ; then
22657 cat >> confdefs.h <<\EOF
22658 #define SLAPD_LDAP_DYNAMIC 1
22662 BUILD_LDAP_DYNAMIC=shared
22663 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22665 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22669 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22670 cat >> confdefs.h <<\EOF
22671 #define SLAPD_LDBM 1
22676 if test "$ol_with_ldbm_module" != static ; then
22677 cat >> confdefs.h <<\EOF
22678 #define SLAPD_LDBM_DYNAMIC 1
22682 BUILD_LDBM_DYNAMIC=shared
22683 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22685 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22689 if test "$ol_enable_meta" != no ; then
22690 if test "$ol_enable_ldap" = no ; then
22691 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22693 if test "$ol_enable_rewrite" = no ; then
22694 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22696 cat >> confdefs.h <<\EOF
22697 #define SLAPD_META 1
22704 if test "$ol_with_meta_module" != static ; then
22705 cat >> confdefs.h <<\EOF
22706 #define SLAPD_META_DYNAMIC 1
22710 BUILD_META_DYNAMIC=shared
22711 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22713 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22717 if test "$ol_enable_monitor" != no ; then
22718 cat >> confdefs.h <<\EOF
22719 #define SLAPD_MONITOR 1
22724 if test "$ol_with_monitor_module" != static ; then
22725 cat >> confdefs.h <<\EOF
22726 #define SLAPD_MONITOR_DYNAMIC 1
22730 BUILD_MONITOR_DYNAMIC=shared
22731 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22733 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22737 if test "$ol_enable_null" != no ; then
22738 cat >> confdefs.h <<\EOF
22739 #define SLAPD_NULL 1
22744 if test "$ol_with_null_module" != static ; then
22745 cat >> confdefs.h <<\EOF
22746 #define SLAPD_NULL_DYNAMIC 1
22750 BUILD_NULL_DYNAMIC=shared
22751 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22753 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22757 if test "$ol_enable_passwd" != no ; then
22758 cat >> confdefs.h <<\EOF
22759 #define SLAPD_PASSWD 1
22764 if test "$ol_with_passwd_module" != static ; then
22765 cat >> confdefs.h <<\EOF
22766 #define SLAPD_PASSWD_DYNAMIC 1
22770 BUILD_PASSWD_DYNAMIC=shared
22771 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22773 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22777 if test "$ol_link_perl" != no ; then
22778 cat >> confdefs.h <<\EOF
22779 #define SLAPD_PERL 1
22784 if test "$ol_with_perl_module" != static ; then
22785 cat >> confdefs.h <<\EOF
22786 #define SLAPD_PERL_DYNAMIC 1
22790 BUILD_PERL_DYNAMIC=shared
22791 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22793 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22797 if test "$ol_enable_shell" != no ; then
22798 if test "$ol_link_thread" != no ; then
22799 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
22801 cat >> confdefs.h <<\EOF
22802 #define SLAPD_SHELL 1
22807 if test "$ol_with_shell_module" != static ; then
22808 cat >> confdefs.h <<\EOF
22809 #define SLAPD_SHELL_DYNAMIC 1
22813 BUILD_SHELL_DYNAMIC=shared
22814 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22816 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22820 if test "$ol_enable_tcl" != no ; then
22821 cat >> confdefs.h <<\EOF
22822 #define SLAPD_TCL 1
22827 if test "$ol_with_tcl_module" != static; then
22828 cat >> confdefs.h <<\EOF
22829 #define SLAPD_TCL_DYNAMIC 1
22833 BUILD_TCL_DYNAMIC=shared
22834 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22836 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22840 if test "$ol_link_sql" != no ; then
22841 cat >> confdefs.h <<\EOF
22842 #define SLAPD_SQL 1
22847 if test "$ol_with_sql_module" != static; then
22848 cat >> confdefs.h <<\EOF
22849 #define SLAPD_SQL_DYNAMIC 1
22853 BUILD_SQL_DYNAMIC=shared
22854 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22856 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22860 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22861 $BUILD_SLAPD = yes ; then
22865 if test "$ol_enable_rewrite" != no ; then
22866 cat >> confdefs.h <<\EOF
22867 #define ENABLE_REWRITE 1
22873 if test "$ol_enable_slapi" != no ; then
22874 cat >> confdefs.h <<\EOF
22875 #define ENABLE_SLAPI 1
22879 SLAPD_SLAPI_DEPEND=libslapi.a
22884 if test "$ac_cv_mingw32" = yes ; then
22886 SLAPD_MODULES_LDFLAGS=
22891 if test -z "$SLAPD_STATIC_BACKENDS"; then
22892 SLAPD_NO_STATIC='#'
22969 # Check whether --with-xxinstall or --without-xxinstall was given.
22970 if test "${with_xxinstall+set}" = set; then
22971 withval="$with_xxinstall"
22979 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22981 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22982 # Let make expand exec_prefix.
22983 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22985 # Any assignment to VPATH causes Sun make to only execute
22986 # the first set of double-colon rules, so remove it if not needed.
22987 # If there is a colon in the path, we need to keep it.
22988 if test "x$srcdir" = x.; then
22989 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22992 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22994 DEFS=-DHAVE_CONFIG_H
22996 # Without the "./", some shells look in PATH for config.status.
22997 : ${CONFIG_STATUS=./config.status}
22999 echo creating $CONFIG_STATUS
23000 rm -f $CONFIG_STATUS
23001 cat > $CONFIG_STATUS <<EOF
23003 # Generated automatically by configure.
23004 # Run this file to recreate the current configuration.
23005 # This directory was configured as follows,
23006 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23008 # $0 $ac_configure_args
23010 # Compiler output produced by configure, useful for debugging
23011 # configure, is in ./config.log if it exists.
23013 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23016 case "\$ac_option" in
23017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23018 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23019 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23020 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23021 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23023 -help | --help | --hel | --he | --h)
23024 echo "\$ac_cs_usage"; exit 0 ;;
23025 *) echo "\$ac_cs_usage"; exit 1 ;;
23029 ac_given_srcdir=$srcdir
23030 ac_given_INSTALL="$INSTALL"
23032 trap 'rm -fr `echo "\
23033 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23034 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23035 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23036 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23037 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23038 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23039 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23040 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23041 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23042 include/Makefile:build/top.mk:include/Makefile.in \
23043 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23044 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23045 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23046 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23047 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23048 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23049 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23050 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23051 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23052 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23053 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23054 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23055 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23056 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23057 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23058 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23059 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23060 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23061 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23062 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23063 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23064 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23065 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23066 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23067 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23068 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23069 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23070 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23071 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23072 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23073 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23075 cat >> $CONFIG_STATUS <<EOF
23077 # Protect against being on the right side of a sed subst in config.status.
23078 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23079 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23083 s%@CFLAGS@%$CFLAGS%g
23084 s%@CPPFLAGS@%$CPPFLAGS%g
23085 s%@CXXFLAGS@%$CXXFLAGS%g
23086 s%@FFLAGS@%$FFLAGS%g
23088 s%@LDFLAGS@%$LDFLAGS%g
23090 s%@exec_prefix@%$exec_prefix%g
23091 s%@prefix@%$prefix%g
23092 s%@program_transform_name@%$program_transform_name%g
23093 s%@bindir@%$bindir%g
23094 s%@sbindir@%$sbindir%g
23095 s%@libexecdir@%$libexecdir%g
23096 s%@datadir@%$datadir%g
23097 s%@sysconfdir@%$sysconfdir%g
23098 s%@sharedstatedir@%$sharedstatedir%g
23099 s%@localstatedir@%$localstatedir%g
23100 s%@libdir@%$libdir%g
23101 s%@includedir@%$includedir%g
23102 s%@oldincludedir@%$oldincludedir%g
23103 s%@infodir@%$infodir%g
23104 s%@mandir@%$mandir%g
23106 s%@host_alias@%$host_alias%g
23107 s%@host_cpu@%$host_cpu%g
23108 s%@host_vendor@%$host_vendor%g
23109 s%@host_os@%$host_os%g
23110 s%@target@%$target%g
23111 s%@target_alias@%$target_alias%g
23112 s%@target_cpu@%$target_cpu%g
23113 s%@target_vendor@%$target_vendor%g
23114 s%@target_os@%$target_os%g
23116 s%@build_alias@%$build_alias%g
23117 s%@build_cpu@%$build_cpu%g
23118 s%@build_vendor@%$build_vendor%g
23119 s%@build_os@%$build_os%g
23120 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23121 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23122 s%@INSTALL_DATA@%$INSTALL_DATA%g
23123 s%@PACKAGE@%$PACKAGE%g
23124 s%@VERSION@%$VERSION%g
23125 s%@ACLOCAL@%$ACLOCAL%g
23126 s%@AUTOCONF@%$AUTOCONF%g
23127 s%@AUTOMAKE@%$AUTOMAKE%g
23128 s%@AUTOHEADER@%$AUTOHEADER%g
23129 s%@MAKEINFO@%$MAKEINFO%g
23130 s%@install_sh@%$install_sh%g
23133 s%@AMTARFLAGS@%$AMTARFLAGS%g
23134 s%@SET_MAKE@%$SET_MAKE%g
23135 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23136 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23137 s%@top_builddir@%$top_builddir%g
23138 s%@ldap_subdir@%$ldap_subdir%g
23142 s%@OBJEXT@%$OBJEXT%g
23143 s%@EXEEXT@%$EXEEXT%g
23145 s%@RANLIB@%$RANLIB%g
23147 s%@DLLTOOL@%$DLLTOOL%g
23149 s%@OBJDUMP@%$OBJDUMP%g
23151 s%@LIBTOOL@%$LIBTOOL%g
23152 s%@LTSTATIC@%$LTSTATIC%g
23154 s%@PERLBIN@%$PERLBIN%g
23155 s%@OL_MKDEP@%$OL_MKDEP%g
23156 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23157 s%@LIBOBJS@%$LIBOBJS%g
23158 s%@LIBSRCS@%$LIBSRCS%g
23160 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23161 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23162 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23163 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23164 s%@BUILD_BDB@%$BUILD_BDB%g
23165 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23166 s%@BUILD_LDAP@%$BUILD_LDAP%g
23167 s%@BUILD_LDBM@%$BUILD_LDBM%g
23168 s%@BUILD_META@%$BUILD_META%g
23169 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23170 s%@BUILD_NULL@%$BUILD_NULL%g
23171 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23172 s%@BUILD_PERL@%$BUILD_PERL%g
23173 s%@BUILD_SHELL@%$BUILD_SHELL%g
23174 s%@BUILD_SQL@%$BUILD_SQL%g
23175 s%@BUILD_TCL@%$BUILD_TCL%g
23176 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23177 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23178 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23179 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23180 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23181 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23182 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23183 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23184 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23185 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23186 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23187 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23188 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23189 s%@LDAP_LIBS@%$LDAP_LIBS%g
23190 s%@LDIF_LIBS@%$LDIF_LIBS%g
23191 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23192 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23193 s%@LDBM_LIBS@%$LDBM_LIBS%g
23194 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23195 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23196 s%@WRAP_LIBS@%$WRAP_LIBS%g
23197 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23198 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23199 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23200 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23201 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23202 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23203 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23204 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23205 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23206 s%@KRB4_LIBS@%$KRB4_LIBS%g
23207 s%@KRB5_LIBS@%$KRB5_LIBS%g
23208 s%@READLINE_LIBS@%$READLINE_LIBS%g
23209 s%@SASL_LIBS@%$SASL_LIBS%g
23210 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23211 s%@TLS_LIBS@%$TLS_LIBS%g
23212 s%@MODULES_LIBS@%$MODULES_LIBS%g
23213 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23214 s%@LIBSLAPI@%$LIBSLAPI%g
23215 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23216 s%@AUTH_LIBS@%$AUTH_LIBS%g
23217 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23218 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23219 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23220 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23225 cat >> $CONFIG_STATUS <<\EOF
23227 # Split the substitutions into bite-sized pieces for seds with
23228 # small command number limits, like on Digital OSF/1 and HP-UX.
23229 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23230 ac_file=1 # Number of current file.
23231 ac_beg=1 # First line for current file.
23232 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23235 while $ac_more_lines; do
23236 if test $ac_beg -gt 1; then
23237 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23239 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23241 if test ! -s conftest.s$ac_file; then
23242 ac_more_lines=false
23243 rm -f conftest.s$ac_file
23245 if test -z "$ac_sed_cmds"; then
23246 ac_sed_cmds="sed -f conftest.s$ac_file"
23248 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23250 ac_file=`expr $ac_file + 1`
23252 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23255 if test -z "$ac_sed_cmds"; then
23260 cat >> $CONFIG_STATUS <<EOF
23262 CONFIG_FILES=\${CONFIG_FILES-"\
23263 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23264 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23265 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23266 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23267 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23268 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23269 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23270 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23271 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23272 include/Makefile:build/top.mk:include/Makefile.in \
23273 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23274 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23275 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23276 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23277 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23278 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23279 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23280 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23281 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23282 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23283 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23284 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23285 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23286 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23287 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23288 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23289 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23290 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23291 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23292 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23293 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23294 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23295 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23296 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23297 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23298 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23299 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23300 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23301 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23302 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23305 cat >> $CONFIG_STATUS <<\EOF
23306 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23309 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23310 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23311 *) ac_file_in="${ac_file}.in" ;;
23314 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23316 # Remove last slash and all that follows it. Not all systems have dirname.
23317 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23318 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23319 # The file is in a subdirectory.
23320 test ! -d "$ac_dir" && mkdir "$ac_dir"
23321 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23322 # A "../" for each directory in $ac_dir_suffix.
23323 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23325 ac_dir_suffix= ac_dots=
23328 case "$ac_given_srcdir" in
23330 if test -z "$ac_dots"; then top_srcdir=.
23331 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23332 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23333 *) # Relative path.
23334 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23335 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23338 case "$ac_given_INSTALL" in
23339 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23340 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23343 echo creating "$ac_file"
23345 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23347 *[Mm]akefile*) ac_comsub="1i\\
23348 # $configure_input" ;;
23352 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23354 s%@configure_input@%$configure_input%g
23355 s%@srcdir@%$srcdir%g
23356 s%@top_srcdir@%$top_srcdir%g
23357 s%@INSTALL@%$INSTALL%g
23358 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23365 # ac_d sets the value in "#define NAME VALUE" lines.
23366 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23367 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23370 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23371 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23372 ac_uB='\([ ]\)%\1#\2define\3'
23375 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23376 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23377 ac_eB='$%\1#\2define\3'
23381 if test "${CONFIG_HEADERS+set}" != set; then
23383 cat >> $CONFIG_STATUS <<EOF
23384 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23386 cat >> $CONFIG_STATUS <<\EOF
23388 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23391 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23392 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23393 *) ac_file_in="${ac_file}.in" ;;
23396 echo creating $ac_file
23398 rm -f conftest.frag conftest.in conftest.out
23399 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23400 cat $ac_file_inputs > conftest.in
23404 # Transform confdefs.h into a sed script conftest.vals that substitutes
23405 # the proper values into config.h.in to produce config.h. And first:
23406 # Protect against being on the right side of a sed subst in config.status.
23407 # Protect against being in an unquoted here document in config.status.
23408 rm -f conftest.vals
23409 cat > conftest.hdr <<\EOF
23412 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23416 sed -n -f conftest.hdr confdefs.h > conftest.vals
23419 # This sed command replaces #undef with comments. This is necessary, for
23420 # example, in the case of _POSIX_SOURCE, which is predefined and required
23421 # on some systems where configure will not decide to define it.
23422 cat >> conftest.vals <<\EOF
23423 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23426 # Break up conftest.vals because some shells have a limit on
23427 # the size of here documents, and old seds have small limits too.
23429 rm -f conftest.tail
23432 ac_lines=`grep -c . conftest.vals`
23433 # grep -c gives empty output for an empty file on some AIX systems.
23434 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23435 # Write a limited-size here document to conftest.frag.
23436 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23437 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23439 sed -f conftest.frag conftest.in > conftest.out
23441 mv conftest.out conftest.in
23442 ' >> $CONFIG_STATUS
23443 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23444 rm -f conftest.vals
23445 mv conftest.tail conftest.vals
23447 rm -f conftest.vals
23449 cat >> $CONFIG_STATUS <<\EOF
23450 rm -f conftest.frag conftest.h
23451 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23452 cat conftest.in >> conftest.h
23454 if cmp -s $ac_file conftest.h 2>/dev/null; then
23455 echo "$ac_file is unchanged"
23458 # Remove last slash and all that follows it. Not all systems have dirname.
23459 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23461 # The file is in a subdirectory.
23462 test ! -d "$ac_dir" && mkdir "$ac_dir"
23465 mv conftest.h $ac_file
23470 cat >> $CONFIG_STATUS <<EOF
23473 cat >> $CONFIG_STATUS <<\EOF
23476 echo Please run \"make depend\" to build dependencies
23480 chmod +x $CONFIG_STATUS
23481 rm -fr confdefs* $ac_clean_files
23482 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1