3 # from OpenLDAP: pkg/ldap/configure.in,v 1.473 2003/04/07 20:23:25 kurt Exp
5 # Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-dynamic enable linking built binaries with dynamic libs [no]"
35 --enable-syslog enable syslog support [auto]"
37 --enable-proctitle enable proctitle support [yes]"
39 --enable-ipv6 enable IPv6 support [auto]"
41 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
43 --enable-x-compile enable cross compiling [no]"
45 --with-cyrus-sasl with Cyrus SASL support [auto]"
47 --with-fetch with fetch(3) URL support [auto]"
49 --with-kerberos with Kerberos support [auto]"
51 --with-readline with readline support [auto]"
53 --with-threads with threads [auto]"
55 --with-tls with TLS/SSL support [auto]"
57 --with-yielding-select with implicitly yielding select [auto]"
60 SLAPD (Standalone LDAP Daemon) Options:"
62 --enable-slapd enable building slapd [yes]"
64 --enable-aci enable per-object ACIs (experimental) [no]"
66 --enable-cleartext enable cleartext passwords [yes]"
68 --enable-crypt enable crypt(3) passwords [no]"
70 --enable-kpasswd enable Kerberos password verification [no]"
72 --enable-lmpasswd enable LAN Manager passwords [no]"
74 --enable-spasswd enable (Cyrus) SASL password verification [no]"
76 --enable-modules enable dynamic module support [no]"
78 --enable-phonetic enable phonetic/soundex [no]"
80 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
82 --enable-rlookups enable reverse lookups of client hostnames [no]"
84 --enable-slapi enable installation of slapi library [no]"
86 --enable-slp enable SLPv2 support [no]"
88 --enable-wrappers enable tcp wrapper support [no]"
90 --enable-bdb enable Berkeley DB backend [yes]"
92 --with-bdb-module module type static|dynamic [static]"
94 --enable-dnssrv enable dnssrv backend [no]"
96 --with-dnssrv-module module type static|dynamic [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type static|dynamic [static]"
102 --enable-ldbm enable ldbm backend [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-module module type static|dynamic [static]"
108 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
110 --enable-meta enable metadirectory backend [no]"
112 --with-meta-module module type static|dynamic [static]"
114 --enable-monitor enable monitor backend [no]"
116 --with-monitor-module module type static|dynamic [static]"
118 --enable-null enable null backend [no]"
120 --with-null-module module type static|dynamic [static]"
122 --enable-passwd enable passwd backend [no]"
124 --with-passwd-module module type static|dynamic [static]"
126 --enable-perl enable perl backend [no]"
128 --with-perl-module module type static|dynamic [static]"
130 --enable-shell enable shell backend [no]"
132 --with-shell-module module type static|dynamic [static]"
134 --enable-sql enable sql backend [no]"
136 --with-sql-module module type static|dynamic [static]"
138 --enable-tcl enable tcl backend [no]"
140 --with-tcl-module module type static|dynamic [static]"
143 SLURPD (Replication Daemon) Options:"
145 --enable-slurpd enable building slurpd [auto]"
148 Library Generation & Linking Options"
150 --enable-static[=PKGS] build static libraries [default=yes]"
152 --enable-shared[=PKGS] build shared libraries [default=yes]"
154 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
156 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
158 # Find the correct PATH separator. Usually this is `:', but
159 # DJGPP uses `;' like DOS.
160 if test "X${PATH_SEPARATOR+set}" != Xset; then
161 UNAME=${UNAME-`uname 2>/dev/null`}
163 *-DOS) lt_cv_sys_path_separator=';' ;;
164 *) lt_cv_sys_path_separator=':' ;;
166 PATH_SEPARATOR=$lt_cv_sys_path_separator
170 # Check that we are running under the correct shell.
171 SHELL=${CONFIG_SHELL-/bin/sh}
175 # Remove one level of quotation (which was required for Make).
176 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
181 if test "X$1" = X--no-reexec; then
182 # Discard the --no-reexec flag, and continue.
184 elif test "X$1" = X--fallback-echo; then
185 # Avoid inline document here, it may be left over
187 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
188 # Yippee, $echo works!
191 # Restart under the correct shell.
192 exec $SHELL "$0" --no-reexec ${1+"$@"}
195 if test "X$1" = X--fallback-echo; then
196 # used as fallback echo
204 # The HP-UX ksh and POSIX shell print the target directory to stdout
206 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
208 if test -z "$ECHO"; then
209 if test "X${echo_test_string+set}" != Xset; then
210 # find a string as large as possible, as long as the shell can cope with it
211 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
212 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
213 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
214 echo_test_string="`eval $cmd`" &&
215 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
222 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
223 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
224 test "X$echo_testing_string" = "X$echo_test_string"; then
227 # The Solaris, AIX, and Digital Unix default echo programs unquote
228 # backslashes. This makes it impossible to quote backslashes using
229 # echo "$something" | sed 's/\\/\\\\/g'
231 # So, first we look for a working echo in the user's PATH.
233 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
234 for dir in $PATH /usr/ucb; do
235 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
236 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
245 if test "X$echo" = Xecho; then
246 # We didn't find a better echo, so look for alternatives.
247 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
248 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
250 # This shell has a builtin print -r that does the trick.
252 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
253 test "X$CONFIG_SHELL" != X/bin/ksh; then
254 # If we have ksh, try running configure again with it.
255 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
256 export ORIGINAL_CONFIG_SHELL
257 CONFIG_SHELL=/bin/ksh
259 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
263 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
264 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
268 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
274 SHELL="$CONFIG_SHELL"
276 echo="$CONFIG_SHELL $0 --fallback-echo"
277 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
278 test "X$echo_testing_string" = 'X\t' &&
279 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
281 echo="$CONFIG_SHELL $0 --fallback-echo"
283 # maybe with a smaller string...
286 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
287 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
294 if test "$prev" != 'sed 50q "$0"'; then
295 echo_test_string=`eval $prev`
296 export echo_test_string
297 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
299 # Oops. We lost completely, so just stick with echo.
308 # Copy echo and quote the copy suitably for passing to libtool from
309 # the Makefile, instead of quoting the original, which is used later.
311 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
312 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
317 --disable-libtool-lock avoid locking (might break parallel builds)"
319 --with-pic try to use only PIC/non-PIC objects [default=use both]"
322 See INSTALL file for further details."
324 # Initialize some variables set by options.
325 # The variables have the same names as the options, with
326 # dashes changed to underlines.
328 cache_file=./config.cache
337 program_transform_name=s,x,x,
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 # Initialize some other variables.
361 SHELL=${CONFIG_SHELL-/bin/sh}
362 # Maximum number of lines to put in a shell here document.
369 # If the previous option needs an argument, assign it.
370 if test -n "$ac_prev"; then
371 eval "$ac_prev=\$ac_option"
377 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
381 # Accept the important Cygnus configure options, so we can diagnose typos.
385 -bindir | --bindir | --bindi | --bind | --bin | --bi)
387 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
388 bindir="$ac_optarg" ;;
390 -build | --build | --buil | --bui | --bu)
392 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
393 build="$ac_optarg" ;;
395 -cache-file | --cache-file | --cache-fil | --cache-fi \
396 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
397 ac_prev=cache_file ;;
398 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
399 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
400 cache_file="$ac_optarg" ;;
402 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
404 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
406 datadir="$ac_optarg" ;;
408 -disable-* | --disable-*)
409 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
414 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
415 eval "enable_${ac_feature}=no" ;;
417 -enable-* | --enable-*)
418 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
421 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
423 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
428 eval "enable_${ac_feature}='$ac_optarg'" ;;
430 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
431 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
432 | --exec | --exe | --ex)
433 ac_prev=exec_prefix ;;
434 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
435 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
436 | --exec=* | --exe=* | --ex=*)
437 exec_prefix="$ac_optarg" ;;
439 -gas | --gas | --ga | --g)
440 # Obsolete; use --with-gas.
443 -help | --help | --hel | --he)
444 # Omit some internal or obsolete options to make the list less imposing.
445 # This message is too long to be a string in the A/UX 3.1 sh.
447 Usage: configure [options] [host]
448 Options: [defaults in brackets after descriptions]
450 --cache-file=FILE cache test results in FILE
451 --help print this message
452 --no-create do not create output files
453 --quiet, --silent do not print \`checking...' messages
454 --version print the version of autoconf that created configure
455 Directory and file names:
456 --prefix=PREFIX install architecture-independent files in PREFIX
458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
460 --bindir=DIR user executables in DIR [EPREFIX/bin]
461 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
462 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
463 --datadir=DIR read-only architecture-independent data in DIR
465 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
466 --sharedstatedir=DIR modifiable architecture-independent data in DIR
468 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
469 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
470 --includedir=DIR C header files in DIR [PREFIX/include]
471 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
472 --infodir=DIR info documentation in DIR [PREFIX/info]
473 --mandir=DIR man documentation in DIR [PREFIX/man]
474 --srcdir=DIR find the sources in DIR [configure dir or ..]
475 --program-prefix=PREFIX prepend PREFIX to installed program names
476 --program-suffix=SUFFIX append SUFFIX to installed program names
477 --program-transform-name=PROGRAM
478 run sed PROGRAM on installed program names
482 --build=BUILD configure for building on BUILD [BUILD=HOST]
483 --host=HOST configure for HOST [guessed]
484 --target=TARGET configure for TARGET [TARGET=HOST]
485 Features and packages:
486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
490 --x-includes=DIR X include files are in DIR
491 --x-libraries=DIR X library files are in DIR
493 if test -n "$ac_help"; then
494 echo "--enable and --with options recognized:$ac_help"
498 -host | --host | --hos | --ho)
500 -host=* | --host=* | --hos=* | --ho=*)
503 -includedir | --includedir | --includedi | --included | --include \
504 | --includ | --inclu | --incl | --inc)
505 ac_prev=includedir ;;
506 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
507 | --includ=* | --inclu=* | --incl=* | --inc=*)
508 includedir="$ac_optarg" ;;
510 -infodir | --infodir | --infodi | --infod | --info | --inf)
512 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
513 infodir="$ac_optarg" ;;
515 -libdir | --libdir | --libdi | --libd)
517 -libdir=* | --libdir=* | --libdi=* | --libd=*)
518 libdir="$ac_optarg" ;;
520 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
521 | --libexe | --libex | --libe)
522 ac_prev=libexecdir ;;
523 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
524 | --libexe=* | --libex=* | --libe=*)
525 libexecdir="$ac_optarg" ;;
527 -localstatedir | --localstatedir | --localstatedi | --localstated \
528 | --localstate | --localstat | --localsta | --localst \
529 | --locals | --local | --loca | --loc | --lo)
530 ac_prev=localstatedir ;;
531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
532 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
533 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
534 localstatedir="$ac_optarg" ;;
536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
539 mandir="$ac_optarg" ;;
542 # Obsolete; use --without-fp.
545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
555 | --oldin | --oldi | --old | --ol | --o)
556 ac_prev=oldincludedir ;;
557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
560 oldincludedir="$ac_optarg" ;;
562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
565 prefix="$ac_optarg" ;;
567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
568 | --program-pre | --program-pr | --program-p)
569 ac_prev=program_prefix ;;
570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
572 program_prefix="$ac_optarg" ;;
574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
575 | --program-suf | --program-su | --program-s)
576 ac_prev=program_suffix ;;
577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
579 program_suffix="$ac_optarg" ;;
581 -program-transform-name | --program-transform-name \
582 | --program-transform-nam | --program-transform-na \
583 | --program-transform-n | --program-transform- \
584 | --program-transform | --program-transfor \
585 | --program-transfo | --program-transf \
586 | --program-trans | --program-tran \
587 | --progr-tra | --program-tr | --program-t)
588 ac_prev=program_transform_name ;;
589 -program-transform-name=* | --program-transform-name=* \
590 | --program-transform-nam=* | --program-transform-na=* \
591 | --program-transform-n=* | --program-transform-=* \
592 | --program-transform=* | --program-transfor=* \
593 | --program-transfo=* | --program-transf=* \
594 | --program-trans=* | --program-tran=* \
595 | --progr-tra=* | --program-tr=* | --program-t=*)
596 program_transform_name="$ac_optarg" ;;
598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
599 | -silent | --silent | --silen | --sile | --sil)
602 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
604 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
606 sbindir="$ac_optarg" ;;
608 -sharedstatedir | --sharedstatedir | --sharedstatedi \
609 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
610 | --sharedst | --shareds | --shared | --share | --shar \
612 ac_prev=sharedstatedir ;;
613 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
614 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
615 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
617 sharedstatedir="$ac_optarg" ;;
619 -site | --site | --sit)
621 -site=* | --site=* | --sit=*)
624 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
626 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
627 srcdir="$ac_optarg" ;;
629 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
630 | --syscon | --sysco | --sysc | --sys | --sy)
631 ac_prev=sysconfdir ;;
632 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
633 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
634 sysconfdir="$ac_optarg" ;;
636 -target | --target | --targe | --targ | --tar | --ta | --t)
638 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
639 target="$ac_optarg" ;;
641 -v | -verbose | --verbose | --verbos | --verbo | --verb)
644 -version | --version | --versio | --versi | --vers)
645 echo "configure generated by autoconf version 2.13.1"
649 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
650 # Reject names that are not valid shell variable names.
651 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
652 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 ac_package=`echo $ac_package| sed 's/-/_/g'`
659 eval "with_${ac_package}='$ac_optarg'" ;;
661 -without-* | --without-*)
662 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
663 # Reject names that are not valid shell variable names.
664 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
665 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
667 ac_package=`echo $ac_package| sed 's/-/_/g'`
668 eval "with_${ac_package}=no" ;;
671 # Obsolete; use --with-x.
674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
675 | --x-incl | --x-inc | --x-in | --x-i)
676 ac_prev=x_includes ;;
677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
679 x_includes="$ac_optarg" ;;
681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
683 ac_prev=x_libraries ;;
684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
686 x_libraries="$ac_optarg" ;;
688 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
692 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
693 echo "configure: warning: $ac_option: invalid host type" 1>&2
695 if test "x$nonopt" != xNONE; then
696 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
704 if test -n "$ac_prev"; then
705 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
710 # File descriptor usage:
713 # 2 errors and warnings
714 # 3 some systems may open it to /dev/tty
715 # 4 used on the Kubota Titan
716 # 6 checking for... messages and results
717 # 5 compiler messages saved in config.log
718 if test "$silent" = yes; then
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
730 # Strip out --no-create and --no-recursion so they do not pile up.
731 # Also quote any args containing shell metacharacters.
736 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
737 | --no-cr | --no-c) ;;
738 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
739 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
740 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
741 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
742 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
747 # Only set these to C if already set. These must not be set unconditionally
748 # because not all systems understand e.g. LANG=C (notably SCO).
749 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
750 # Non-C LC_CTYPE values break the ctype check.
751 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
752 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
753 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
754 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
757 rm -rf conftest* confdefs.h
758 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
761 # A filename unique to this package, relative to the directory that
762 # configure is in, which we can look for to find out if srcdir is correct.
763 ac_unique_file=build/version.sh
765 # Find the source files, if location was not specified.
766 if test -z "$srcdir"; then
767 ac_srcdir_defaulted=yes
768 # Try the directory containing this script, then its parent.
770 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
771 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
773 if test ! -r $srcdir/$ac_unique_file; then
777 ac_srcdir_defaulted=no
779 if test ! -r $srcdir/$ac_unique_file; then
780 if test "$ac_srcdir_defaulted" = yes; then
781 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
783 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
786 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
788 # Prefer explicitly selected file to automatically selected ones.
789 if test -z "$CONFIG_SITE"; then
790 if test "x$prefix" != xNONE; then
791 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
793 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
796 for ac_site_file in $CONFIG_SITE; do
797 if test -r "$ac_site_file"; then
798 echo "loading site script $ac_site_file"
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
813 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
814 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
815 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
822 ac_n= ac_c='\c' ac_t=
826 # set unset (borrowed from autoconf 2.49c)
827 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
833 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
836 for ac_dir in build $srcdir/build; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
845 elif test -f $ac_dir/shtool; then
847 ac_install_sh="$ac_aux_dir/shtool install -c"
851 if test -z "$ac_aux_dir"; then
852 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
856 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
858 eval `$ac_aux_dir/version.sh`
859 if test -z "$OL_STRING"; then
860 { echo "configure: error: could not determine version" 1>&2; exit 1; }
863 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
864 ac_cv_shtool="$ac_aux_dir/shtool"
866 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
869 SHTOOL="$ac_cv_shtool"
871 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
872 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
875 if test -d $ac_aux_dir/CVS; then
876 OPENLDAP_CVS="(from CVS sources) "
879 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
882 echo $ac_n "checking host system type""... $ac_c" 1>&6
883 echo "configure:884: checking host system type" >&5
884 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4 >/dev/null 2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 ac_cv_host_alias=$host
892 case "$ac_cv_host_alias" in
896 if ac_cv_host_alias=`$ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 *) ac_cv_host_alias=$nonopt ;;
903 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
904 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo $ac_n "(cached) $ac_c" 1>&6
911 echo "$ac_t""$ac_cv_host" 1>&6
914 host_alias=$ac_cv_host_alias
915 host_cpu=$ac_cv_host_cpu
916 host_vendor=$ac_cv_host_vendor
917 host_os=$ac_cv_host_os
923 echo $ac_n "checking target system type""... $ac_c" 1>&6
924 echo "configure:925: checking target system type" >&5
925 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
927 # Make sure we can run config.sub.
928 if $ac_config_sub sun4 >/dev/null 2>&1; then :
929 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
932 ac_cv_target_alias=$target
933 case "$ac_cv_target_alias" in
937 ac_cv_target_alias=$host_alias ;;
939 *) ac_cv_target_alias=$nonopt ;;
943 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
944 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
945 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
946 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo $ac_n "(cached) $ac_c" 1>&6
951 echo "$ac_t""$ac_cv_target" 1>&6
954 target_alias=$ac_cv_target_alias
955 target_cpu=$ac_cv_target_cpu
956 target_vendor=$ac_cv_target_vendor
957 target_os=$ac_cv_target_os
963 echo $ac_n "checking build system type""... $ac_c" 1>&6
964 echo "configure:965: checking build system type" >&5
965 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
967 # Make sure we can run config.sub.
968 if $ac_config_sub sun4 >/dev/null 2>&1; then :
969 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
972 ac_cv_build_alias=$build
973 case "$ac_cv_build_alias" in
977 ac_cv_build_alias=$host_alias ;;
979 *) ac_cv_build_alias=$nonopt ;;
983 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
984 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
985 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
986 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo $ac_n "(cached) $ac_c" 1>&6
991 echo "$ac_t""$ac_cv_build" 1>&6
994 build_alias=$ac_cv_build_alias
995 build_cpu=$ac_cv_build_cpu
996 build_vendor=$ac_cv_build_vendor
997 build_os=$ac_cv_build_os
1003 # Do some error checking and defaulting for the host and target type.
1005 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1008 # 1. You are not allowed to specify --host, --target, and nonopt at the
1010 # 2. Host defaults to nonopt.
1011 # 3. If nonopt is not specified, then host defaults to the current host,
1012 # as determined by config.guess.
1013 # 4. Target and build default to nonopt.
1014 # 5. If nonopt is not specified, then target and build default to host.
1016 # The aliases save the names the user supplied, while $host etc.
1017 # will get canonicalized.
1018 case $host---$target---$nonopt in
1019 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1020 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1023 test "$host_alias" != "$target_alias" &&
1024 test "$program_prefix$program_suffix$program_transform_name" = \
1026 program_prefix=${target_alias}-
1029 # Find a good install program. We prefer a C program (faster),
1030 # so one script is as good as another. But avoid the broken or
1031 # incompatible versions:
1032 # SysV /etc/install, /usr/sbin/install
1033 # SunOS /usr/etc/install
1034 # IRIX /sbin/install
1036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1039 # ./install, which can be erroneously created by make from ./install.sh.
1040 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1041 echo "configure:1042: checking for a BSD compatible install" >&5
1042 if test -z "$INSTALL"; then
1043 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 # Account for people who put trailing slashes in PATH elements.
1050 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1052 # OSF1 and SCO ODT 3.0 have their own names for install.
1053 # Don't use installbsd from OSF since it installs stuff as root
1055 for ac_prog in ginstall scoinst install; do
1056 if test -f $ac_dir/$ac_prog; then
1057 if test $ac_prog = install &&
1058 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1059 # AIX install. It has an incompatible calling convention.
1061 elif test $ac_prog = install &&
1062 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # program-specific install script used by HP pwplus--don't use.
1066 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 if test "${ac_cv_path_install+set}" = set; then
1078 INSTALL="$ac_cv_path_install"
1080 # As a last resort, use the slow shell script. We don't cache a
1081 # path for INSTALL within a source directory, because that will
1082 # break other packages using the cache if that directory is
1083 # removed, or if the path is relative.
1084 INSTALL="$ac_install_sh"
1087 echo "$ac_t""$INSTALL" 1>&6
1089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1090 # It thinks the first close brace ends the variable substitution.
1091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1097 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether build environment is sane" >&5
1101 echo timestamp > conftestfile
1102 # Do `set' in a subshell so we don't clobber the current shell's
1103 # arguments. Must try -L first in case configure is actually a
1104 # symlink; some systems play weird games with the mod time of symlinks
1105 # (eg FreeBSD returns the mod time of the symlink's containing
1108 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1109 if test "$*" = "X"; then
1111 set X `ls -t $srcdir/configure conftestfile`
1113 if test "$*" != "X $srcdir/configure conftestfile" \
1114 && test "$*" != "X conftestfile $srcdir/configure"; then
1116 # If neither matched, then we have a broken ls. This can happen
1117 # if, for instance, CONFIG_SHELL is bash and it inherits a
1118 # broken ls alias from the environment. This has actually
1119 # happened. Such a system could not be considered "sane".
1120 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1121 alias in your environment" 1>&2; exit 1; }
1124 test "$2" = conftestfile
1130 { echo "configure: error: newly created file is older than distributed files!
1131 Check your system clock" 1>&2; exit 1; }
1134 echo "$ac_t""yes" 1>&6
1135 if test "$program_transform_name" = s,x,x,; then
1136 program_transform_name=
1138 # Double any \ or $. echo might interpret backslashes.
1139 cat <<\EOF_SED > conftestsed
1140 s,\\,\\\\,g; s,\$,$$,g
1142 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1145 test "$program_prefix" != NONE &&
1146 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1147 # Use a double $ so make ignores it.
1148 test "$program_suffix" != NONE &&
1149 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1151 # sed with no file args requires a program.
1152 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1154 for ac_prog in mawk gawk nawk awk
1156 # Extract the first word of "$ac_prog", so it can be a program name with args.
1157 set dummy $ac_prog; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$AWK"; then
1164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1168 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_AWK="$ac_prog"
1178 AWK="$ac_cv_prog_AWK"
1179 if test -n "$AWK"; then
1180 echo "$ac_t""$AWK" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 test -n "$AWK" && break
1188 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether ${MAKE-make} sets \${MAKE}" >&5
1190 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1191 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftestmake <<\EOF
1196 @echo 'ac_maketemp="${MAKE}"'
1198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1199 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1200 if test -n "$ac_maketemp"; then
1201 eval ac_cv_prog_make_${ac_make}_set=yes
1203 eval ac_cv_prog_make_${ac_make}_set=no
1207 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1211 echo "$ac_t""no" 1>&6
1212 SET_MAKE="MAKE=${MAKE-make}"
1221 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1222 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1227 missing_dir=`cd $ac_aux_dir && pwd`
1228 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1229 echo "configure:1230: checking for working aclocal" >&5
1230 # Run test in a subshell; some versions of sh will print an error if
1231 # an executable is not found, even if stderr is redirected.
1232 # Redirect stdin to placate older versions of autoconf. Sigh.
1233 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1235 echo "$ac_t""found" 1>&6
1237 ACLOCAL="$missing_dir/missing aclocal"
1238 echo "$ac_t""missing" 1>&6
1241 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1242 echo "configure:1243: checking for working autoconf" >&5
1243 # Run test in a subshell; some versions of sh will print an error if
1244 # an executable is not found, even if stderr is redirected.
1245 # Redirect stdin to placate older versions of autoconf. Sigh.
1246 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1248 echo "$ac_t""found" 1>&6
1250 AUTOCONF="$missing_dir/missing autoconf"
1251 echo "$ac_t""missing" 1>&6
1254 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1255 echo "configure:1256: checking for working automake" >&5
1256 # Run test in a subshell; some versions of sh will print an error if
1257 # an executable is not found, even if stderr is redirected.
1258 # Redirect stdin to placate older versions of autoconf. Sigh.
1259 if (automake --version) < /dev/null > /dev/null 2>&1; then
1261 echo "$ac_t""found" 1>&6
1263 AUTOMAKE="$missing_dir/missing automake"
1264 echo "$ac_t""missing" 1>&6
1267 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1268 echo "configure:1269: checking for working autoheader" >&5
1269 # Run test in a subshell; some versions of sh will print an error if
1270 # an executable is not found, even if stderr is redirected.
1271 # Redirect stdin to placate older versions of autoconf. Sigh.
1272 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1273 AUTOHEADER=autoheader
1274 echo "$ac_t""found" 1>&6
1276 AUTOHEADER="$missing_dir/missing autoheader"
1277 echo "$ac_t""missing" 1>&6
1280 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1281 echo "configure:1282: checking for working makeinfo" >&5
1282 # Run test in a subshell; some versions of sh will print an error if
1283 # an executable is not found, even if stderr is redirected.
1284 # Redirect stdin to placate older versions of autoconf. Sigh.
1285 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1287 echo "$ac_t""found" 1>&6
1289 MAKEINFO="$missing_dir/missing makeinfo"
1290 echo "$ac_t""missing" 1>&6
1293 install_sh="$missing_dir/install-sh"
1294 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1296 for ac_prog in gnutar gtar tar
1298 # Extract the first word of "$ac_prog", so it can be a program name with args.
1299 set dummy $ac_prog; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$AMTAR"; then
1306 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_AMTAR="$ac_prog"
1320 AMTAR="$ac_cv_prog_AMTAR"
1321 if test -n "$AMTAR"; then
1322 echo "$ac_t""$AMTAR" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 test -n "$AMTAR" && break
1332 if test -n "$AMTAR"; then
1333 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1338 cat >> confdefs.h <<EOF
1339 #define OPENLDAP_PACKAGE "$PACKAGE"
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_VERSION "$VERSION"
1347 cat >> confdefs.h <<EOF
1348 #define LDAP_VENDOR_VERSION $OL_API_INC
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1364 OPENLDAP_LIBVERSION=$OL_API_LIB
1366 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1370 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1371 echo "configure:1372: checking configure arguments" >&5
1376 ldap_subdir="/openldap"
1378 # Check whether --with-subdir or --without-subdir was given.
1379 if test "${with_subdir+set}" = set; then
1380 withval="$with_subdir"
1387 ldap_subdir="$withval"
1390 ldap_subdir="/$withval"
1397 # OpenLDAP --enable-debug
1398 # Check whether --enable-debug or --disable-debug was given.
1399 if test "${enable_debug+set}" = set; then
1400 enableval="$enable_debug"
1403 for ol_val in auto yes no ; do
1404 if test "$enableval" = "$ol_val" ; then
1408 if test "$ol_arg" = "invalid" ; then
1409 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1411 ol_enable_debug="$ol_arg"
1414 ol_enable_debug="yes"
1416 # end --enable-debug
1417 # OpenLDAP --enable-dynamic
1418 # Check whether --enable-dynamic or --disable-dynamic was given.
1419 if test "${enable_dynamic+set}" = set; then
1420 enableval="$enable_dynamic"
1423 for ol_val in auto yes no ; do
1424 if test "$enableval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1431 ol_enable_dynamic="$ol_arg"
1434 ol_enable_dynamic="no"
1436 # end --enable-dynamic
1437 # OpenLDAP --enable-syslog
1438 # Check whether --enable-syslog or --disable-syslog was given.
1439 if test "${enable_syslog+set}" = set; then
1440 enableval="$enable_syslog"
1443 for ol_val in auto yes no ; do
1444 if test "$enableval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1451 ol_enable_syslog="$ol_arg"
1454 ol_enable_syslog="auto"
1456 # end --enable-syslog
1457 # OpenLDAP --enable-proctitle
1458 # Check whether --enable-proctitle or --disable-proctitle was given.
1459 if test "${enable_proctitle+set}" = set; then
1460 enableval="$enable_proctitle"
1463 for ol_val in auto yes no ; do
1464 if test "$enableval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1471 ol_enable_proctitle="$ol_arg"
1474 ol_enable_proctitle="yes"
1476 # end --enable-proctitle
1477 ol_enable_referrals=${ol_enable_referrals-no}
1478 ol_enable_kbind=${ol_enable_kbind-no}
1479 # OpenLDAP --enable-ipv6
1480 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1481 if test "${enable_ipv6+set}" = set; then
1482 enableval="$enable_ipv6"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1493 ol_enable_ipv6="$ol_arg"
1496 ol_enable_ipv6="auto"
1499 # OpenLDAP --enable-local
1500 # Check whether --enable-local or --disable-local was given.
1501 if test "${enable_local+set}" = set; then
1502 enableval="$enable_local"
1505 for ol_val in auto yes no ; do
1506 if test "$enableval" = "$ol_val" ; then
1510 if test "$ol_arg" = "invalid" ; then
1511 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1513 ol_enable_local="$ol_arg"
1516 ol_enable_local="auto"
1518 # end --enable-local
1519 # OpenLDAP --enable-x_compile
1520 # Check whether --enable-x_compile or --disable-x_compile was given.
1521 if test "${enable_x_compile+set}" = set; then
1522 enableval="$enable_x_compile"
1525 for ol_val in yes no ; do
1526 if test "$enableval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1533 ol_enable_x_compile="$ol_arg"
1536 ol_enable_x_compile="no"
1538 # end --enable-x_compile
1541 # OpenLDAP --with-cyrus_sasl
1542 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1543 if test "${with_cyrus_sasl+set}" = set; then
1544 withval="$with_cyrus_sasl"
1547 for ol_val in auto yes no ; do
1548 if test "$withval" = "$ol_val" ; then
1552 if test "$ol_arg" = "invalid" ; then
1553 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1555 ol_with_cyrus_sasl="$ol_arg"
1558 ol_with_cyrus_sasl="auto"
1560 # end --with-cyrus_sasl
1562 # OpenLDAP --with-fetch
1563 # Check whether --with-fetch or --without-fetch was given.
1564 if test "${with_fetch+set}" = set; then
1565 withval="$with_fetch"
1568 for ol_val in auto yes no ; do
1569 if test "$withval" = "$ol_val" ; then
1573 if test "$ol_arg" = "invalid" ; then
1574 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1576 ol_with_fetch="$ol_arg"
1579 ol_with_fetch="auto"
1583 # OpenLDAP --with-kerberos
1584 # Check whether --with-kerberos or --without-kerberos was given.
1585 if test "${with_kerberos+set}" = set; then
1586 withval="$with_kerberos"
1589 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1590 if test "$withval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1597 ol_with_kerberos="$ol_arg"
1600 ol_with_kerberos="auto"
1602 # end --with-kerberos
1604 # OpenLDAP --with-readline
1605 # Check whether --with-readline or --without-readline was given.
1606 if test "${with_readline+set}" = set; then
1607 withval="$with_readline"
1610 for ol_val in auto yes no ; do
1611 if test "$withval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1618 ol_with_readline="$ol_arg"
1621 ol_with_readline="auto"
1623 # end --with-readline
1625 # OpenLDAP --with-threads
1626 # Check whether --with-threads or --without-threads was given.
1627 if test "${with_threads+set}" = set; then
1628 withval="$with_threads"
1631 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1632 if test "$withval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1639 ol_with_threads="$ol_arg"
1642 ol_with_threads="auto"
1644 # end --with-threads
1646 # OpenLDAP --with-tls
1647 # Check whether --with-tls or --without-tls was given.
1648 if test "${with_tls+set}" = set; then
1652 for ol_val in auto ssleay openssl yes no ; do
1653 if test "$withval" = "$ol_val" ; then
1657 if test "$ol_arg" = "invalid" ; then
1658 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1660 ol_with_tls="$ol_arg"
1667 # OpenLDAP --with-yielding_select
1668 # Check whether --with-yielding_select or --without-yielding_select was given.
1669 if test "${with_yielding_select+set}" = set; then
1670 withval="$with_yielding_select"
1673 for ol_val in auto yes no manual ; do
1674 if test "$withval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1681 ol_with_yielding_select="$ol_arg"
1684 ol_with_yielding_select="auto"
1686 # end --with-yielding_select
1690 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1691 if test "${with_xxslapdoptions+set}" = set; then
1692 withval="$with_xxslapdoptions"
1696 # OpenLDAP --enable-slapd
1697 # Check whether --enable-slapd or --disable-slapd was given.
1698 if test "${enable_slapd+set}" = set; then
1699 enableval="$enable_slapd"
1702 for ol_val in auto yes no ; do
1703 if test "$enableval" = "$ol_val" ; then
1707 if test "$ol_arg" = "invalid" ; then
1708 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1710 ol_enable_slapd="$ol_arg"
1713 ol_enable_slapd="yes"
1715 # end --enable-slapd
1716 # OpenLDAP --enable-aci
1717 # Check whether --enable-aci or --disable-aci was given.
1718 if test "${enable_aci+set}" = set; then
1719 enableval="$enable_aci"
1722 for ol_val in auto yes no ; do
1723 if test "$enableval" = "$ol_val" ; then
1727 if test "$ol_arg" = "invalid" ; then
1728 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1730 ol_enable_aci="$ol_arg"
1736 # OpenLDAP --enable-cleartext
1737 # Check whether --enable-cleartext or --disable-cleartext was given.
1738 if test "${enable_cleartext+set}" = set; then
1739 enableval="$enable_cleartext"
1742 for ol_val in auto yes no ; do
1743 if test "$enableval" = "$ol_val" ; then
1747 if test "$ol_arg" = "invalid" ; then
1748 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1750 ol_enable_cleartext="$ol_arg"
1753 ol_enable_cleartext="yes"
1755 # end --enable-cleartext
1756 # OpenLDAP --enable-crypt
1757 # Check whether --enable-crypt or --disable-crypt was given.
1758 if test "${enable_crypt+set}" = set; then
1759 enableval="$enable_crypt"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1770 ol_enable_crypt="$ol_arg"
1773 ol_enable_crypt="no"
1775 # end --enable-crypt
1776 # OpenLDAP --enable-kpasswd
1777 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1778 if test "${enable_kpasswd+set}" = set; then
1779 enableval="$enable_kpasswd"
1782 for ol_val in auto yes no ; do
1783 if test "$enableval" = "$ol_val" ; then
1787 if test "$ol_arg" = "invalid" ; then
1788 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1790 ol_enable_kpasswd="$ol_arg"
1793 ol_enable_kpasswd="no"
1795 # end --enable-kpasswd
1796 # OpenLDAP --enable-lmpasswd
1797 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1798 if test "${enable_lmpasswd+set}" = set; then
1799 enableval="$enable_lmpasswd"
1802 for ol_val in auto yes no ; do
1803 if test "$enableval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1810 ol_enable_lmpasswd="$ol_arg"
1813 ol_enable_lmpasswd="no"
1815 # end --enable-lmpasswd
1816 # OpenLDAP --enable-spasswd
1817 # Check whether --enable-spasswd or --disable-spasswd was given.
1818 if test "${enable_spasswd+set}" = set; then
1819 enableval="$enable_spasswd"
1822 for ol_val in auto yes no ; do
1823 if test "$enableval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1830 ol_enable_spasswd="$ol_arg"
1833 ol_enable_spasswd="no"
1835 # end --enable-spasswd
1836 # OpenLDAP --enable-modules
1837 # Check whether --enable-modules or --disable-modules was given.
1838 if test "${enable_modules+set}" = set; then
1839 enableval="$enable_modules"
1842 for ol_val in auto yes no ; do
1843 if test "$enableval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1850 ol_enable_modules="$ol_arg"
1853 ol_enable_modules="no"
1855 # end --enable-modules
1856 ol_enable_multimaster=${ol_enable_multimaster-no}
1857 # OpenLDAP --enable-phonetic
1858 # Check whether --enable-phonetic or --disable-phonetic was given.
1859 if test "${enable_phonetic+set}" = set; then
1860 enableval="$enable_phonetic"
1863 for ol_val in auto yes no ; do
1864 if test "$enableval" = "$ol_val" ; then
1868 if test "$ol_arg" = "invalid" ; then
1869 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1871 ol_enable_phonetic="$ol_arg"
1874 ol_enable_phonetic="no"
1876 # end --enable-phonetic
1877 # OpenLDAP --enable-rewrite
1878 # Check whether --enable-rewrite or --disable-rewrite was given.
1879 if test "${enable_rewrite+set}" = set; then
1880 enableval="$enable_rewrite"
1883 for ol_val in auto yes no ; do
1884 if test "$enableval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1891 ol_enable_rewrite="$ol_arg"
1894 ol_enable_rewrite="no"
1896 # end --enable-rewrite
1897 # OpenLDAP --enable-rlookups
1898 # Check whether --enable-rlookups or --disable-rlookups was given.
1899 if test "${enable_rlookups+set}" = set; then
1900 enableval="$enable_rlookups"
1903 for ol_val in auto yes no ; do
1904 if test "$enableval" = "$ol_val" ; then
1908 if test "$ol_arg" = "invalid" ; then
1909 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1911 ol_enable_rlookups="$ol_arg"
1914 ol_enable_rlookups="no"
1916 # end --enable-rlookups
1917 # OpenLDAP --enable-slapi
1918 # Check whether --enable-slapi or --disable-slapi was given.
1919 if test "${enable_slapi+set}" = set; then
1920 enableval="$enable_slapi"
1923 for ol_val in auto yes no ; do
1924 if test "$enableval" = "$ol_val" ; then
1928 if test "$ol_arg" = "invalid" ; then
1929 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1931 ol_enable_slapi="$ol_arg"
1934 ol_enable_slapi="no"
1936 # end --enable-slapi
1937 # OpenLDAP --enable-slp
1938 # Check whether --enable-slp or --disable-slp was given.
1939 if test "${enable_slp+set}" = set; then
1940 enableval="$enable_slp"
1943 for ol_val in auto yes no ; do
1944 if test "$enableval" = "$ol_val" ; then
1948 if test "$ol_arg" = "invalid" ; then
1949 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1951 ol_enable_slp="$ol_arg"
1957 # OpenLDAP --enable-wrappers
1958 # Check whether --enable-wrappers or --disable-wrappers was given.
1959 if test "${enable_wrappers+set}" = set; then
1960 enableval="$enable_wrappers"
1963 for ol_val in auto yes no ; do
1964 if test "$enableval" = "$ol_val" ; then
1968 if test "$ol_arg" = "invalid" ; then
1969 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1971 ol_enable_wrappers="$ol_arg"
1974 ol_enable_wrappers="no"
1976 # end --enable-wrappers
1979 # OpenLDAP --enable-bdb
1980 # Check whether --enable-bdb or --disable-bdb was given.
1981 if test "${enable_bdb+set}" = set; then
1982 enableval="$enable_bdb"
1985 for ol_val in auto yes no ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1993 ol_enable_bdb="$ol_arg"
1999 # OpenLDAP --with-bdb_module
2000 # Check whether --with-bdb_module or --without-bdb_module was given.
2001 if test "${with_bdb_module+set}" = set; then
2002 withval="$with_bdb_module"
2005 for ol_val in static dynamic ; do
2006 if test "$withval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2013 ol_with_bdb_module="$ol_arg"
2016 ol_with_bdb_module="static"
2018 # end --with-bdb_module
2020 # OpenLDAP --enable-dnssrv
2021 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2022 if test "${enable_dnssrv+set}" = set; then
2023 enableval="$enable_dnssrv"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2034 ol_enable_dnssrv="$ol_arg"
2037 ol_enable_dnssrv="no"
2039 # end --enable-dnssrv
2040 # OpenLDAP --with-dnssrv_module
2041 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2042 if test "${with_dnssrv_module+set}" = set; then
2043 withval="$with_dnssrv_module"
2046 for ol_val in static dynamic ; do
2047 if test "$withval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2054 ol_with_dnssrv_module="$ol_arg"
2057 ol_with_dnssrv_module="static"
2059 # end --with-dnssrv_module
2061 # OpenLDAP --enable-ldap
2062 # Check whether --enable-ldap or --disable-ldap was given.
2063 if test "${enable_ldap+set}" = set; then
2064 enableval="$enable_ldap"
2067 for ol_val in auto yes no ; do
2068 if test "$enableval" = "$ol_val" ; then
2072 if test "$ol_arg" = "invalid" ; then
2073 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2075 ol_enable_ldap="$ol_arg"
2081 # OpenLDAP --with-ldap_module
2082 # Check whether --with-ldap_module or --without-ldap_module was given.
2083 if test "${with_ldap_module+set}" = set; then
2084 withval="$with_ldap_module"
2087 for ol_val in static dynamic ; do
2088 if test "$withval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2095 ol_with_ldap_module="$ol_arg"
2098 ol_with_ldap_module="static"
2100 # end --with-ldap_module
2102 # OpenLDAP --enable-ldbm
2103 # Check whether --enable-ldbm or --disable-ldbm was given.
2104 if test "${enable_ldbm+set}" = set; then
2105 enableval="$enable_ldbm"
2108 for ol_val in auto yes no ; do
2109 if test "$enableval" = "$ol_val" ; then
2113 if test "$ol_arg" = "invalid" ; then
2114 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2116 ol_enable_ldbm="$ol_arg"
2122 # OpenLDAP --with-ldbm_api
2123 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2124 if test "${with_ldbm_api+set}" = set; then
2125 withval="$with_ldbm_api"
2128 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2129 if test "$withval" = "$ol_val" ; then
2133 if test "$ol_arg" = "invalid" ; then
2134 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2136 ol_with_ldbm_api="$ol_arg"
2139 ol_with_ldbm_api="auto"
2141 # end --with-ldbm_api
2143 # OpenLDAP --with-ldbm_module
2144 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2145 if test "${with_ldbm_module+set}" = set; then
2146 withval="$with_ldbm_module"
2149 for ol_val in static dynamic ; do
2150 if test "$withval" = "$ol_val" ; then
2154 if test "$ol_arg" = "invalid" ; then
2155 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2157 ol_with_ldbm_module="$ol_arg"
2160 ol_with_ldbm_module="static"
2162 # end --with-ldbm_module
2164 # OpenLDAP --with-ldbm_type
2165 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2166 if test "${with_ldbm_type+set}" = set; then
2167 withval="$with_ldbm_type"
2170 for ol_val in auto btree hash ; do
2171 if test "$withval" = "$ol_val" ; then
2175 if test "$ol_arg" = "invalid" ; then
2176 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2178 ol_with_ldbm_type="$ol_arg"
2181 ol_with_ldbm_type="auto"
2183 # end --with-ldbm_type
2185 # OpenLDAP --enable-meta
2186 # Check whether --enable-meta or --disable-meta was given.
2187 if test "${enable_meta+set}" = set; then
2188 enableval="$enable_meta"
2191 for ol_val in auto yes no ; do
2192 if test "$enableval" = "$ol_val" ; then
2196 if test "$ol_arg" = "invalid" ; then
2197 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2199 ol_enable_meta="$ol_arg"
2205 # OpenLDAP --with-meta_module
2206 # Check whether --with-meta_module or --without-meta_module was given.
2207 if test "${with_meta_module+set}" = set; then
2208 withval="$with_meta_module"
2211 for ol_val in static dynamic ; do
2212 if test "$withval" = "$ol_val" ; then
2216 if test "$ol_arg" = "invalid" ; then
2217 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2219 ol_with_meta_module="$ol_arg"
2222 ol_with_meta_module="static"
2224 # end --with-meta_module
2226 # OpenLDAP --enable-monitor
2227 # Check whether --enable-monitor or --disable-monitor was given.
2228 if test "${enable_monitor+set}" = set; then
2229 enableval="$enable_monitor"
2232 for ol_val in auto yes no ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2240 ol_enable_monitor="$ol_arg"
2243 ol_enable_monitor="no"
2245 # end --enable-monitor
2246 # OpenLDAP --with-monitor_module
2247 # Check whether --with-monitor_module or --without-monitor_module was given.
2248 if test "${with_monitor_module+set}" = set; then
2249 withval="$with_monitor_module"
2252 for ol_val in static dynamic ; do
2253 if test "$withval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2260 ol_with_monitor_module="$ol_arg"
2263 ol_with_monitor_module="static"
2265 # end --with-monitor_module
2267 # OpenLDAP --enable-null
2268 # Check whether --enable-null or --disable-null was given.
2269 if test "${enable_null+set}" = set; then
2270 enableval="$enable_null"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2281 ol_enable_null="$ol_arg"
2287 # OpenLDAP --with-null_module
2288 # Check whether --with-null_module or --without-null_module was given.
2289 if test "${with_null_module+set}" = set; then
2290 withval="$with_null_module"
2293 for ol_val in static dynamic ; do
2294 if test "$withval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2301 ol_with_null_module="$ol_arg"
2304 ol_with_null_module="static"
2306 # end --with-null_module
2308 # OpenLDAP --enable-passwd
2309 # Check whether --enable-passwd or --disable-passwd was given.
2310 if test "${enable_passwd+set}" = set; then
2311 enableval="$enable_passwd"
2314 for ol_val in auto yes no ; do
2315 if test "$enableval" = "$ol_val" ; then
2319 if test "$ol_arg" = "invalid" ; then
2320 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2322 ol_enable_passwd="$ol_arg"
2325 ol_enable_passwd="no"
2327 # end --enable-passwd
2328 # OpenLDAP --with-passwd_module
2329 # Check whether --with-passwd_module or --without-passwd_module was given.
2330 if test "${with_passwd_module+set}" = set; then
2331 withval="$with_passwd_module"
2334 for ol_val in static dynamic ; do
2335 if test "$withval" = "$ol_val" ; then
2339 if test "$ol_arg" = "invalid" ; then
2340 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2342 ol_with_passwd_module="$ol_arg"
2345 ol_with_passwd_module="static"
2347 # end --with-passwd_module
2349 # OpenLDAP --enable-perl
2350 # Check whether --enable-perl or --disable-perl was given.
2351 if test "${enable_perl+set}" = set; then
2352 enableval="$enable_perl"
2355 for ol_val in auto yes no ; do
2356 if test "$enableval" = "$ol_val" ; then
2360 if test "$ol_arg" = "invalid" ; then
2361 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2363 ol_enable_perl="$ol_arg"
2369 # OpenLDAP --with-perl_module
2370 # Check whether --with-perl_module or --without-perl_module was given.
2371 if test "${with_perl_module+set}" = set; then
2372 withval="$with_perl_module"
2375 for ol_val in static dynamic ; do
2376 if test "$withval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2383 ol_with_perl_module="$ol_arg"
2386 ol_with_perl_module="static"
2388 # end --with-perl_module
2390 # OpenLDAP --enable-shell
2391 # Check whether --enable-shell or --disable-shell was given.
2392 if test "${enable_shell+set}" = set; then
2393 enableval="$enable_shell"
2396 for ol_val in auto yes no ; do
2397 if test "$enableval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2404 ol_enable_shell="$ol_arg"
2407 ol_enable_shell="no"
2409 # end --enable-shell
2410 # OpenLDAP --with-shell_module
2411 # Check whether --with-shell_module or --without-shell_module was given.
2412 if test "${with_shell_module+set}" = set; then
2413 withval="$with_shell_module"
2416 for ol_val in static dynamic ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2424 ol_with_shell_module="$ol_arg"
2427 ol_with_shell_module="static"
2429 # end --with-shell_module
2431 # OpenLDAP --enable-sql
2432 # Check whether --enable-sql or --disable-sql was given.
2433 if test "${enable_sql+set}" = set; then
2434 enableval="$enable_sql"
2437 for ol_val in auto yes no ; do
2438 if test "$enableval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2445 ol_enable_sql="$ol_arg"
2451 # OpenLDAP --with-sql_module
2452 # Check whether --with-sql_module or --without-sql_module was given.
2453 if test "${with_sql_module+set}" = set; then
2454 withval="$with_sql_module"
2457 for ol_val in static dynamic ; do
2458 if test "$withval" = "$ol_val" ; then
2462 if test "$ol_arg" = "invalid" ; then
2463 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2465 ol_with_sql_module="$ol_arg"
2468 ol_with_sql_module="static"
2470 # end --with-sql_module
2472 # OpenLDAP --enable-tcl
2473 # Check whether --enable-tcl or --disable-tcl was given.
2474 if test "${enable_tcl+set}" = set; then
2475 enableval="$enable_tcl"
2478 for ol_val in auto yes no ; do
2479 if test "$enableval" = "$ol_val" ; then
2483 if test "$ol_arg" = "invalid" ; then
2484 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2486 ol_enable_tcl="$ol_arg"
2492 # OpenLDAP --with-tcl_module
2493 # Check whether --with-tcl_module or --without-tcl_module was given.
2494 if test "${with_tcl_module+set}" = set; then
2495 withval="$with_tcl_module"
2498 for ol_val in static dynamic ; do
2499 if test "$withval" = "$ol_val" ; then
2503 if test "$ol_arg" = "invalid" ; then
2504 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2506 ol_with_tcl_module="$ol_arg"
2509 ol_with_tcl_module="static"
2511 # end --with-tcl_module
2514 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2515 if test "${with_xxslurpdoptions+set}" = set; then
2516 withval="$with_xxslurpdoptions"
2520 # OpenLDAP --enable-slurpd
2521 # Check whether --enable-slurpd or --disable-slurpd was given.
2522 if test "${enable_slurpd+set}" = set; then
2523 enableval="$enable_slurpd"
2526 for ol_val in auto yes no ; do
2527 if test "$enableval" = "$ol_val" ; then
2531 if test "$ol_arg" = "invalid" ; then
2532 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2534 ol_enable_slurpd="$ol_arg"
2537 ol_enable_slurpd="auto"
2539 # end --enable-slurpd
2541 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2542 if test "${with_xxliboptions+set}" = set; then
2543 withval="$with_xxliboptions"
2547 # Check whether --enable-static or --disable-static was given.
2548 if test "${enable_static+set}" = set; then
2549 enableval="$enable_static"
2550 p=${PACKAGE-default}
2552 yes) enable_static=yes ;;
2553 no) enable_static=no ;;
2556 # Look at the argument we got. We use all the common list separators.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2558 for pkg in $enableval; do
2559 if test "X$pkg" = "X$p"; then
2570 # Check whether --enable-shared or --disable-shared was given.
2571 if test "${enable_shared+set}" = set; then
2572 enableval="$enable_shared"
2573 p=${PACKAGE-default}
2575 yes) enable_shared=yes ;;
2576 no) enable_shared=no ;;
2579 # Look at the argument we got. We use all the common list separators.
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2581 for pkg in $enableval; do
2582 if test "X$pkg" = "X$p"; then
2596 if test $ol_enable_slapd = no ; then
2597 if test $ol_enable_slapi = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2600 if test $ol_enable_bdb = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2603 if test $ol_enable_dnssrv = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2606 if test $ol_enable_ldap = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2609 if test $ol_enable_ldbm = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2612 if test $ol_enable_meta = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2615 if test $ol_enable_monitor = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2618 if test $ol_enable_null = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2621 if test $ol_enable_passwd = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2624 if test $ol_enable_perl = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2627 if test $ol_enable_shell = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2630 if test $ol_enable_tcl = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2633 if test $ol_enable_sql = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2636 if test $ol_enable_modules = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2639 if test $ol_enable_multimaster = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2642 if test $ol_enable_wrappers = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2645 if test $ol_enable_phonetic = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2648 if test $ol_enable_rlookups = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2651 if test $ol_enable_aci = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2654 if test $ol_with_ldbm_api != auto ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2657 if test $ol_with_ldbm_type != auto ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2660 if test $ol_with_bdb_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2663 if test $ol_with_dnssrv_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2666 if test $ol_with_ldap_module != static ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2669 if test $ol_with_ldbm_module != static ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2672 if test $ol_with_meta_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2675 if test $ol_with_monitor_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2678 if test $ol_with_null_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2681 if test $ol_with_passwd_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2684 if test $ol_with_perl_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2687 if test $ol_with_shell_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2690 if test $ol_with_tcl_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2693 if test $ol_with_sql_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2696 if test $ol_enable_slurpd = yes ; then
2697 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2699 if test $ol_enable_rewrite = yes ; then
2700 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2703 # force settings to no
2710 ol_enable_monitor=no
2718 ol_enable_modules=no
2719 ol_enable_multimaster=no
2720 ol_enable_phonetic=no
2721 ol_enable_rlookups=no
2723 ol_enable_wrappers=no
2724 ol_enable_dynamic=no
2727 ol_with_ldbm_type=no
2729 ol_with_bdb_module=static
2730 ol_with_dnssrv_module=static
2731 ol_with_ldap_module=static
2732 ol_with_ldbm_module=static
2733 ol_with_meta_module=static
2734 ol_with_monitor_module=static
2735 ol_with_null_module=static
2736 ol_with_passwd_module=static
2737 ol_with_perl_module=static
2738 ol_with_shell_module=static
2739 ol_with_tcl_module=static
2740 ol_with_sql_module=static
2744 ol_enable_rewrite=no
2746 elif test $ol_enable_ldbm = no ; then
2748 if test $ol_with_ldbm_api != auto ; then
2749 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2752 if test $ol_with_ldbm_type != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2756 if test $ol_with_ldbm_module != static ; then
2757 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2760 if test $ol_enable_modules != yes -a \
2761 $ol_enable_bdb = no -a \
2762 $ol_enable_dnssrv = no -a \
2763 $ol_enable_ldap = no -a \
2764 $ol_enable_meta = no -a \
2765 $ol_enable_monitor = no -a \
2766 $ol_enable_null = no -a \
2767 $ol_enable_passwd = no -a \
2768 $ol_enable_perl = no -a \
2769 $ol_enable_shell = no -a \
2770 $ol_enable_sql = no -a \
2771 $ol_enable_tcl = no ; then
2773 if test $ol_enable_slapd = yes ; then
2774 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2776 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2782 ol_with_ldbm_type=no
2783 ol_with_ldbm_module=static
2785 if test $ol_enable_bdb != no ; then
2786 ol_with_ldbm_api=berkeley
2790 if test $ol_with_ldbm_api = gdbm -a \
2791 $ol_with_ldbm_type = btree ; then
2792 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2794 if test $ol_with_ldbm_api = mdbm -a \
2795 $ol_with_ldbm_type = btree ; then
2796 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2798 if test $ol_with_ldbm_api = ndbm -a \
2799 $ol_with_ldbm_type = btree ; then
2800 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2803 if test $ol_enable_bdb = yes ; then
2804 if test $ol_with_ldbm_api = auto ; then
2805 ol_with_ldbm_api=berkeley
2806 elif test $ol_with_ldbm_api != berkeley ; then
2807 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2810 elif test $ol_enable_bdb = auto ; then
2811 if test $ol_with_ldbm_api != berkeley \
2812 -o $ol_with_ldbm_api != auto ; then
2813 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2819 if test $ol_enable_slurpd = yes ; then
2820 if test $ol_with_threads = no ; then
2821 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2825 if test $ol_enable_lmpasswd = yes ; then
2826 if test $ol_with_tls = no ; then
2827 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2831 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2832 if test $ol_with_kerberos = no ; then
2833 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2834 elif test $ol_with_kerberos = auto ; then
2835 ol_with_kerberos=yes
2838 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2839 if test $ol_with_kerberos = auto ; then
2841 elif test $ol_with_kerberos != no ; then
2842 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2847 if test $ol_enable_spasswd = yes ; then
2848 if test $ol_with_cyrus_sasl = no ; then
2849 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2851 ol_with_cyrus_sasl=yes
2854 echo "$ac_t""done" 1>&6
2886 BUILD_BDB_DYNAMIC=static
2887 BUILD_DNSSRV_DYNAMIC=static
2888 BUILD_LDAP_DYNAMIC=static
2889 BUILD_LDBM_DYNAMIC=static
2890 BUILD_META_DYNAMIC=static
2891 BUILD_MONITOR_DYNAMIC=static
2892 BUILD_NULL_DYNAMIC=static
2893 BUILD_PASSWD_DYNAMIC=static
2894 BUILD_PERL_DYNAMIC=static
2895 BUILD_SHELL_DYNAMIC=static
2896 BUILD_TCL_DYNAMIC=static
2897 BUILD_SQL_DYNAMIC=static
2899 SLAPD_MODULES_LDFLAGS=
2900 SLAPD_MODULES_CPPFLAGS=
2902 SLAPD_STATIC_BACKENDS=
2903 SLAPD_DYNAMIC_BACKENDS=
2929 # Find a good install program. We prefer a C program (faster),
2930 # so one script is as good as another. But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2936 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2937 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2938 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2939 # ./install, which can be erroneously created by make from ./install.sh.
2940 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2941 echo "configure:2942: checking for a BSD compatible install" >&5
2942 if test -z "$INSTALL"; then
2943 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2947 for ac_dir in $PATH; do
2948 # Account for people who put trailing slashes in PATH elements.
2950 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2955 for ac_prog in ginstall scoinst install; do
2956 if test -f $ac_dir/$ac_prog; then
2957 if test $ac_prog = install &&
2958 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2959 # AIX install. It has an incompatible calling convention.
2961 elif test $ac_prog = install &&
2962 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2963 # program-specific install script used by HP pwplus--don't use.
2966 ac_cv_path_install="$ac_dir/$ac_prog -c"
2977 if test "${ac_cv_path_install+set}" = set; then
2978 INSTALL="$ac_cv_path_install"
2980 # As a last resort, use the slow shell script. We don't cache a
2981 # path for INSTALL within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the path is relative.
2984 INSTALL="$ac_install_sh"
2987 echo "$ac_t""$INSTALL" 1>&6
2989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2990 # It thinks the first close brace ends the variable substitution.
2991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2995 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_MKVERSION 1
3007 *-*-aix*) if test -z "$CC" ; then
3008 case "$ol_with_threads" in
3009 auto | yes | posix) ol_aix_threads=yes ;;
3015 if test $ol_aix_threads = yes ; then
3016 if test -z "${CC}" ; then
3017 for ac_prog in cc_r xlc_r cc
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 for ac_dir in $ac_dummy; do
3032 test -z "$ac_dir" && ac_dir=.
3033 if test -f $ac_dir/$ac_word; then
3034 ac_cv_prog_CC="$ac_prog"
3042 if test -n "$CC"; then
3043 echo "$ac_t""$CC" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 test -n "$CC" && break
3052 if test "$CC" = cc ; then
3053 if test $ol_with_threads != auto ; then
3054 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3056 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3062 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3063 ol_with_threads=posix
3064 ol_cv_pthread_create=yes
3068 if test -z "${CC}"; then
3069 for ac_prog in cc gcc
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3074 echo "configure:3075: checking for $ac_word" >&5
3075 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3083 for ac_dir in $ac_dummy; do
3084 test -z "$ac_dir" && ac_dir=.
3085 if test -f $ac_dir/$ac_word; then
3086 ac_cv_prog_CC="$ac_prog"
3094 if test -n "$CC"; then
3095 echo "$ac_t""$CC" 1>&6
3097 echo "$ac_t""no" 1>&6
3100 test -n "$CC" && break
3102 test -n "$CC" || CC="missing"
3105 if test "${CC}" = "missing" ; then
3106 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3110 if test -z "${AR}"; then
3111 for ac_prog in ar gar
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3116 echo "configure:3117: checking for $ac_word" >&5
3117 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 if test -n "$AR"; then
3121 ac_cv_prog_AR="$AR" # Let the user override the test.
3123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3125 for ac_dir in $ac_dummy; do
3126 test -z "$ac_dir" && ac_dir=.
3127 if test -f $ac_dir/$ac_word; then
3128 ac_cv_prog_AR="$ac_prog"
3136 if test -n "$AR"; then
3137 echo "$ac_t""$AR" 1>&6
3139 echo "$ac_t""no" 1>&6
3142 test -n "$AR" && break
3144 test -n "$AR" || AR="missing"
3147 if test "${AR}" = "missing" ; then
3148 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3154 # Find the correct PATH separator. Usually this is `:', but
3155 # DJGPP uses `;' like DOS.
3156 if test "X${PATH_SEPARATOR+set}" != Xset; then
3157 UNAME=${UNAME-`uname 2>/dev/null`}
3159 *-DOS) lt_cv_sys_path_separator=';' ;;
3160 *) lt_cv_sys_path_separator=':' ;;
3162 PATH_SEPARATOR=$lt_cv_sys_path_separator
3165 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3166 echo "configure:3167: checking for Cygwin environment" >&5
3167 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3177 #define __CYGWIN__ __CYGWIN32__
3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3194 echo "$ac_t""$ac_cv_cygwin" 1>&6
3196 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3197 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3198 echo "configure:3199: checking for mingw32 environment" >&5
3199 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3214 echo "configure: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3222 echo "$ac_t""$ac_cv_mingw32" 1>&6
3224 test "$ac_cv_mingw32" = yes && MINGW32=yes
3225 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3226 echo "configure:3227: checking for EMX OS/2 environment" >&5
3227 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3230 cat > conftest.$ac_ext <<EOF
3231 #line 3232 "configure"
3232 #include "confdefs.h"
3238 if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3250 echo "$ac_t""$ac_cv_emxos2" 1>&6
3252 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3253 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3254 echo "configure:3255: checking how to run the C preprocessor" >&5
3255 # On Suns, sometimes $CPP names a directory.
3256 if test -n "$CPP" && test -d "$CPP"; then
3259 if test -z "$CPP"; then
3260 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 # This must be in double quotes, not single quotes, because CPP may get
3264 # substituted into the Makefile and "${CC-cc}" will confuse make.
3266 # On the NeXT, cc -E runs the code through the compiler's parser,
3267 # not just through cpp.
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3275 { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3277 if test -z "$ac_err"; then
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 CPP="${CC-cc} -E -traditional-cpp"
3285 cat > conftest.$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3292 { (eval echo configure:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3294 if test -z "$ac_err"; then
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 CPP="${CC-cc} -nologo -E"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3309 { (eval echo configure:3310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3311 if test -z "$ac_err"; then
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3325 ac_cv_prog_CPP="$CPP"
3327 CPP="$ac_cv_prog_CPP"
3329 ac_cv_prog_CPP="$CPP"
3331 echo "$ac_t""$CPP" 1>&6
3333 # Check whether --enable-fast-install or --disable-fast-install was given.
3334 if test "${enable_fast_install+set}" = set; then
3335 enableval="$enable_fast_install"
3336 p=${PACKAGE-default}
3338 yes) enable_fast_install=yes ;;
3339 no) enable_fast_install=no ;;
3341 enable_fast_install=no
3342 # Look at the argument we got. We use all the common list separators.
3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3344 for pkg in $enableval; do
3345 if test "X$pkg" = "X$p"; then
3346 enable_fast_install=yes
3353 enable_fast_install=yes
3356 # Extract the first word of "gcc", so it can be a program name with args.
3357 set dummy gcc; ac_word=$2
3358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_word" >&5
3360 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3368 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f $ac_dir/$ac_word; then
3379 if test -n "$CC"; then
3380 echo "$ac_t""$CC" 1>&6
3382 echo "$ac_t""no" 1>&6
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc; ac_word=$2
3388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3389 echo "configure:3390: checking for $ac_word" >&5
3390 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 if test -f $ac_dir/$ac_word; then
3402 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3403 ac_prog_rejected=yes
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy $ac_cv_prog_CC
3415 if test $# -gt 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3420 set dummy "$ac_dir/$ac_word" "$@"
3428 if test -n "$CC"; then
3429 echo "$ac_t""$CC" 1>&6
3431 echo "$ac_t""no" 1>&6
3434 if test -z "$CC"; then
3435 case "`uname -s`" in
3436 *win32* | *WIN32* | *CYGWIN*)
3437 # Extract the first word of "cl", so it can be a program name with args.
3438 set dummy cl; ac_word=$2
3439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_word" >&5
3441 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3449 for ac_dir in $ac_dummy; do
3450 test -z "$ac_dir" && ac_dir=.
3451 if test -f $ac_dir/$ac_word; then
3460 if test -n "$CC"; then
3461 echo "$ac_t""$CC" 1>&6
3463 echo "$ac_t""no" 1>&6
3468 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3471 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3479 cross_compiling=$ac_cv_prog_cc_cross
3481 cat > conftest.$ac_ext << EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3488 if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3489 ac_cv_prog_cc_works=yes
3490 # If we can't run a trivial program, we are probably using a cross compiler.
3491 if (./conftest; exit) 2>/dev/null; then
3492 ac_cv_prog_cc_cross=no
3494 ac_cv_prog_cc_cross=yes
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3499 ac_cv_prog_cc_works=no
3503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3506 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3507 cross_compiling=$ac_cv_prog_cc_cross
3509 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3510 if test $ac_cv_prog_cc_works = no; then
3511 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3514 echo "configure:3515: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3515 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3516 cross_compiling=$ac_cv_prog_cc_cross
3518 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether we are using GNU C" >&5
3520 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.c <<EOF
3528 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3535 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3537 if test $ac_cv_prog_gcc = yes; then
3543 ac_test_CFLAGS="${CFLAGS+set}"
3544 ac_save_CFLAGS="$CFLAGS"
3546 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3547 echo "configure:3548: checking whether ${CC-cc} accepts -g" >&5
3548 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 echo 'void f(){}' > conftest.c
3552 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3561 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS="$ac_save_CFLAGS"
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3578 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3579 if test "${with_gnu_ld+set}" = set; then
3580 withval="$with_gnu_ld"
3581 test "$withval" = no || with_gnu_ld=yes
3587 if test "$GCC" = yes; then
3588 # Check if gcc -print-prog-name=ld gives a path.
3589 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3590 echo "configure:3591: checking for ld used by GCC" >&5
3593 # gcc leaves a trailing carriage return which upsets mingw
3594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3599 # Accept absolute paths.
3600 [\\/]* | [A-Za-z]:[\\/]*)
3601 re_direlt='/[^/][^/]*/\.\./'
3602 # Canonicalize the path of ld
3603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3607 test -z "$LD" && LD="$ac_prog"
3610 # If it fails, then pretend we aren't using GCC.
3614 # If it is relative, then search for the first ld in PATH.
3618 elif test "$with_gnu_ld" = yes; then
3619 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3620 echo "configure:3621: checking for GNU ld" >&5
3622 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3623 echo "configure:3624: checking for non-GNU ld" >&5
3625 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 if test -z "$LD"; then
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3630 for ac_dir in $PATH; do
3631 test -z "$ac_dir" && ac_dir=.
3632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3633 lt_cv_path_LD="$ac_dir/$ac_prog"
3634 # Check to see if the program is GNU ld. I'd rather use --version,
3635 # but apparently some GNU ld's only accept -v.
3636 # Break only if it was the GNU/non-GNU ld that we prefer.
3637 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3638 test "$with_gnu_ld" != no && break
3640 test "$with_gnu_ld" != yes && break
3646 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3651 if test -n "$LD"; then
3652 echo "$ac_t""$LD" 1>&6
3654 echo "$ac_t""no" 1>&6
3656 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3657 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3658 echo "configure:3659: checking if the linker ($LD) is GNU ld" >&5
3659 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3663 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3664 lt_cv_prog_gnu_ld=yes
3666 lt_cv_prog_gnu_ld=no
3670 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3671 with_gnu_ld=$lt_cv_prog_gnu_ld
3674 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $LD option to reload object files" >&5
3676 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 lt_cv_ld_reload_flag='-r'
3682 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3683 reload_flag=$lt_cv_ld_reload_flag
3684 test -n "$reload_flag" && reload_flag=" $reload_flag"
3686 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3687 echo "configure:3688: checking for BSD-compatible nm" >&5
3688 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 if test -n "$NM"; then
3692 # Let the user override the test.
3695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3696 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3697 test -z "$ac_dir" && ac_dir=.
3698 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3699 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3700 # Check to see if the nm accepts a BSD-compat flag.
3701 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3702 # nm: unknown option "B" ignored
3703 # Tru64's nm complains that /dev/null is an invalid object file
3704 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3705 lt_cv_path_NM="$tmp_nm -B"
3707 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3708 lt_cv_path_NM="$tmp_nm -p"
3711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3712 continue # so that we can try to find one that supports BSD flags
3717 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3722 echo "$ac_t""$NM" 1>&6
3724 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3725 echo "configure:3726: checking for a sed that does not truncate output" >&5
3726 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 # Loop through the user's path and test for sed and gsed.
3730 # Then use that list of sed's as ones to test for truncation.
3731 as_executable_p="test -f"
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_prog in sed gsed; do
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3740 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3746 # Create a temporary directory, and hook for its removal unless debugging.
3749 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3750 trap '{ (exit 1); exit 1; }' 1 2 13 15
3753 # Create a (secure) tmp directory for tmp files.
3756 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3757 test -n "$tmp" && test -d "$tmp"
3760 tmp=$TMPDIR/sed$$-$RANDOM
3761 (umask 077 && mkdir $tmp)
3764 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3765 { (exit 1); exit 1; }
3769 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3770 # along with /bin/sed that truncates output.
3771 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3772 test ! -f ${_sed} && break
3773 cat /dev/null > "$tmp/sed.in"
3775 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3776 # Check for GNU sed and select it if it is found.
3777 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3778 lt_cv_path_SED=${_sed}
3782 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3783 mv "$tmp/sed.tmp" "$tmp/sed.in"
3784 cp "$tmp/sed.in" "$tmp/sed.nl"
3785 echo >>"$tmp/sed.nl"
3786 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3787 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3788 # 40000 chars as input seems more than enough
3789 test $_count -gt 10 && break
3790 _count=`expr $_count + 1`
3791 if test $_count -gt $_max; then
3793 lt_cv_path_SED=$_sed
3801 if test "X$SED" != "X"; then
3806 echo "$ac_t""$SED" 1>&6
3808 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3809 echo "configure:3810: checking whether ln -s works" >&5
3810 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3814 if ln -s X conftestdata 2>/dev/null
3817 ac_cv_prog_LN_S="ln -s"
3822 LN_S="$ac_cv_prog_LN_S"
3823 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3824 echo "$ac_t""yes" 1>&6
3826 echo "$ac_t""no" 1>&6
3829 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3830 echo "configure:3831: checking how to recognise dependent libraries" >&5
3831 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 lt_cv_file_magic_cmd='$MAGIC_CMD'
3835 lt_cv_file_magic_test_file=
3836 lt_cv_deplibs_check_method='unknown'
3837 # Need to set the preceding variable on all platforms that support
3838 # interlibrary dependencies.
3839 # 'none' -- dependencies not supported.
3840 # `unknown' -- same as none, but documents that we really don't know.
3841 # 'pass_all' -- all dependencies passed with no checks.
3842 # 'test_compile' -- check by making test program.
3843 # 'file_magic [[regex]]' -- check by looking for files in library path
3844 # which responds to the $file_magic_cmd with a given egrep regex.
3845 # If you have `file' or equivalent on your system and you're not sure
3846 # whether `pass_all' will *always* work, you probably want this one.
3850 lt_cv_deplibs_check_method=pass_all
3854 lt_cv_deplibs_check_method=pass_all
3858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3859 lt_cv_file_magic_cmd='/usr/bin/file -L'
3860 lt_cv_file_magic_test_file=/shlib/libc.so
3863 cygwin* | mingw* | pw32*)
3864 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3865 lt_cv_file_magic_cmd='$OBJDUMP -f'
3868 darwin* | rhapsody*)
3869 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3870 lt_cv_file_magic_cmd='/usr/bin/file -L'
3872 rhapsody* | darwin1.[012])
3873 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3876 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3882 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3885 # Not sure whether the presence of OpenBSD here was a mistake.
3886 # Let's accept both of them until this is cleared up.
3887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3888 lt_cv_file_magic_cmd=/usr/bin/file
3889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3893 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_deplibs_check_method=pass_all
3902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3903 lt_cv_file_magic_cmd=/usr/bin/file
3904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3907 irix5* | irix6* | nonstopux*)
3909 irix5* | nonstopux*)
3910 # this will be overridden with pass_all, but let us keep it just in case
3911 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3915 *-32|*"-32 ") libmagic=32-bit;;
3916 *-n32|*"-n32 ") libmagic=N32;;
3917 *-64|*"-64 ") libmagic=64-bit;;
3918 *) libmagic=never-match;;
3920 # this will be overridden with pass_all, but let us keep it just in case
3921 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3924 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3925 lt_cv_deplibs_check_method=pass_all
3928 # This must be Linux ELF.
3931 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3932 lt_cv_deplibs_check_method=pass_all ;;
3934 # glibc up to 2.1.1 does not perform some relocations on ARM
3935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3937 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3942 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3944 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3950 lt_cv_file_magic_cmd=/usr/bin/file
3951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3955 lt_cv_file_magic_cmd=/usr/bin/file
3956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3960 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3964 osf3* | osf4* | osf5*)
3965 # this will be overridden with pass_all, but let us keep it just in case
3966 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3967 lt_cv_file_magic_test_file=/shlib/libc.so
3968 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_deplibs_check_method=pass_all
3977 lt_cv_file_magic_test_file=/lib/libc.so
3980 sysv5uw[78]* | sysv4*uw2*)
3981 lt_cv_deplibs_check_method=pass_all
3984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3985 case $host_vendor in
3987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3991 lt_cv_deplibs_check_method=pass_all
3994 lt_cv_file_magic_cmd='/bin/file'
3995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3998 lt_cv_file_magic_cmd='/bin/file'
3999 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4000 lt_cv_file_magic_test_file=/lib/libc.so
4003 lt_cv_deplibs_check_method=pass_all
4011 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4012 file_magic_cmd=$lt_cv_file_magic_cmd
4013 deplibs_check_method=$lt_cv_deplibs_check_method
4015 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4016 echo "configure:4017: checking for object suffix" >&5
4017 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4021 echo 'int i = 1;' > conftest.$ac_ext
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 for ac_file in conftest.*; do
4026 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4030 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4035 echo "$ac_t""$ac_cv_objext" 1>&6
4036 OBJEXT=$ac_cv_objext
4037 ac_objext=$ac_cv_objext
4042 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4043 echo "configure:4044: checking for executable suffix" >&5
4044 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4051 echo 'int main () { return 0; }' > conftest.$ac_ext
4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4054 for file in conftest.*; do
4056 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4057 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4061 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4064 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4069 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4070 echo "$ac_t""${ac_cv_exeext}" 1>&6
4073 if test $host != $build; then
4074 ac_tool_prefix=${host_alias}-
4082 # Check for command to grab the raw symbol name followed by C symbol from nm.
4083 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4084 echo "configure:4085: checking command to parse $NM output" >&5
4085 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4089 # These are sane defaults that work on at least a few old systems.
4090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4092 # Character class describing NM global symbol codes.
4093 symcode='[BCDEGRST]'
4095 # Regexp to match symbols that can be accessed directly from C.
4096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4098 # Transform the above into a raw symbol and a C symbol.
4099 symxfrm='\1 \2\3 \3'
4101 # Transform an extracted symbol line into a proper C declaration
4102 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4104 # Transform an extracted symbol line into symbol name and symbol address
4105 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4107 # Define system-specific variables.
4112 cygwin* | mingw* | pw32*)
4113 symcode='[ABCDGISTW]'
4115 hpux*) # Its linker distinguishes data from code symbols
4116 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4117 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4120 symcode='[BCDEGRST]'
4123 symcode='[BCDEGQRST]'
4133 # Handle CRLF in mingw tool chain
4137 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4141 # If we're using GNU nm, then use its standard symbol codes.
4142 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4143 symcode='[ABCDGISTW]'
4146 # Try without a prefix undercore, then with it.
4147 for ac_symprfx in "" "_"; do
4149 # Write the raw and C identifiers.
4150 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4152 # Check to see that the pipe works correctly.
4155 cat > conftest.$ac_ext <<EOF
4160 void nm_test_func(){}
4164 int main(){nm_test_var='a';nm_test_func();return(0);}
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4168 # Now try to grab the symbols.
4170 if { (eval echo configure:4171: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
4171 # Try sorting and uniquifying the output.
4172 if sort "$nlist" | uniq > "$nlist"T; then
4173 mv -f "$nlist"T "$nlist"
4178 # Make sure that we snagged all the symbols we need.
4179 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4180 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4181 cat <<EOF > conftest.$ac_ext
4187 # Now generate the symbol file.
4188 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4190 cat <<EOF >> conftest.$ac_ext
4191 #if defined (__STDC__) && __STDC__
4192 # define lt_ptr void *
4194 # define lt_ptr char *
4198 /* The mapping between symbol names and symbols. */
4203 lt_preloaded_symbols[] =
4206 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4207 cat <<\EOF >> conftest.$ac_ext
4215 # Now try linking the two files.
4216 mv conftest.$ac_objext conftstm.$ac_objext
4218 save_CFLAGS="$CFLAGS"
4219 LIBS="conftstm.$ac_objext"
4220 CFLAGS="$CFLAGS$no_builtin_flag"
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4225 CFLAGS="$save_CFLAGS"
4227 echo "cannot find nm_test_func in $nlist" >&5
4230 echo "cannot find nm_test_var in $nlist" >&5
4233 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4236 echo "$progname: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4239 rm -f conftest* conftst*
4241 # Do not use the global_symbol_pipe unless it works.
4242 if test "$pipe_works" = yes; then
4245 lt_cv_sys_global_symbol_pipe=
4251 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4253 global_symbol_to_cdecl=
4254 global_symbol_to_c_name_address=
4256 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4257 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4259 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4261 echo "$ac_t""failed" 1>&6
4263 echo "$ac_t""ok" 1>&6
4266 for ac_hdr in dlfcn.h
4268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4270 echo "configure:4271: checking for $ac_hdr" >&5
4271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 cat > conftest.$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4280 { (eval echo configure:4281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4282 if test -z "$ac_err"; then
4284 eval "ac_cv_header_$ac_safe=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 eval "ac_cv_header_$ac_safe=no"
4294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4297 cat >> confdefs.h <<EOF
4298 #define $ac_tr_hdr 1
4302 echo "$ac_t""no" 1>&6
4311 # Only perform the check for file, if the check method requires it
4312 case $deplibs_check_method in
4314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4315 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4316 echo "configure:4317: checking for ${ac_tool_prefix}file" >&5
4317 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4322 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4328 ac_save_MAGIC_CMD="$MAGIC_CMD"
4329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4330 ac_dummy="/usr/bin:$PATH"
4331 for ac_dir in $ac_dummy; do
4332 test -z "$ac_dir" && ac_dir=.
4333 if test -f $ac_dir/${ac_tool_prefix}file; then
4334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4335 if test -n "$file_magic_test_file"; then
4336 case $deplibs_check_method in
4338 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4341 egrep "$file_magic_regex" > /dev/null; then
4346 *** Warning: the command libtool uses to detect shared libraries,
4347 *** $file_magic_cmd, produces output that libtool cannot recognize.
4348 *** The result is that libtool may fail to recognize shared libraries
4349 *** as such. This will affect the creation of libtool libraries that
4350 *** depend on shared libraries, but programs linked with such libtool
4351 *** libraries will work regardless of this problem. Nevertheless, you
4352 *** may want to report the problem to your system manager and/or to
4353 *** bug-libtool@gnu.org
4363 MAGIC_CMD="$ac_save_MAGIC_CMD"
4368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4369 if test -n "$MAGIC_CMD"; then
4370 echo "$ac_t""$MAGIC_CMD" 1>&6
4372 echo "$ac_t""no" 1>&6
4375 if test -z "$lt_cv_path_MAGIC_CMD"; then
4376 if test -n "$ac_tool_prefix"; then
4377 echo $ac_n "checking for file""... $ac_c" 1>&6
4378 echo "configure:4379: checking for file" >&5
4379 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4390 ac_save_MAGIC_CMD="$MAGIC_CMD"
4391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 ac_dummy="/usr/bin:$PATH"
4393 for ac_dir in $ac_dummy; do
4394 test -z "$ac_dir" && ac_dir=.
4395 if test -f $ac_dir/file; then
4396 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4397 if test -n "$file_magic_test_file"; then
4398 case $deplibs_check_method in
4400 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4403 egrep "$file_magic_regex" > /dev/null; then
4408 *** Warning: the command libtool uses to detect shared libraries,
4409 *** $file_magic_cmd, produces output that libtool cannot recognize.
4410 *** The result is that libtool may fail to recognize shared libraries
4411 *** as such. This will affect the creation of libtool libraries that
4412 *** depend on shared libraries, but programs linked with such libtool
4413 *** libraries will work regardless of this problem. Nevertheless, you
4414 *** may want to report the problem to your system manager and/or to
4415 *** bug-libtool@gnu.org
4425 MAGIC_CMD="$ac_save_MAGIC_CMD"
4430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4431 if test -n "$MAGIC_CMD"; then
4432 echo "$ac_t""$MAGIC_CMD" 1>&6
4434 echo "$ac_t""no" 1>&6
4446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_word" >&5
4450 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 if test -n "$RANLIB"; then
4454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/$ac_word; then
4461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4468 RANLIB="$ac_cv_prog_RANLIB"
4469 if test -n "$RANLIB"; then
4470 echo "$ac_t""$RANLIB" 1>&6
4472 echo "$ac_t""no" 1>&6
4476 if test -z "$ac_cv_prog_RANLIB"; then
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "ranlib", so it can be a program name with args.
4479 set dummy ranlib; ac_word=$2
4480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_word" >&5
4482 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 if test -n "$RANLIB"; then
4486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4490 for ac_dir in $ac_dummy; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f $ac_dir/$ac_word; then
4493 ac_cv_prog_RANLIB="ranlib"
4498 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4501 RANLIB="$ac_cv_prog_RANLIB"
4502 if test -n "$RANLIB"; then
4503 echo "$ac_t""$RANLIB" 1>&6
4505 echo "$ac_t""no" 1>&6
4513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}strip; ac_word=$2
4515 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_word" >&5
4517 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 if test -n "$STRIP"; then
4521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4525 for ac_dir in $ac_dummy; do
4526 test -z "$ac_dir" && ac_dir=.
4527 if test -f $ac_dir/$ac_word; then
4528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4535 STRIP="$ac_cv_prog_STRIP"
4536 if test -n "$STRIP"; then
4537 echo "$ac_t""$STRIP" 1>&6
4539 echo "$ac_t""no" 1>&6
4543 if test -z "$ac_cv_prog_STRIP"; then
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "strip", so it can be a program name with args.
4546 set dummy strip; ac_word=$2
4547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_word" >&5
4549 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 if test -n "$STRIP"; then
4553 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4557 for ac_dir in $ac_dummy; do
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f $ac_dir/$ac_word; then
4560 ac_cv_prog_STRIP="strip"
4565 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4568 STRIP="$ac_cv_prog_STRIP"
4569 if test -n "$STRIP"; then
4570 echo "$ac_t""$STRIP" 1>&6
4572 echo "$ac_t""no" 1>&6
4582 enable_win32_dll=yes
4584 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4585 if test "${enable_libtool_lock+set}" = set; then
4586 enableval="$enable_libtool_lock"
4590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4592 # Some flags need to be propagated to the compiler or linker for good
4596 # Find out which ABI we are using.
4597 echo '#line 4598 "configure"' > conftest.$ac_ext
4598 if { (eval echo configure:4599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 case `/usr/bin/file conftest.$ac_objext` in
4615 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4616 SAVE_CFLAGS="$CFLAGS"
4617 CFLAGS="$CFLAGS -belf"
4618 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4619 echo "configure:4620: checking whether the C compiler needs -belf" >&5
4620 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4629 cross_compiling=$ac_cv_prog_cc_cross
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4641 lt_cv_cc_needs_belf=yes
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 lt_cv_cc_needs_belf=no
4650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4653 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4654 cross_compiling=$ac_cv_prog_cc_cross
4658 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4661 CFLAGS="$SAVE_CFLAGS"
4665 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4669 echo "configure:4670: checking for $ac_word" >&5
4670 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 if test -n "$DLLTOOL"; then
4674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4678 for ac_dir in $ac_dummy; do
4679 test -z "$ac_dir" && ac_dir=.
4680 if test -f $ac_dir/$ac_word; then
4681 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4688 DLLTOOL="$ac_cv_prog_DLLTOOL"
4689 if test -n "$DLLTOOL"; then
4690 echo "$ac_t""$DLLTOOL" 1>&6
4692 echo "$ac_t""no" 1>&6
4696 if test -z "$ac_cv_prog_DLLTOOL"; then
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "dlltool", so it can be a program name with args.
4699 set dummy dlltool; ac_word=$2
4700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_word" >&5
4702 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 if test -n "$DLLTOOL"; then
4706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4710 for ac_dir in $ac_dummy; do
4711 test -z "$ac_dir" && ac_dir=.
4712 if test -f $ac_dir/$ac_word; then
4713 ac_cv_prog_DLLTOOL="dlltool"
4718 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4721 DLLTOOL="$ac_cv_prog_DLLTOOL"
4722 if test -n "$DLLTOOL"; then
4723 echo "$ac_t""$DLLTOOL" 1>&6
4725 echo "$ac_t""no" 1>&6
4733 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}as; ac_word=$2
4735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_word" >&5
4737 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 if test -n "$AS"; then
4741 ac_cv_prog_AS="$AS" # Let the user override the test.
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/$ac_word; then
4748 ac_cv_prog_AS="${ac_tool_prefix}as"
4756 if test -n "$AS"; then
4757 echo "$ac_t""$AS" 1>&6
4759 echo "$ac_t""no" 1>&6
4763 if test -z "$ac_cv_prog_AS"; then
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "as", so it can be a program name with args.
4766 set dummy as; ac_word=$2
4767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4768 echo "configure:4769: checking for $ac_word" >&5
4769 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4770 echo $ac_n "(cached) $ac_c" 1>&6
4772 if test -n "$AS"; then
4773 ac_cv_prog_AS="$AS" # Let the user override the test.
4775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4777 for ac_dir in $ac_dummy; do
4778 test -z "$ac_dir" && ac_dir=.
4779 if test -f $ac_dir/$ac_word; then
4785 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4789 if test -n "$AS"; then
4790 echo "$ac_t""$AS" 1>&6
4792 echo "$ac_t""no" 1>&6
4800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_word" >&5
4804 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 if test -n "$OBJDUMP"; then
4808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 for ac_dir in $ac_dummy; do
4813 test -z "$ac_dir" && ac_dir=.
4814 if test -f $ac_dir/$ac_word; then
4815 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4822 OBJDUMP="$ac_cv_prog_OBJDUMP"
4823 if test -n "$OBJDUMP"; then
4824 echo "$ac_t""$OBJDUMP" 1>&6
4826 echo "$ac_t""no" 1>&6
4830 if test -z "$ac_cv_prog_OBJDUMP"; then
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "objdump", so it can be a program name with args.
4833 set dummy objdump; ac_word=$2
4834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4835 echo "configure:4836: checking for $ac_word" >&5
4836 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 if test -n "$OBJDUMP"; then
4840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4844 for ac_dir in $ac_dummy; do
4845 test -z "$ac_dir" && ac_dir=.
4846 if test -f $ac_dir/$ac_word; then
4847 ac_cv_prog_OBJDUMP="objdump"
4852 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4855 OBJDUMP="$ac_cv_prog_OBJDUMP"
4856 if test -n "$OBJDUMP"; then
4857 echo "$ac_t""$OBJDUMP" 1>&6
4859 echo "$ac_t""no" 1>&6
4868 # recent cygwin and mingw systems supply a stub DllMain which the user
4869 # can override, but on older systems we have to supply one
4870 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4871 echo "configure:4872: checking if libtool should supply DllMain function" >&5
4872 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4880 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 lt_cv_need_dllmain=no
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 lt_cv_need_dllmain=yes
4896 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4899 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4900 # old mingw systems require "-dll" to link a DLL, while more recent ones
4902 SAVE_CFLAGS="$CFLAGS"
4903 CFLAGS="$CFLAGS -mdll"
4904 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4905 echo "configure:4906: checking how to link DLLs" >&5
4906 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 lt_cv_cc_dll_switch=-mdll
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 lt_cv_cc_dll_switch=-dll
4929 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4930 CFLAGS="$SAVE_CFLAGS" ;;
4931 *-*-cygwin* | *-*-pw32*)
4932 # cygwin systems need to pass --dll to the linker, and not link
4933 # crt.o which will require a WinMain@16 definition.
4934 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4940 # Sed substitution that helps us do robust quoting. It backslashifies
4941 # metacharacters that are still active within double-quoted strings.
4942 Xsed='sed -e s/^X//'
4943 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4945 # Same as above, but do not quote variable references.
4946 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4948 # Sed substitution to delay expansion of an escaped shell variable in a
4949 # double_quote_subst'ed string.
4950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4956 default_ofile=libtool
4957 can_build_shared=yes
4959 # All known linkers require a `.a' archive for static linking (except M$VC,
4960 # which needs '.lib').
4962 ltmain="$ac_aux_dir/ltmain.sh"
4963 ofile="$default_ofile"
4964 with_gnu_ld="$lt_cv_prog_gnu_ld"
4965 need_locks="$enable_libtool_lock"
4968 old_CFLAGS="$CFLAGS"
4970 # Set sane defaults for various variables
4971 test -z "$AR" && AR=ar
4972 test -z "$AR_FLAGS" && AR_FLAGS=cru
4973 test -z "$AS" && AS=as
4974 test -z "$CC" && CC=cc
4975 test -z "$DLLTOOL" && DLLTOOL=dlltool
4976 test -z "$LD" && LD=ld
4977 test -z "$LN_S" && LN_S="ln -s"
4978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4979 test -z "$NM" && NM=nm
4980 test -z "$OBJDUMP" && OBJDUMP=objdump
4981 test -z "$RANLIB" && RANLIB=:
4982 test -z "$STRIP" && STRIP=:
4983 test -z "$ac_objext" && ac_objext=o
4985 if test x"$host" != x"$build"; then
4986 ac_tool_prefix=${host_alias}-
4991 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4994 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4999 # AIX sometimes has problems with the GCC collect2 program. For some
5000 # reason, if we set the COLLECT_NAMES environment variable, the problems
5001 # vanish in a puff of smoke.
5002 if test "X${COLLECT_NAMES+set}" != Xset; then
5004 export COLLECT_NAMES
5009 # Determine commands to create old-style static archives.
5010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5011 old_postinstall_cmds='chmod 644 $oldlib'
5012 old_postuninstall_cmds=
5014 if test -n "$RANLIB"; then
5017 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5020 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5026 # Allow CC to be a program name with arguments.
5030 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5031 echo "configure:5032: checking for objdir" >&5
5032 rm -f .libs 2>/dev/null
5033 mkdir .libs 2>/dev/null
5034 if test -d .libs; then
5037 # MS-DOS does not allow filenames that begin with a dot.
5040 rmdir .libs 2>/dev/null
5041 echo "$ac_t""$objdir" 1>&6
5044 # Check whether --with-pic or --without-pic was given.
5045 if test "${with_pic+set}" = set; then
5052 test -z "$pic_mode" && pic_mode=default
5054 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5055 # in isolation, and that seeing it set (from the cache) indicates that
5056 # the associated values are set (in the cache) correctly too.
5057 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5058 echo "configure:5059: checking for $compiler option to produce PIC" >&5
5059 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5060 echo $ac_n "(cached) $ac_c" 1>&6
5063 lt_cv_prog_cc_shlib=
5065 lt_cv_prog_cc_static=
5066 lt_cv_prog_cc_no_builtin=
5067 lt_cv_prog_cc_can_build_shared=$can_build_shared
5069 if test "$GCC" = yes; then
5070 lt_cv_prog_cc_wl='-Wl,'
5071 lt_cv_prog_cc_static='-static'
5075 # Below there is a dirty hack to force normal static linking with -ldl
5076 # The problem is because libdl dynamically linked with both libc and
5077 # libC (AIX C++ library), which obviously doesn't included in libraries
5078 # list by gcc. This cause undefined symbols with -static flags.
5079 # This hack allows C programs to be linked with "-static -ldl", but
5080 # not sure about C++ programs.
5081 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5084 # FIXME: we need at least 68020 code to build shared libraries, but
5085 # adding the `-m68020' flag to GCC prevents building anything better,
5087 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5090 # PIC is the default for these OSes.
5092 darwin* | rhapsody*)
5093 # PIC is the default on this platform
5094 # Common symbols not allowed in MH_DYLIB files
5095 lt_cv_prog_cc_pic='-fno-common'
5097 cygwin* | mingw* | pw32* | os2*)
5098 # This hack is so that the source file can tell whether it is being
5099 # built for inclusion in a dll (and should export symbols for example).
5100 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5103 if test -d /usr/nec; then
5104 lt_cv_prog_cc_pic=-Kconform_pic
5108 lt_cv_prog_cc_pic='-fPIC'
5112 # PORTME Check for PIC flags for the system compiler.
5114 aix3* | aix4* | aix5*)
5115 lt_cv_prog_cc_wl='-Wl,'
5116 # All AIX code is PIC.
5117 if test "$host_cpu" = ia64; then
5118 # AIX 5 now supports IA64 processor
5119 lt_cv_prog_cc_static='-Bstatic'
5121 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5125 hpux9* | hpux10* | hpux11*)
5126 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5127 lt_cv_prog_cc_wl='-Wl,'
5128 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5129 lt_cv_prog_cc_pic='+Z'
5132 irix5* | irix6* | nonstopux*)
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static='-non_shared'
5135 # PIC (with -KPIC) is the default.
5138 cygwin* | mingw* | pw32* | os2*)
5139 # This hack is so that the source file can tell whether it is being
5140 # built for inclusion in a dll (and should export symbols for example).
5141 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5145 lt_cv_prog_cc_pic='-KPIC'
5146 lt_cv_prog_cc_static='-Bstatic'
5149 osf3* | osf4* | osf5*)
5150 # All OSF/1 code is PIC.
5151 lt_cv_prog_cc_wl='-Wl,'
5152 lt_cv_prog_cc_static='-non_shared'
5156 lt_cv_prog_cc_pic='-Kpic'
5157 lt_cv_prog_cc_static='-dn'
5158 lt_cv_prog_cc_shlib='-belf'
5162 lt_cv_prog_cc_pic='-KPIC'
5163 lt_cv_prog_cc_static='-Bstatic'
5164 lt_cv_prog_cc_wl='-Wl,'
5168 lt_cv_prog_cc_pic='-PIC'
5169 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_wl='-Qoption ld '
5173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5174 lt_cv_prog_cc_pic='-KPIC'
5175 lt_cv_prog_cc_static='-Bstatic'
5176 lt_cv_prog_cc_wl='-Wl,'
5180 lt_cv_prog_cc_pic='-pic'
5181 lt_cv_prog_cc_static='-Bstatic'
5185 if test -d /usr/nec ;then
5186 lt_cv_prog_cc_pic='-Kconform_pic'
5187 lt_cv_prog_cc_static='-Bstatic'
5192 lt_cv_prog_cc_can_build_shared=no
5199 if test -z "$lt_cv_prog_cc_pic"; then
5200 echo "$ac_t""none" 1>&6
5202 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5204 # Check to make sure the pic_flag actually works.
5205 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5206 echo "configure:5207: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5207 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 save_CFLAGS="$CFLAGS"
5211 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5212 cat > conftest.$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5220 if { (eval echo configure:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223 hpux9* | hpux10* | hpux11*)
5224 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5225 # they create non-PIC objects. So, if there were any warnings, we
5226 # assume that PIC is not supported.
5227 if test -s conftest.err; then
5228 lt_cv_prog_cc_pic_works=no
5230 lt_cv_prog_cc_pic_works=yes
5234 lt_cv_prog_cc_pic_works=yes
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 lt_cv_prog_cc_pic_works=no
5246 CFLAGS="$save_CFLAGS"
5251 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5253 lt_cv_prog_cc_can_build_shared=no
5255 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5258 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5261 # Check for any special shared library compilation flags.
5262 if test -n "$lt_cv_prog_cc_shlib"; then
5263 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5264 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5266 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5267 lt_cv_prog_cc_can_build_shared=no
5271 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5272 echo "configure:5273: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5273 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 lt_cv_prog_cc_static_works=no
5277 save_LDFLAGS="$LDFLAGS"
5278 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5289 lt_cv_prog_cc_static_works=yes
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5295 LDFLAGS="$save_LDFLAGS"
5300 # Belt *and* braces to stop my trousers falling down:
5301 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5302 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5304 pic_flag="$lt_cv_prog_cc_pic"
5305 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5306 wl="$lt_cv_prog_cc_wl"
5307 link_static_flag="$lt_cv_prog_cc_static"
5308 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5309 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5312 # Check to see if options -o and -c are simultaneously supported by compiler
5313 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5314 echo "configure:5315: checking if $compiler supports -c -o file.$ac_objext" >&5
5315 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5319 $rm -r conftest 2>/dev/null
5322 echo "int some_variable = 0;" > conftest.$ac_ext
5324 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5325 # that will create temporary files in the current directory regardless of
5326 # the output directory. Thus, making CWD read-only will cause this test
5327 # to fail, enabling locking or at least warning the user not to do parallel
5330 save_CFLAGS="$CFLAGS"
5331 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5333 if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5334 # The compiler can only warn and ignore the option if not recognized
5335 # So say no if there are warnings
5336 if test -s out/conftest.err; then
5337 lt_cv_compiler_c_o=no
5339 lt_cv_compiler_c_o=yes
5342 # Append any errors to the config.log.
5343 cat out/conftest.err 1>&5
5344 lt_cv_compiler_c_o=no
5346 CFLAGS="$save_CFLAGS"
5352 $rm -r conftest 2>/dev/null
5356 compiler_c_o=$lt_cv_compiler_c_o
5357 echo "$ac_t""$compiler_c_o" 1>&6
5359 if test x"$compiler_c_o" = x"yes"; then
5360 # Check to see if we can write to a .lo
5361 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5362 echo "configure:5363: checking if $compiler supports -c -o file.lo" >&5
5363 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5367 lt_cv_compiler_o_lo=no
5368 save_CFLAGS="$CFLAGS"
5369 CFLAGS="$CFLAGS -c -o conftest.lo"
5370 save_objext="$ac_objext"
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5377 int some_variable = 0;
5380 if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 # The compiler can only warn and ignore the option if not recognized
5383 # So say no if there are warnings
5384 if test -s conftest.err; then
5385 lt_cv_compiler_o_lo=no
5387 lt_cv_compiler_o_lo=yes
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5395 ac_objext="$save_objext"
5396 CFLAGS="$save_CFLAGS"
5400 compiler_o_lo=$lt_cv_compiler_o_lo
5401 echo "$ac_t""$compiler_o_lo" 1>&6
5406 # Check to see if we can do hard links to lock some files if needed
5407 hard_links="nottested"
5408 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5409 # do not overwrite the value of need_locks provided by the user
5410 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5411 echo "configure:5412: checking if we can lock with hard links" >&5
5414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5416 ln conftest.a conftest.b 2>&5 || hard_links=no
5417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5418 echo "$ac_t""$hard_links" 1>&6
5419 if test "$hard_links" = no; then
5420 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5427 if test "$GCC" = yes; then
5428 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5429 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5430 echo "configure:5431: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5431 echo "int some_variable = 0;" > conftest.$ac_ext
5432 save_CFLAGS="$CFLAGS"
5433 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5434 compiler_rtti_exceptions=no
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5440 int some_variable = 0;
5443 if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5445 # The compiler can only warn and ignore the option if not recognized
5446 # So say no if there are warnings
5447 if test -s conftest.err; then
5448 compiler_rtti_exceptions=no
5450 compiler_rtti_exceptions=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5458 CFLAGS="$save_CFLAGS"
5459 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5461 if test "$compiler_rtti_exceptions" = "yes"; then
5462 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5464 no_builtin_flag=' -fno-builtin'
5468 # See if the linker supports building shared libraries.
5469 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5470 echo "configure:5471: checking whether the linker ($LD) supports shared libraries" >&5
5472 allow_undefined_flag=
5474 need_lib_prefix=unknown
5475 need_version=unknown
5476 # when you set need_version to no, make sure it does not cause -set_version
5477 # flags to be left without arguments
5479 archive_expsym_cmds=
5480 old_archive_from_new_cmds=
5481 old_archive_from_expsyms_cmds=
5482 export_dynamic_flag_spec=
5483 whole_archive_flag_spec=
5484 thread_safe_flag_spec=
5485 hardcode_into_libs=no
5486 hardcode_libdir_flag_spec=
5487 hardcode_libdir_separator=
5490 hardcode_shlibpath_var=unsupported
5492 link_all_deplibs=unknown
5493 always_export_symbols=no
5494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5495 # include_expsyms should be a list of space-separated symbols to be *always*
5496 # included in the symbol list
5498 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5501 # as well as any symbol that contains `d'.
5502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5504 # platforms (ab)use it in PIC code, but their linkers get confused if
5505 # the symbol is explicitly referenced. Since portable code cannot
5506 # rely on this symbol name, it's probably fine to never include it in
5507 # preloaded symbol tables.
5508 extract_expsyms_cmds=
5511 cygwin* | mingw* | pw32*)
5512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5513 # When not using gcc, we currently assume that we are using
5514 # Microsoft Visual C++.
5515 if test "$GCC" != yes; then
5525 if test "$with_gnu_ld" = yes; then
5526 # If archive_cmds runs LD, not CC, wlarc should be empty
5529 # See if GNU ld supports shared libraries.
5531 aix3* | aix4* | aix5*)
5532 # On AIX, the GNU linker is very broken
5533 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5538 *** to be unable to reliably create shared libraries on AIX.
5539 *** Therefore, libtool is disabling shared libraries support. If you
5540 *** really care for shared libraries, you may want to modify your PATH
5541 *** so that a non-GNU linker is found, and then restart.
5547 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)'
5548 hardcode_libdir_flag_spec='-L$libdir'
5549 hardcode_minus_L=yes
5551 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5552 # that the semantics of dynamic libraries on AmigaOS, at least up
5553 # to version 4, is to share data among multiple programs linked
5554 # with the same dynamic library. Since this doesn't match the
5555 # behavior of shared libraries on other platforms, we can use
5561 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5562 allow_undefined_flag=unsupported
5563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5564 # support --undefined. This deserves some investigation. FIXME
5565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5571 cygwin* | mingw* | pw32*)
5572 # hardcode_libdir_flag_spec is actually meaningless, as there is
5573 # no search path for DLLs.
5574 hardcode_libdir_flag_spec='-L$libdir'
5575 allow_undefined_flag=unsupported
5576 always_export_symbols=yes
5578 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5579 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5580 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5581 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5582 else $CC -o impgen impgen.c ; fi)~
5583 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5585 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5587 # cygwin and mingw dlls have different entry points and sets of symbols
5589 # FIXME: what about values for MSVC?
5590 dll_entry=__cygwin_dll_entry@12
5591 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5595 dll_entry=_DllMainCRTStartup@12
5596 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5600 # mingw and cygwin differ, and it's simplest to just exclude the union
5601 # of the two symbol sets.
5602 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5604 # recent cygwin and mingw systems supply a stub DllMain which the user
5605 # can override, but on older systems we have to supply one (in ltdll.c)
5606 if test "x$lt_cv_need_dllmain" = "xyes"; then
5607 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5608 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~
5609 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5615 # Extract the symbol export list from an `--export-all' def file,
5616 # then regenerate the def file from the symbol export list, so that
5617 # the compiled dll only exports the symbol export list.
5618 # Be careful not to strip the DATA tag left be newer dlltools.
5619 export_symbols_cmds="$ltdll_cmds"'
5620 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5621 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5623 # If the export-symbols file already is a .def file (1st line
5624 # is EXPORTS), use it as is.
5625 # If DATA tags from a recent dlltool are present, honour them!
5626 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5627 cp $export_symbols $output_objdir/$soname-def;
5629 echo EXPORTS > $output_objdir/$soname-def;
5631 cat $export_symbols | while read symbol; do
5634 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5635 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5636 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5638 _lt_hint=`expr 1 + \$_lt_hint`;
5642 $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~
5643 $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~
5644 $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~
5645 $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~
5646 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5651 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5654 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5655 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5660 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5664 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5665 *** create shared libraries on Solaris systems. Therefore, libtool
5666 *** is disabling shared libraries support. We urge you to upgrade GNU
5667 *** binutils to release 2.9.1 or newer. Another option is to modify
5668 *** your PATH or compiler configuration so that the native linker is
5669 *** used, and then restart.
5672 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5681 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5684 hardcode_shlibpath_var=no
5688 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5697 if test "$ld_shlibs" = yes; then
5698 runpath_var=LD_RUN_PATH
5699 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5700 export_dynamic_flag_spec='${wl}--export-dynamic'
5702 cygwin* | mingw* | pw32*)
5703 # dlltool doesn't understand --whole-archive et. al.
5704 whole_archive_flag_spec=
5707 # ancient GNU ld didn't support --whole-archive et. al.
5708 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5711 whole_archive_flag_spec=
5717 # PORTME fill in a description of your system's linker (not GNU ld)
5720 allow_undefined_flag=unsupported
5721 always_export_symbols=yes
5722 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'
5723 # Note: this linker hardcodes the directories in LIBPATH if there
5724 # are no directories specified by -L.
5725 hardcode_minus_L=yes
5726 if test "$GCC" = yes && test -z "$link_static_flag"; then
5727 # Neither direct hardcoding nor static linking is supported with a
5729 hardcode_direct=unsupported
5734 if test "$host_cpu" = ia64; then
5735 # On IA64, the linker does run time linking by default, so we don't
5736 # have to do anything special.
5737 aix_use_runtimelinking=no
5738 exp_sym_flag='-Bexport'
5741 aix_use_runtimelinking=no
5743 # Test if we are trying to use run time linking or normal
5744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5745 # need to do runtime linking.
5746 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5747 for ld_flag in $LDFLAGS; do
5750 aix_use_runtimelinking=yes
5757 exp_sym_flag='-bexport'
5758 no_entry_flag='-bnoentry'
5761 # When large executables or shared objects are built, AIX ld can
5762 # have problems creating the table of contents. If linking a library
5763 # or program results in "error TOC overflow" add -mminimal-toc to
5764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5769 hardcode_libdir_separator=':'
5770 if test "$GCC" = yes; then
5771 case $host_os in aix4.[012]|aix4.[012].*)
5772 collect2name=`${CC} -print-prog-name=collect2`
5773 if test -f "$collect2name" && \
5774 strings "$collect2name" | grep resolve_lib_name >/dev/null
5776 # We have reworked collect2
5779 # We have old collect2
5780 hardcode_direct=unsupported
5781 # It fails to find uninstalled libraries when the uninstalled
5782 # path is not listed in the libpath. Setting hardcode_minus_L
5783 # to unsupported forces relinking
5784 hardcode_minus_L=yes
5785 hardcode_libdir_flag_spec='-L$libdir'
5786 hardcode_libdir_separator=
5790 shared_flag='-shared'
5793 if test "$host_cpu" = ia64; then
5794 shared_flag='${wl}-G'
5796 if test "$aix_use_runtimelinking" = yes; then
5797 shared_flag='${wl}-G'
5799 shared_flag='${wl}-bM:SRE'
5804 # It seems that -bexpall can do strange things, so it is better to
5805 # generate a list of symbols to export.
5806 always_export_symbols=yes
5807 if test "$aix_use_runtimelinking" = yes; then
5808 # Warning - without using the other runtime loading flags (-brtl),
5809 # -berok will link without error, but may produce a broken library.
5810 allow_undefined_flag='-berok'
5811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5812 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"
5814 if test "$host_cpu" = ia64; then
5815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5816 allow_undefined_flag="-z nodefs"
5817 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"
5819 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5820 # Warning - without using the other run time loading flags,
5821 # -berok will link without error, but may produce a broken library.
5822 allow_undefined_flag='${wl}-berok'
5823 # This is a bit strange, but is similar to how AIX traditionally builds
5824 # it's shared libraries.
5825 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'
5831 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)'
5832 hardcode_libdir_flag_spec='-L$libdir'
5833 hardcode_minus_L=yes
5834 # see comment about different semantics on the GNU ld section
5838 cygwin* | mingw* | pw32*)
5839 # When not using gcc, we currently assume that we are using
5840 # Microsoft Visual C++.
5841 # hardcode_libdir_flag_spec is actually meaningless, as there is
5842 # no search path for DLLs.
5843 hardcode_libdir_flag_spec=' '
5844 allow_undefined_flag=unsupported
5845 # Tell ltmain to make .lib files, not .a files.
5847 # FIXME: Setting linknames here is a bad hack.
5848 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5849 # The linker will automatically build a .lib file if we build a DLL.
5850 old_archive_from_new_cmds='true'
5851 # FIXME: Should let the user specify the lib program.
5852 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5853 fix_srcfile_path='`cygpath -w "$srcfile"`'
5856 darwin* | rhapsody*)
5858 rhapsody* | darwin1.[012])
5859 allow_undefined_flag='-undefined suppress'
5862 allow_undefined_flag='-flat_namespace -undefined suppress'
5865 # FIXME: Relying on posixy $() will cause problems for
5866 # cross-compilation, but unfortunately the echo tests do not
5867 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5868 # `"' quotes if we put them in here... so don't!
5869 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)'
5870 # We need to add '_' to the symbols in $export_symbols first
5871 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5873 hardcode_shlibpath_var=no
5874 whole_archive_flag_spec='-all_load $convenience'
5881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5882 # support. Future versions do this automatically, but an explicit c++rt0.o
5883 # does not break anything, and helps significantly (at the cost of a little
5886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5887 hardcode_libdir_flag_spec='-R$libdir'
5889 hardcode_shlibpath_var=no
5892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5896 hardcode_minus_L=yes
5897 hardcode_shlibpath_var=no
5900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5902 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5903 hardcode_libdir_flag_spec='-R$libdir'
5905 hardcode_shlibpath_var=no
5908 hpux9* | hpux10* | hpux11*)
5910 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' ;;
5911 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5914 hardcode_libdir_separator=:
5916 hardcode_minus_L=yes # Not in the search PATH, but as the default
5917 # location of the library.
5918 export_dynamic_flag_spec='${wl}-E'
5921 irix5* | irix6* | nonstopux*)
5922 if test "$GCC" = yes; then
5923 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'
5924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5926 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'
5927 hardcode_libdir_flag_spec='-rpath $libdir'
5929 hardcode_libdir_separator=:
5930 link_all_deplibs=yes
5934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5937 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5939 hardcode_libdir_flag_spec='-R$libdir'
5941 hardcode_shlibpath_var=no
5945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5948 hardcode_libdir_separator=:
5949 hardcode_shlibpath_var=no
5954 hardcode_shlibpath_var=no
5955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5958 export_dynamic_flag_spec='${wl}-E'
5961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5963 hardcode_libdir_flag_spec='-R$libdir'
5966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5974 hardcode_libdir_flag_spec='-L$libdir'
5975 hardcode_minus_L=yes
5976 allow_undefined_flag=unsupported
5977 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'
5978 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5982 if test "$GCC" = yes; then
5983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5984 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'
5986 allow_undefined_flag=' -expect_unresolved \*'
5987 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'
5989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5990 hardcode_libdir_separator=:
5993 osf4* | osf5*) # as osf3* with the addition of -msym flag
5994 if test "$GCC" = yes; then
5995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5996 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'
5997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5999 allow_undefined_flag=' -expect_unresolved \*'
6000 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'
6001 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6002 $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'
6004 #Both c and cxx compiler support -rpath directly
6005 hardcode_libdir_flag_spec='-rpath $libdir'
6007 hardcode_libdir_separator=:
6011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6012 hardcode_shlibpath_var=no
6013 runpath_var=LD_RUN_PATH
6014 hardcode_runpath_var=yes
6015 export_dynamic_flag_spec='${wl}-Bexport'
6019 # gcc --version < 3.0 without binutils cannot create self contained
6020 # shared libraries reliably, requiring libgcc.a to resolve some of
6021 # the object symbols generated in some cases. Libraries that use
6022 # assert need libgcc.a to resolve __eprintf, for example. Linking
6023 # a copy of libgcc.a into every shared library to guarantee resolving
6024 # such symbols causes other problems: According to Tim Van Holder
6025 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6026 # (to the application) exception stack for one thing.
6027 no_undefined_flag=' -z defs'
6028 if test "$GCC" = yes; then
6029 case `$CC --version 2>/dev/null` in
6033 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6034 *** create self contained shared libraries on Solaris systems, without
6035 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6036 *** -no-undefined support, which will at least allow you to build shared
6037 *** libraries. However, you may find that when you link such libraries
6038 *** into an application without using GCC, you have to manually add
6039 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6040 *** upgrade to a newer version of GCC. Another option is to rebuild your
6041 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6048 # $CC -shared without GNU ld will not create a library from C++
6049 # object files and a static libstdc++, better avoid it by now
6050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6053 hardcode_libdir_flag_spec='-R$libdir'
6054 hardcode_shlibpath_var=no
6056 solaris2.[0-5] | solaris2.[0-5].*) ;;
6057 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6058 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6060 link_all_deplibs=yes
6064 if test "x$host_vendor" = xsequent; then
6065 # Use $CC to link under sequent, because it throws in some extra .o
6066 # files that make .init and .fini sections work.
6067 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6069 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6071 hardcode_libdir_flag_spec='-L$libdir'
6073 hardcode_minus_L=yes
6074 hardcode_shlibpath_var=no
6078 case $host_vendor in
6080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6081 hardcode_direct=yes # is this really true???
6084 ## LD is ld it makes a PLAMLIB
6085 ## CC just makes a GrossModule.
6086 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6087 reload_cmds='$CC -r -o $output$reload_objs'
6091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6092 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6095 runpath_var='LD_RUN_PATH'
6096 hardcode_shlibpath_var=no
6100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6101 hardcode_shlibpath_var=no
6102 export_dynamic_flag_spec='-Bexport'
6106 no_undefined_flag=' -z text'
6107 # $CC -shared without GNU ld will not create a library from C++
6108 # object files and a static libstdc++, better avoid it by now
6109 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6111 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6112 hardcode_libdir_flag_spec=
6113 hardcode_shlibpath_var=no
6114 runpath_var='LD_RUN_PATH'
6118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6119 hardcode_libdir_flag_spec='-L$libdir'
6120 hardcode_shlibpath_var=no
6124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6125 hardcode_libdir_flag_spec='-L$libdir'
6126 hardcode_shlibpath_var=no
6130 if test -d /usr/nec; then
6131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6132 hardcode_shlibpath_var=no
6133 runpath_var=LD_RUN_PATH
6134 hardcode_runpath_var=yes
6140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6143 hardcode_shlibpath_var=no
6144 hardcode_runpath_var=yes
6145 runpath_var=LD_RUN_PATH
6148 sysv5uw7* | unixware7*)
6149 no_undefined_flag='${wl}-z ${wl}text'
6150 if test "$GCC" = yes; then
6151 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6153 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6155 runpath_var='LD_RUN_PATH'
6156 hardcode_shlibpath_var=no
6164 echo "$ac_t""$ld_shlibs" 1>&6
6165 test "$ld_shlibs" = no && can_build_shared=no
6167 # Check hardcoding attributes.
6168 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6169 echo "configure:6170: checking how to hardcode library paths into programs" >&5
6171 if test -n "$hardcode_libdir_flag_spec" || \
6172 test -n "$runpath_var"; then
6174 # We can hardcode non-existant directories.
6175 if test "$hardcode_direct" != no &&
6176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6177 # have to relink, otherwise we might link with an installed library
6178 # when we should be linking with a yet-to-be-installed one
6179 ## test "$hardcode_shlibpath_var" != no &&
6180 test "$hardcode_minus_L" != no; then
6181 # Linking always hardcodes the temporary library directory.
6182 hardcode_action=relink
6184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6185 hardcode_action=immediate
6188 # We cannot hardcode anything, or else we can only hardcode existing
6190 hardcode_action=unsupported
6192 echo "$ac_t""$hardcode_action" 1>&6
6196 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6197 echo "configure:6198: checking whether stripping libraries is possible" >&5
6198 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6199 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6200 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6201 echo "$ac_t""yes" 1>&6
6203 echo "$ac_t""no" 1>&6
6206 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6207 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6209 # PORTME Fill in your ld.so characteristics
6210 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6211 echo "configure:6212: checking dynamic linker characteristics" >&5
6213 libname_spec='lib$name'
6220 shlibpath_overrides_runpath=unknown
6222 dynamic_linker="$host_os ld.so"
6223 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6229 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6230 shlibpath_var=LIBPATH
6232 # AIX has no versioning support, so we append a major version to the name.
6233 soname_spec='${libname}${release}.so$major'
6240 hardcode_into_libs=yes
6241 if test "$host_cpu" = ia64; then
6242 # AIX 5 supports IA64
6243 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6244 shlibpath_var=LD_LIBRARY_PATH
6246 # With GCC up to 2.95.x, collect2 would create an import file
6247 # for dependence libraries. The import file would start with
6248 # the line `#! .'. This would cause the generated library to
6249 # depend on `.', always an invalid library. This was fixed in
6250 # development snapshots of GCC prior to 3.0.
6252 aix4 | aix4.[01] | aix4.[01].*)
6253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6255 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6262 # AIX (on Power*) has no versioning support, so currently we can
6263 # not hardcode correct soname into executable. Probably we can
6264 # add versioning support to collect2, so additional links can
6265 # be useful in future.
6266 if test "$aix_use_runtimelinking" = yes; then
6267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6268 # instead of lib<name>.a to let people know that these are not
6269 # typical AIX shared libraries.
6270 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6272 # We preserve .a as extension for shared libraries through AIX4.2
6273 # and later when we are not doing run time linking.
6274 library_names_spec='${libname}${release}.a $libname.a'
6275 soname_spec='${libname}${release}.so$major'
6277 shlibpath_var=LIBPATH
6279 hardcode_into_libs=yes
6283 library_names_spec='$libname.ixlibrary $libname.a'
6284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6285 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'
6289 library_names_spec='${libname}.so'
6290 dynamic_linker="$host_os ld.so"
6291 shlibpath_var=LIBRARY_PATH
6297 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6298 soname_spec='${libname}${release}.so$major'
6299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6300 shlibpath_var=LD_LIBRARY_PATH
6301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6303 export_dynamic_flag_spec=-rdynamic
6304 # the default ld.so.conf also contains /usr/contrib/lib and
6305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6306 # libtool to hard-code these into programs
6309 cygwin* | mingw* | pw32*)
6310 version_type=windows
6313 case $GCC,$host_os in
6315 library_names_spec='$libname.dll.a'
6316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6317 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6318 dldir=$destdir/`dirname \$dlpath`~
6319 test -d \$dldir || mkdir -p \$dldir~
6320 $install_prog .libs/$dlname \$dldir/$dlname'
6321 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6322 dlpath=$dir/\$dldll~
6326 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6333 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6336 dynamic_linker='Win32 ld.exe'
6337 # FIXME: first we should search . and the directory the executable is in
6341 darwin* | rhapsody*)
6342 dynamic_linker="$host_os dyld"
6346 # FIXME: Relying on posixy $() will cause problems for
6347 # cross-compilation, but unfortunately the echo tests do not
6348 # yet detect zsh echo's removal of \ escapes.
6349 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)'
6350 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6351 shlibpath_overrides_runpath=yes
6352 shlibpath_var=DYLD_LIBRARY_PATH
6360 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6361 version_type=freebsd-$objformat
6362 case $version_type in
6364 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6369 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6373 shlibpath_var=LD_LIBRARY_PATH
6376 shlibpath_overrides_runpath=yes
6379 shlibpath_overrides_runpath=no
6380 hardcode_into_libs=yes
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6390 soname_spec='${libname}${release}.so$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 hardcode_into_libs=yes
6395 hpux9* | hpux10* | hpux11*)
6396 # Give a soname corresponding to the major version so that dld.sl refuses to
6397 # link against other versions.
6398 dynamic_linker="$host_os dld.sl"
6402 shlibpath_var=SHLIB_PATH
6403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6404 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6405 soname_spec='${libname}${release}.sl$major'
6406 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6407 postinstall_cmds='chmod 555 $lib'
6410 irix5* | irix6* | nonstopux*)
6412 nonstopux*) version_type=nonstopux ;;
6413 *) version_type=irix ;;
6417 soname_spec='${libname}${release}.so$major'
6418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6420 irix5* | nonstopux*)
6424 case $LD in # libtool.m4 will add one of these switches to LD
6425 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6426 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6427 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6428 *) libsuff= shlibsuff= libmagic=never-match;;
6432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6433 shlibpath_overrides_runpath=no
6434 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6435 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6438 # No shared lib support for Linux oldld, aout, or coff.
6439 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6443 # This must be Linux ELF.
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 shlibpath_overrides_runpath=no
6453 # This implies no fast_install, which is unacceptable.
6454 # Some rework will be needed to allow for fast_install
6455 # before this can be enabled.
6456 hardcode_into_libs=yes
6458 # We used to test for /lib/ld.so.1 and disable shared libraries on
6459 # powerpc, because MkLinux only supported shared libraries with the
6460 # GNU dynamic linker. Since this was broken with cross compilers,
6461 # most powerpc-linux boxes support dynamic linking these days and
6462 # people can always --disable-shared, the test was removed, and we
6463 # assume the GNU/Linux dynamic linker is in use.
6464 dynamic_linker='GNU/Linux ld.so'
6471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6472 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6474 dynamic_linker='NetBSD (a.out) ld.so'
6476 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6477 soname_spec='${libname}${release}.so$major'
6478 dynamic_linker='NetBSD ld.elf_so'
6480 shlibpath_var=LD_LIBRARY_PATH
6481 shlibpath_overrides_runpath=yes
6482 hardcode_into_libs=yes
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6488 shlibpath_var=LD_LIBRARY_PATH
6489 shlibpath_overrides_runpath=yes
6496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6498 openbsd2.[89] | openbsd2.[89].*)
6499 shlibpath_overrides_runpath=no
6502 shlibpath_overrides_runpath=yes
6506 shlibpath_overrides_runpath=yes
6508 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6510 shlibpath_var=LD_LIBRARY_PATH
6514 libname_spec='$name'
6516 library_names_spec='$libname.dll $libname.a'
6517 dynamic_linker='OS/2 ld.exe'
6518 shlibpath_var=LIBPATH
6521 osf3* | osf4* | osf5*)
6524 soname_spec='${libname}${release}.so$major'
6525 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6526 shlibpath_var=LD_LIBRARY_PATH
6527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6529 hardcode_into_libs=yes
6534 soname_spec='${libname}${release}.so$major'
6535 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6536 shlibpath_var=LD_LIBRARY_PATH
6543 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6544 soname_spec='${libname}${release}.so$major'
6545 shlibpath_var=LD_LIBRARY_PATH
6546 shlibpath_overrides_runpath=yes
6547 hardcode_into_libs=yes
6548 # ldd complains unless libraries are executable
6549 postinstall_cmds='chmod +x $lib'
6554 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6556 shlibpath_var=LD_LIBRARY_PATH
6557 shlibpath_overrides_runpath=yes
6558 if test "$with_gnu_ld" = yes; then
6564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6566 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6567 soname_spec='${libname}${release}.so$major'
6568 shlibpath_var=LD_LIBRARY_PATH
6569 case $host_vendor in
6571 shlibpath_overrides_runpath=no
6573 export_dynamic_flag_spec='${wl}-Blargedynsym'
6574 runpath_var=LD_RUN_PATH
6582 shlibpath_overrides_runpath=no
6583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6590 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6591 soname_spec='${libname}${release}.so$major'
6592 shlibpath_var=LD_LIBRARY_PATH
6599 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6600 soname_spec='${libname}${release}.so$major'
6601 shlibpath_var=LD_LIBRARY_PATH
6605 if test -d /usr/nec ;then
6607 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6608 soname_spec='$libname.so.$major'
6609 shlibpath_var=LD_LIBRARY_PATH
6617 echo "$ac_t""$dynamic_linker" 1>&6
6618 test "$dynamic_linker" = no && can_build_shared=no
6620 # Report the final consequences.
6621 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6622 echo "configure:6623: checking if libtool supports shared libraries" >&5
6623 echo "$ac_t""$can_build_shared" 1>&6
6625 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6626 echo "configure:6627: checking whether to build shared libraries" >&5
6627 test "$can_build_shared" = "no" && enable_shared=no
6629 # On AIX, shared libraries and static libraries use the same namespace, and
6630 # are all built from PIC.
6633 test "$enable_shared" = yes && enable_static=no
6634 if test -n "$RANLIB"; then
6635 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6636 postinstall_cmds='$RANLIB $lib'
6641 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6642 test "$enable_shared" = yes && enable_static=no
6646 echo "$ac_t""$enable_shared" 1>&6
6648 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6649 echo "configure:6650: checking whether to build static libraries" >&5
6650 # Make sure either enable_shared or enable_static is yes.
6651 test "$enable_shared" = yes || enable_static=yes
6652 echo "$ac_t""$enable_static" 1>&6
6654 if test "$hardcode_action" = relink; then
6655 # Fast installation is not supported
6656 enable_fast_install=no
6657 elif test "$shlibpath_overrides_runpath" = yes ||
6658 test "$enable_shared" = no; then
6659 # Fast installation is not necessary
6660 enable_fast_install=needless
6663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6664 if test "$GCC" = yes; then
6665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6668 if test "x$enable_dlopen" != xyes; then
6669 enable_dlopen=unknown
6670 enable_dlopen_self=unknown
6671 enable_dlopen_self_static=unknown
6678 lt_cv_dlopen="load_add_on"
6680 lt_cv_dlopen_self=yes
6683 cygwin* | mingw* | pw32*)
6684 lt_cv_dlopen="LoadLibrary"
6689 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6690 echo "configure:6691: checking for shl_load" >&5
6691 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char shl_load(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_func_shl_load=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_shl_load=no"
6731 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 lt_cv_dlopen="shl_load"
6735 echo "$ac_t""no" 1>&6
6736 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6737 echo "configure:6738: checking for shl_load in -ldld" >&5
6738 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 ac_save_LIBS="$LIBS"
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_lib_$ac_lib_var=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_lib_$ac_lib_var=no"
6766 LIBS="$ac_save_LIBS"
6769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6773 echo "$ac_t""no" 1>&6
6774 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6775 echo "configure:6776: checking for dlopen" >&5
6776 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char dlopen(); below. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6793 /* The GNU C library defines this for functions which it implements
6794 to always fail with ENOSYS. Some functions are actually named
6795 something starting with __ and the normal name is an alias. */
6796 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_func_dlopen=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_func_dlopen=no"
6816 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 lt_cv_dlopen="dlopen"
6820 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6822 echo "configure:6823: checking for dlopen in -ldl" >&5
6823 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6824 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS="$LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6858 echo "$ac_t""no" 1>&6
6859 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6860 echo "configure:6861: checking for dlopen in -lsvld" >&5
6861 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 ac_save_LIBS="$LIBS"
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 eval "ac_cv_lib_$ac_lib_var=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_lib_$ac_lib_var=no"
6889 LIBS="$ac_save_LIBS"
6892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6896 echo "$ac_t""no" 1>&6
6897 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6898 echo "configure:6899: checking for dld_link in -ldld" >&5
6899 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 ac_save_LIBS="$LIBS"
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6919 eval "ac_cv_lib_$ac_lib_var=yes"
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 eval "ac_cv_lib_$ac_lib_var=no"
6927 LIBS="$ac_save_LIBS"
6930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6931 echo "$ac_t""yes" 1>&6
6932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6934 echo "$ac_t""no" 1>&6
6955 if test "x$lt_cv_dlopen" != xno; then
6961 case $lt_cv_dlopen in
6963 save_CPPFLAGS="$CPPFLAGS"
6964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6966 save_LDFLAGS="$LDFLAGS"
6967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6970 LIBS="$lt_cv_dlopen_libs $LIBS"
6972 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6973 echo "configure:6974: checking whether a program can dlopen itself" >&5
6974 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 if test "$cross_compiling" = yes; then :
6978 lt_cv_dlopen_self=cross
6980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6981 lt_status=$lt_dlunknown
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6993 # define LT_DLGLOBAL RTLD_GLOBAL
6996 # define LT_DLGLOBAL DL_GLOBAL
6998 # define LT_DLGLOBAL 0
7002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7003 find out it does not work in some platform. */
7004 #ifndef LT_DLLAZY_OR_NOW
7006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7009 # define LT_DLLAZY_OR_NOW DL_LAZY
7012 # define LT_DLLAZY_OR_NOW RTLD_NOW
7015 # define LT_DLLAZY_OR_NOW DL_NOW
7017 # define LT_DLLAZY_OR_NOW 0
7025 extern "C" void exit (int);
7028 void fnord() { int i=42;}
7031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7032 int status = $lt_dlunknown;
7036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7038 /* dlclose (self); */
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7045 (./conftest; exit; ) 2>/dev/null
7048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7050 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7053 # compilation failed
7054 lt_cv_dlopen_self=no
7062 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7064 if test "x$lt_cv_dlopen_self" = xyes; then
7065 LDFLAGS="$LDFLAGS $link_static_flag"
7066 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7067 echo "configure:7068: checking whether a statically linked program can dlopen itself" >&5
7068 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 if test "$cross_compiling" = yes; then :
7072 lt_cv_dlopen_self_static=cross
7074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7075 lt_status=$lt_dlunknown
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7087 # define LT_DLGLOBAL RTLD_GLOBAL
7090 # define LT_DLGLOBAL DL_GLOBAL
7092 # define LT_DLGLOBAL 0
7096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7097 find out it does not work in some platform. */
7098 #ifndef LT_DLLAZY_OR_NOW
7100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7103 # define LT_DLLAZY_OR_NOW DL_LAZY
7106 # define LT_DLLAZY_OR_NOW RTLD_NOW
7109 # define LT_DLLAZY_OR_NOW DL_NOW
7111 # define LT_DLLAZY_OR_NOW 0
7119 extern "C" void exit (int);
7122 void fnord() { int i=42;}
7125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7126 int status = $lt_dlunknown;
7130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7132 /* dlclose (self); */
7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7139 (./conftest; exit; ) 2>/dev/null
7142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7144 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7147 # compilation failed
7148 lt_cv_dlopen_self_static=no
7156 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7159 CPPFLAGS="$save_CPPFLAGS"
7160 LDFLAGS="$save_LDFLAGS"
7165 case $lt_cv_dlopen_self in
7166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7167 *) enable_dlopen_self=unknown ;;
7170 case $lt_cv_dlopen_self_static in
7171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7172 *) enable_dlopen_self_static=unknown ;;
7177 if test "$enable_shared" = yes && test "$GCC" = yes; then
7178 case $archive_cmds in
7180 # FIXME: we may have to deal with multi-command sequences.
7183 # Test whether the compiler implicitly links with -lc since on some
7184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7185 # to ld, don't add -lc before -lgcc.
7186 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7187 echo "configure:7188: checking whether -lc should be explicitly linked in" >&5
7188 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7192 echo 'static int dummy;' > conftest.$ac_ext
7194 if { (eval echo configure:7195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7197 libobjs=conftest.$ac_objext
7199 wl=$lt_cv_prog_cc_wl
7205 save_allow_undefined_flag=$allow_undefined_flag
7206 allow_undefined_flag=
7207 if { (eval echo configure:7208: \"$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; }
7209 lt_cv_archive_cmds_need_lc=no
7211 lt_cv_archive_cmds_need_lc=yes
7213 allow_undefined_flag=$save_allow_undefined_flag
7215 cat conftest.err 1>&5
7219 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7223 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7225 # The second clause should only fire when bootstrapping the
7226 # libtool distribution, otherwise you forgot to ship ltmain.sh
7227 # with your package, and you will get complaints that there are
7228 # no rules to generate ltmain.sh.
7229 if test -f "$ltmain"; then
7232 # If there is no Makefile yet, we rely on a make rule to execute
7233 # `config.status --recheck' to rerun these tests and create the
7234 # libtool script then.
7235 test -f Makefile && make "$ltmain"
7238 if test -f "$ltmain"; then
7239 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7242 echo creating $ofile
7244 # Now quote all the things that may contain metacharacters while being
7245 # careful not to overquote the AC_SUBSTed values. We take copies of the
7246 # variables and quote the copies for generation of the libtool script.
7247 for var in echo old_CC old_CFLAGS SED \
7248 AR AR_FLAGS CC LD LN_S NM SHELL \
7249 reload_flag reload_cmds wl \
7250 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7251 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7252 library_names_spec soname_spec \
7253 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7254 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7255 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7256 old_striplib striplib file_magic_cmd export_symbols_cmds \
7257 deplibs_check_method allow_undefined_flag no_undefined_flag \
7258 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7259 global_symbol_to_c_name_address \
7260 hardcode_libdir_flag_spec hardcode_libdir_separator \
7261 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7262 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7265 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7266 old_postinstall_cmds | old_postuninstall_cmds | \
7267 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7268 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7269 postinstall_cmds | postuninstall_cmds | \
7270 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7271 # Double-quote double-evaled strings.
7272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7280 cat <<__EOF__ > "${ofile}T"
7283 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7284 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7287 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7288 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7290 # This program is free software; you can redistribute it and/or modify
7291 # it under the terms of the GNU General Public License as published by
7292 # the Free Software Foundation; either version 2 of the License, or
7293 # (at your option) any later version.
7295 # This program is distributed in the hope that it will be useful, but
7296 # WITHOUT ANY WARRANTY; without even the implied warranty of
7297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7298 # General Public License for more details.
7300 # You should have received a copy of the GNU General Public License
7301 # along with this program; if not, write to the Free Software
7302 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7304 # As a special exception to the GNU General Public License, if you
7305 # distribute this file as part of a program that contains a
7306 # configuration script generated by Autoconf, you may include it under
7307 # the same distribution terms that you use for the rest of that program.
7309 # A sed that does not truncate output.
7312 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7313 Xsed="${SED} -e s/^X//"
7315 # The HP-UX ksh and POSIX shell print the target directory to stdout
7317 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7319 # ### BEGIN LIBTOOL CONFIG
7321 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7323 # Shell to use when invoking shell scripts.
7326 # Whether or not to build shared libraries.
7327 build_libtool_libs=$enable_shared
7329 # Whether or not to build static libraries.
7330 build_old_libs=$enable_static
7332 # Whether or not to add -lc for building shared libraries.
7333 build_libtool_need_lc=$need_lc
7335 # Whether or not to optimize for fast installation.
7336 fast_install=$enable_fast_install
7339 host_alias=$host_alias
7342 # An echo program that does not interpret backslashes.
7347 AR_FLAGS=$lt_AR_FLAGS
7349 # The default C compiler.
7352 # Is the compiler the GNU C compiler?
7355 # The linker used to build libraries.
7358 # Whether we need hard or soft links.
7361 # A BSD-compatible nm program.
7364 # A symbol stripping program
7367 # Used to examine libraries when file_magic_cmd begins "file"
7368 MAGIC_CMD=$MAGIC_CMD
7370 # Used on cygwin: DLL creation program.
7373 # Used on cygwin: object dumper.
7376 # Used on cygwin: assembler.
7379 # The name of the directory that contains temporary libtool files.
7382 # How to create reloadable object files.
7383 reload_flag=$lt_reload_flag
7384 reload_cmds=$lt_reload_cmds
7386 # How to pass a linker flag through the compiler.
7389 # Object file suffix (normally "o").
7392 # Old archive suffix (normally "a").
7395 # Executable file suffix (normally "").
7398 # Additional compiler flags for building library objects.
7399 pic_flag=$lt_pic_flag
7402 # Does compiler simultaneously support -c and -o options?
7403 compiler_c_o=$lt_compiler_c_o
7405 # Can we write directly to a .lo ?
7406 compiler_o_lo=$lt_compiler_o_lo
7408 # Must we lock files when doing compilation ?
7409 need_locks=$lt_need_locks
7411 # Do we need the lib prefix for modules?
7412 need_lib_prefix=$need_lib_prefix
7414 # Do we need a version for libraries?
7415 need_version=$need_version
7417 # Whether dlopen is supported.
7418 dlopen_support=$enable_dlopen
7420 # Whether dlopen of programs is supported.
7421 dlopen_self=$enable_dlopen_self
7423 # Whether dlopen of statically linked programs is supported.
7424 dlopen_self_static=$enable_dlopen_self_static
7426 # Compiler flag to prevent dynamic linking.
7427 link_static_flag=$lt_link_static_flag
7429 # Compiler flag to turn off builtin functions.
7430 no_builtin_flag=$lt_no_builtin_flag
7432 # Compiler flag to allow reflexive dlopens.
7433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7435 # Compiler flag to generate shared objects directly from archives.
7436 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7438 # Compiler flag to generate thread-safe objects.
7439 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7441 # Library versioning type.
7442 version_type=$version_type
7444 # Format of library name prefix.
7445 libname_spec=$lt_libname_spec
7447 # List of archive names. First name is the real one, the rest are links.
7448 # The last name is the one that the linker finds with -lNAME.
7449 library_names_spec=$lt_library_names_spec
7451 # The coded name of the library, if different from the real name.
7452 soname_spec=$lt_soname_spec
7454 # Commands used to build and install an old-style archive.
7456 old_archive_cmds=$lt_old_archive_cmds
7457 old_postinstall_cmds=$lt_old_postinstall_cmds
7458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7460 # Create an old-style archive from a shared archive.
7461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7463 # Create a temporary old-style archive to link instead of a shared archive.
7464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7466 # Commands used to build and install a shared archive.
7467 archive_cmds=$lt_archive_cmds
7468 archive_expsym_cmds=$lt_archive_expsym_cmds
7469 postinstall_cmds=$lt_postinstall_cmds
7470 postuninstall_cmds=$lt_postuninstall_cmds
7472 # Commands to strip libraries.
7473 old_striplib=$lt_old_striplib
7474 striplib=$lt_striplib
7476 # Method to check whether dependent libraries are shared objects.
7477 deplibs_check_method=$lt_deplibs_check_method
7479 # Command to use when deplibs_check_method == file_magic.
7480 file_magic_cmd=$lt_file_magic_cmd
7482 # Flag that allows shared libraries with undefined symbols to be built.
7483 allow_undefined_flag=$lt_allow_undefined_flag
7485 # Flag that forces no undefined symbols.
7486 no_undefined_flag=$lt_no_undefined_flag
7488 # Commands used to finish a libtool library installation in a directory.
7489 finish_cmds=$lt_finish_cmds
7491 # Same as above, but a single script fragment to be evaled but not shown.
7492 finish_eval=$lt_finish_eval
7494 # Take the output of nm and produce a listing of raw symbols and C names.
7495 global_symbol_pipe=$lt_global_symbol_pipe
7497 # Transform the output of nm in a proper C declaration
7498 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7500 # Transform the output of nm in a C name address pair
7501 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7503 # This is the shared library runtime path variable.
7504 runpath_var=$runpath_var
7506 # This is the shared library path variable.
7507 shlibpath_var=$shlibpath_var
7509 # Is shlibpath searched before the hard-coded library search path?
7510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7512 # How to hardcode a shared library path into an executable.
7513 hardcode_action=$hardcode_action
7515 # Whether we should hardcode library paths into libraries.
7516 hardcode_into_libs=$hardcode_into_libs
7518 # Flag to hardcode \$libdir into a binary during linking.
7519 # This must work even if \$libdir does not exist.
7520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7522 # Whether we need a single -rpath flag with a separated argument.
7523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7525 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7527 hardcode_direct=$hardcode_direct
7529 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7531 hardcode_minus_L=$hardcode_minus_L
7533 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7534 # the resulting binary.
7535 hardcode_shlibpath_var=$hardcode_shlibpath_var
7537 # Variables whose values should be saved in libtool wrapper scripts and
7538 # restored at relink time.
7539 variables_saved_for_relink="$variables_saved_for_relink"
7541 # Whether libtool must link a program against all its dependency libraries.
7542 link_all_deplibs=$link_all_deplibs
7544 # Compile-time system search path for libraries
7545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7547 # Run-time system search path for libraries
7548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7550 # Fix the shell variable \$srcfile for the compiler.
7551 fix_srcfile_path="$fix_srcfile_path"
7553 # Set to yes if exported symbols are required.
7554 always_export_symbols=$always_export_symbols
7556 # The commands to list exported symbols.
7557 export_symbols_cmds=$lt_export_symbols_cmds
7559 # The commands to extract the exported symbol list from a shared archive.
7560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7562 # Symbols that should not be listed in the preloaded symbols.
7563 exclude_expsyms=$lt_exclude_expsyms
7565 # Symbols that must always be exported.
7566 include_expsyms=$lt_include_expsyms
7568 # ### END LIBTOOL CONFIG
7574 cat <<\EOF >> "${ofile}T"
7576 # AIX sometimes has problems with the GCC collect2 program. For some
7577 # reason, if we set the COLLECT_NAMES environment variable, the problems
7578 # vanish in a puff of smoke.
7579 if test "X${COLLECT_NAMES+set}" != Xset; then
7581 export COLLECT_NAMES
7588 cygwin* | mingw* | pw32* | os2*)
7589 cat <<'EOF' >> "${ofile}T"
7590 # This is a source program that is used to create dlls on Windows
7591 # Don't remove nor modify the starting and closing comments
7592 # /* ltdll.c starts here */
7593 # #define WIN32_LEAN_AND_MEAN
7594 # #include <windows.h>
7595 # #undef WIN32_LEAN_AND_MEAN
7596 # #include <stdio.h>
7598 # #ifndef __CYGWIN__
7599 # # ifdef __CYGWIN32__
7600 # # define __CYGWIN__ __CYGWIN32__
7604 # #ifdef __cplusplus
7607 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7608 # #ifdef __cplusplus
7613 # #include <cygwin/cygwin_dll.h>
7614 # DECLARE_CYGWIN_DLL( DllMain );
7616 # HINSTANCE __hDllInstance_base;
7619 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7621 # __hDllInstance_base = hInst;
7624 # /* ltdll.c ends here */
7625 # This is a source program that is used to create import libraries
7626 # on Windows for dlls which lack them. Don't remove nor modify the
7627 # starting and closing comments
7628 # /* impgen.c starts here */
7629 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7631 # This file is part of GNU libtool.
7633 # This program is free software; you can redistribute it and/or modify
7634 # it under the terms of the GNU General Public License as published by
7635 # the Free Software Foundation; either version 2 of the License, or
7636 # (at your option) any later version.
7638 # This program is distributed in the hope that it will be useful,
7639 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7640 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7641 # GNU General Public License for more details.
7643 # You should have received a copy of the GNU General Public License
7644 # along with this program; if not, write to the Free Software
7645 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7648 # #include <stdio.h> /* for printf() */
7649 # #include <unistd.h> /* for open(), lseek(), read() */
7650 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7651 # #include <string.h> /* for strdup() */
7653 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7655 # #define O_BINARY 0
7658 # static unsigned int
7659 # pe_get16 (fd, offset)
7663 # unsigned char b[2];
7664 # lseek (fd, offset, SEEK_SET);
7666 # return b[0] + (b[1]<<8);
7669 # static unsigned int
7670 # pe_get32 (fd, offset)
7674 # unsigned char b[4];
7675 # lseek (fd, offset, SEEK_SET);
7677 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7680 # static unsigned int
7684 # unsigned char *b = ptr;
7685 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7694 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7695 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7696 # unsigned long name_rvas, nexp;
7697 # unsigned char *expdata, *erva;
7698 # char *filename, *dll_name;
7700 # filename = argv[1];
7702 # dll = open(filename, O_RDONLY|O_BINARY);
7706 # dll_name = filename;
7708 # for (i=0; filename[i]; i++)
7709 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7710 # dll_name = filename + i +1;
7712 # pe_header_offset = pe_get32 (dll, 0x3c);
7713 # opthdr_ofs = pe_header_offset + 4 + 20;
7714 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7716 # if (num_entries < 1) /* no exports */
7719 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7720 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7721 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7722 # secptr = (pe_header_offset + 4 + 20 +
7723 # pe_get16 (dll, pe_header_offset + 4 + 16));
7726 # for (i = 0; i < nsections; i++)
7729 # unsigned long secptr1 = secptr + 40 * i;
7730 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7731 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7732 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7733 # lseek(dll, secptr1, SEEK_SET);
7734 # read(dll, sname, 8);
7735 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7737 # expptr = fptr + (export_rva - vaddr);
7738 # if (export_rva + export_size > vaddr + vsize)
7739 # export_size = vsize - (export_rva - vaddr);
7744 # expdata = (unsigned char*)malloc(export_size);
7745 # lseek (dll, expptr, SEEK_SET);
7746 # read (dll, expdata, export_size);
7747 # erva = expdata - export_rva;
7749 # nexp = pe_as32 (expdata+24);
7750 # name_rvas = pe_as32 (expdata+32);
7752 # printf ("EXPORTS\n");
7753 # for (i = 0; i<nexp; i++)
7755 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7756 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7761 # /* impgen.c ends here */
7767 # We use sed instead of cat because bash on DJGPP gets confused if
7768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7769 # text mode, it properly converts lines to CR/LF. This bash problem
7770 # is reportedly fixed, but why not run on old versions too?
7771 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7773 mv -f "${ofile}T" "$ofile" || \
7774 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7782 # This can be used to rebuild libtool when needed
7783 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7785 # Always use our own libtool.
7786 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788 # Prevent multiple expansion
7792 # test for ln hardlink support
7793 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7794 echo "configure:7795: checking whether ln works" >&5
7795 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 rm -f conftest.src conftest.dst
7799 echo "conftest" > conftest.src
7800 if ln conftest.src conftest.dst 2>/dev/null
7802 ol_cv_prog_LN_H="ln"
7804 ol_cv_prog_LN_H="cp"
7806 rm -f conftest.src conftest.dst
7809 LN_H="$ol_cv_prog_LN_H"
7810 if test "$ol_cv_prog_LN_H" = "ln"; then
7811 echo "$ac_t""yes" 1>&6
7813 echo "$ac_t""no" 1>&6
7816 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7817 echo "configure:7818: checking whether ln -s works" >&5
7818 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7822 if ln -s X conftestdata 2>/dev/null
7825 ac_cv_prog_LN_S="ln -s"
7830 LN_S="$ac_cv_prog_LN_S"
7831 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7832 echo "$ac_t""yes" 1>&6
7834 echo "$ac_t""no" 1>&6
7839 if test $ol_enable_perl != no ; then
7840 # Extract the first word of "perl", so it can be a program name with args.
7841 set dummy perl; ac_word=$2
7842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7843 echo "configure:7844: checking for $ac_word" >&5
7844 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7849 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7852 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7857 for ac_dir in $ac_dummy; do
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f $ac_dir/$ac_word; then
7860 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7865 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7869 PERLBIN="$ac_cv_path_PERLBIN"
7870 if test -n "$PERLBIN"; then
7871 echo "$ac_t""$PERLBIN" 1>&6
7873 echo "$ac_t""no" 1>&6
7877 if test "no$PERLBIN" = "no" ; then
7878 if test $ol_enable_perl = yes ; then
7879 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7883 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7884 if test x"$ol_with_perl_module" = "xstatic" ; then
7885 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7887 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7893 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7894 echo "configure:7895: checking how to run the C preprocessor" >&5
7895 # On Suns, sometimes $CPP names a directory.
7896 if test -n "$CPP" && test -d "$CPP"; then
7899 if test -z "$CPP"; then
7900 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7903 # This must be in double quotes, not single quotes, because CPP may get
7904 # substituted into the Makefile and "${CC-cc}" will confuse make.
7906 # On the NeXT, cc -E runs the code through the compiler's parser,
7907 # not just through cpp.
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7915 { (eval echo configure:7916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7917 if test -z "$ac_err"; then
7921 echo "configure: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7924 CPP="${CC-cc} -E -traditional-cpp"
7925 cat > conftest.$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7932 { (eval echo configure:7933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7934 if test -z "$ac_err"; then
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 CPP="${CC-cc} -nologo -E"
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7949 { (eval echo configure:7950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7951 if test -z "$ac_err"; then
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7965 ac_cv_prog_CPP="$CPP"
7967 CPP="$ac_cv_prog_CPP"
7969 ac_cv_prog_CPP="$CPP"
7971 echo "$ac_t""$CPP" 1>&6
7974 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7975 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7977 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7978 echo "configure: warning: programs compiled here do run here..." 1>&2
7979 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7981 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7982 echo "configure: warning: programs compiled here do not run here..." 1>&2
7983 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7987 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7988 echo "configure:7989: checking for Cygwin environment" >&5
7989 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
7999 #define __CYGWIN__ __CYGWIN32__
8004 if { (eval echo configure:8005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8008 echo "configure: failed program was:" >&5
8009 cat conftest.$ac_ext >&5
8016 echo "$ac_t""$ac_cv_cygwin" 1>&6
8018 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8019 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8020 echo "configure:8021: checking for mingw32 environment" >&5
8021 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8032 if { (eval echo configure:8033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8044 echo "$ac_t""$ac_cv_mingw32" 1>&6
8046 test "$ac_cv_mingw32" = yes && MINGW32=yes
8050 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8051 echo "configure:8052: checking for executable suffix" >&5
8052 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8055 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8059 echo 'int main () { return 0; }' > conftest.$ac_ext
8061 if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8062 for file in conftest.*; do
8064 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8065 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8069 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8072 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8077 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8078 echo "$ac_t""${ac_cv_exeext}" 1>&6
8081 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8082 echo "configure:8083: checking for object suffix" >&5
8083 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8087 echo 'int i = 1;' > conftest.$ac_ext
8088 if { (eval echo configure:8089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8089 for ac_file in conftest.*; do
8092 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8096 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8101 echo "$ac_t""$ac_cv_objext" 1>&6
8102 OBJEXT=$ac_cv_objext
8103 ac_objext=$ac_cv_objext
8106 cat >> confdefs.h <<EOF
8107 #define EXEEXT "${EXEEXT}"
8111 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8112 echo "configure:8113: checking for be_app in -lbe" >&5
8113 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8117 ac_save_LIBS="$LIBS"
8118 LIBS="-lbe -lroot -lnet $LIBS"
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8131 if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133 eval "ac_cv_lib_$ac_lib_var=yes"
8135 echo "configure: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8138 eval "ac_cv_lib_$ac_lib_var=no"
8141 LIBS="$ac_save_LIBS"
8144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8145 echo "$ac_t""yes" 1>&6
8146 LIBS="$LIBS -lbe -lroot -lnet"
8148 echo "$ac_t""no" 1>&6
8156 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8157 echo "configure:8158: checking for ${CC-cc} option to accept ANSI C" >&5
8158 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8161 am_cv_prog_cc_stdc=no
8163 # Don't try gcc -ansi; that turns off useful extensions and
8164 # breaks some systems' header files.
8165 # AIX -qlanglvl=ansi
8166 # Ultrix and OSF/1 -std1
8167 # HP-UX 10.20 and later -Ae
8168 # HP-UX older versions -Aa -D_HPUX_SOURCE
8169 # SVR4 -Xc -D__EXTENSIONS__
8170 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8172 CC="$ac_save_CC $ac_arg"
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8178 #include <sys/types.h>
8179 #include <sys/stat.h>
8180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8181 struct buf { int x; };
8182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8183 static char *e (p, i)
8189 static char *f (char * (*g) (char **, int), char **p, ...)
8194 s = g (p, va_arg (v,int));
8198 int test (int i, double x);
8199 struct s1 {int (*f) (int a);};
8200 struct s2 {int (*f) (double a);};
8201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8211 if { (eval echo configure:8212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8213 am_cv_prog_cc_stdc="$ac_arg"; break
8215 echo "configure: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8224 if test -z "$am_cv_prog_cc_stdc"; then
8225 echo "$ac_t""none needed" 1>&6
8227 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8229 case "x$am_cv_prog_cc_stdc" in
8231 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8234 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8235 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8238 # test for make depend flag
8241 if test -z "${MKDEP}"; then
8243 if test -z "${MKDEP_FLAGS}"; then
8244 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8245 echo "configure:8246: checking for ${OL_MKDEP} depend flag" >&5
8246 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8247 echo $ac_n "(cached) $ac_c" 1>&6
8251 for flag in "-M" "-xM"; do
8252 cat > conftest.c <<EOF
8255 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8256 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8258 if test ! -f conftest."${ac_object}" ; then
8260 OL_MKDEP_FLAGS="$flag"
8269 echo "$ac_t""$ol_cv_mkdep" 1>&6
8272 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8277 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8282 if test "${ol_cv_mkdep}" = no ; then
8283 # this will soon become an error
8284 echo "configure: warning: do not know how to generate dependencies" 1>&2
8287 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8288 echo "configure:8289: checking for afopen in -ls" >&5
8289 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8293 ac_save_LIBS="$LIBS"
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8307 if { (eval echo configure:8308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8309 eval "ac_cv_lib_$ac_lib_var=yes"
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 eval "ac_cv_lib_$ac_lib_var=no"
8317 LIBS="$ac_save_LIBS"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8321 echo "$ac_t""yes" 1>&6
8324 cat >> confdefs.h <<\EOF
8325 #define HAVE_AIX_SECURITY 1
8330 echo "$ac_t""no" 1>&6
8336 ac_cv_func_getopt=no
8337 cat >> confdefs.h <<\EOF
8338 #define BOTH_STRINGS_H 1
8345 if test $ol_enable_modules != no ; then
8346 for ac_hdr in ltdl.h
8348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8350 echo "configure:8351: checking for $ac_hdr" >&5
8351 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8352 echo $ac_n "(cached) $ac_c" 1>&6
8354 cat > conftest.$ac_ext <<EOF
8355 #line 8356 "configure"
8356 #include "confdefs.h"
8359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8360 { (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8362 if test -z "$ac_err"; then
8364 eval "ac_cv_header_$ac_safe=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_header_$ac_safe=no"
8374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8375 echo "$ac_t""yes" 1>&6
8376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8377 cat >> confdefs.h <<EOF
8378 #define $ac_tr_hdr 1
8382 echo "$ac_t""no" 1>&6
8387 if test $ac_cv_header_ltdl_h = no ; then
8388 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8391 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8392 echo "configure:8393: checking for lt_dlinit in -lltdl" >&5
8393 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8395 echo $ac_n "(cached) $ac_c" 1>&6
8397 ac_save_LIBS="$LIBS"
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8413 eval "ac_cv_lib_$ac_lib_var=yes"
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8418 eval "ac_cv_lib_$ac_lib_var=no"
8421 LIBS="$ac_save_LIBS"
8424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8425 echo "$ac_t""yes" 1>&6
8428 cat >> confdefs.h <<\EOF
8429 #define HAVE_LIBLTDL 1
8434 echo "$ac_t""no" 1>&6
8438 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8439 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8443 ol_with_bdb_module=static
8444 ol_with_dnssrv_module=static
8445 ol_with_ldap_module=static
8446 ol_with_ldbm_module=static
8447 ol_with_meta_module=static
8448 ol_with_monitor_module=static
8449 ol_with_null_module=static
8450 ol_with_passwd_module=static
8451 ol_with_perl_module=static
8452 ol_with_shell_module=static
8453 ol_with_tcl_module=static
8454 ol_with_sql_module=static
8458 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8459 echo "configure:8460: checking for EBCDIC" >&5
8460 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8469 #include <__ASCII__/generate_error.h>
8473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8474 { (eval echo configure:8475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8476 if test -z "$ac_err"; then
8478 ol_cv_cpp_ebcdic=yes
8481 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8489 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8490 if test $ol_cv_cpp_ebcdic = yes ; then
8491 cat >> confdefs.h <<\EOF
8492 #define HAVE_EBCDIC 1
8497 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8498 echo "configure:8499: checking for ANSI C header files" >&5
8499 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8502 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8511 { (eval echo configure:8512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8513 if test -z "$ac_err"; then
8515 ol_cv_header_stdc=yes
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 ol_cv_header_stdc=no
8525 if test $ol_cv_header_stdc = yes; then
8526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 egrep "memchr" >/dev/null 2>&1; then
8537 ol_cv_header_stdc=no
8543 if test $ol_cv_header_stdc = yes; then
8544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8545 cat > conftest.$ac_ext <<EOF
8546 #line 8547 "configure"
8547 #include "confdefs.h"
8550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8551 egrep "free" >/dev/null 2>&1; then
8555 ol_cv_header_stdc=no
8561 if test $ol_cv_header_stdc = yes; then
8562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8563 if test "$cross_compiling" = yes; then
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8574 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8575 || ('j' <= (c) && (c) <= 'r') \
8576 || ('s' <= (c) && (c) <= 'z'))
8577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8580 int main () { int i; for (i = 0; i < 256; i++)
8581 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8592 ol_cv_header_stdc=no
8600 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8601 if test $ol_cv_header_stdc = yes; then
8602 cat >> confdefs.h <<\EOF
8603 #define STDC_HEADERS 1
8607 ac_cv_header_stdc=disable
8610 if test $ol_cv_header_stdc != yes; then
8611 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8618 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8619 echo "configure:8620: checking for $ac_hdr that defines DIR" >&5
8620 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8626 #include <sys/types.h>
8632 if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8634 eval "ac_cv_header_dirent_$ac_safe=yes"
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 eval "ac_cv_header_dirent_$ac_safe=no"
8643 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8644 echo "$ac_t""yes" 1>&6
8645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8646 cat >> confdefs.h <<EOF
8647 #define $ac_tr_hdr 1
8649 ac_header_dirent=$ac_hdr; break
8651 echo "$ac_t""no" 1>&6
8654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8655 if test $ac_header_dirent = dirent.h; then
8656 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8657 echo "configure:8658: checking for opendir in -ldir" >&5
8658 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8659 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8662 ac_save_LIBS="$LIBS"
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 /* Override any gcc2 internal prototype to avoid an error. */
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8676 if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 eval "ac_cv_lib_$ac_lib_var=yes"
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 eval "ac_cv_lib_$ac_lib_var=no"
8686 LIBS="$ac_save_LIBS"
8689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6
8693 echo "$ac_t""no" 1>&6
8697 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8698 echo "configure:8699: checking for opendir in -lx" >&5
8699 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8700 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8703 ac_save_LIBS="$LIBS"
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 /* Override any gcc2 internal prototype to avoid an error. */
8709 /* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8717 if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8719 eval "ac_cv_lib_$ac_lib_var=yes"
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8724 eval "ac_cv_lib_$ac_lib_var=no"
8727 LIBS="$ac_save_LIBS"
8730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8731 echo "$ac_t""yes" 1>&6
8734 echo "$ac_t""no" 1>&6
8739 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8740 echo "configure:8741: checking for sys/wait.h that is POSIX.1 compatible" >&5
8741 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8742 echo $ac_n "(cached) $ac_c" 1>&6
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8747 #include <sys/types.h>
8748 #include <sys/wait.h>
8750 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8753 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8761 if { (eval echo configure:8762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8763 ac_cv_header_sys_wait_h=yes
8765 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5
8768 ac_cv_header_sys_wait_h=no
8773 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8774 if test $ac_cv_header_sys_wait_h = yes; then
8775 cat >> confdefs.h <<\EOF
8776 #define HAVE_SYS_WAIT_H 1
8781 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8782 echo "configure:8783: checking POSIX termios" >&5
8783 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8789 #include <sys/types.h>
8791 #include <termios.h>
8793 /* SunOS 4.0.3 has termios.h but not the library calls. */
8797 if { (eval echo configure:8798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8799 am_cv_sys_posix_termios=yes
8801 echo "configure: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8804 am_cv_sys_posix_termios=no
8809 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8812 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8813 echo "configure:8814: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8814 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8815 echo $ac_n "(cached) $ac_c" 1>&6
8817 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8819 gwinsz_in_termios_h=no
8820 if test $am_cv_sys_posix_termios = yes; then
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8824 #include <sys/types.h>
8825 # include <termios.h>
8831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8832 egrep "yes" >/dev/null 2>&1; then
8834 gwinsz_in_termios_h=yes
8840 if test $gwinsz_in_termios_h = no; then
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 #include <sys/types.h>
8845 # include <sys/ioctl.h>
8851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852 egrep "yes" >/dev/null 2>&1; then
8854 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8862 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8863 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8864 cat >> confdefs.h <<\EOF
8865 #define GWINSZ_IN_SYS_IOCTL 1
8870 if test $am_cv_sys_posix_termios = yes ; then
8871 cat >> confdefs.h <<\EOF
8872 #define HAVE_POSIX_TERMIOS 1
8927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8929 echo "configure:8930: checking for $ac_hdr" >&5
8930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8931 echo $ac_n "(cached) $ac_c" 1>&6
8933 cat > conftest.$ac_ext <<EOF
8934 #line 8935 "configure"
8935 #include "confdefs.h"
8938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8939 { (eval echo configure:8940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8941 if test -z "$ac_err"; then
8943 eval "ac_cv_header_$ac_safe=yes"
8946 echo "configure: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8949 eval "ac_cv_header_$ac_safe=no"
8953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8954 echo "$ac_t""yes" 1>&6
8955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8956 cat >> confdefs.h <<EOF
8957 #define $ac_tr_hdr 1
8961 echo "$ac_t""no" 1>&6
8968 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8969 echo "configure:8970: checking for dlopen" >&5
8970 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8973 cat > conftest.$ac_ext <<EOF
8974 #line 8975 "configure"
8975 #include "confdefs.h"
8976 /* System header to define __stub macros and hopefully few prototypes,
8977 which can conflict with char dlopen(); below. */
8979 /* Override any gcc2 internal prototype to avoid an error. */
8980 /* We use char because int might match the return type of a gcc2
8981 builtin and then its argument prototype would still apply. */
8987 /* The GNU C library defines this for functions which it implements
8988 to always fail with ENOSYS. Some functions are actually named
8989 something starting with __ and the normal name is an alias. */
8990 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 eval "ac_cv_func_dlopen=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_func_dlopen=no"
9010 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9011 echo "$ac_t""yes" 1>&6
9014 echo "$ac_t""no" 1>&6
9015 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9016 echo "configure:9017: checking for dlopen in -ldl" >&5
9017 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9018 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9019 echo $ac_n "(cached) $ac_c" 1>&6
9021 ac_save_LIBS="$LIBS"
9023 cat > conftest.$ac_ext <<EOF
9024 #line 9025 "configure"
9025 #include "confdefs.h"
9026 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9035 if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9037 eval "ac_cv_lib_$ac_lib_var=yes"
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9042 eval "ac_cv_lib_$ac_lib_var=no"
9045 LIBS="$ac_save_LIBS"
9048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9049 echo "$ac_t""yes" 1>&6
9050 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9052 cat >> confdefs.h <<EOF
9053 #define $ac_tr_lib 1
9059 echo "$ac_t""no" 1>&6
9065 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9066 echo "configure:9067: checking for sigset in -lV3" >&5
9067 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9069 echo $ac_n "(cached) $ac_c" 1>&6
9071 ac_save_LIBS="$LIBS"
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9076 /* Override any gcc2 internal prototype to avoid an error. */
9077 /* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
9085 if { (eval echo configure:9086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9087 eval "ac_cv_lib_$ac_lib_var=yes"
9089 echo "configure: failed program was:" >&5
9090 cat conftest.$ac_ext >&5
9092 eval "ac_cv_lib_$ac_lib_var=no"
9095 LIBS="$ac_save_LIBS"
9098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9099 echo "$ac_t""yes" 1>&6
9100 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9102 cat >> confdefs.h <<EOF
9103 #define $ac_tr_lib 1
9109 echo "$ac_t""no" 1>&6
9113 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9114 echo "configure:9115: checking for winsock" >&5
9116 for curlib in ws2_32 wsock32; do
9117 LIBS="$LIBS -l$curlib"
9118 cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9124 char closesocket@4();
9125 char gethostname@8();
9136 if { (eval echo configure:9137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9140 echo "configure: failed program was:" >&5
9141 cat conftest.$ac_ext >&5
9147 if test $have_winsock = yes; then
9148 cat >> confdefs.h <<\EOF
9149 #define HAVE_WINSOCK 1
9152 ac_cv_func_socket=yes
9153 ac_cv_func_select=yes
9154 ac_cv_func_closesocket=yes
9155 ac_cv_func_gethostname=yes
9156 if test $curlib = ws2_32; then
9157 have_winsock=winsock2
9158 cat >> confdefs.h <<\EOF
9159 #define HAVE_WINSOCK2 1
9167 echo "$ac_t""$have_winsock" 1>&6
9170 echo $ac_n "checking for socket""... $ac_c" 1>&6
9171 echo "configure:9172: checking for socket" >&5
9172 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9178 /* System header to define __stub macros and hopefully few prototypes,
9179 which can conflict with char socket(); below. */
9181 /* Override any gcc2 internal prototype to avoid an error. */
9182 /* We use char because int might match the return type of a gcc2
9183 builtin and then its argument prototype would still apply. */
9189 /* The GNU C library defines this for functions which it implements
9190 to always fail with ENOSYS. Some functions are actually named
9191 something starting with __ and the normal name is an alias. */
9192 #if defined (__stub_socket) || defined (__stub___socket)
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9202 eval "ac_cv_func_socket=yes"
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9207 eval "ac_cv_func_socket=no"
9212 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9216 echo "$ac_t""no" 1>&6
9218 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9219 echo "configure:9220: checking for main in -lsocket" >&5
9220 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9221 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9224 ac_save_LIBS="$LIBS"
9225 LIBS="-lsocket $LIBS"
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9234 if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9236 eval "ac_cv_lib_$ac_lib_var=yes"
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9241 eval "ac_cv_lib_$ac_lib_var=no"
9244 LIBS="$ac_save_LIBS"
9247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9248 echo "$ac_t""yes" 1>&6
9249 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9251 cat >> confdefs.h <<EOF
9252 #define $ac_tr_lib 1
9255 LIBS="-lsocket $LIBS"
9258 echo "$ac_t""no" 1>&6
9261 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9262 echo "configure:9263: checking for main in -lnet" >&5
9263 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9264 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9265 echo $ac_n "(cached) $ac_c" 1>&6
9267 ac_save_LIBS="$LIBS"
9269 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure"
9271 #include "confdefs.h"
9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9279 eval "ac_cv_lib_$ac_lib_var=yes"
9281 echo "configure: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 eval "ac_cv_lib_$ac_lib_var=no"
9287 LIBS="$ac_save_LIBS"
9290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9291 echo "$ac_t""yes" 1>&6
9292 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9294 cat >> confdefs.h <<EOF
9295 #define $ac_tr_lib 1
9301 echo "$ac_t""no" 1>&6
9304 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9305 echo "configure:9306: checking for main in -lnsl_s" >&5
9306 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9310 ac_save_LIBS="$LIBS"
9311 LIBS="-lnsl_s $LIBS"
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9320 if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9322 eval "ac_cv_lib_$ac_lib_var=yes"
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9327 eval "ac_cv_lib_$ac_lib_var=no"
9330 LIBS="$ac_save_LIBS"
9333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9334 echo "$ac_t""yes" 1>&6
9335 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9337 cat >> confdefs.h <<EOF
9338 #define $ac_tr_lib 1
9341 LIBS="-lnsl_s $LIBS"
9344 echo "$ac_t""no" 1>&6
9347 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9348 echo "configure:9349: checking for main in -lnsl" >&5
9349 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9350 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9351 echo $ac_n "(cached) $ac_c" 1>&6
9353 ac_save_LIBS="$LIBS"
9355 cat > conftest.$ac_ext <<EOF
9356 #line 9357 "configure"
9357 #include "confdefs.h"
9363 if { (eval echo configure:9364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9365 eval "ac_cv_lib_$ac_lib_var=yes"
9367 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9370 eval "ac_cv_lib_$ac_lib_var=no"
9373 LIBS="$ac_save_LIBS"
9376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9377 echo "$ac_t""yes" 1>&6
9378 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9380 cat >> confdefs.h <<EOF
9381 #define $ac_tr_lib 1
9387 echo "$ac_t""no" 1>&6
9390 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9391 echo "configure:9392: checking for socket in -linet" >&5
9392 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9393 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9396 ac_save_LIBS="$LIBS"
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 /* Override any gcc2 internal prototype to avoid an error. */
9402 /* We use char because int might match the return type of a gcc2
9403 builtin and then its argument prototype would still apply. */
9410 if { (eval echo configure:9411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412 eval "ac_cv_lib_$ac_lib_var=yes"
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9417 eval "ac_cv_lib_$ac_lib_var=no"
9420 LIBS="$ac_save_LIBS"
9423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9424 echo "$ac_t""yes" 1>&6
9425 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9427 cat >> confdefs.h <<EOF
9428 #define $ac_tr_lib 1
9434 echo "$ac_t""no" 1>&6
9437 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9438 echo "configure:9439: checking for main in -lgen" >&5
9439 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9443 ac_save_LIBS="$LIBS"
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9453 if { (eval echo configure:9454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9455 eval "ac_cv_lib_$ac_lib_var=yes"
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 eval "ac_cv_lib_$ac_lib_var=no"
9463 LIBS="$ac_save_LIBS"
9466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9467 echo "$ac_t""yes" 1>&6
9468 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9470 cat >> confdefs.h <<EOF
9471 #define $ac_tr_lib 1
9477 echo "$ac_t""no" 1>&6
9484 echo $ac_n "checking for select""... $ac_c" 1>&6
9485 echo "configure:9486: checking for select" >&5
9486 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char select(); below. */
9495 /* Override any gcc2 internal prototype to avoid an error. */
9496 /* We use char because int might match the return type of a gcc2
9497 builtin and then its argument prototype would still apply. */
9503 /* The GNU C library defines this for functions which it implements
9504 to always fail with ENOSYS. Some functions are actually named
9505 something starting with __ and the normal name is an alias. */
9506 #if defined (__stub_select) || defined (__stub___select)
9514 if { (eval echo configure:9515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9516 eval "ac_cv_func_select=yes"
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 eval "ac_cv_func_select=no"
9526 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9527 echo "$ac_t""yes" 1>&6
9530 echo "$ac_t""no" 1>&6
9531 { echo "configure: error: select() required." 1>&2; exit 1; }
9535 if test "${ac_cv_header_winsock_h}" != yes; then
9536 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9537 echo "configure:9538: checking types of arguments for select()" >&5
9538 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9541 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9544 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9545 echo $ac_n "(cached) $ac_c" 1>&6
9547 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9548 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9549 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 #ifdef HAVE_SYS_TYPES_H
9554 #include <sys/types.h>
9556 #ifdef HAVE_SYS_TIME_H
9557 #include <sys/time.h>
9559 #ifdef HAVE_SYS_SELECT_H
9560 #include <sys/select.h>
9562 #ifdef HAVE_SYS_SOCKET_H
9563 #include <sys/socket.h>
9565 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);
9570 if { (eval echo configure:9571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9572 ac_not_found=no ; break 3
9574 echo "configure: failed program was:" >&5
9575 cat conftest.$ac_ext >&5
9589 if test "$ac_not_found" = yes; then
9590 ac_cv_func_select_arg1=int
9591 ac_cv_func_select_arg234='int *'
9592 ac_cv_func_select_arg5='struct timeval *'
9594 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9595 cat >> confdefs.h <<EOF
9596 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9599 cat >> confdefs.h <<EOF
9600 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9603 cat >> confdefs.h <<EOF
9604 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9611 for ac_hdr in regex.h
9613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9615 echo "configure:9616: checking for $ac_hdr" >&5
9616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9625 { (eval echo configure:9626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9627 if test -z "$ac_err"; then
9629 eval "ac_cv_header_$ac_safe=yes"
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 eval "ac_cv_header_$ac_safe=no"
9639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9640 echo "$ac_t""yes" 1>&6
9641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9642 cat >> confdefs.h <<EOF
9643 #define $ac_tr_hdr 1
9647 echo "$ac_t""no" 1>&6
9651 if test "$ac_cv_header_regex_h" != yes ; then
9652 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9655 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9656 echo "configure:9657: checking for library containing regfree" >&5
9657 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9658 echo $ac_n "(cached) $ac_c" 1>&6
9660 ac_func_search_save_LIBS="$LIBS"
9661 ac_cv_search_regfree="no"
9662 cat > conftest.$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 /* Override any gcc2 internal prototype to avoid an error. */
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9676 ac_cv_search_regfree="none required"
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9682 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 /* Override any gcc2 internal prototype to avoid an error. */
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9698 ac_cv_search_regfree="-l$ac_lib"
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9706 LIBS="$ac_func_search_save_LIBS"
9709 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9710 if test "$ac_cv_search_regfree" != "no"; then
9711 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9714 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9718 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9719 echo "configure:9720: checking for compatible POSIX regex" >&5
9720 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9724 if test "$cross_compiling" = yes; then
9725 ol_cv_c_posix_regex=cross
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9731 #include <sys/types.h>
9733 static char *pattern, *string;
9741 if(regcomp(&re, pattern, 0)) {
9745 string = "ALL MATCH";
9747 rc = regexec(&re, string, 0, (void*)0, 0);
9754 if { (eval echo configure:9755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9756 ol_cv_c_posix_regex=yes
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9761 ol_cv_c_posix_regex=no
9768 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9770 if test "$ol_cv_c_posix_regex" = no ; then
9771 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9776 for ac_hdr in sys/uuid.h
9778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9780 echo "configure:9781: checking for $ac_hdr" >&5
9781 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9790 { (eval echo configure:9791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9792 if test -z "$ac_err"; then
9794 eval "ac_cv_header_$ac_safe=yes"
9797 echo "configure: failed program was:" >&5
9798 cat conftest.$ac_ext >&5
9800 eval "ac_cv_header_$ac_safe=no"
9804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9805 echo "$ac_t""yes" 1>&6
9806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9807 cat >> confdefs.h <<EOF
9808 #define $ac_tr_hdr 1
9812 echo "$ac_t""no" 1>&6
9816 if test $ac_cv_header_sys_uuid_h = yes ; then
9819 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9820 echo "configure:9821: checking for library containing uuid_to_str" >&5
9821 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9824 ac_func_search_save_LIBS="$LIBS"
9825 ac_cv_search_uuid_to_str="no"
9826 cat > conftest.$ac_ext <<EOF
9827 #line 9828 "configure"
9828 #include "confdefs.h"
9829 /* Override any gcc2 internal prototype to avoid an error. */
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 ac_cv_search_uuid_to_str="none required"
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9846 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862 ac_cv_search_uuid_to_str="-l$ac_lib"
9865 echo "configure: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9870 LIBS="$ac_func_search_save_LIBS"
9873 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9874 if test "$ac_cv_search_uuid_to_str" != "no"; then
9875 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9882 if test have_uuid = yes ; then
9883 cat >> confdefs.h <<\EOF
9884 #define HAVE_UUID_TO_STR 1
9888 test "$ac_cv_search_uuid_to_str" = "none required" || \
9889 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9893 if test $have_uuid = no ; then
9894 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9895 echo "configure:9896: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9897 LIBS="$LIBS -lrpcrt4"
9898 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure"
9900 #include "confdefs.h"
9902 char UuidCreate@4();
9903 char UuidToStringA@8();
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9922 if test $need_rpcrt = yes; then
9923 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9926 echo "$ac_t""$need_rpcrt" 1>&6
9930 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9931 echo "configure:9932: checking for res_query" >&5
9932 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 /* System header to define __stub macros and hopefully few prototypes,
9939 which can conflict with char res_query(); below. */
9941 /* Override any gcc2 internal prototype to avoid an error. */
9942 /* We use char because int might match the return type of a gcc2
9943 builtin and then its argument prototype would still apply. */
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined (__stub_res_query) || defined (__stub___res_query)
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962 eval "ac_cv_func_res_query=yes"
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 eval "ac_cv_func_res_query=no"
9972 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9973 echo "$ac_t""yes" 1>&6
9976 echo "$ac_t""no" 1>&6
9979 if test $ac_cv_func_res_query = no ; then
9980 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9981 echo "configure:9982: checking for __res_query" >&5
9982 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char __res_query(); below. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub___res_query) || defined (__stub_____res_query)
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10012 eval "ac_cv_func___res_query=yes"
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10017 eval "ac_cv_func___res_query=no"
10022 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10023 echo "$ac_t""yes" 1>&6
10026 echo "$ac_t""no" 1>&6
10029 ac_cv_func_res_query=$ac_cv_func___res_query
10032 if test $ac_cv_func_res_query = no ; then
10033 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10034 echo "configure:10035: checking for res_query in -lbind" >&5
10035 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10037 echo $ac_n "(cached) $ac_c" 1>&6
10039 ac_save_LIBS="$LIBS"
10040 LIBS="-lbind $LIBS"
10041 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10044 /* Override any gcc2 internal prototype to avoid an error. */
10045 /* We use char because int might match the return type of a gcc2
10046 builtin and then its argument prototype would still apply. */
10053 if { (eval echo configure:10054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10055 eval "ac_cv_lib_$ac_lib_var=yes"
10057 echo "configure: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10060 eval "ac_cv_lib_$ac_lib_var=no"
10063 LIBS="$ac_save_LIBS"
10066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10067 echo "$ac_t""yes" 1>&6
10068 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10070 cat >> confdefs.h <<EOF
10071 #define $ac_tr_lib 1
10074 LIBS="-lbind $LIBS"
10077 echo "$ac_t""no" 1>&6
10080 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10083 if test $ac_cv_func_res_query = no ; then
10084 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10085 echo "configure:10086: checking for __res_query in -lbind" >&5
10086 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10090 ac_save_LIBS="$LIBS"
10091 LIBS="-lbind $LIBS"
10092 cat > conftest.$ac_ext <<EOF
10093 #line 10094 "configure"
10094 #include "confdefs.h"
10095 /* Override any gcc2 internal prototype to avoid an error. */
10096 /* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
10098 char __res_query();
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10106 eval "ac_cv_lib_$ac_lib_var=yes"
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10111 eval "ac_cv_lib_$ac_lib_var=no"
10114 LIBS="$ac_save_LIBS"
10117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10118 echo "$ac_t""yes" 1>&6
10119 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10121 cat >> confdefs.h <<EOF
10122 #define $ac_tr_lib 1
10125 LIBS="-lbind $LIBS"
10128 echo "$ac_t""no" 1>&6
10131 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10134 if test $ac_cv_func_res_query = no ; then
10135 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10136 echo "configure:10137: checking for res_query in -lresolv" >&5
10137 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10138 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10141 ac_save_LIBS="$LIBS"
10142 LIBS="-lresolv $LIBS"
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 /* Override any gcc2 internal prototype to avoid an error. */
10147 /* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10155 if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 eval "ac_cv_lib_$ac_lib_var=yes"
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10162 eval "ac_cv_lib_$ac_lib_var=no"
10165 LIBS="$ac_save_LIBS"
10168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10169 echo "$ac_t""yes" 1>&6
10170 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10171 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10172 cat >> confdefs.h <<EOF
10173 #define $ac_tr_lib 1
10176 LIBS="-lresolv $LIBS"
10179 echo "$ac_t""no" 1>&6
10182 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10185 if test $ac_cv_func_res_query = no ; then
10186 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10187 echo "configure:10188: checking for __res_query in -lresolv" >&5
10188 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10192 ac_save_LIBS="$LIBS"
10193 LIBS="-lresolv $LIBS"
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 /* Override any gcc2 internal prototype to avoid an error. */
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200 char __res_query();
10206 if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10208 eval "ac_cv_lib_$ac_lib_var=yes"
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 eval "ac_cv_lib_$ac_lib_var=no"
10216 LIBS="$ac_save_LIBS"
10219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10221 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10223 cat >> confdefs.h <<EOF
10224 #define $ac_tr_lib 1
10227 LIBS="-lresolv $LIBS"
10230 echo "$ac_t""no" 1>&6
10233 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10236 if test "$ac_cv_func_res_query" = yes ; then
10237 cat >> confdefs.h <<\EOF
10238 #define HAVE_RES_QUERY 1
10242 if test $ol_enable_dnssrv != no ; then
10247 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10248 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10251 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10254 echo "configure:10255: checking for $ac_func" >&5
10255 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10256 echo $ac_n "(cached) $ac_c" 1>&6
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 /* System header to define __stub macros and hopefully few prototypes,
10262 which can conflict with char $ac_func(); below. */
10263 #include <assert.h>
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10272 /* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
10275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10283 if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10285 eval "ac_cv_func_$ac_func=yes"
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10290 eval "ac_cv_func_$ac_func=no"
10295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10296 echo "$ac_t""yes" 1>&6
10297 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10298 cat >> confdefs.h <<EOF
10299 #define $ac_tr_func 1
10303 echo "$ac_t""no" 1>&6
10309 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10310 if test $ol_enable_ipv6 = yes ; then
10311 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10313 elif test $ol_enable_ipv6 != no ; then
10314 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10315 echo "configure:10316: checking INET6_ADDRSTRLEN" >&5
10316 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10324 # include <netinet/in.h>
10325 # ifdef INET6_ADDRSTRLEN
10326 __has_inet6_addrstrlen__;
10330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10331 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10333 ol_cv_inet6_addrstrlen=yes
10336 ol_cv_inet6_addrstrlen=no
10342 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10345 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10346 echo "configure:10347: checking struct sockaddr_storage" >&5
10347 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10348 echo $ac_n "(cached) $ac_c" 1>&6
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure"
10353 #include "confdefs.h"
10355 #include <sys/types.h>
10356 #include <sys/socket.h>
10360 struct sockaddr_storage ss;
10364 if { (eval echo configure:10365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366 ol_cv_struct_sockaddr_storage=yes
10368 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5
10371 ol_cv_struct_sockaddr_storage=no
10376 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10378 if test $ol_cv_inet6_addrstrlen = yes \
10379 -a $ol_cv_struct_sockaddr_storage = yes ; then
10381 elif test $ol_enable_ipv6 = yes \
10382 -a $ol_cv_inet6_addrstrlen = no ; then
10383 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10384 elif test $ol_enable_ipv6 = yes \
10385 -a $ol_cv_struct_sockaddr_storage = no ; then
10386 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10390 if test $ol_enable_local != no ; then
10391 for ac_hdr in sys/un.h
10393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10395 echo "configure:10396: checking for $ac_hdr" >&5
10396 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10399 cat > conftest.$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10405 { (eval echo configure:10406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10407 if test -z "$ac_err"; then
10409 eval "ac_cv_header_$ac_safe=yes"
10412 echo "configure: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10415 eval "ac_cv_header_$ac_safe=no"
10419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10422 cat >> confdefs.h <<EOF
10423 #define $ac_tr_hdr 1
10427 echo "$ac_t""no" 1>&6
10432 if test $ol_enable_local = auto ; then
10433 ol_enable_local=$ac_cv_header_sys_un_h
10434 elif test $ac_cv_header_sys_un_h = no ; then
10435 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10444 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10445 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10446 -o $ol_with_kerberos = k425 ; then
10448 for ac_hdr in krb5.h
10450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10452 echo "configure:10453: checking for $ac_hdr" >&5
10453 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10462 { (eval echo configure:10463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10464 if test -z "$ac_err"; then
10466 eval "ac_cv_header_$ac_safe=yes"
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 eval "ac_cv_header_$ac_safe=no"
10476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10477 echo "$ac_t""yes" 1>&6
10478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10479 cat >> confdefs.h <<EOF
10480 #define $ac_tr_hdr 1
10484 echo "$ac_t""no" 1>&6
10489 if test $ac_cv_header_krb5_h = yes ; then
10490 for ac_hdr in heim_err.h
10492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10494 echo "configure:10495: checking for $ac_hdr" >&5
10495 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10504 { (eval echo configure:10505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10506 if test -z "$ac_err"; then
10508 eval "ac_cv_header_$ac_safe=yes"
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 eval "ac_cv_header_$ac_safe=no"
10518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10521 cat >> confdefs.h <<EOF
10522 #define $ac_tr_hdr 1
10526 echo "$ac_t""no" 1>&6
10530 if test $ac_cv_header_heim_err_h = yes ; then
10536 if test $krb5_impl = mit; then
10537 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10538 echo "configure:10539: checking for main in -lk5crypto" >&5
10539 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10540 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10543 ac_save_LIBS="$LIBS"
10544 LIBS="-lk5crypto $LIBS"
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10553 if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10555 eval "ac_cv_lib_$ac_lib_var=yes"
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 eval "ac_cv_lib_$ac_lib_var=no"
10563 LIBS="$ac_save_LIBS"
10566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10568 krb5crypto=k5crypto
10570 echo "$ac_t""no" 1>&6
10575 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10576 echo "configure:10577: checking for main in -lkrb5" >&5
10577 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10581 ac_save_LIBS="$LIBS"
10582 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10593 eval "ac_cv_lib_$ac_lib_var=yes"
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10598 eval "ac_cv_lib_$ac_lib_var=no"
10601 LIBS="$ac_save_LIBS"
10604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10605 echo "$ac_t""yes" 1>&6
10607 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10609 echo "$ac_t""no" 1>&6
10614 elif test $krb5_impl = heimdal; then
10615 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10616 echo "configure:10617: checking for main in -ldes" >&5
10617 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10618 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10621 ac_save_LIBS="$LIBS"
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10633 eval "ac_cv_lib_$ac_lib_var=yes"
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 eval "ac_cv_lib_$ac_lib_var=no"
10641 LIBS="$ac_save_LIBS"
10644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10645 echo "$ac_t""yes" 1>&6
10648 echo "$ac_t""no" 1>&6
10653 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10654 echo "configure:10655: checking for main in -lkrb5" >&5
10655 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10659 ac_save_LIBS="$LIBS"
10660 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_lib_$ac_lib_var=no"
10679 LIBS="$ac_save_LIBS"
10682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10683 echo "$ac_t""yes" 1>&6
10685 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10687 echo "$ac_t""no" 1>&6
10692 cat >> confdefs.h <<\EOF
10693 #define HAVE_HEIMDAL_KERBEROS 1
10699 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10702 if test $have_krb5 = yes ; then
10705 cat >> confdefs.h <<\EOF
10706 #define HAVE_KRB5 1
10710 if test $ol_enable_kpasswd != no ; then
10711 ol_link_kpasswd=yes;
10714 if test $ol_with_kerberos = k5only ; then
10715 ol_with_kerberos=found
10718 elif test $ol_with_kerberos != auto ; then
10719 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10725 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10726 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10728 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10730 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10731 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10732 echo "configure:10733: checking for $ac_hdr" >&5
10733 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10736 cat > conftest.$ac_ext <<EOF
10737 #line 10738 "configure"
10738 #include "confdefs.h"
10741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10742 { (eval echo configure:10743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10744 if test -z "$ac_err"; then
10746 eval "ac_cv_header_$ac_safe=yes"
10749 echo "configure: failed program was:" >&5
10750 cat conftest.$ac_ext >&5
10752 eval "ac_cv_header_$ac_safe=no"
10756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10759 cat >> confdefs.h <<EOF
10760 #define $ac_tr_hdr 1
10764 echo "$ac_t""no" 1>&6
10769 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10770 if test $krb5_impl = mit; then
10771 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10772 echo "configure:10773: checking for main in -lkrb4" >&5
10773 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10775 echo $ac_n "(cached) $ac_c" 1>&6
10777 ac_save_LIBS="$LIBS"
10778 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10779 cat > conftest.$ac_ext <<EOF
10780 #line 10781 "configure"
10781 #include "confdefs.h"
10787 if { (eval echo configure:10788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10789 eval "ac_cv_lib_$ac_lib_var=yes"
10791 echo "configure: failed program was:" >&5
10792 cat conftest.$ac_ext >&5
10794 eval "ac_cv_lib_$ac_lib_var=no"
10797 LIBS="$ac_save_LIBS"
10800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10801 echo "$ac_t""yes" 1>&6
10803 KRB4_LIBS="-lkrb4 -ldes425"
10805 echo "$ac_t""no" 1>&6
10810 elif test $krb5_impl = heimdal; then
10811 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10812 echo "configure:10813: checking for main in -lkrb4" >&5
10813 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10815 echo $ac_n "(cached) $ac_c" 1>&6
10817 ac_save_LIBS="$LIBS"
10818 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10827 if { (eval echo configure:10828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10829 eval "ac_cv_lib_$ac_lib_var=yes"
10831 echo "configure: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10834 eval "ac_cv_lib_$ac_lib_var=no"
10837 LIBS="$ac_save_LIBS"
10840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10841 echo "$ac_t""yes" 1>&6
10845 echo "$ac_t""no" 1>&6
10852 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10855 if test $have_k425 = yes ; then
10856 ol_with_kerberos=found
10859 cat >> confdefs.h <<\EOF
10860 #define HAVE_KRB425 1
10863 cat >> confdefs.h <<\EOF
10864 #define HAVE_KRB4 1
10868 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10869 echo "configure:10870: checking for des_debug in Kerberos libraries" >&5
10870 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10871 echo $ac_n "(cached) $ac_c" 1>&6
10875 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10880 #include <kerberosIV/krb.h>
10881 #include <kerberosIV/des.h>
10882 extern int des_debug;
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892 ol_cv_var_des_debug=yes
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10897 ol_cv_var_des_debug=no
10904 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10906 if test $ol_cv_var_des_debug = yes ; then
10907 cat >> confdefs.h <<\EOF
10908 #define HAVE_DES_DEBUG 1
10918 if test $ol_link_krb5 = yes ; then
10919 ol_with_kerberos=found
10922 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10923 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10925 for ac_hdr in krb.h des.h krb-archaeology.h
10927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10929 echo "configure:10930: checking for $ac_hdr" >&5
10930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10939 { (eval echo configure:10940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10941 if test -z "$ac_err"; then
10943 eval "ac_cv_header_$ac_safe=yes"
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10949 eval "ac_cv_header_$ac_safe=no"
10953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10956 cat >> confdefs.h <<EOF
10957 #define $ac_tr_hdr 1
10961 echo "$ac_t""no" 1>&6
10966 if test $ac_cv_header_krb_h = yes ; then
10967 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10968 echo "configure:10969: checking for main in -lkrb" >&5
10969 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10973 ac_save_LIBS="$LIBS"
10974 LIBS="-lkrb -ldes $LIBS"
10975 cat > conftest.$ac_ext <<EOF
10976 #line 10977 "configure"
10977 #include "confdefs.h"
10983 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10985 eval "ac_cv_lib_$ac_lib_var=yes"
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10990 eval "ac_cv_lib_$ac_lib_var=no"
10993 LIBS="$ac_save_LIBS"
10996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
11000 echo "$ac_t""no" 1>&6
11005 if test $have_k4 = yes ; then
11006 ol_with_kerberos=found
11009 cat >> confdefs.h <<\EOF
11010 #define HAVE_KRB4 1
11014 KRB4_LIBS="-lkrb -ldes"
11016 if test $ac_cv_header_krb_archaeology_h = yes ; then
11017 cat >> confdefs.h <<\EOF
11018 #define HAVE_KTH_KERBEROS 1
11026 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11027 ol_link_kpasswd=yes
11030 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11033 elif test $ol_enable_kbind = yes ; then
11034 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11037 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11038 cat >> confdefs.h <<\EOF
11039 #define HAVE_KERBEROS 1
11043 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11044 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11048 if test $ol_with_tls != no ; then
11049 for ac_hdr in openssl/ssl.h ssl.h
11051 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11052 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11053 echo "configure:11054: checking for $ac_hdr" >&5
11054 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then
11067 eval "ac_cv_header_$ac_safe=yes"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 eval "ac_cv_header_$ac_safe=no"
11077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11080 cat >> confdefs.h <<EOF
11081 #define $ac_tr_hdr 1
11085 echo "$ac_t""no" 1>&6
11090 if test $ac_cv_header_openssl_ssl_h = yes \
11091 -o $ac_cv_header_ssl_h = yes ; then
11092 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11093 echo "configure:11094: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11094 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11095 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11098 ac_save_LIBS="$LIBS"
11099 LIBS="-lssl -lcrypto $LIBS"
11100 cat > conftest.$ac_ext <<EOF
11101 #line 11102 "configure"
11102 #include "confdefs.h"
11103 /* Override any gcc2 internal prototype to avoid an error. */
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11106 char SSLeay_add_ssl_algorithms();
11109 SSLeay_add_ssl_algorithms()
11112 if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11114 eval "ac_cv_lib_$ac_lib_var=yes"
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11119 eval "ac_cv_lib_$ac_lib_var=no"
11122 LIBS="$ac_save_LIBS"
11125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11126 echo "$ac_t""yes" 1>&6
11130 echo "$ac_t""no" 1>&6
11135 if test $have_ssleay = no ; then
11136 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11137 echo "configure:11138: checking for SSL_library_init in -lssl" >&5
11138 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11142 ac_save_LIBS="$LIBS"
11143 LIBS="-lssl -lcrypto $LIBS"
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char SSL_library_init();
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11158 eval "ac_cv_lib_$ac_lib_var=yes"
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11163 eval "ac_cv_lib_$ac_lib_var=no"
11166 LIBS="$ac_save_LIBS"
11169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11174 echo "$ac_t""no" 1>&6
11180 if test $have_ssleay = no ; then
11181 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11182 echo "configure:11183: checking for ssl3_accept in -lssl" >&5
11183 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11187 ac_save_LIBS="$LIBS"
11188 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 /* Override any gcc2 internal prototype to avoid an error. */
11193 /* We use char because int might match the return type of a gcc2
11194 builtin and then its argument prototype would still apply. */
11195 char ssl3_accept();
11201 if { (eval echo configure:11202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11203 eval "ac_cv_lib_$ac_lib_var=yes"
11205 echo "configure: failed program was:" >&5
11206 cat conftest.$ac_ext >&5
11208 eval "ac_cv_lib_$ac_lib_var=no"
11211 LIBS="$ac_save_LIBS"
11214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11215 echo "$ac_t""yes" 1>&6
11219 echo "$ac_t""no" 1>&6
11225 if test $have_ssleay = yes ; then
11229 cat >> confdefs.h <<\EOF
11230 #define HAVE_SSLEAY 1
11234 if test $need_rsaref = yes; then
11235 cat >> confdefs.h <<\EOF
11236 #define HAVE_RSAREF 1
11240 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11242 TLS_LIBS="-lssl -lcrypto"
11248 echo "configure: warning: TLS data protection not supported!" 1>&2
11251 if test $ol_link_tls = yes ; then
11252 cat >> confdefs.h <<\EOF
11257 elif test $ol_with_tls = auto ; then
11258 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11259 echo "configure: warning: TLS data protection not supported!" 1>&2
11261 elif test $ol_with_tls != no ; then
11262 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11265 if test $ol_enable_lmpasswd != no; then
11266 if test $ol_link_tls != yes ; then
11267 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11270 cat >> confdefs.h <<\EOF
11271 #define SLAPD_LMHASH 1
11278 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11279 -o $ol_with_threads = nt ; then
11282 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11283 echo "configure:11284: checking for _beginthread" >&5
11284 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11287 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char _beginthread(); below. */
11292 #include <assert.h>
11293 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11296 char _beginthread();
11301 /* The GNU C library defines this for functions which it implements
11302 to always fail with ENOSYS. Some functions are actually named
11303 something starting with __ and the normal name is an alias. */
11304 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11314 eval "ac_cv_func__beginthread=yes"
11316 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11319 eval "ac_cv_func__beginthread=no"
11324 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11328 echo "$ac_t""no" 1>&6
11332 if test $ac_cv_func__beginthread = yes ; then
11333 cat >> confdefs.h <<\EOF
11334 #define HAVE_NT_THREADS 1
11337 ol_cv_nt_threads=yes
11341 if test "$ol_cv_nt_threads" = yes ; then
11343 ol_with_threads=found
11344 ol_with_yielding_select=yes
11346 cat >> confdefs.h <<\EOF
11347 #define HAVE_NT_SERVICE_MANAGER 1
11350 cat >> confdefs.h <<\EOF
11351 #define HAVE_NT_EVENT_LOG 1
11356 if test $ol_with_threads = nt ; then
11357 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11361 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11362 -o $ol_with_threads = posix ; then
11364 for ac_hdr in pthread.h
11366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11368 echo "configure:11369: checking for $ac_hdr" >&5
11369 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11370 echo $ac_n "(cached) $ac_c" 1>&6
11372 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure"
11374 #include "confdefs.h"
11377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11378 { (eval echo configure:11379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11380 if test -z "$ac_err"; then
11382 eval "ac_cv_header_$ac_safe=yes"
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11388 eval "ac_cv_header_$ac_safe=no"
11392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11393 echo "$ac_t""yes" 1>&6
11394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11395 cat >> confdefs.h <<EOF
11396 #define $ac_tr_hdr 1
11400 echo "$ac_t""no" 1>&6
11405 if test $ac_cv_header_pthread_h = yes ; then
11406 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11407 echo "configure:11408: checking POSIX thread version" >&5
11408 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11416 # include <pthread.h>
11420 int i = PTHREAD_CREATE_JOINABLE;
11424 if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 #include <pthread.h>
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433 egrep "pthread_detach" >/dev/null 2>&1; then
11435 ol_cv_pthread_version=10
11438 ol_cv_pthread_version=8
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11451 # include <pthread.h>
11452 # ifdef PTHREAD_CREATE_UNDETACHED
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458 egrep "draft7" >/dev/null 2>&1; then
11460 ol_cv_pthread_version=7
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11467 #include <pthread.h>
11469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11470 egrep "pthread_attr_init" >/dev/null 2>&1; then
11472 ol_cv_pthread_version=6
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11480 # include <pthread.h>
11481 #ifdef PTHREAD_MUTEX_INITIALIZER
11486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11487 egrep "draft5" >/dev/null 2>&1; then
11489 ol_cv_pthread_version=5
11492 ol_cv_pthread_version=4
11507 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11510 if test $ol_cv_pthread_version != 0 ; then
11511 cat >> confdefs.h <<EOF
11512 #define HAVE_PTHREADS $ol_cv_pthread_version
11516 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11519 # consider threads found
11520 ol_with_threads=found
11523 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11524 echo "configure:11525: checking for LinuxThreads pthread.h" >&5
11525 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11526 echo $ac_n "(cached) $ac_c" 1>&6
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_kill_other_threads_np" >/dev/null 2>&1; then
11536 ol_cv_header_linux_threads=yes
11539 ol_cv_header_linux_threads=no
11546 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11547 if test $ol_cv_header_linux_threads = yes; then
11548 cat >> confdefs.h <<\EOF
11549 #define HAVE_LINUX_THREADS 1
11555 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11556 echo "configure:11557: checking for GNU Pth pthread.h" >&5
11557 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11563 #include <pthread.h>
11564 #ifdef _POSIX_THREAD_IS_GNU_PTH
11569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11570 egrep "__gnu_pth__" >/dev/null 2>&1; then
11572 ol_cv_header_gnu_pth_pthread_h=yes
11575 ol_cv_header_gnu_pth_pthread_h=no
11582 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11585 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11586 for ac_hdr in sched.h
11588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11590 echo "configure:11591: checking for $ac_hdr" >&5
11591 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11600 { (eval echo configure:11601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11602 if test -z "$ac_err"; then
11604 eval "ac_cv_header_$ac_safe=yes"
11607 echo "configure: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11610 eval "ac_cv_header_$ac_safe=no"
11614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11615 echo "$ac_t""yes" 1>&6
11616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11617 cat >> confdefs.h <<EOF
11618 #define $ac_tr_hdr 1
11622 echo "$ac_t""no" 1>&6
11629 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11630 echo "configure:11631: checking for pthread_create in default libraries" >&5
11631 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11635 if test "$cross_compiling" = yes; then
11636 cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11639 /* pthread test headers */
11640 #include <pthread.h>
11641 #if HAVE_PTHREADS < 7
11645 #define NULL (void*)0
11648 static void *task(p)
11651 return (void *) (p == NULL);
11656 /* pthread test function */
11657 #ifndef PTHREAD_CREATE_DETACHED
11658 #define PTHREAD_CREATE_DETACHED 1
11662 int detach = PTHREAD_CREATE_DETACHED;
11664 #if HAVE_PTHREADS > 4
11665 /* Final pthreads */
11666 pthread_attr_t attr;
11668 status = pthread_attr_init(&attr);
11669 if( status ) return status;
11671 #if HAVE_PTHREADS < 7
11672 status = pthread_attr_setdetachstate(&attr, &detach);
11673 if( status < 0 ) status = errno;
11675 status = pthread_attr_setdetachstate(&attr, detach);
11677 if( status ) return status;
11678 status = pthread_create( &t, &attr, task, NULL );
11679 #if HAVE_PTHREADS < 7
11680 if( status < 0 ) status = errno;
11682 if( status ) return status;
11684 /* Draft 4 pthreads */
11685 status = pthread_create( &t, pthread_attr_default, task, NULL );
11686 if( status ) return errno;
11688 /* give thread a chance to complete */
11689 /* it should remain joinable and hence detachable */
11692 status = pthread_detach( &t );
11693 if( status ) return errno;
11696 #ifdef HAVE_LINUX_THREADS
11697 pthread_kill_other_threads_np();
11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11706 ol_cv_pthread_create=yes
11708 echo "configure: failed program was:" >&5
11709 cat conftest.$ac_ext >&5
11711 ol_cv_pthread_create=no
11715 cat > conftest.$ac_ext <<EOF
11716 #line 11717 "configure"
11717 #include "confdefs.h"
11718 /* pthread test headers */
11719 #include <pthread.h>
11720 #if HAVE_PTHREADS < 7
11724 #define NULL (void*)0
11727 static void *task(p)
11730 return (void *) (p == NULL);
11734 int main(argc, argv)
11739 /* pthread test function */
11740 #ifndef PTHREAD_CREATE_DETACHED
11741 #define PTHREAD_CREATE_DETACHED 1
11745 int detach = PTHREAD_CREATE_DETACHED;
11747 #if HAVE_PTHREADS > 4
11748 /* Final pthreads */
11749 pthread_attr_t attr;
11751 status = pthread_attr_init(&attr);
11752 if( status ) return status;
11754 #if HAVE_PTHREADS < 7
11755 status = pthread_attr_setdetachstate(&attr, &detach);
11756 if( status < 0 ) status = errno;
11758 status = pthread_attr_setdetachstate(&attr, detach);
11760 if( status ) return status;
11761 status = pthread_create( &t, &attr, task, NULL );
11762 #if HAVE_PTHREADS < 7
11763 if( status < 0 ) status = errno;
11765 if( status ) return status;
11767 /* Draft 4 pthreads */
11768 status = pthread_create( &t, pthread_attr_default, task, NULL );
11769 if( status ) return errno;
11771 /* give thread a chance to complete */
11772 /* it should remain joinable and hence detachable */
11775 status = pthread_detach( &t );
11776 if( status ) return errno;
11779 #ifdef HAVE_LINUX_THREADS
11780 pthread_kill_other_threads_np();
11788 if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11790 ol_cv_pthread_create=yes
11792 echo "configure: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11795 ol_cv_pthread_create=no
11802 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11804 if test $ol_cv_pthread_create != no ; then
11805 ol_link_threads=posix
11806 ol_link_pthreads=""
11809 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11810 if test "$ol_link_threads" = no ; then
11812 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11813 echo "configure:11814: checking for pthread link with -kthread" >&5
11814 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11815 echo $ac_n "(cached) $ac_c" 1>&6
11820 LIBS="-kthread $LIBS"
11822 if test "$cross_compiling" = yes; then
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11826 /* pthread test headers */
11827 #include <pthread.h>
11828 #if HAVE_PTHREADS < 7
11832 #define NULL (void*)0
11835 static void *task(p)
11838 return (void *) (p == NULL);
11843 /* pthread test function */
11844 #ifndef PTHREAD_CREATE_DETACHED
11845 #define PTHREAD_CREATE_DETACHED 1
11849 int detach = PTHREAD_CREATE_DETACHED;
11851 #if HAVE_PTHREADS > 4
11852 /* Final pthreads */
11853 pthread_attr_t attr;
11855 status = pthread_attr_init(&attr);
11856 if( status ) return status;
11858 #if HAVE_PTHREADS < 7
11859 status = pthread_attr_setdetachstate(&attr, &detach);
11860 if( status < 0 ) status = errno;
11862 status = pthread_attr_setdetachstate(&attr, detach);
11864 if( status ) return status;
11865 status = pthread_create( &t, &attr, task, NULL );
11866 #if HAVE_PTHREADS < 7
11867 if( status < 0 ) status = errno;
11869 if( status ) return status;
11871 /* Draft 4 pthreads */
11872 status = pthread_create( &t, pthread_attr_default, task, NULL );
11873 if( status ) return errno;
11875 /* give thread a chance to complete */
11876 /* it should remain joinable and hence detachable */
11879 status = pthread_detach( &t );
11880 if( status ) return errno;
11883 #ifdef HAVE_LINUX_THREADS
11884 pthread_kill_other_threads_np();
11891 if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11893 ol_cv_pthread_kthread=yes
11895 echo "configure: failed program was:" >&5
11896 cat conftest.$ac_ext >&5
11898 ol_cv_pthread_kthread=no
11902 cat > conftest.$ac_ext <<EOF
11903 #line 11904 "configure"
11904 #include "confdefs.h"
11905 /* pthread test headers */
11906 #include <pthread.h>
11907 #if HAVE_PTHREADS < 7
11911 #define NULL (void*)0
11914 static void *task(p)
11917 return (void *) (p == NULL);
11921 int main(argc, argv)
11926 /* pthread test function */
11927 #ifndef PTHREAD_CREATE_DETACHED
11928 #define PTHREAD_CREATE_DETACHED 1
11932 int detach = PTHREAD_CREATE_DETACHED;
11934 #if HAVE_PTHREADS > 4
11935 /* Final pthreads */
11936 pthread_attr_t attr;
11938 status = pthread_attr_init(&attr);
11939 if( status ) return status;
11941 #if HAVE_PTHREADS < 7
11942 status = pthread_attr_setdetachstate(&attr, &detach);
11943 if( status < 0 ) status = errno;
11945 status = pthread_attr_setdetachstate(&attr, detach);
11947 if( status ) return status;
11948 status = pthread_create( &t, &attr, task, NULL );
11949 #if HAVE_PTHREADS < 7
11950 if( status < 0 ) status = errno;
11952 if( status ) return status;
11954 /* Draft 4 pthreads */
11955 status = pthread_create( &t, pthread_attr_default, task, NULL );
11956 if( status ) return errno;
11958 /* give thread a chance to complete */
11959 /* it should remain joinable and hence detachable */
11962 status = pthread_detach( &t );
11963 if( status ) return errno;
11966 #ifdef HAVE_LINUX_THREADS
11967 pthread_kill_other_threads_np();
11975 if { (eval echo configure:11976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11977 ol_cv_pthread_kthread=yes
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11982 ol_cv_pthread_kthread=no
11993 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11995 if test $ol_cv_pthread_kthread = yes ; then
11996 ol_link_pthreads="-kthread"
11997 ol_link_threads=posix
12001 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12002 if test "$ol_link_threads" = no ; then
12004 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12005 echo "configure:12006: checking for pthread link with -pthread" >&5
12006 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12007 echo $ac_n "(cached) $ac_c" 1>&6
12012 LIBS="-pthread $LIBS"
12014 if test "$cross_compiling" = yes; then
12015 cat > conftest.$ac_ext <<EOF
12016 #line 12017 "configure"
12017 #include "confdefs.h"
12018 /* pthread test headers */
12019 #include <pthread.h>
12020 #if HAVE_PTHREADS < 7
12024 #define NULL (void*)0
12027 static void *task(p)
12030 return (void *) (p == NULL);
12035 /* pthread test function */
12036 #ifndef PTHREAD_CREATE_DETACHED
12037 #define PTHREAD_CREATE_DETACHED 1
12041 int detach = PTHREAD_CREATE_DETACHED;
12043 #if HAVE_PTHREADS > 4
12044 /* Final pthreads */
12045 pthread_attr_t attr;
12047 status = pthread_attr_init(&attr);
12048 if( status ) return status;
12050 #if HAVE_PTHREADS < 7
12051 status = pthread_attr_setdetachstate(&attr, &detach);
12052 if( status < 0 ) status = errno;
12054 status = pthread_attr_setdetachstate(&attr, detach);
12056 if( status ) return status;
12057 status = pthread_create( &t, &attr, task, NULL );
12058 #if HAVE_PTHREADS < 7
12059 if( status < 0 ) status = errno;
12061 if( status ) return status;
12063 /* Draft 4 pthreads */
12064 status = pthread_create( &t, pthread_attr_default, task, NULL );
12065 if( status ) return errno;
12067 /* give thread a chance to complete */
12068 /* it should remain joinable and hence detachable */
12071 status = pthread_detach( &t );
12072 if( status ) return errno;
12075 #ifdef HAVE_LINUX_THREADS
12076 pthread_kill_other_threads_np();
12083 if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12085 ol_cv_pthread_pthread=yes
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12090 ol_cv_pthread_pthread=no
12094 cat > conftest.$ac_ext <<EOF
12095 #line 12096 "configure"
12096 #include "confdefs.h"
12097 /* pthread test headers */
12098 #include <pthread.h>
12099 #if HAVE_PTHREADS < 7
12103 #define NULL (void*)0
12106 static void *task(p)
12109 return (void *) (p == NULL);
12113 int main(argc, argv)
12118 /* pthread test function */
12119 #ifndef PTHREAD_CREATE_DETACHED
12120 #define PTHREAD_CREATE_DETACHED 1
12124 int detach = PTHREAD_CREATE_DETACHED;
12126 #if HAVE_PTHREADS > 4
12127 /* Final pthreads */
12128 pthread_attr_t attr;
12130 status = pthread_attr_init(&attr);
12131 if( status ) return status;
12133 #if HAVE_PTHREADS < 7
12134 status = pthread_attr_setdetachstate(&attr, &detach);
12135 if( status < 0 ) status = errno;
12137 status = pthread_attr_setdetachstate(&attr, detach);
12139 if( status ) return status;
12140 status = pthread_create( &t, &attr, task, NULL );
12141 #if HAVE_PTHREADS < 7
12142 if( status < 0 ) status = errno;
12144 if( status ) return status;
12146 /* Draft 4 pthreads */
12147 status = pthread_create( &t, pthread_attr_default, task, NULL );
12148 if( status ) return errno;
12150 /* give thread a chance to complete */
12151 /* it should remain joinable and hence detachable */
12154 status = pthread_detach( &t );
12155 if( status ) return errno;
12158 #ifdef HAVE_LINUX_THREADS
12159 pthread_kill_other_threads_np();
12167 if { (eval echo configure:12168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12169 ol_cv_pthread_pthread=yes
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12174 ol_cv_pthread_pthread=no
12185 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12187 if test $ol_cv_pthread_pthread = yes ; then
12188 ol_link_pthreads="-pthread"
12189 ol_link_threads=posix
12193 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12194 if test "$ol_link_threads" = no ; then
12196 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12197 echo "configure:12198: checking for pthread link with -pthreads" >&5
12198 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12199 echo $ac_n "(cached) $ac_c" 1>&6
12204 LIBS="-pthreads $LIBS"
12206 if test "$cross_compiling" = yes; then
12207 cat > conftest.$ac_ext <<EOF
12208 #line 12209 "configure"
12209 #include "confdefs.h"
12210 /* pthread test headers */
12211 #include <pthread.h>
12212 #if HAVE_PTHREADS < 7
12216 #define NULL (void*)0
12219 static void *task(p)
12222 return (void *) (p == NULL);
12227 /* pthread test function */
12228 #ifndef PTHREAD_CREATE_DETACHED
12229 #define PTHREAD_CREATE_DETACHED 1
12233 int detach = PTHREAD_CREATE_DETACHED;
12235 #if HAVE_PTHREADS > 4
12236 /* Final pthreads */
12237 pthread_attr_t attr;
12239 status = pthread_attr_init(&attr);
12240 if( status ) return status;
12242 #if HAVE_PTHREADS < 7
12243 status = pthread_attr_setdetachstate(&attr, &detach);
12244 if( status < 0 ) status = errno;
12246 status = pthread_attr_setdetachstate(&attr, detach);
12248 if( status ) return status;
12249 status = pthread_create( &t, &attr, task, NULL );
12250 #if HAVE_PTHREADS < 7
12251 if( status < 0 ) status = errno;
12253 if( status ) return status;
12255 /* Draft 4 pthreads */
12256 status = pthread_create( &t, pthread_attr_default, task, NULL );
12257 if( status ) return errno;
12259 /* give thread a chance to complete */
12260 /* it should remain joinable and hence detachable */
12263 status = pthread_detach( &t );
12264 if( status ) return errno;
12267 #ifdef HAVE_LINUX_THREADS
12268 pthread_kill_other_threads_np();
12275 if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12277 ol_cv_pthread_pthreads=yes
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12282 ol_cv_pthread_pthreads=no
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 /* pthread test headers */
12290 #include <pthread.h>
12291 #if HAVE_PTHREADS < 7
12295 #define NULL (void*)0
12298 static void *task(p)
12301 return (void *) (p == NULL);
12305 int main(argc, argv)
12310 /* pthread test function */
12311 #ifndef PTHREAD_CREATE_DETACHED
12312 #define PTHREAD_CREATE_DETACHED 1
12316 int detach = PTHREAD_CREATE_DETACHED;
12318 #if HAVE_PTHREADS > 4
12319 /* Final pthreads */
12320 pthread_attr_t attr;
12322 status = pthread_attr_init(&attr);
12323 if( status ) return status;
12325 #if HAVE_PTHREADS < 7
12326 status = pthread_attr_setdetachstate(&attr, &detach);
12327 if( status < 0 ) status = errno;
12329 status = pthread_attr_setdetachstate(&attr, detach);
12331 if( status ) return status;
12332 status = pthread_create( &t, &attr, task, NULL );
12333 #if HAVE_PTHREADS < 7
12334 if( status < 0 ) status = errno;
12336 if( status ) return status;
12338 /* Draft 4 pthreads */
12339 status = pthread_create( &t, pthread_attr_default, task, NULL );
12340 if( status ) return errno;
12342 /* give thread a chance to complete */
12343 /* it should remain joinable and hence detachable */
12346 status = pthread_detach( &t );
12347 if( status ) return errno;
12350 #ifdef HAVE_LINUX_THREADS
12351 pthread_kill_other_threads_np();
12359 if { (eval echo configure:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12361 ol_cv_pthread_pthreads=yes
12363 echo "configure: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12366 ol_cv_pthread_pthreads=no
12377 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12379 if test $ol_cv_pthread_pthreads = yes ; then
12380 ol_link_pthreads="-pthreads"
12381 ol_link_threads=posix
12385 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12386 if test "$ol_link_threads" = no ; then
12388 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12389 echo "configure:12390: checking for pthread link with -mthreads" >&5
12390 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12396 LIBS="-mthreads $LIBS"
12398 if test "$cross_compiling" = yes; then
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* pthread test headers */
12403 #include <pthread.h>
12404 #if HAVE_PTHREADS < 7
12408 #define NULL (void*)0
12411 static void *task(p)
12414 return (void *) (p == NULL);
12419 /* pthread test function */
12420 #ifndef PTHREAD_CREATE_DETACHED
12421 #define PTHREAD_CREATE_DETACHED 1
12425 int detach = PTHREAD_CREATE_DETACHED;
12427 #if HAVE_PTHREADS > 4
12428 /* Final pthreads */
12429 pthread_attr_t attr;
12431 status = pthread_attr_init(&attr);
12432 if( status ) return status;
12434 #if HAVE_PTHREADS < 7
12435 status = pthread_attr_setdetachstate(&attr, &detach);
12436 if( status < 0 ) status = errno;
12438 status = pthread_attr_setdetachstate(&attr, detach);
12440 if( status ) return status;
12441 status = pthread_create( &t, &attr, task, NULL );
12442 #if HAVE_PTHREADS < 7
12443 if( status < 0 ) status = errno;
12445 if( status ) return status;
12447 /* Draft 4 pthreads */
12448 status = pthread_create( &t, pthread_attr_default, task, NULL );
12449 if( status ) return errno;
12451 /* give thread a chance to complete */
12452 /* it should remain joinable and hence detachable */
12455 status = pthread_detach( &t );
12456 if( status ) return errno;
12459 #ifdef HAVE_LINUX_THREADS
12460 pthread_kill_other_threads_np();
12467 if { (eval echo configure:12468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12469 ol_cv_pthread_mthreads=yes
12471 echo "configure: failed program was:" >&5
12472 cat conftest.$ac_ext >&5
12474 ol_cv_pthread_mthreads=no
12478 cat > conftest.$ac_ext <<EOF
12479 #line 12480 "configure"
12480 #include "confdefs.h"
12481 /* pthread test headers */
12482 #include <pthread.h>
12483 #if HAVE_PTHREADS < 7
12487 #define NULL (void*)0
12490 static void *task(p)
12493 return (void *) (p == NULL);
12497 int main(argc, argv)
12502 /* pthread test function */
12503 #ifndef PTHREAD_CREATE_DETACHED
12504 #define PTHREAD_CREATE_DETACHED 1
12508 int detach = PTHREAD_CREATE_DETACHED;
12510 #if HAVE_PTHREADS > 4
12511 /* Final pthreads */
12512 pthread_attr_t attr;
12514 status = pthread_attr_init(&attr);
12515 if( status ) return status;
12517 #if HAVE_PTHREADS < 7
12518 status = pthread_attr_setdetachstate(&attr, &detach);
12519 if( status < 0 ) status = errno;
12521 status = pthread_attr_setdetachstate(&attr, detach);
12523 if( status ) return status;
12524 status = pthread_create( &t, &attr, task, NULL );
12525 #if HAVE_PTHREADS < 7
12526 if( status < 0 ) status = errno;
12528 if( status ) return status;
12530 /* Draft 4 pthreads */
12531 status = pthread_create( &t, pthread_attr_default, task, NULL );
12532 if( status ) return errno;
12534 /* give thread a chance to complete */
12535 /* it should remain joinable and hence detachable */
12538 status = pthread_detach( &t );
12539 if( status ) return errno;
12542 #ifdef HAVE_LINUX_THREADS
12543 pthread_kill_other_threads_np();
12551 if { (eval echo configure:12552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12553 ol_cv_pthread_mthreads=yes
12555 echo "configure: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12558 ol_cv_pthread_mthreads=no
12569 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12571 if test $ol_cv_pthread_mthreads = yes ; then
12572 ol_link_pthreads="-mthreads"
12573 ol_link_threads=posix
12577 # Pthread try link: -thread (ol_cv_pthread_thread)
12578 if test "$ol_link_threads" = no ; then
12580 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12581 echo "configure:12582: checking for pthread link with -thread" >&5
12582 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12588 LIBS="-thread $LIBS"
12590 if test "$cross_compiling" = yes; then
12591 cat > conftest.$ac_ext <<EOF
12592 #line 12593 "configure"
12593 #include "confdefs.h"
12594 /* pthread test headers */
12595 #include <pthread.h>
12596 #if HAVE_PTHREADS < 7
12600 #define NULL (void*)0
12603 static void *task(p)
12606 return (void *) (p == NULL);
12611 /* pthread test function */
12612 #ifndef PTHREAD_CREATE_DETACHED
12613 #define PTHREAD_CREATE_DETACHED 1
12617 int detach = PTHREAD_CREATE_DETACHED;
12619 #if HAVE_PTHREADS > 4
12620 /* Final pthreads */
12621 pthread_attr_t attr;
12623 status = pthread_attr_init(&attr);
12624 if( status ) return status;
12626 #if HAVE_PTHREADS < 7
12627 status = pthread_attr_setdetachstate(&attr, &detach);
12628 if( status < 0 ) status = errno;
12630 status = pthread_attr_setdetachstate(&attr, detach);
12632 if( status ) return status;
12633 status = pthread_create( &t, &attr, task, NULL );
12634 #if HAVE_PTHREADS < 7
12635 if( status < 0 ) status = errno;
12637 if( status ) return status;
12639 /* Draft 4 pthreads */
12640 status = pthread_create( &t, pthread_attr_default, task, NULL );
12641 if( status ) return errno;
12643 /* give thread a chance to complete */
12644 /* it should remain joinable and hence detachable */
12647 status = pthread_detach( &t );
12648 if( status ) return errno;
12651 #ifdef HAVE_LINUX_THREADS
12652 pthread_kill_other_threads_np();
12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12661 ol_cv_pthread_thread=yes
12663 echo "configure: failed program was:" >&5
12664 cat conftest.$ac_ext >&5
12666 ol_cv_pthread_thread=no
12670 cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure"
12672 #include "confdefs.h"
12673 /* pthread test headers */
12674 #include <pthread.h>
12675 #if HAVE_PTHREADS < 7
12679 #define NULL (void*)0
12682 static void *task(p)
12685 return (void *) (p == NULL);
12689 int main(argc, argv)
12694 /* pthread test function */
12695 #ifndef PTHREAD_CREATE_DETACHED
12696 #define PTHREAD_CREATE_DETACHED 1
12700 int detach = PTHREAD_CREATE_DETACHED;
12702 #if HAVE_PTHREADS > 4
12703 /* Final pthreads */
12704 pthread_attr_t attr;
12706 status = pthread_attr_init(&attr);
12707 if( status ) return status;
12709 #if HAVE_PTHREADS < 7
12710 status = pthread_attr_setdetachstate(&attr, &detach);
12711 if( status < 0 ) status = errno;
12713 status = pthread_attr_setdetachstate(&attr, detach);
12715 if( status ) return status;
12716 status = pthread_create( &t, &attr, task, NULL );
12717 #if HAVE_PTHREADS < 7
12718 if( status < 0 ) status = errno;
12720 if( status ) return status;
12722 /* Draft 4 pthreads */
12723 status = pthread_create( &t, pthread_attr_default, task, NULL );
12724 if( status ) return errno;
12726 /* give thread a chance to complete */
12727 /* it should remain joinable and hence detachable */
12730 status = pthread_detach( &t );
12731 if( status ) return errno;
12734 #ifdef HAVE_LINUX_THREADS
12735 pthread_kill_other_threads_np();
12743 if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12745 ol_cv_pthread_thread=yes
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12750 ol_cv_pthread_thread=no
12761 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12763 if test $ol_cv_pthread_thread = yes ; then
12764 ol_link_pthreads="-thread"
12765 ol_link_threads=posix
12770 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12771 if test "$ol_link_threads" = no ; then
12772 # try -lpthread -lmach -lexc -lc_r
12773 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12774 echo "configure:12775: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12775 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12776 echo $ac_n "(cached) $ac_c" 1>&6
12781 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12783 if test "$cross_compiling" = yes; then
12784 cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 /* pthread test headers */
12788 #include <pthread.h>
12789 #if HAVE_PTHREADS < 7
12793 #define NULL (void*)0
12796 static void *task(p)
12799 return (void *) (p == NULL);
12804 /* pthread test function */
12805 #ifndef PTHREAD_CREATE_DETACHED
12806 #define PTHREAD_CREATE_DETACHED 1
12810 int detach = PTHREAD_CREATE_DETACHED;
12812 #if HAVE_PTHREADS > 4
12813 /* Final pthreads */
12814 pthread_attr_t attr;
12816 status = pthread_attr_init(&attr);
12817 if( status ) return status;
12819 #if HAVE_PTHREADS < 7
12820 status = pthread_attr_setdetachstate(&attr, &detach);
12821 if( status < 0 ) status = errno;
12823 status = pthread_attr_setdetachstate(&attr, detach);
12825 if( status ) return status;
12826 status = pthread_create( &t, &attr, task, NULL );
12827 #if HAVE_PTHREADS < 7
12828 if( status < 0 ) status = errno;
12830 if( status ) return status;
12832 /* Draft 4 pthreads */
12833 status = pthread_create( &t, pthread_attr_default, task, NULL );
12834 if( status ) return errno;
12836 /* give thread a chance to complete */
12837 /* it should remain joinable and hence detachable */
12840 status = pthread_detach( &t );
12841 if( status ) return errno;
12844 #ifdef HAVE_LINUX_THREADS
12845 pthread_kill_other_threads_np();
12852 if { (eval echo configure:12853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12854 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12859 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12863 cat > conftest.$ac_ext <<EOF
12864 #line 12865 "configure"
12865 #include "confdefs.h"
12866 /* pthread test headers */
12867 #include <pthread.h>
12868 #if HAVE_PTHREADS < 7
12872 #define NULL (void*)0
12875 static void *task(p)
12878 return (void *) (p == NULL);
12882 int main(argc, argv)
12887 /* pthread test function */
12888 #ifndef PTHREAD_CREATE_DETACHED
12889 #define PTHREAD_CREATE_DETACHED 1
12893 int detach = PTHREAD_CREATE_DETACHED;
12895 #if HAVE_PTHREADS > 4
12896 /* Final pthreads */
12897 pthread_attr_t attr;
12899 status = pthread_attr_init(&attr);
12900 if( status ) return status;
12902 #if HAVE_PTHREADS < 7
12903 status = pthread_attr_setdetachstate(&attr, &detach);
12904 if( status < 0 ) status = errno;
12906 status = pthread_attr_setdetachstate(&attr, detach);
12908 if( status ) return status;
12909 status = pthread_create( &t, &attr, task, NULL );
12910 #if HAVE_PTHREADS < 7
12911 if( status < 0 ) status = errno;
12913 if( status ) return status;
12915 /* Draft 4 pthreads */
12916 status = pthread_create( &t, pthread_attr_default, task, NULL );
12917 if( status ) return errno;
12919 /* give thread a chance to complete */
12920 /* it should remain joinable and hence detachable */
12923 status = pthread_detach( &t );
12924 if( status ) return errno;
12927 #ifdef HAVE_LINUX_THREADS
12928 pthread_kill_other_threads_np();
12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12938 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12943 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12954 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12956 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12957 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12958 ol_link_threads=posix
12962 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12963 if test "$ol_link_threads" = no ; then
12964 # try -lpthread -lmach -lexc
12965 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12966 echo "configure:12967: checking for pthread link with -lpthread -lmach -lexc" >&5
12967 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12973 LIBS="-lpthread -lmach -lexc $LIBS"
12975 if test "$cross_compiling" = yes; then
12976 cat > conftest.$ac_ext <<EOF
12977 #line 12978 "configure"
12978 #include "confdefs.h"
12979 /* pthread test headers */
12980 #include <pthread.h>
12981 #if HAVE_PTHREADS < 7
12985 #define NULL (void*)0
12988 static void *task(p)
12991 return (void *) (p == NULL);
12996 /* pthread test function */
12997 #ifndef PTHREAD_CREATE_DETACHED
12998 #define PTHREAD_CREATE_DETACHED 1
13002 int detach = PTHREAD_CREATE_DETACHED;
13004 #if HAVE_PTHREADS > 4
13005 /* Final pthreads */
13006 pthread_attr_t attr;
13008 status = pthread_attr_init(&attr);
13009 if( status ) return status;
13011 #if HAVE_PTHREADS < 7
13012 status = pthread_attr_setdetachstate(&attr, &detach);
13013 if( status < 0 ) status = errno;
13015 status = pthread_attr_setdetachstate(&attr, detach);
13017 if( status ) return status;
13018 status = pthread_create( &t, &attr, task, NULL );
13019 #if HAVE_PTHREADS < 7
13020 if( status < 0 ) status = errno;
13022 if( status ) return status;
13024 /* Draft 4 pthreads */
13025 status = pthread_create( &t, pthread_attr_default, task, NULL );
13026 if( status ) return errno;
13028 /* give thread a chance to complete */
13029 /* it should remain joinable and hence detachable */
13032 status = pthread_detach( &t );
13033 if( status ) return errno;
13036 #ifdef HAVE_LINUX_THREADS
13037 pthread_kill_other_threads_np();
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046 ol_cv_pthread_lpthread_lmach_lexc=yes
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13051 ol_cv_pthread_lpthread_lmach_lexc=no
13055 cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 /* pthread test headers */
13059 #include <pthread.h>
13060 #if HAVE_PTHREADS < 7
13064 #define NULL (void*)0
13067 static void *task(p)
13070 return (void *) (p == NULL);
13074 int main(argc, argv)
13079 /* pthread test function */
13080 #ifndef PTHREAD_CREATE_DETACHED
13081 #define PTHREAD_CREATE_DETACHED 1
13085 int detach = PTHREAD_CREATE_DETACHED;
13087 #if HAVE_PTHREADS > 4
13088 /* Final pthreads */
13089 pthread_attr_t attr;
13091 status = pthread_attr_init(&attr);
13092 if( status ) return status;
13094 #if HAVE_PTHREADS < 7
13095 status = pthread_attr_setdetachstate(&attr, &detach);
13096 if( status < 0 ) status = errno;
13098 status = pthread_attr_setdetachstate(&attr, detach);
13100 if( status ) return status;
13101 status = pthread_create( &t, &attr, task, NULL );
13102 #if HAVE_PTHREADS < 7
13103 if( status < 0 ) status = errno;
13105 if( status ) return status;
13107 /* Draft 4 pthreads */
13108 status = pthread_create( &t, pthread_attr_default, task, NULL );
13109 if( status ) return errno;
13111 /* give thread a chance to complete */
13112 /* it should remain joinable and hence detachable */
13115 status = pthread_detach( &t );
13116 if( status ) return errno;
13119 #ifdef HAVE_LINUX_THREADS
13120 pthread_kill_other_threads_np();
13128 if { (eval echo configure:13129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13130 ol_cv_pthread_lpthread_lmach_lexc=yes
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13135 ol_cv_pthread_lpthread_lmach_lexc=no
13146 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13148 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13149 ol_link_pthreads="-lpthread -lmach -lexc"
13150 ol_link_threads=posix
13155 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13156 if test "$ol_link_threads" = no ; then
13157 # try -lpthread -Wl,-woff,85
13158 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13159 echo "configure:13160: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13160 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13166 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13168 if test "$cross_compiling" = yes; then
13169 cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* pthread test headers */
13173 #include <pthread.h>
13174 #if HAVE_PTHREADS < 7
13178 #define NULL (void*)0
13181 static void *task(p)
13184 return (void *) (p == NULL);
13189 /* pthread test function */
13190 #ifndef PTHREAD_CREATE_DETACHED
13191 #define PTHREAD_CREATE_DETACHED 1
13195 int detach = PTHREAD_CREATE_DETACHED;
13197 #if HAVE_PTHREADS > 4
13198 /* Final pthreads */
13199 pthread_attr_t attr;
13201 status = pthread_attr_init(&attr);
13202 if( status ) return status;
13204 #if HAVE_PTHREADS < 7
13205 status = pthread_attr_setdetachstate(&attr, &detach);
13206 if( status < 0 ) status = errno;
13208 status = pthread_attr_setdetachstate(&attr, detach);
13210 if( status ) return status;
13211 status = pthread_create( &t, &attr, task, NULL );
13212 #if HAVE_PTHREADS < 7
13213 if( status < 0 ) status = errno;
13215 if( status ) return status;
13217 /* Draft 4 pthreads */
13218 status = pthread_create( &t, pthread_attr_default, task, NULL );
13219 if( status ) return errno;
13221 /* give thread a chance to complete */
13222 /* it should remain joinable and hence detachable */
13225 status = pthread_detach( &t );
13226 if( status ) return errno;
13229 #ifdef HAVE_LINUX_THREADS
13230 pthread_kill_other_threads_np();
13237 if { (eval echo configure:13238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13239 ol_cv_pthread_lib_lpthread_woff=yes
13241 echo "configure: failed program was:" >&5
13242 cat conftest.$ac_ext >&5
13244 ol_cv_pthread_lib_lpthread_woff=no
13248 cat > conftest.$ac_ext <<EOF
13249 #line 13250 "configure"
13250 #include "confdefs.h"
13251 /* pthread test headers */
13252 #include <pthread.h>
13253 #if HAVE_PTHREADS < 7
13257 #define NULL (void*)0
13260 static void *task(p)
13263 return (void *) (p == NULL);
13267 int main(argc, argv)
13272 /* pthread test function */
13273 #ifndef PTHREAD_CREATE_DETACHED
13274 #define PTHREAD_CREATE_DETACHED 1
13278 int detach = PTHREAD_CREATE_DETACHED;
13280 #if HAVE_PTHREADS > 4
13281 /* Final pthreads */
13282 pthread_attr_t attr;
13284 status = pthread_attr_init(&attr);
13285 if( status ) return status;
13287 #if HAVE_PTHREADS < 7
13288 status = pthread_attr_setdetachstate(&attr, &detach);
13289 if( status < 0 ) status = errno;
13291 status = pthread_attr_setdetachstate(&attr, detach);
13293 if( status ) return status;
13294 status = pthread_create( &t, &attr, task, NULL );
13295 #if HAVE_PTHREADS < 7
13296 if( status < 0 ) status = errno;
13298 if( status ) return status;
13300 /* Draft 4 pthreads */
13301 status = pthread_create( &t, pthread_attr_default, task, NULL );
13302 if( status ) return errno;
13304 /* give thread a chance to complete */
13305 /* it should remain joinable and hence detachable */
13308 status = pthread_detach( &t );
13309 if( status ) return errno;
13312 #ifdef HAVE_LINUX_THREADS
13313 pthread_kill_other_threads_np();
13321 if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13323 ol_cv_pthread_lib_lpthread_woff=yes
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13328 ol_cv_pthread_lib_lpthread_woff=no
13339 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13341 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13342 ol_link_pthreads="-lpthread -Wl,-woff,85"
13343 ol_link_threads=posix
13348 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13349 if test "$ol_link_threads" = no ; then
13351 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13352 echo "configure:13353: checking for pthread link with -lpthread" >&5
13353 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13354 echo $ac_n "(cached) $ac_c" 1>&6
13359 LIBS="-lpthread $LIBS"
13361 if test "$cross_compiling" = yes; then
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 /* pthread test headers */
13366 #include <pthread.h>
13367 #if HAVE_PTHREADS < 7
13371 #define NULL (void*)0
13374 static void *task(p)
13377 return (void *) (p == NULL);
13382 /* pthread test function */
13383 #ifndef PTHREAD_CREATE_DETACHED
13384 #define PTHREAD_CREATE_DETACHED 1
13388 int detach = PTHREAD_CREATE_DETACHED;
13390 #if HAVE_PTHREADS > 4
13391 /* Final pthreads */
13392 pthread_attr_t attr;
13394 status = pthread_attr_init(&attr);
13395 if( status ) return status;
13397 #if HAVE_PTHREADS < 7
13398 status = pthread_attr_setdetachstate(&attr, &detach);
13399 if( status < 0 ) status = errno;
13401 status = pthread_attr_setdetachstate(&attr, detach);
13403 if( status ) return status;
13404 status = pthread_create( &t, &attr, task, NULL );
13405 #if HAVE_PTHREADS < 7
13406 if( status < 0 ) status = errno;
13408 if( status ) return status;
13410 /* Draft 4 pthreads */
13411 status = pthread_create( &t, pthread_attr_default, task, NULL );
13412 if( status ) return errno;
13414 /* give thread a chance to complete */
13415 /* it should remain joinable and hence detachable */
13418 status = pthread_detach( &t );
13419 if( status ) return errno;
13422 #ifdef HAVE_LINUX_THREADS
13423 pthread_kill_other_threads_np();
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13432 ol_cv_pthread_lpthread=yes
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13437 ol_cv_pthread_lpthread=no
13441 cat > conftest.$ac_ext <<EOF
13442 #line 13443 "configure"
13443 #include "confdefs.h"
13444 /* pthread test headers */
13445 #include <pthread.h>
13446 #if HAVE_PTHREADS < 7
13450 #define NULL (void*)0
13453 static void *task(p)
13456 return (void *) (p == NULL);
13460 int main(argc, argv)
13465 /* pthread test function */
13466 #ifndef PTHREAD_CREATE_DETACHED
13467 #define PTHREAD_CREATE_DETACHED 1
13471 int detach = PTHREAD_CREATE_DETACHED;
13473 #if HAVE_PTHREADS > 4
13474 /* Final pthreads */
13475 pthread_attr_t attr;
13477 status = pthread_attr_init(&attr);
13478 if( status ) return status;
13480 #if HAVE_PTHREADS < 7
13481 status = pthread_attr_setdetachstate(&attr, &detach);
13482 if( status < 0 ) status = errno;
13484 status = pthread_attr_setdetachstate(&attr, detach);
13486 if( status ) return status;
13487 status = pthread_create( &t, &attr, task, NULL );
13488 #if HAVE_PTHREADS < 7
13489 if( status < 0 ) status = errno;
13491 if( status ) return status;
13493 /* Draft 4 pthreads */
13494 status = pthread_create( &t, pthread_attr_default, task, NULL );
13495 if( status ) return errno;
13497 /* give thread a chance to complete */
13498 /* it should remain joinable and hence detachable */
13501 status = pthread_detach( &t );
13502 if( status ) return errno;
13505 #ifdef HAVE_LINUX_THREADS
13506 pthread_kill_other_threads_np();
13514 if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13516 ol_cv_pthread_lpthread=yes
13518 echo "configure: failed program was:" >&5
13519 cat conftest.$ac_ext >&5
13521 ol_cv_pthread_lpthread=no
13532 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13534 if test $ol_cv_pthread_lpthread = yes ; then
13535 ol_link_pthreads="-lpthread"
13536 ol_link_threads=posix
13540 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13541 if test "$ol_link_threads" = no ; then
13543 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13544 echo "configure:13545: checking for pthread link with -lc_r" >&5
13545 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13553 if test "$cross_compiling" = yes; then
13554 cat > conftest.$ac_ext <<EOF
13555 #line 13556 "configure"
13556 #include "confdefs.h"
13557 /* pthread test headers */
13558 #include <pthread.h>
13559 #if HAVE_PTHREADS < 7
13563 #define NULL (void*)0
13566 static void *task(p)
13569 return (void *) (p == NULL);
13574 /* pthread test function */
13575 #ifndef PTHREAD_CREATE_DETACHED
13576 #define PTHREAD_CREATE_DETACHED 1
13580 int detach = PTHREAD_CREATE_DETACHED;
13582 #if HAVE_PTHREADS > 4
13583 /* Final pthreads */
13584 pthread_attr_t attr;
13586 status = pthread_attr_init(&attr);
13587 if( status ) return status;
13589 #if HAVE_PTHREADS < 7
13590 status = pthread_attr_setdetachstate(&attr, &detach);
13591 if( status < 0 ) status = errno;
13593 status = pthread_attr_setdetachstate(&attr, detach);
13595 if( status ) return status;
13596 status = pthread_create( &t, &attr, task, NULL );
13597 #if HAVE_PTHREADS < 7
13598 if( status < 0 ) status = errno;
13600 if( status ) return status;
13602 /* Draft 4 pthreads */
13603 status = pthread_create( &t, pthread_attr_default, task, NULL );
13604 if( status ) return errno;
13606 /* give thread a chance to complete */
13607 /* it should remain joinable and hence detachable */
13610 status = pthread_detach( &t );
13611 if( status ) return errno;
13614 #ifdef HAVE_LINUX_THREADS
13615 pthread_kill_other_threads_np();
13622 if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13624 ol_cv_pthread_lc_r=yes
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13629 ol_cv_pthread_lc_r=no
13633 cat > conftest.$ac_ext <<EOF
13634 #line 13635 "configure"
13635 #include "confdefs.h"
13636 /* pthread test headers */
13637 #include <pthread.h>
13638 #if HAVE_PTHREADS < 7
13642 #define NULL (void*)0
13645 static void *task(p)
13648 return (void *) (p == NULL);
13652 int main(argc, argv)
13657 /* pthread test function */
13658 #ifndef PTHREAD_CREATE_DETACHED
13659 #define PTHREAD_CREATE_DETACHED 1
13663 int detach = PTHREAD_CREATE_DETACHED;
13665 #if HAVE_PTHREADS > 4
13666 /* Final pthreads */
13667 pthread_attr_t attr;
13669 status = pthread_attr_init(&attr);
13670 if( status ) return status;
13672 #if HAVE_PTHREADS < 7
13673 status = pthread_attr_setdetachstate(&attr, &detach);
13674 if( status < 0 ) status = errno;
13676 status = pthread_attr_setdetachstate(&attr, detach);
13678 if( status ) return status;
13679 status = pthread_create( &t, &attr, task, NULL );
13680 #if HAVE_PTHREADS < 7
13681 if( status < 0 ) status = errno;
13683 if( status ) return status;
13685 /* Draft 4 pthreads */
13686 status = pthread_create( &t, pthread_attr_default, task, NULL );
13687 if( status ) return errno;
13689 /* give thread a chance to complete */
13690 /* it should remain joinable and hence detachable */
13693 status = pthread_detach( &t );
13694 if( status ) return errno;
13697 #ifdef HAVE_LINUX_THREADS
13698 pthread_kill_other_threads_np();
13706 if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13708 ol_cv_pthread_lc_r=yes
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13713 ol_cv_pthread_lc_r=no
13724 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13726 if test $ol_cv_pthread_lc_r = yes ; then
13727 ol_link_pthreads="-lc_r"
13728 ol_link_threads=posix
13733 # Pthread try link: -threads (ol_cv_pthread_threads)
13734 if test "$ol_link_threads" = no ; then
13736 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13737 echo "configure:13738: checking for pthread link with -threads" >&5
13738 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13739 echo $ac_n "(cached) $ac_c" 1>&6
13744 LIBS="-threads $LIBS"
13746 if test "$cross_compiling" = yes; then
13747 cat > conftest.$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13750 /* pthread test headers */
13751 #include <pthread.h>
13752 #if HAVE_PTHREADS < 7
13756 #define NULL (void*)0
13759 static void *task(p)
13762 return (void *) (p == NULL);
13767 /* pthread test function */
13768 #ifndef PTHREAD_CREATE_DETACHED
13769 #define PTHREAD_CREATE_DETACHED 1
13773 int detach = PTHREAD_CREATE_DETACHED;
13775 #if HAVE_PTHREADS > 4
13776 /* Final pthreads */
13777 pthread_attr_t attr;
13779 status = pthread_attr_init(&attr);
13780 if( status ) return status;
13782 #if HAVE_PTHREADS < 7
13783 status = pthread_attr_setdetachstate(&attr, &detach);
13784 if( status < 0 ) status = errno;
13786 status = pthread_attr_setdetachstate(&attr, detach);
13788 if( status ) return status;
13789 status = pthread_create( &t, &attr, task, NULL );
13790 #if HAVE_PTHREADS < 7
13791 if( status < 0 ) status = errno;
13793 if( status ) return status;
13795 /* Draft 4 pthreads */
13796 status = pthread_create( &t, pthread_attr_default, task, NULL );
13797 if( status ) return errno;
13799 /* give thread a chance to complete */
13800 /* it should remain joinable and hence detachable */
13803 status = pthread_detach( &t );
13804 if( status ) return errno;
13807 #ifdef HAVE_LINUX_THREADS
13808 pthread_kill_other_threads_np();
13815 if { (eval echo configure:13816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 ol_cv_pthread_threads=yes
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13822 ol_cv_pthread_threads=no
13826 cat > conftest.$ac_ext <<EOF
13827 #line 13828 "configure"
13828 #include "confdefs.h"
13829 /* pthread test headers */
13830 #include <pthread.h>
13831 #if HAVE_PTHREADS < 7
13835 #define NULL (void*)0
13838 static void *task(p)
13841 return (void *) (p == NULL);
13845 int main(argc, argv)
13850 /* pthread test function */
13851 #ifndef PTHREAD_CREATE_DETACHED
13852 #define PTHREAD_CREATE_DETACHED 1
13856 int detach = PTHREAD_CREATE_DETACHED;
13858 #if HAVE_PTHREADS > 4
13859 /* Final pthreads */
13860 pthread_attr_t attr;
13862 status = pthread_attr_init(&attr);
13863 if( status ) return status;
13865 #if HAVE_PTHREADS < 7
13866 status = pthread_attr_setdetachstate(&attr, &detach);
13867 if( status < 0 ) status = errno;
13869 status = pthread_attr_setdetachstate(&attr, detach);
13871 if( status ) return status;
13872 status = pthread_create( &t, &attr, task, NULL );
13873 #if HAVE_PTHREADS < 7
13874 if( status < 0 ) status = errno;
13876 if( status ) return status;
13878 /* Draft 4 pthreads */
13879 status = pthread_create( &t, pthread_attr_default, task, NULL );
13880 if( status ) return errno;
13882 /* give thread a chance to complete */
13883 /* it should remain joinable and hence detachable */
13886 status = pthread_detach( &t );
13887 if( status ) return errno;
13890 #ifdef HAVE_LINUX_THREADS
13891 pthread_kill_other_threads_np();
13899 if { (eval echo configure:13900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13901 ol_cv_pthread_threads=yes
13903 echo "configure: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13906 ol_cv_pthread_threads=no
13917 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13919 if test $ol_cv_pthread_threads = yes ; then
13920 ol_link_pthreads="-threads"
13921 ol_link_threads=posix
13926 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13927 if test "$ol_link_threads" = no ; then
13928 # try -lpthreads -lmach -lexc -lc_r
13929 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13930 echo "configure:13931: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13931 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13932 echo $ac_n "(cached) $ac_c" 1>&6
13937 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13939 if test "$cross_compiling" = yes; then
13940 cat > conftest.$ac_ext <<EOF
13941 #line 13942 "configure"
13942 #include "confdefs.h"
13943 /* pthread test headers */
13944 #include <pthread.h>
13945 #if HAVE_PTHREADS < 7
13949 #define NULL (void*)0
13952 static void *task(p)
13955 return (void *) (p == NULL);
13960 /* pthread test function */
13961 #ifndef PTHREAD_CREATE_DETACHED
13962 #define PTHREAD_CREATE_DETACHED 1
13966 int detach = PTHREAD_CREATE_DETACHED;
13968 #if HAVE_PTHREADS > 4
13969 /* Final pthreads */
13970 pthread_attr_t attr;
13972 status = pthread_attr_init(&attr);
13973 if( status ) return status;
13975 #if HAVE_PTHREADS < 7
13976 status = pthread_attr_setdetachstate(&attr, &detach);
13977 if( status < 0 ) status = errno;
13979 status = pthread_attr_setdetachstate(&attr, detach);
13981 if( status ) return status;
13982 status = pthread_create( &t, &attr, task, NULL );
13983 #if HAVE_PTHREADS < 7
13984 if( status < 0 ) status = errno;
13986 if( status ) return status;
13988 /* Draft 4 pthreads */
13989 status = pthread_create( &t, pthread_attr_default, task, NULL );
13990 if( status ) return errno;
13992 /* give thread a chance to complete */
13993 /* it should remain joinable and hence detachable */
13996 status = pthread_detach( &t );
13997 if( status ) return errno;
14000 #ifdef HAVE_LINUX_THREADS
14001 pthread_kill_other_threads_np();
14008 if { (eval echo configure:14009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14010 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14012 echo "configure: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14015 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14019 cat > conftest.$ac_ext <<EOF
14020 #line 14021 "configure"
14021 #include "confdefs.h"
14022 /* pthread test headers */
14023 #include <pthread.h>
14024 #if HAVE_PTHREADS < 7
14028 #define NULL (void*)0
14031 static void *task(p)
14034 return (void *) (p == NULL);
14038 int main(argc, argv)
14043 /* pthread test function */
14044 #ifndef PTHREAD_CREATE_DETACHED
14045 #define PTHREAD_CREATE_DETACHED 1
14049 int detach = PTHREAD_CREATE_DETACHED;
14051 #if HAVE_PTHREADS > 4
14052 /* Final pthreads */
14053 pthread_attr_t attr;
14055 status = pthread_attr_init(&attr);
14056 if( status ) return status;
14058 #if HAVE_PTHREADS < 7
14059 status = pthread_attr_setdetachstate(&attr, &detach);
14060 if( status < 0 ) status = errno;
14062 status = pthread_attr_setdetachstate(&attr, detach);
14064 if( status ) return status;
14065 status = pthread_create( &t, &attr, task, NULL );
14066 #if HAVE_PTHREADS < 7
14067 if( status < 0 ) status = errno;
14069 if( status ) return status;
14071 /* Draft 4 pthreads */
14072 status = pthread_create( &t, pthread_attr_default, task, NULL );
14073 if( status ) return errno;
14075 /* give thread a chance to complete */
14076 /* it should remain joinable and hence detachable */
14079 status = pthread_detach( &t );
14080 if( status ) return errno;
14083 #ifdef HAVE_LINUX_THREADS
14084 pthread_kill_other_threads_np();
14092 if { (eval echo configure:14093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14094 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14096 echo "configure: failed program was:" >&5
14097 cat conftest.$ac_ext >&5
14099 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14110 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14112 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14113 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14114 ol_link_threads=posix
14118 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14119 if test "$ol_link_threads" = no ; then
14120 # try -lpthreads -lmach -lexc
14121 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14122 echo "configure:14123: checking for pthread link with -lpthreads -lmach -lexc" >&5
14123 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14124 echo $ac_n "(cached) $ac_c" 1>&6
14129 LIBS="-lpthreads -lmach -lexc $LIBS"
14131 if test "$cross_compiling" = yes; then
14132 cat > conftest.$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14135 /* pthread test headers */
14136 #include <pthread.h>
14137 #if HAVE_PTHREADS < 7
14141 #define NULL (void*)0
14144 static void *task(p)
14147 return (void *) (p == NULL);
14152 /* pthread test function */
14153 #ifndef PTHREAD_CREATE_DETACHED
14154 #define PTHREAD_CREATE_DETACHED 1
14158 int detach = PTHREAD_CREATE_DETACHED;
14160 #if HAVE_PTHREADS > 4
14161 /* Final pthreads */
14162 pthread_attr_t attr;
14164 status = pthread_attr_init(&attr);
14165 if( status ) return status;
14167 #if HAVE_PTHREADS < 7
14168 status = pthread_attr_setdetachstate(&attr, &detach);
14169 if( status < 0 ) status = errno;
14171 status = pthread_attr_setdetachstate(&attr, detach);
14173 if( status ) return status;
14174 status = pthread_create( &t, &attr, task, NULL );
14175 #if HAVE_PTHREADS < 7
14176 if( status < 0 ) status = errno;
14178 if( status ) return status;
14180 /* Draft 4 pthreads */
14181 status = pthread_create( &t, pthread_attr_default, task, NULL );
14182 if( status ) return errno;
14184 /* give thread a chance to complete */
14185 /* it should remain joinable and hence detachable */
14188 status = pthread_detach( &t );
14189 if( status ) return errno;
14192 #ifdef HAVE_LINUX_THREADS
14193 pthread_kill_other_threads_np();
14200 if { (eval echo configure:14201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14202 ol_cv_pthread_lpthreads_lmach_lexc=yes
14204 echo "configure: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14207 ol_cv_pthread_lpthreads_lmach_lexc=no
14211 cat > conftest.$ac_ext <<EOF
14212 #line 14213 "configure"
14213 #include "confdefs.h"
14214 /* pthread test headers */
14215 #include <pthread.h>
14216 #if HAVE_PTHREADS < 7
14220 #define NULL (void*)0
14223 static void *task(p)
14226 return (void *) (p == NULL);
14230 int main(argc, argv)
14235 /* pthread test function */
14236 #ifndef PTHREAD_CREATE_DETACHED
14237 #define PTHREAD_CREATE_DETACHED 1
14241 int detach = PTHREAD_CREATE_DETACHED;
14243 #if HAVE_PTHREADS > 4
14244 /* Final pthreads */
14245 pthread_attr_t attr;
14247 status = pthread_attr_init(&attr);
14248 if( status ) return status;
14250 #if HAVE_PTHREADS < 7
14251 status = pthread_attr_setdetachstate(&attr, &detach);
14252 if( status < 0 ) status = errno;
14254 status = pthread_attr_setdetachstate(&attr, detach);
14256 if( status ) return status;
14257 status = pthread_create( &t, &attr, task, NULL );
14258 #if HAVE_PTHREADS < 7
14259 if( status < 0 ) status = errno;
14261 if( status ) return status;
14263 /* Draft 4 pthreads */
14264 status = pthread_create( &t, pthread_attr_default, task, NULL );
14265 if( status ) return errno;
14267 /* give thread a chance to complete */
14268 /* it should remain joinable and hence detachable */
14271 status = pthread_detach( &t );
14272 if( status ) return errno;
14275 #ifdef HAVE_LINUX_THREADS
14276 pthread_kill_other_threads_np();
14284 if { (eval echo configure:14285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14286 ol_cv_pthread_lpthreads_lmach_lexc=yes
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14291 ol_cv_pthread_lpthreads_lmach_lexc=no
14302 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14304 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14305 ol_link_pthreads="-lpthreads -lmach -lexc"
14306 ol_link_threads=posix
14310 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14311 if test "$ol_link_threads" = no ; then
14312 # try -lpthreads -lexc
14313 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14314 echo "configure:14315: checking for pthread link with -lpthreads -lexc" >&5
14315 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14316 echo $ac_n "(cached) $ac_c" 1>&6
14321 LIBS="-lpthreads -lexc $LIBS"
14323 if test "$cross_compiling" = yes; then
14324 cat > conftest.$ac_ext <<EOF
14325 #line 14326 "configure"
14326 #include "confdefs.h"
14327 /* pthread test headers */
14328 #include <pthread.h>
14329 #if HAVE_PTHREADS < 7
14333 #define NULL (void*)0
14336 static void *task(p)
14339 return (void *) (p == NULL);
14344 /* pthread test function */
14345 #ifndef PTHREAD_CREATE_DETACHED
14346 #define PTHREAD_CREATE_DETACHED 1
14350 int detach = PTHREAD_CREATE_DETACHED;
14352 #if HAVE_PTHREADS > 4
14353 /* Final pthreads */
14354 pthread_attr_t attr;
14356 status = pthread_attr_init(&attr);
14357 if( status ) return status;
14359 #if HAVE_PTHREADS < 7
14360 status = pthread_attr_setdetachstate(&attr, &detach);
14361 if( status < 0 ) status = errno;
14363 status = pthread_attr_setdetachstate(&attr, detach);
14365 if( status ) return status;
14366 status = pthread_create( &t, &attr, task, NULL );
14367 #if HAVE_PTHREADS < 7
14368 if( status < 0 ) status = errno;
14370 if( status ) return status;
14372 /* Draft 4 pthreads */
14373 status = pthread_create( &t, pthread_attr_default, task, NULL );
14374 if( status ) return errno;
14376 /* give thread a chance to complete */
14377 /* it should remain joinable and hence detachable */
14380 status = pthread_detach( &t );
14381 if( status ) return errno;
14384 #ifdef HAVE_LINUX_THREADS
14385 pthread_kill_other_threads_np();
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394 ol_cv_pthread_lpthreads_lexc=yes
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14399 ol_cv_pthread_lpthreads_lexc=no
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406 /* pthread test headers */
14407 #include <pthread.h>
14408 #if HAVE_PTHREADS < 7
14412 #define NULL (void*)0
14415 static void *task(p)
14418 return (void *) (p == NULL);
14422 int main(argc, argv)
14427 /* pthread test function */
14428 #ifndef PTHREAD_CREATE_DETACHED
14429 #define PTHREAD_CREATE_DETACHED 1
14433 int detach = PTHREAD_CREATE_DETACHED;
14435 #if HAVE_PTHREADS > 4
14436 /* Final pthreads */
14437 pthread_attr_t attr;
14439 status = pthread_attr_init(&attr);
14440 if( status ) return status;
14442 #if HAVE_PTHREADS < 7
14443 status = pthread_attr_setdetachstate(&attr, &detach);
14444 if( status < 0 ) status = errno;
14446 status = pthread_attr_setdetachstate(&attr, detach);
14448 if( status ) return status;
14449 status = pthread_create( &t, &attr, task, NULL );
14450 #if HAVE_PTHREADS < 7
14451 if( status < 0 ) status = errno;
14453 if( status ) return status;
14455 /* Draft 4 pthreads */
14456 status = pthread_create( &t, pthread_attr_default, task, NULL );
14457 if( status ) return errno;
14459 /* give thread a chance to complete */
14460 /* it should remain joinable and hence detachable */
14463 status = pthread_detach( &t );
14464 if( status ) return errno;
14467 #ifdef HAVE_LINUX_THREADS
14468 pthread_kill_other_threads_np();
14476 if { (eval echo configure:14477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14478 ol_cv_pthread_lpthreads_lexc=yes
14480 echo "configure: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14483 ol_cv_pthread_lpthreads_lexc=no
14494 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14496 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14497 ol_link_pthreads="-lpthreads -lexc"
14498 ol_link_threads=posix
14503 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14504 if test "$ol_link_threads" = no ; then
14506 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14507 echo "configure:14508: checking for pthread link with -lpthreads" >&5
14508 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
14514 LIBS="-lpthreads $LIBS"
14516 if test "$cross_compiling" = yes; then
14517 cat > conftest.$ac_ext <<EOF
14518 #line 14519 "configure"
14519 #include "confdefs.h"
14520 /* pthread test headers */
14521 #include <pthread.h>
14522 #if HAVE_PTHREADS < 7
14526 #define NULL (void*)0
14529 static void *task(p)
14532 return (void *) (p == NULL);
14537 /* pthread test function */
14538 #ifndef PTHREAD_CREATE_DETACHED
14539 #define PTHREAD_CREATE_DETACHED 1
14543 int detach = PTHREAD_CREATE_DETACHED;
14545 #if HAVE_PTHREADS > 4
14546 /* Final pthreads */
14547 pthread_attr_t attr;
14549 status = pthread_attr_init(&attr);
14550 if( status ) return status;
14552 #if HAVE_PTHREADS < 7
14553 status = pthread_attr_setdetachstate(&attr, &detach);
14554 if( status < 0 ) status = errno;
14556 status = pthread_attr_setdetachstate(&attr, detach);
14558 if( status ) return status;
14559 status = pthread_create( &t, &attr, task, NULL );
14560 #if HAVE_PTHREADS < 7
14561 if( status < 0 ) status = errno;
14563 if( status ) return status;
14565 /* Draft 4 pthreads */
14566 status = pthread_create( &t, pthread_attr_default, task, NULL );
14567 if( status ) return errno;
14569 /* give thread a chance to complete */
14570 /* it should remain joinable and hence detachable */
14573 status = pthread_detach( &t );
14574 if( status ) return errno;
14577 #ifdef HAVE_LINUX_THREADS
14578 pthread_kill_other_threads_np();
14585 if { (eval echo configure:14586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14587 ol_cv_pthread_lib_lpthreads=yes
14589 echo "configure: failed program was:" >&5
14590 cat conftest.$ac_ext >&5
14592 ol_cv_pthread_lib_lpthreads=no
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14599 /* pthread test headers */
14600 #include <pthread.h>
14601 #if HAVE_PTHREADS < 7
14605 #define NULL (void*)0
14608 static void *task(p)
14611 return (void *) (p == NULL);
14615 int main(argc, argv)
14620 /* pthread test function */
14621 #ifndef PTHREAD_CREATE_DETACHED
14622 #define PTHREAD_CREATE_DETACHED 1
14626 int detach = PTHREAD_CREATE_DETACHED;
14628 #if HAVE_PTHREADS > 4
14629 /* Final pthreads */
14630 pthread_attr_t attr;
14632 status = pthread_attr_init(&attr);
14633 if( status ) return status;
14635 #if HAVE_PTHREADS < 7
14636 status = pthread_attr_setdetachstate(&attr, &detach);
14637 if( status < 0 ) status = errno;
14639 status = pthread_attr_setdetachstate(&attr, detach);
14641 if( status ) return status;
14642 status = pthread_create( &t, &attr, task, NULL );
14643 #if HAVE_PTHREADS < 7
14644 if( status < 0 ) status = errno;
14646 if( status ) return status;
14648 /* Draft 4 pthreads */
14649 status = pthread_create( &t, pthread_attr_default, task, NULL );
14650 if( status ) return errno;
14652 /* give thread a chance to complete */
14653 /* it should remain joinable and hence detachable */
14656 status = pthread_detach( &t );
14657 if( status ) return errno;
14660 #ifdef HAVE_LINUX_THREADS
14661 pthread_kill_other_threads_np();
14669 if { (eval echo configure:14670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14671 ol_cv_pthread_lib_lpthreads=yes
14673 echo "configure: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14676 ol_cv_pthread_lib_lpthreads=no
14687 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14689 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14690 ol_link_pthreads="-lpthreads"
14691 ol_link_threads=posix
14696 if test $ol_link_threads != no ; then
14697 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14699 save_CPPFLAGS="$CPPFLAGS"
14701 LIBS="$LTHREAD_LIBS $LIBS"
14703 for ac_func in sched_yield pthread_yield thr_yield
14705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14706 echo "configure:14707: checking for $ac_func" >&5
14707 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14708 echo $ac_n "(cached) $ac_c" 1>&6
14710 cat > conftest.$ac_ext <<EOF
14711 #line 14712 "configure"
14712 #include "confdefs.h"
14713 /* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char $ac_func(); below. */
14715 #include <assert.h>
14716 /* Override any gcc2 internal prototype to avoid an error. */
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14724 /* The GNU C library defines this for functions which it implements
14725 to always fail with ENOSYS. Some functions are actually named
14726 something starting with __ and the normal name is an alias. */
14727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14735 if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14737 eval "ac_cv_func_$ac_func=yes"
14739 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5
14742 eval "ac_cv_func_$ac_func=no"
14747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14748 echo "$ac_t""yes" 1>&6
14749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14750 cat >> confdefs.h <<EOF
14751 #define $ac_tr_func 1
14755 echo "$ac_t""no" 1>&6
14760 if test $ac_cv_func_sched_yield = no -a \
14761 $ac_cv_func_pthread_yield = no -a \
14762 $ac_cv_func_thr_yield = no ; then
14763 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14764 echo "configure:14765: checking for sched_yield in -lrt" >&5
14765 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14767 echo $ac_n "(cached) $ac_c" 1>&6
14769 ac_save_LIBS="$LIBS"
14771 cat > conftest.$ac_ext <<EOF
14772 #line 14773 "configure"
14773 #include "confdefs.h"
14774 /* Override any gcc2 internal prototype to avoid an error. */
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777 char sched_yield();
14783 if { (eval echo configure:14784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14785 eval "ac_cv_lib_$ac_lib_var=yes"
14787 echo "configure: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14790 eval "ac_cv_lib_$ac_lib_var=no"
14793 LIBS="$ac_save_LIBS"
14796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14797 echo "$ac_t""yes" 1>&6
14798 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14799 cat >> confdefs.h <<\EOF
14800 #define HAVE_SCHED_YIELD 1
14803 ac_cv_func_sched_yield=yes
14805 echo "$ac_t""no" 1>&6
14806 ac_cv_func_sched_yield=no
14810 if test $ac_cv_func_sched_yield = no -a \
14811 $ac_cv_func_pthread_yield = no -a \
14812 "$ac_cv_func_thr_yield" = no ; then
14813 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14816 for ac_func in pthread_kill pthread_rwlock_destroy
14818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14819 echo "configure:14820: checking for $ac_func" >&5
14820 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14821 echo $ac_n "(cached) $ac_c" 1>&6
14823 cat > conftest.$ac_ext <<EOF
14824 #line 14825 "configure"
14825 #include "confdefs.h"
14826 /* System header to define __stub macros and hopefully few prototypes,
14827 which can conflict with char $ac_func(); below. */
14828 #include <assert.h>
14829 /* Override any gcc2 internal prototype to avoid an error. */
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14837 /* The GNU C library defines this for functions which it implements
14838 to always fail with ENOSYS. Some functions are actually named
14839 something starting with __ and the normal name is an alias. */
14840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14848 if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14850 eval "ac_cv_func_$ac_func=yes"
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14855 eval "ac_cv_func_$ac_func=no"
14860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14861 echo "$ac_t""yes" 1>&6
14862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14863 cat >> confdefs.h <<EOF
14864 #define $ac_tr_func 1
14868 echo "$ac_t""no" 1>&6
14873 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14874 echo "configure:14875: checking for pthread_detach with <pthread.h>" >&5
14875 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14883 #include <pthread.h>
14885 #define NULL (void*)0
14889 pthread_detach(NULL);
14892 if { (eval echo configure:14893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14894 ol_cv_func_pthread_detach=yes
14896 echo "configure: failed program was:" >&5
14897 cat conftest.$ac_ext >&5
14899 ol_cv_func_pthread_detach=no
14905 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14907 if test $ol_cv_func_pthread_detach = no ; then
14908 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14911 cat >> confdefs.h <<\EOF
14912 #define HAVE_PTHREAD_DETACH 1
14917 pthread_setconcurrency \
14918 pthread_getconcurrency \
14919 thr_setconcurrency \
14920 thr_getconcurrency \
14923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14924 echo "configure:14925: checking for $ac_func" >&5
14925 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14926 echo $ac_n "(cached) $ac_c" 1>&6
14928 cat > conftest.$ac_ext <<EOF
14929 #line 14930 "configure"
14930 #include "confdefs.h"
14931 /* System header to define __stub macros and hopefully few prototypes,
14932 which can conflict with char $ac_func(); below. */
14933 #include <assert.h>
14934 /* Override any gcc2 internal prototype to avoid an error. */
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14942 /* The GNU C library defines this for functions which it implements
14943 to always fail with ENOSYS. Some functions are actually named
14944 something starting with __ and the normal name is an alias. */
14945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14953 if { (eval echo configure:14954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14955 eval "ac_cv_func_$ac_func=yes"
14957 echo "configure: failed program was:" >&5
14958 cat conftest.$ac_ext >&5
14960 eval "ac_cv_func_$ac_func=no"
14965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14966 echo "$ac_t""yes" 1>&6
14967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14968 cat >> confdefs.h <<EOF
14969 #define $ac_tr_func 1
14973 echo "$ac_t""no" 1>&6
14979 for ac_func in pthread_kill_other_threads_np
14981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14982 echo "configure:14983: checking for $ac_func" >&5
14983 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14984 echo $ac_n "(cached) $ac_c" 1>&6
14986 cat > conftest.$ac_ext <<EOF
14987 #line 14988 "configure"
14988 #include "confdefs.h"
14989 /* System header to define __stub macros and hopefully few prototypes,
14990 which can conflict with char $ac_func(); below. */
14991 #include <assert.h>
14992 /* Override any gcc2 internal prototype to avoid an error. */
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
15000 /* The GNU C library defines this for functions which it implements
15001 to always fail with ENOSYS. Some functions are actually named
15002 something starting with __ and the normal name is an alias. */
15003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15013 eval "ac_cv_func_$ac_func=yes"
15015 echo "configure: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15018 eval "ac_cv_func_$ac_func=no"
15023 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15024 echo "$ac_t""yes" 1>&6
15025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15026 cat >> confdefs.h <<EOF
15027 #define $ac_tr_func 1
15031 echo "$ac_t""no" 1>&6
15035 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15036 echo "configure:15037: checking for LinuxThreads implementation" >&5
15037 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15040 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15043 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15048 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15049 echo "configure:15050: checking for LinuxThreads consistency" >&5
15050 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15051 echo $ac_n "(cached) $ac_c" 1>&6
15054 if test $ol_cv_header_linux_threads = yes -a \
15055 $ol_cv_sys_linux_threads = yes; then
15056 ol_cv_linux_threads=yes
15057 elif test $ol_cv_header_linux_threads = no -a \
15058 $ol_cv_sys_linux_threads = no; then
15059 ol_cv_linux_threads=no
15061 ol_cv_linux_threads=error
15066 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15069 if test $ol_cv_linux_threads = error; then
15070 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15073 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15074 echo "configure:15075: checking if pthread_create() works" >&5
15075 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15076 echo $ac_n "(cached) $ac_c" 1>&6
15079 if test "$cross_compiling" = yes; then
15080 ol_cv_pthread_create_works=yes
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 /* pthread test headers */
15086 #include <pthread.h>
15087 #if HAVE_PTHREADS < 7
15091 #define NULL (void*)0
15094 static void *task(p)
15097 return (void *) (p == NULL);
15101 int main(argc, argv)
15106 /* pthread test function */
15107 #ifndef PTHREAD_CREATE_DETACHED
15108 #define PTHREAD_CREATE_DETACHED 1
15112 int detach = PTHREAD_CREATE_DETACHED;
15114 #if HAVE_PTHREADS > 4
15115 /* Final pthreads */
15116 pthread_attr_t attr;
15118 status = pthread_attr_init(&attr);
15119 if( status ) return status;
15121 #if HAVE_PTHREADS < 7
15122 status = pthread_attr_setdetachstate(&attr, &detach);
15123 if( status < 0 ) status = errno;
15125 status = pthread_attr_setdetachstate(&attr, detach);
15127 if( status ) return status;
15128 status = pthread_create( &t, &attr, task, NULL );
15129 #if HAVE_PTHREADS < 7
15130 if( status < 0 ) status = errno;
15132 if( status ) return status;
15134 /* Draft 4 pthreads */
15135 status = pthread_create( &t, pthread_attr_default, task, NULL );
15136 if( status ) return errno;
15138 /* give thread a chance to complete */
15139 /* it should remain joinable and hence detachable */
15142 status = pthread_detach( &t );
15143 if( status ) return errno;
15146 #ifdef HAVE_LINUX_THREADS
15147 pthread_kill_other_threads_np();
15155 if { (eval echo configure:15156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15157 ol_cv_pthread_create_works=yes
15159 echo "configure: failed program was:" >&5
15160 cat conftest.$ac_ext >&5
15162 ol_cv_pthread_create_works=no
15169 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15171 if test $ol_cv_pthread_create_works = no ; then
15172 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15175 if test $ol_with_yielding_select = auto ; then
15176 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15177 echo "configure:15178: checking if select yields when using pthreads" >&5
15178 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15179 echo $ac_n "(cached) $ac_c" 1>&6
15182 if test "$cross_compiling" = yes; then
15183 ol_cv_pthread_select_yields=cross
15185 cat > conftest.$ac_ext <<EOF
15186 #line 15187 "configure"
15187 #include "confdefs.h"
15189 #include <sys/types.h>
15190 #include <sys/time.h>
15191 #include <unistd.h>
15192 #include <pthread.h>
15194 #define NULL (void*) 0
15197 static int fildes[2];
15199 static void *task(p)
15211 FD_SET(fildes[0], &rfds);
15213 /* we're not interested in any fds */
15214 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15221 exit(0); /* if we exit here, the select blocked the whole process */
15224 int main(argc, argv)
15230 /* create a pipe to select */
15231 if(pipe(&fildes[0])) {
15236 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15237 (void) pthread_setconcurrency(2);
15239 #ifdef HAVE_THR_SETCONCURRENCY
15240 /* Set Solaris LWP concurrency to 2 */
15241 thr_setconcurrency(2);
15245 #if HAVE_PTHREADS < 6
15246 pthread_create(&t, pthread_attr_default, task, NULL);
15248 pthread_create(&t, NULL, task, NULL);
15251 /* make sure task runs first */
15254 #elif defined( HAVE_SCHED_YIELD )
15256 #elif defined( HAVE_PTHREAD_YIELD )
15263 if { (eval echo configure:15264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15265 ol_cv_pthread_select_yields=no
15267 echo "configure: failed program was:" >&5
15268 cat conftest.$ac_ext >&5
15270 ol_cv_pthread_select_yields=yes
15277 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15279 if test $ol_cv_pthread_select_yields = cross ; then
15280 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15283 if test $ol_cv_pthread_select_yields = yes ; then
15284 ol_with_yielding_select=yes
15288 CPPFLAGS="$save_CPPFLAGS"
15291 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15295 if test $ol_with_threads = posix ; then
15296 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15300 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15301 -o $ol_with_threads = mach ; then
15303 for ac_hdr in mach/cthreads.h cthreads.h
15305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15307 echo "configure:15308: checking for $ac_hdr" >&5
15308 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15311 cat > conftest.$ac_ext <<EOF
15312 #line 15313 "configure"
15313 #include "confdefs.h"
15316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15317 { (eval echo configure:15318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15319 if test -z "$ac_err"; then
15321 eval "ac_cv_header_$ac_safe=yes"
15324 echo "configure: failed program was:" >&5
15325 cat conftest.$ac_ext >&5
15327 eval "ac_cv_header_$ac_safe=no"
15331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15332 echo "$ac_t""yes" 1>&6
15333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15334 cat >> confdefs.h <<EOF
15335 #define $ac_tr_hdr 1
15339 echo "$ac_t""no" 1>&6
15343 if test $ac_cv_header_mach_cthreads_h = yes ; then
15344 ol_with_threads=found
15346 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15347 echo "configure:15348: checking for cthread_fork" >&5
15348 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15349 echo $ac_n "(cached) $ac_c" 1>&6
15351 cat > conftest.$ac_ext <<EOF
15352 #line 15353 "configure"
15353 #include "confdefs.h"
15354 /* System header to define __stub macros and hopefully few prototypes,
15355 which can conflict with char cthread_fork(); below. */
15356 #include <assert.h>
15357 /* Override any gcc2 internal prototype to avoid an error. */
15358 /* We use char because int might match the return type of a gcc2
15359 builtin and then its argument prototype would still apply. */
15360 char cthread_fork();
15365 /* The GNU C library defines this for functions which it implements
15366 to always fail with ENOSYS. Some functions are actually named
15367 something starting with __ and the normal name is an alias. */
15368 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15376 if { (eval echo configure:15377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15378 eval "ac_cv_func_cthread_fork=yes"
15380 echo "configure: failed program was:" >&5
15381 cat conftest.$ac_ext >&5
15383 eval "ac_cv_func_cthread_fork=no"
15388 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15389 echo "$ac_t""yes" 1>&6
15390 ol_link_threads=yes
15392 echo "$ac_t""no" 1>&6
15396 if test $ol_link_threads = no ; then
15397 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15398 echo "configure:15399: checking for cthread_fork with -all_load" >&5
15399 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15404 LIBS="-all_load $LIBS"
15405 cat > conftest.$ac_ext <<EOF
15406 #line 15407 "configure"
15407 #include "confdefs.h"
15408 #include <mach/cthreads.h>
15411 cthread_fork((void *)0, (void *)0);
15415 if { (eval echo configure:15416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15417 ol_cv_cthread_all_load=yes
15419 echo "configure: failed program was:" >&5
15420 cat conftest.$ac_ext >&5
15422 ol_cv_cthread_all_load=no
15429 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15431 if test $ol_cv_cthread_all_load = yes ; then
15432 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15433 ol_link_threads=mach
15434 ol_with_threads=found
15438 elif test $ac_cv_header_cthreads_h = yes ; then
15440 ol_with_threads=found
15443 LIBS="$LIBS -lthreads"
15444 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15445 echo "configure:15446: checking for cthread_fork" >&5
15446 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
15449 cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure"
15451 #include "confdefs.h"
15452 /* System header to define __stub macros and hopefully few prototypes,
15453 which can conflict with char cthread_fork(); below. */
15454 #include <assert.h>
15455 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15458 char cthread_fork();
15463 /* The GNU C library defines this for functions which it implements
15464 to always fail with ENOSYS. Some functions are actually named
15465 something starting with __ and the normal name is an alias. */
15466 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15474 if { (eval echo configure:15475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15476 eval "ac_cv_func_cthread_fork=yes"
15478 echo "configure: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15481 eval "ac_cv_func_cthread_fork=no"
15486 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15487 echo "$ac_t""yes" 1>&6
15488 ol_link_threads=yes
15490 echo "$ac_t""no" 1>&6
15495 if test $ol_link_threads = yes ; then
15496 LTHREAD_LIBS="-lthreads"
15497 ol_link_threads=mach
15498 ol_with_threads=found
15500 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15503 elif test $ol_with_threads = mach ; then
15504 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15507 if test $ol_link_threads = mach ; then
15508 cat >> confdefs.h <<\EOF
15509 #define HAVE_MACH_CTHREADS 1
15512 elif test $ol_with_threads = found ; then
15513 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15517 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15518 -o $ol_with_threads = pth ; then
15520 for ac_hdr in pth.h
15522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15524 echo "configure:15525: checking for $ac_hdr" >&5
15525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15526 echo $ac_n "(cached) $ac_c" 1>&6
15528 cat > conftest.$ac_ext <<EOF
15529 #line 15530 "configure"
15530 #include "confdefs.h"
15533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15534 { (eval echo configure:15535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15536 if test -z "$ac_err"; then
15538 eval "ac_cv_header_$ac_safe=yes"
15541 echo "configure: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15544 eval "ac_cv_header_$ac_safe=no"
15548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15549 echo "$ac_t""yes" 1>&6
15550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15551 cat >> confdefs.h <<EOF
15552 #define $ac_tr_hdr 1
15556 echo "$ac_t""no" 1>&6
15561 if test $ac_cv_header_pth_h = yes ; then
15562 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15563 echo "configure:15564: checking for pth_version in -lpth" >&5
15564 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15566 echo $ac_n "(cached) $ac_c" 1>&6
15568 ac_save_LIBS="$LIBS"
15570 cat > conftest.$ac_ext <<EOF
15571 #line 15572 "configure"
15572 #include "confdefs.h"
15573 /* Override any gcc2 internal prototype to avoid an error. */
15574 /* We use char because int might match the return type of a gcc2
15575 builtin and then its argument prototype would still apply. */
15576 char pth_version();
15582 if { (eval echo configure:15583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15584 eval "ac_cv_lib_$ac_lib_var=yes"
15586 echo "configure: failed program was:" >&5
15587 cat conftest.$ac_ext >&5
15589 eval "ac_cv_lib_$ac_lib_var=no"
15592 LIBS="$ac_save_LIBS"
15595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15596 echo "$ac_t""yes" 1>&6
15599 echo "$ac_t""no" 1>&6
15604 if test $have_pth = yes ; then
15605 cat >> confdefs.h <<\EOF
15606 #define HAVE_GNU_PTH 1
15609 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15610 ol_link_threads=pth
15611 ol_with_threads=found
15613 if test $ol_with_yielding_select = auto ; then
15614 ol_with_yielding_select=yes
15620 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15621 -o $ol_with_threads = lwp ; then
15623 for ac_hdr in thread.h synch.h
15625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15627 echo "configure:15628: checking for $ac_hdr" >&5
15628 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15629 echo $ac_n "(cached) $ac_c" 1>&6
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15637 { (eval echo configure:15638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15639 if test -z "$ac_err"; then
15641 eval "ac_cv_header_$ac_safe=yes"
15644 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15647 eval "ac_cv_header_$ac_safe=no"
15651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15652 echo "$ac_t""yes" 1>&6
15653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15654 cat >> confdefs.h <<EOF
15655 #define $ac_tr_hdr 1
15659 echo "$ac_t""no" 1>&6
15663 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15664 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15665 echo "configure:15666: checking for thr_create in -lthread" >&5
15666 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15668 echo $ac_n "(cached) $ac_c" 1>&6
15670 ac_save_LIBS="$LIBS"
15671 LIBS="-lthread $LIBS"
15672 cat > conftest.$ac_ext <<EOF
15673 #line 15674 "configure"
15674 #include "confdefs.h"
15675 /* Override any gcc2 internal prototype to avoid an error. */
15676 /* We use char because int might match the return type of a gcc2
15677 builtin and then its argument prototype would still apply. */
15684 if { (eval echo configure:15685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15686 eval "ac_cv_lib_$ac_lib_var=yes"
15688 echo "configure: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15691 eval "ac_cv_lib_$ac_lib_var=no"
15694 LIBS="$ac_save_LIBS"
15697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15698 echo "$ac_t""yes" 1>&6
15701 echo "$ac_t""no" 1>&6
15706 if test $have_thr = yes ; then
15707 cat >> confdefs.h <<\EOF
15711 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15712 ol_link_threads=thr
15714 if test $ol_with_yielding_select = auto ; then
15715 ol_with_yielding_select=yes
15719 thr_setconcurrency \
15720 thr_getconcurrency \
15723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15724 echo "configure:15725: checking for $ac_func" >&5
15725 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15728 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15731 /* System header to define __stub macros and hopefully few prototypes,
15732 which can conflict with char $ac_func(); below. */
15733 #include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error. */
15735 /* We use char because int might match the return type of a gcc2
15736 builtin and then its argument prototype would still apply. */
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15753 if { (eval echo configure:15754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15755 eval "ac_cv_func_$ac_func=yes"
15757 echo "configure: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15760 eval "ac_cv_func_$ac_func=no"
15765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
15767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15768 cat >> confdefs.h <<EOF
15769 #define $ac_tr_func 1
15773 echo "$ac_t""no" 1>&6
15780 for ac_hdr in lwp/lwp.h
15782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15784 echo "configure:15785: checking for $ac_hdr" >&5
15785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15786 echo $ac_n "(cached) $ac_c" 1>&6
15788 cat > conftest.$ac_ext <<EOF
15789 #line 15790 "configure"
15790 #include "confdefs.h"
15793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15794 { (eval echo configure:15795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15796 if test -z "$ac_err"; then
15798 eval "ac_cv_header_$ac_safe=yes"
15801 echo "configure: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15804 eval "ac_cv_header_$ac_safe=no"
15808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15809 echo "$ac_t""yes" 1>&6
15810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15811 cat >> confdefs.h <<EOF
15812 #define $ac_tr_hdr 1
15816 echo "$ac_t""no" 1>&6
15820 if test $ac_cv_header_lwp_lwp_h = yes ; then
15821 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15822 echo "configure:15823: checking for lwp_create in -llwp" >&5
15823 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15824 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15825 echo $ac_n "(cached) $ac_c" 1>&6
15827 ac_save_LIBS="$LIBS"
15829 cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 /* Override any gcc2 internal prototype to avoid an error. */
15833 /* We use char because int might match the return type of a gcc2
15834 builtin and then its argument prototype would still apply. */
15841 if { (eval echo configure:15842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15843 eval "ac_cv_lib_$ac_lib_var=yes"
15845 echo "configure: failed program was:" >&5
15846 cat conftest.$ac_ext >&5
15848 eval "ac_cv_lib_$ac_lib_var=no"
15851 LIBS="$ac_save_LIBS"
15854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15855 echo "$ac_t""yes" 1>&6
15858 echo "$ac_t""no" 1>&6
15863 if test $have_lwp = yes ; then
15864 cat >> confdefs.h <<\EOF
15868 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15869 ol_link_threads=lwp
15871 if test $ol_with_yielding_select = auto ; then
15872 ol_with_yielding_select=no
15878 if test $ol_with_yielding_select = yes ; then
15879 cat >> confdefs.h <<\EOF
15880 #define HAVE_YIELDING_SELECT 1
15885 if test $ol_with_threads = manual ; then
15886 ol_link_threads=yes
15888 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15890 for ac_hdr in pthread.h sched.h
15892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15894 echo "configure:15895: checking for $ac_hdr" >&5
15895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15896 echo $ac_n "(cached) $ac_c" 1>&6
15898 cat > conftest.$ac_ext <<EOF
15899 #line 15900 "configure"
15900 #include "confdefs.h"
15903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15904 { (eval echo configure:15905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15906 if test -z "$ac_err"; then
15908 eval "ac_cv_header_$ac_safe=yes"
15911 echo "configure: failed program was:" >&5
15912 cat conftest.$ac_ext >&5
15914 eval "ac_cv_header_$ac_safe=no"
15918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15919 echo "$ac_t""yes" 1>&6
15920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15921 cat >> confdefs.h <<EOF
15922 #define $ac_tr_hdr 1
15926 echo "$ac_t""no" 1>&6
15930 for ac_func in sched_yield pthread_yield
15932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15933 echo "configure:15934: checking for $ac_func" >&5
15934 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15935 echo $ac_n "(cached) $ac_c" 1>&6
15937 cat > conftest.$ac_ext <<EOF
15938 #line 15939 "configure"
15939 #include "confdefs.h"
15940 /* System header to define __stub macros and hopefully few prototypes,
15941 which can conflict with char $ac_func(); below. */
15942 #include <assert.h>
15943 /* Override any gcc2 internal prototype to avoid an error. */
15944 /* We use char because int might match the return type of a gcc2
15945 builtin and then its argument prototype would still apply. */
15951 /* The GNU C library defines this for functions which it implements
15952 to always fail with ENOSYS. Some functions are actually named
15953 something starting with __ and the normal name is an alias. */
15954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15964 eval "ac_cv_func_$ac_func=yes"
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15969 eval "ac_cv_func_$ac_func=no"
15974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15975 echo "$ac_t""yes" 1>&6
15976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15977 cat >> confdefs.h <<EOF
15978 #define $ac_tr_func 1
15982 echo "$ac_t""no" 1>&6
15987 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15988 echo "configure:15989: checking for LinuxThreads pthread.h" >&5
15989 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15990 echo $ac_n "(cached) $ac_c" 1>&6
15992 cat > conftest.$ac_ext <<EOF
15993 #line 15994 "configure"
15994 #include "confdefs.h"
15995 #include <pthread.h>
15997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15998 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16000 ol_cv_header_linux_threads=yes
16003 ol_cv_header_linux_threads=no
16010 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16011 if test $ol_cv_header_linux_threads = yes; then
16012 cat >> confdefs.h <<\EOF
16013 #define HAVE_LINUX_THREADS 1
16019 for ac_hdr in mach/cthreads.h
16021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16023 echo "configure:16024: checking for $ac_hdr" >&5
16024 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16025 echo $ac_n "(cached) $ac_c" 1>&6
16027 cat > conftest.$ac_ext <<EOF
16028 #line 16029 "configure"
16029 #include "confdefs.h"
16032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16033 { (eval echo configure:16034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16035 if test -z "$ac_err"; then
16037 eval "ac_cv_header_$ac_safe=yes"
16040 echo "configure: failed program was:" >&5
16041 cat conftest.$ac_ext >&5
16043 eval "ac_cv_header_$ac_safe=no"
16047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16048 echo "$ac_t""yes" 1>&6
16049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16050 cat >> confdefs.h <<EOF
16051 #define $ac_tr_hdr 1
16055 echo "$ac_t""no" 1>&6
16059 for ac_hdr in lwp/lwp.h
16061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16063 echo "configure:16064: checking for $ac_hdr" >&5
16064 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16073 { (eval echo configure:16074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16075 if test -z "$ac_err"; then
16077 eval "ac_cv_header_$ac_safe=yes"
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16083 eval "ac_cv_header_$ac_safe=no"
16087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16088 echo "$ac_t""yes" 1>&6
16089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16090 cat >> confdefs.h <<EOF
16091 #define $ac_tr_hdr 1
16095 echo "$ac_t""no" 1>&6
16099 for ac_hdr in thread.h synch.h
16101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16103 echo "configure:16104: checking for $ac_hdr" >&5
16104 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16107 cat > conftest.$ac_ext <<EOF
16108 #line 16109 "configure"
16109 #include "confdefs.h"
16112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16113 { (eval echo configure:16114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16115 if test -z "$ac_err"; then
16117 eval "ac_cv_header_$ac_safe=yes"
16120 echo "configure: failed program was:" >&5
16121 cat conftest.$ac_ext >&5
16123 eval "ac_cv_header_$ac_safe=no"
16127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16128 echo "$ac_t""yes" 1>&6
16129 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16130 cat >> confdefs.h <<EOF
16131 #define $ac_tr_hdr 1
16135 echo "$ac_t""no" 1>&6
16141 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16142 cat >> confdefs.h <<\EOF
16143 #define REENTRANT 1
16146 cat >> confdefs.h <<\EOF
16147 #define _REENTRANT 1
16150 cat >> confdefs.h <<\EOF
16151 #define THREAD_SAFE 1
16154 cat >> confdefs.h <<\EOF
16155 #define _THREAD_SAFE 1
16158 cat >> confdefs.h <<\EOF
16159 #define THREADSAFE 1
16162 cat >> confdefs.h <<\EOF
16163 #define _THREADSAFE 1
16166 cat >> confdefs.h <<\EOF
16167 #define _SGI_MP_SOURCE 1
16171 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16172 echo "configure:16173: checking for thread specific errno" >&5
16173 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16177 cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16185 if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16187 ol_cv_errno_thread_specific=yes
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16192 ol_cv_errno_thread_specific=no
16198 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16200 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16201 echo "configure:16202: checking for thread specific h_errno" >&5
16202 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16203 echo $ac_n "(cached) $ac_c" 1>&6
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16214 if { (eval echo configure:16215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16216 ol_cv_h_errno_thread_specific=yes
16218 echo "configure: failed program was:" >&5
16219 cat conftest.$ac_ext >&5
16221 ol_cv_h_errno_thread_specific=no
16227 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16229 if test $ol_cv_errno_thread_specific != yes \
16230 -o $ol_cv_h_errno_thread_specific != yes ; then
16231 LIBS="$LTHREAD_LIBS $LIBS"
16237 if test $ol_link_threads = no ; then
16238 if test $ol_with_threads = yes ; then
16239 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16242 if test $ol_with_threads = auto ; then
16243 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16247 cat >> confdefs.h <<\EOF
16248 #define NO_THREADS 1
16254 if test $ol_link_threads != no ; then
16255 cat >> confdefs.h <<\EOF
16256 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16263 gethostbyname_r gethostbyaddr_r \
16266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16267 echo "configure:16268: checking for $ac_func" >&5
16268 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16269 echo $ac_n "(cached) $ac_c" 1>&6
16271 cat > conftest.$ac_ext <<EOF
16272 #line 16273 "configure"
16273 #include "confdefs.h"
16274 /* System header to define __stub macros and hopefully few prototypes,
16275 which can conflict with char $ac_func(); below. */
16276 #include <assert.h>
16277 /* Override any gcc2 internal prototype to avoid an error. */
16278 /* We use char because int might match the return type of a gcc2
16279 builtin and then its argument prototype would still apply. */
16285 /* The GNU C library defines this for functions which it implements
16286 to always fail with ENOSYS. Some functions are actually named
16287 something starting with __ and the normal name is an alias. */
16288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16296 if { (eval echo configure:16297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16298 eval "ac_cv_func_$ac_func=yes"
16300 echo "configure: failed program was:" >&5
16301 cat conftest.$ac_ext >&5
16303 eval "ac_cv_func_$ac_func=no"
16308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16309 echo "$ac_t""yes" 1>&6
16310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16311 cat >> confdefs.h <<EOF
16312 #define $ac_tr_func 1
16316 echo "$ac_t""no" 1>&6
16321 if test "$ac_cv_func_ctime_r" = no ; then
16322 ol_cv_func_ctime_r_nargs=0
16324 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16325 echo "configure:16326: checking number of arguments of ctime_r" >&5
16326 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16327 echo $ac_n "(cached) $ac_c" 1>&6
16329 cat > conftest.$ac_ext <<EOF
16330 #line 16331 "configure"
16331 #include "confdefs.h"
16334 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16337 if { (eval echo configure:16338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16339 ol_cv_func_ctime_r_nargs3=yes
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16344 ol_cv_func_ctime_r_nargs3=no
16348 cat > conftest.$ac_ext <<EOF
16349 #line 16350 "configure"
16350 #include "confdefs.h"
16353 time_t ti; char *buffer; ctime_r(&ti,buffer);
16356 if { (eval echo configure:16357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16358 ol_cv_func_ctime_r_nargs2=yes
16360 echo "configure: failed program was:" >&5
16361 cat conftest.$ac_ext >&5
16363 ol_cv_func_ctime_r_nargs2=no
16367 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16368 $ol_cv_func_ctime_r_nargs2 = no ; then
16370 ol_cv_func_ctime_r_nargs=3
16372 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16373 $ol_cv_func_ctime_r_nargs2 = yes ; then
16375 ol_cv_func_ctime_r_nargs=2
16378 ol_cv_func_ctime_r_nargs=0
16383 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16385 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16386 cat >> confdefs.h <<EOF
16387 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16394 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16395 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16396 echo "configure:16397: checking number of arguments of gethostbyname_r" >&5
16397 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16398 echo $ac_n "(cached) $ac_c" 1>&6
16400 cat > conftest.$ac_ext <<EOF
16401 #line 16402 "configure"
16402 #include "confdefs.h"
16403 #include <sys/types.h>
16404 #include <sys/socket.h>
16405 #include <netinet/in.h>
16407 #define BUFSIZE (sizeof(struct hostent)+10)
16409 struct hostent hent; char buffer[BUFSIZE];
16410 int bufsize=BUFSIZE;int h_errno;
16411 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16412 buffer, bufsize, &h_errno);
16415 if { (eval echo configure:16416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16417 ol_cv_func_gethostbyname_r_nargs5=yes
16419 echo "configure: failed program was:" >&5
16420 cat conftest.$ac_ext >&5
16422 ol_cv_func_gethostbyname_r_nargs5=no
16426 cat > conftest.$ac_ext <<EOF
16427 #line 16428 "configure"
16428 #include "confdefs.h"
16429 #include <sys/types.h>
16430 #include <sys/socket.h>
16431 #include <netinet/in.h>
16433 #define BUFSIZE (sizeof(struct hostent)+10)
16435 struct hostent hent;struct hostent *rhent;
16436 char buffer[BUFSIZE];
16437 int bufsize=BUFSIZE;int h_errno;
16438 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16442 if { (eval echo configure:16443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16444 ol_cv_func_gethostbyname_r_nargs6=yes
16446 echo "configure: failed program was:" >&5
16447 cat conftest.$ac_ext >&5
16449 ol_cv_func_gethostbyname_r_nargs6=no
16453 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16454 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16456 ol_cv_func_gethostbyname_r_nargs=5
16458 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16459 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16461 ol_cv_func_gethostbyname_r_nargs=6
16464 ol_cv_func_gethostbyname_r_nargs=0
16469 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16470 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16471 cat >> confdefs.h <<EOF
16472 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16478 ol_cv_func_gethostbyname_r_nargs=0
16481 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16482 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16483 echo "configure:16484: checking number of arguments of gethostbyaddr_r" >&5
16484 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16485 echo $ac_n "(cached) $ac_c" 1>&6
16487 cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 #include <sys/types.h>
16491 #include <sys/socket.h>
16492 #include <netinet/in.h>
16494 #define BUFSIZE (sizeof(struct hostent)+10)
16496 struct hostent hent; char buffer[BUFSIZE];
16497 struct in_addr add;
16498 size_t alen=sizeof(struct in_addr);
16499 int bufsize=BUFSIZE;int h_errno;
16500 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16501 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16504 if { (eval echo configure:16505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16506 ol_cv_func_gethostbyaddr_r_nargs7=yes
16508 echo "configure: failed program was:" >&5
16509 cat conftest.$ac_ext >&5
16511 ol_cv_func_gethostbyaddr_r_nargs7=no
16515 cat > conftest.$ac_ext <<EOF
16516 #line 16517 "configure"
16517 #include "confdefs.h"
16518 #include <sys/types.h>
16519 #include <sys/socket.h>
16520 #include <netinet/in.h>
16522 #define BUFSIZE (sizeof(struct hostent)+10)
16524 struct hostent hent;
16525 struct hostent *rhent; char buffer[BUFSIZE];
16526 struct in_addr add;
16527 size_t alen=sizeof(struct in_addr);
16528 int bufsize=BUFSIZE;int h_errno;
16529 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16530 alen, AF_INET, &hent, buffer, bufsize,
16534 if { (eval echo configure:16535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16536 ol_cv_func_gethostbyaddr_r_nargs8=yes
16538 echo "configure: failed program was:" >&5
16539 cat conftest.$ac_ext >&5
16541 ol_cv_func_gethostbyaddr_r_nargs8=no
16545 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16546 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16548 ol_cv_func_gethostbyaddr_r_nargs=7
16550 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16551 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16553 ol_cv_func_gethostbyaddr_r_nargs=8
16556 ol_cv_func_gethostbyaddr_r_nargs=0
16561 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16562 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16563 cat >> confdefs.h <<EOF
16564 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16570 ol_cv_func_gethostbyaddr_r_nargs=0
16575 if test $ol_with_ldbm_api = auto \
16576 -o $ol_with_ldbm_api = berkeley \
16577 -o $ol_with_ldbm_api = bcompat ; then
16579 if test $ol_with_ldbm_api = bcompat; then \
16580 for ac_hdr in db_185.h db.h
16582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16584 echo "configure:16585: checking for $ac_hdr" >&5
16585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16586 echo $ac_n "(cached) $ac_c" 1>&6
16588 cat > conftest.$ac_ext <<EOF
16589 #line 16590 "configure"
16590 #include "confdefs.h"
16593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16594 { (eval echo configure:16595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16596 if test -z "$ac_err"; then
16598 eval "ac_cv_header_$ac_safe=yes"
16601 echo "configure: failed program was:" >&5
16602 cat conftest.$ac_ext >&5
16604 eval "ac_cv_header_$ac_safe=no"
16608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16609 echo "$ac_t""yes" 1>&6
16610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16611 cat >> confdefs.h <<EOF
16612 #define $ac_tr_hdr 1
16616 echo "$ac_t""no" 1>&6
16620 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16621 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16622 echo "configure:16623: checking if Berkeley DB header compatibility" >&5
16623 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16624 echo $ac_n "(cached) $ac_c" 1>&6
16627 cat > conftest.$ac_ext <<EOF
16628 #line 16629 "configure"
16629 #include "confdefs.h"
16632 # include <db_185.h>
16637 /* this check could be improved */
16638 #ifndef DB_VERSION_MAJOR
16639 # define DB_VERSION_MAJOR 1
16642 #if DB_VERSION_MAJOR == 1
16647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16648 egrep "__db_version_1" >/dev/null 2>&1; then
16650 ol_cv_header_db1=yes
16653 ol_cv_header_db1=no
16659 echo "$ac_t""$ol_cv_header_db1" 1>&6
16661 if test $ol_cv_header_db1 = yes ; then
16663 if test $ol_cv_lib_db = no ; then
16664 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16665 echo "configure:16666: checking for Berkeley DB link (default)" >&5
16666 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16667 echo $ac_n "(cached) $ac_c" 1>&6
16672 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16674 cat > conftest.$ac_ext <<EOF
16675 #line 16676 "configure"
16676 #include "confdefs.h"
16678 #ifdef HAVE_DB_185_H
16679 # include <db_185.h>
16684 #ifndef DB_VERSION_MAJOR
16685 # define DB_VERSION_MAJOR 1
16689 #define NULL ((void*)0)
16694 #if DB_VERSION_MAJOR > 1
16697 int major, minor, patch;
16699 version = db_version( &major, &minor, &patch );
16701 if( major != DB_VERSION_MAJOR ||
16702 minor < DB_VERSION_MINOR )
16704 printf("Berkeley DB version mismatch\n"
16705 "\texpected: %s\n\tgot: %s\n",
16706 DB_VERSION_STRING, version);
16712 #if DB_VERSION_MAJOR > 2
16713 db_env_create( NULL, 0 );
16714 #elif DB_VERSION_MAJOR > 1
16715 db_appexit( NULL );
16717 (void) dbopen( NULL, 0, 0, 0, NULL);
16722 if { (eval echo configure:16723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16726 echo "configure: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16737 echo "$ac_t""$ol_cv_db_none" 1>&6
16739 if test $ol_cv_db_none = yes ; then
16744 if test $ol_cv_lib_db = no ; then
16745 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16746 echo "configure:16747: checking for Berkeley DB link (-ldb41)" >&5
16747 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16748 echo $ac_n "(cached) $ac_c" 1>&6
16753 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16759 #ifdef HAVE_DB_185_H
16760 # include <db_185.h>
16765 #ifndef DB_VERSION_MAJOR
16766 # define DB_VERSION_MAJOR 1
16770 #define NULL ((void*)0)
16775 #if DB_VERSION_MAJOR > 1
16778 int major, minor, patch;
16780 version = db_version( &major, &minor, &patch );
16782 if( major != DB_VERSION_MAJOR ||
16783 minor < DB_VERSION_MINOR )
16785 printf("Berkeley DB version mismatch\n"
16786 "\texpected: %s\n\tgot: %s\n",
16787 DB_VERSION_STRING, version);
16793 #if DB_VERSION_MAJOR > 2
16794 db_env_create( NULL, 0 );
16795 #elif DB_VERSION_MAJOR > 1
16796 db_appexit( NULL );
16798 (void) dbopen( NULL, 0, 0, 0, NULL);
16803 if { (eval echo configure:16804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16807 echo "configure: failed program was:" >&5
16808 cat conftest.$ac_ext >&5
16818 echo "$ac_t""$ol_cv_db_db41" 1>&6
16820 if test $ol_cv_db_db41 = yes ; then
16821 ol_cv_lib_db=-ldb41
16825 if test $ol_cv_lib_db = no ; then
16826 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16827 echo "configure:16828: checking for Berkeley DB link (-ldb-41)" >&5
16828 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16829 echo $ac_n "(cached) $ac_c" 1>&6
16834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16836 cat > conftest.$ac_ext <<EOF
16837 #line 16838 "configure"
16838 #include "confdefs.h"
16840 #ifdef HAVE_DB_185_H
16841 # include <db_185.h>
16846 #ifndef DB_VERSION_MAJOR
16847 # define DB_VERSION_MAJOR 1
16851 #define NULL ((void*)0)
16856 #if DB_VERSION_MAJOR > 1
16859 int major, minor, patch;
16861 version = db_version( &major, &minor, &patch );
16863 if( major != DB_VERSION_MAJOR ||
16864 minor < DB_VERSION_MINOR )
16866 printf("Berkeley DB version mismatch\n"
16867 "\texpected: %s\n\tgot: %s\n",
16868 DB_VERSION_STRING, version);
16874 #if DB_VERSION_MAJOR > 2
16875 db_env_create( NULL, 0 );
16876 #elif DB_VERSION_MAJOR > 1
16877 db_appexit( NULL );
16879 (void) dbopen( NULL, 0, 0, 0, NULL);
16884 if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16888 echo "configure: failed program was:" >&5
16889 cat conftest.$ac_ext >&5
16899 echo "$ac_t""$ol_cv_db_db_41" 1>&6
16901 if test $ol_cv_db_db_41 = yes ; then
16902 ol_cv_lib_db=-ldb-41
16906 if test $ol_cv_lib_db = no ; then
16907 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
16908 echo "configure:16909: checking for Berkeley DB link (-ldb-4.1)" >&5
16909 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
16910 echo $ac_n "(cached) $ac_c" 1>&6
16915 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16917 cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16921 #ifdef HAVE_DB_185_H
16922 # include <db_185.h>
16927 #ifndef DB_VERSION_MAJOR
16928 # define DB_VERSION_MAJOR 1
16932 #define NULL ((void*)0)
16937 #if DB_VERSION_MAJOR > 1
16940 int major, minor, patch;
16942 version = db_version( &major, &minor, &patch );
16944 if( major != DB_VERSION_MAJOR ||
16945 minor < DB_VERSION_MINOR )
16947 printf("Berkeley DB version mismatch\n"
16948 "\texpected: %s\n\tgot: %s\n",
16949 DB_VERSION_STRING, version);
16955 #if DB_VERSION_MAJOR > 2
16956 db_env_create( NULL, 0 );
16957 #elif DB_VERSION_MAJOR > 1
16958 db_appexit( NULL );
16960 (void) dbopen( NULL, 0, 0, 0, NULL);
16965 if { (eval echo configure:16966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16967 ol_cv_db_db_4_dot_1=yes
16969 echo "configure: failed program was:" >&5
16970 cat conftest.$ac_ext >&5
16972 ol_cv_db_db_4_dot_1=no
16980 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
16982 if test $ol_cv_db_db_4_dot_1 = yes ; then
16983 ol_cv_lib_db=-ldb-4.1
16987 if test $ol_cv_lib_db = no ; then
16988 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
16989 echo "configure:16990: checking for Berkeley DB link (-ldb-4-1)" >&5
16990 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
16991 echo $ac_n "(cached) $ac_c" 1>&6
16996 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16998 cat > conftest.$ac_ext <<EOF
16999 #line 17000 "configure"
17000 #include "confdefs.h"
17002 #ifdef HAVE_DB_185_H
17003 # include <db_185.h>
17008 #ifndef DB_VERSION_MAJOR
17009 # define DB_VERSION_MAJOR 1
17013 #define NULL ((void*)0)
17018 #if DB_VERSION_MAJOR > 1
17021 int major, minor, patch;
17023 version = db_version( &major, &minor, &patch );
17025 if( major != DB_VERSION_MAJOR ||
17026 minor < DB_VERSION_MINOR )
17028 printf("Berkeley DB version mismatch\n"
17029 "\texpected: %s\n\tgot: %s\n",
17030 DB_VERSION_STRING, version);
17036 #if DB_VERSION_MAJOR > 2
17037 db_env_create( NULL, 0 );
17038 #elif DB_VERSION_MAJOR > 1
17039 db_appexit( NULL );
17041 (void) dbopen( NULL, 0, 0, 0, NULL);
17046 if { (eval echo configure:17047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17048 ol_cv_db_db_4_1=yes
17050 echo "configure: failed program was:" >&5
17051 cat conftest.$ac_ext >&5
17061 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17063 if test $ol_cv_db_db_4_1 = yes ; then
17064 ol_cv_lib_db=-ldb-4-1
17068 if test $ol_cv_lib_db = no ; then
17069 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17070 echo "configure:17071: checking for Berkeley DB link (-ldb-4)" >&5
17071 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17072 echo $ac_n "(cached) $ac_c" 1>&6
17077 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17079 cat > conftest.$ac_ext <<EOF
17080 #line 17081 "configure"
17081 #include "confdefs.h"
17083 #ifdef HAVE_DB_185_H
17084 # include <db_185.h>
17089 #ifndef DB_VERSION_MAJOR
17090 # define DB_VERSION_MAJOR 1
17094 #define NULL ((void*)0)
17099 #if DB_VERSION_MAJOR > 1
17102 int major, minor, patch;
17104 version = db_version( &major, &minor, &patch );
17106 if( major != DB_VERSION_MAJOR ||
17107 minor < DB_VERSION_MINOR )
17109 printf("Berkeley DB version mismatch\n"
17110 "\texpected: %s\n\tgot: %s\n",
17111 DB_VERSION_STRING, version);
17117 #if DB_VERSION_MAJOR > 2
17118 db_env_create( NULL, 0 );
17119 #elif DB_VERSION_MAJOR > 1
17120 db_appexit( NULL );
17122 (void) dbopen( NULL, 0, 0, 0, NULL);
17127 if { (eval echo configure:17128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17142 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17144 if test $ol_cv_db_db_4 = yes ; then
17145 ol_cv_lib_db=-ldb-4
17149 if test $ol_cv_lib_db = no ; then
17150 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17151 echo "configure:17152: checking for Berkeley DB link (-ldb4)" >&5
17152 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17153 echo $ac_n "(cached) $ac_c" 1>&6
17158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17160 cat > conftest.$ac_ext <<EOF
17161 #line 17162 "configure"
17162 #include "confdefs.h"
17164 #ifdef HAVE_DB_185_H
17165 # include <db_185.h>
17170 #ifndef DB_VERSION_MAJOR
17171 # define DB_VERSION_MAJOR 1
17175 #define NULL ((void*)0)
17180 #if DB_VERSION_MAJOR > 1
17183 int major, minor, patch;
17185 version = db_version( &major, &minor, &patch );
17187 if( major != DB_VERSION_MAJOR ||
17188 minor < DB_VERSION_MINOR )
17190 printf("Berkeley DB version mismatch\n"
17191 "\texpected: %s\n\tgot: %s\n",
17192 DB_VERSION_STRING, version);
17198 #if DB_VERSION_MAJOR > 2
17199 db_env_create( NULL, 0 );
17200 #elif DB_VERSION_MAJOR > 1
17201 db_appexit( NULL );
17203 (void) dbopen( NULL, 0, 0, 0, NULL);
17208 if { (eval echo configure:17209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17212 echo "configure: failed program was:" >&5
17213 cat conftest.$ac_ext >&5
17223 echo "$ac_t""$ol_cv_db_db4" 1>&6
17225 if test $ol_cv_db_db4 = yes ; then
17230 if test $ol_cv_lib_db = no ; then
17231 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17232 echo "configure:17233: checking for Berkeley DB link (-ldb)" >&5
17233 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17234 echo $ac_n "(cached) $ac_c" 1>&6
17239 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17241 cat > conftest.$ac_ext <<EOF
17242 #line 17243 "configure"
17243 #include "confdefs.h"
17245 #ifdef HAVE_DB_185_H
17246 # include <db_185.h>
17251 #ifndef DB_VERSION_MAJOR
17252 # define DB_VERSION_MAJOR 1
17256 #define NULL ((void*)0)
17261 #if DB_VERSION_MAJOR > 1
17264 int major, minor, patch;
17266 version = db_version( &major, &minor, &patch );
17268 if( major != DB_VERSION_MAJOR ||
17269 minor < DB_VERSION_MINOR )
17271 printf("Berkeley DB version mismatch\n"
17272 "\texpected: %s\n\tgot: %s\n",
17273 DB_VERSION_STRING, version);
17279 #if DB_VERSION_MAJOR > 2
17280 db_env_create( NULL, 0 );
17281 #elif DB_VERSION_MAJOR > 1
17282 db_appexit( NULL );
17284 (void) dbopen( NULL, 0, 0, 0, NULL);
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17304 echo "$ac_t""$ol_cv_db_db" 1>&6
17306 if test $ol_cv_db_db = yes ; then
17311 if test $ol_cv_lib_db = no ; then
17312 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17313 echo "configure:17314: checking for Berkeley DB link (-ldb3)" >&5
17314 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17315 echo $ac_n "(cached) $ac_c" 1>&6
17320 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17322 cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17326 #ifdef HAVE_DB_185_H
17327 # include <db_185.h>
17332 #ifndef DB_VERSION_MAJOR
17333 # define DB_VERSION_MAJOR 1
17337 #define NULL ((void*)0)
17342 #if DB_VERSION_MAJOR > 1
17345 int major, minor, patch;
17347 version = db_version( &major, &minor, &patch );
17349 if( major != DB_VERSION_MAJOR ||
17350 minor < DB_VERSION_MINOR )
17352 printf("Berkeley DB version mismatch\n"
17353 "\texpected: %s\n\tgot: %s\n",
17354 DB_VERSION_STRING, version);
17360 #if DB_VERSION_MAJOR > 2
17361 db_env_create( NULL, 0 );
17362 #elif DB_VERSION_MAJOR > 1
17363 db_appexit( NULL );
17365 (void) dbopen( NULL, 0, 0, 0, NULL);
17370 if { (eval echo configure:17371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17374 echo "configure: failed program was:" >&5
17375 cat conftest.$ac_ext >&5
17385 echo "$ac_t""$ol_cv_db_db3" 1>&6
17387 if test $ol_cv_db_db3 = yes ; then
17392 if test $ol_cv_lib_db = no ; then
17393 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17394 echo "configure:17395: checking for Berkeley DB link (-ldb-3)" >&5
17395 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17401 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17403 cat > conftest.$ac_ext <<EOF
17404 #line 17405 "configure"
17405 #include "confdefs.h"
17407 #ifdef HAVE_DB_185_H
17408 # include <db_185.h>
17413 #ifndef DB_VERSION_MAJOR
17414 # define DB_VERSION_MAJOR 1
17418 #define NULL ((void*)0)
17423 #if DB_VERSION_MAJOR > 1
17426 int major, minor, patch;
17428 version = db_version( &major, &minor, &patch );
17430 if( major != DB_VERSION_MAJOR ||
17431 minor < DB_VERSION_MINOR )
17433 printf("Berkeley DB version mismatch\n"
17434 "\texpected: %s\n\tgot: %s\n",
17435 DB_VERSION_STRING, version);
17441 #if DB_VERSION_MAJOR > 2
17442 db_env_create( NULL, 0 );
17443 #elif DB_VERSION_MAJOR > 1
17444 db_appexit( NULL );
17446 (void) dbopen( NULL, 0, 0, 0, NULL);
17451 if { (eval echo configure:17452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17455 echo "configure: failed program was:" >&5
17456 cat conftest.$ac_ext >&5
17466 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17468 if test $ol_cv_db_db_3 = yes ; then
17469 ol_cv_lib_db=-ldb-3
17473 if test $ol_cv_lib_db = no ; then
17474 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17475 echo "configure:17476: checking for Berkeley DB link (-ldb2)" >&5
17476 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17477 echo $ac_n "(cached) $ac_c" 1>&6
17482 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17484 cat > conftest.$ac_ext <<EOF
17485 #line 17486 "configure"
17486 #include "confdefs.h"
17488 #ifdef HAVE_DB_185_H
17489 # include <db_185.h>
17494 #ifndef DB_VERSION_MAJOR
17495 # define DB_VERSION_MAJOR 1
17499 #define NULL ((void*)0)
17504 #if DB_VERSION_MAJOR > 1
17507 int major, minor, patch;
17509 version = db_version( &major, &minor, &patch );
17511 if( major != DB_VERSION_MAJOR ||
17512 minor < DB_VERSION_MINOR )
17514 printf("Berkeley DB version mismatch\n"
17515 "\texpected: %s\n\tgot: %s\n",
17516 DB_VERSION_STRING, version);
17522 #if DB_VERSION_MAJOR > 2
17523 db_env_create( NULL, 0 );
17524 #elif DB_VERSION_MAJOR > 1
17525 db_appexit( NULL );
17527 (void) dbopen( NULL, 0, 0, 0, NULL);
17532 if { (eval echo configure:17533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17536 echo "configure: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17547 echo "$ac_t""$ol_cv_db_db2" 1>&6
17549 if test $ol_cv_db_db2 = yes ; then
17554 if test $ol_cv_lib_db = no ; then
17555 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17556 echo "configure:17557: checking for Berkeley DB link (-ldb-2)" >&5
17557 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17558 echo $ac_n "(cached) $ac_c" 1>&6
17563 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17565 cat > conftest.$ac_ext <<EOF
17566 #line 17567 "configure"
17567 #include "confdefs.h"
17569 #ifdef HAVE_DB_185_H
17570 # include <db_185.h>
17575 #ifndef DB_VERSION_MAJOR
17576 # define DB_VERSION_MAJOR 1
17580 #define NULL ((void*)0)
17585 #if DB_VERSION_MAJOR > 1
17588 int major, minor, patch;
17590 version = db_version( &major, &minor, &patch );
17592 if( major != DB_VERSION_MAJOR ||
17593 minor < DB_VERSION_MINOR )
17595 printf("Berkeley DB version mismatch\n"
17596 "\texpected: %s\n\tgot: %s\n",
17597 DB_VERSION_STRING, version);
17603 #if DB_VERSION_MAJOR > 2
17604 db_env_create( NULL, 0 );
17605 #elif DB_VERSION_MAJOR > 1
17606 db_appexit( NULL );
17608 (void) dbopen( NULL, 0, 0, 0, NULL);
17613 if { (eval echo configure:17614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17617 echo "configure: failed program was:" >&5
17618 cat conftest.$ac_ext >&5
17628 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17630 if test $ol_cv_db_db_2 = yes ; then
17631 ol_cv_lib_db=-ldb-2
17635 if test $ol_cv_lib_db = no ; then
17636 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17637 echo "configure:17638: checking for Berkeley DB link (-ldb1)" >&5
17638 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17639 echo $ac_n "(cached) $ac_c" 1>&6
17644 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17646 cat > conftest.$ac_ext <<EOF
17647 #line 17648 "configure"
17648 #include "confdefs.h"
17650 #ifdef HAVE_DB_185_H
17651 # include <db_185.h>
17656 #ifndef DB_VERSION_MAJOR
17657 # define DB_VERSION_MAJOR 1
17661 #define NULL ((void*)0)
17666 #if DB_VERSION_MAJOR > 1
17669 int major, minor, patch;
17671 version = db_version( &major, &minor, &patch );
17673 if( major != DB_VERSION_MAJOR ||
17674 minor < DB_VERSION_MINOR )
17676 printf("Berkeley DB version mismatch\n"
17677 "\texpected: %s\n\tgot: %s\n",
17678 DB_VERSION_STRING, version);
17684 #if DB_VERSION_MAJOR > 2
17685 db_env_create( NULL, 0 );
17686 #elif DB_VERSION_MAJOR > 1
17687 db_appexit( NULL );
17689 (void) dbopen( NULL, 0, 0, 0, NULL);
17694 if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17709 echo "$ac_t""$ol_cv_db_db1" 1>&6
17711 if test $ol_cv_db_db1 = yes ; then
17716 if test $ol_cv_lib_db = no ; then
17717 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17718 echo "configure:17719: checking for Berkeley DB link (-ldb-1)" >&5
17719 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17720 echo $ac_n "(cached) $ac_c" 1>&6
17725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17727 cat > conftest.$ac_ext <<EOF
17728 #line 17729 "configure"
17729 #include "confdefs.h"
17731 #ifdef HAVE_DB_185_H
17732 # include <db_185.h>
17737 #ifndef DB_VERSION_MAJOR
17738 # define DB_VERSION_MAJOR 1
17742 #define NULL ((void*)0)
17747 #if DB_VERSION_MAJOR > 1
17750 int major, minor, patch;
17752 version = db_version( &major, &minor, &patch );
17754 if( major != DB_VERSION_MAJOR ||
17755 minor < DB_VERSION_MINOR )
17757 printf("Berkeley DB version mismatch\n"
17758 "\texpected: %s\n\tgot: %s\n",
17759 DB_VERSION_STRING, version);
17765 #if DB_VERSION_MAJOR > 2
17766 db_env_create( NULL, 0 );
17767 #elif DB_VERSION_MAJOR > 1
17768 db_appexit( NULL );
17770 (void) dbopen( NULL, 0, 0, 0, NULL);
17775 if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17779 echo "configure: failed program was:" >&5
17780 cat conftest.$ac_ext >&5
17790 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17792 if test $ol_cv_db_db_1 = yes ; then
17793 ol_cv_lib_db=-ldb-1
17798 if test "$ol_cv_lib_db" != no ; then
17799 ol_cv_berkeley_db=yes
17805 ol_cv_berkeley_db=no
17808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17810 echo "configure:17811: checking for $ac_hdr" >&5
17811 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17812 echo $ac_n "(cached) $ac_c" 1>&6
17814 cat > conftest.$ac_ext <<EOF
17815 #line 17816 "configure"
17816 #include "confdefs.h"
17819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17820 { (eval echo configure:17821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17822 if test -z "$ac_err"; then
17824 eval "ac_cv_header_$ac_safe=yes"
17827 echo "configure: failed program was:" >&5
17828 cat conftest.$ac_ext >&5
17830 eval "ac_cv_header_$ac_safe=no"
17834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17835 echo "$ac_t""yes" 1>&6
17836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17837 cat >> confdefs.h <<EOF
17838 #define $ac_tr_hdr 1
17842 echo "$ac_t""no" 1>&6
17846 if test $ac_cv_header_db_h = yes; then
17848 if test $ol_cv_lib_db = no ; then
17849 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17850 echo "configure:17851: checking for Berkeley DB link (default)" >&5
17851 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17852 echo $ac_n "(cached) $ac_c" 1>&6
17857 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17859 cat > conftest.$ac_ext <<EOF
17860 #line 17861 "configure"
17861 #include "confdefs.h"
17863 #ifdef HAVE_DB_185_H
17864 # include <db_185.h>
17869 #ifndef DB_VERSION_MAJOR
17870 # define DB_VERSION_MAJOR 1
17874 #define NULL ((void*)0)
17879 #if DB_VERSION_MAJOR > 1
17882 int major, minor, patch;
17884 version = db_version( &major, &minor, &patch );
17886 if( major != DB_VERSION_MAJOR ||
17887 minor < DB_VERSION_MINOR )
17889 printf("Berkeley DB version mismatch\n"
17890 "\texpected: %s\n\tgot: %s\n",
17891 DB_VERSION_STRING, version);
17897 #if DB_VERSION_MAJOR > 2
17898 db_env_create( NULL, 0 );
17899 #elif DB_VERSION_MAJOR > 1
17900 db_appexit( NULL );
17902 (void) dbopen( NULL, 0, 0, 0, NULL);
17907 if { (eval echo configure:17908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17911 echo "configure: failed program was:" >&5
17912 cat conftest.$ac_ext >&5
17922 echo "$ac_t""$ol_cv_db_none" 1>&6
17924 if test $ol_cv_db_none = yes ; then
17929 if test $ol_cv_lib_db = no ; then
17930 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17931 echo "configure:17932: checking for Berkeley DB link (-ldb41)" >&5
17932 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17933 echo $ac_n "(cached) $ac_c" 1>&6
17938 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17940 cat > conftest.$ac_ext <<EOF
17941 #line 17942 "configure"
17942 #include "confdefs.h"
17944 #ifdef HAVE_DB_185_H
17945 # include <db_185.h>
17950 #ifndef DB_VERSION_MAJOR
17951 # define DB_VERSION_MAJOR 1
17955 #define NULL ((void*)0)
17960 #if DB_VERSION_MAJOR > 1
17963 int major, minor, patch;
17965 version = db_version( &major, &minor, &patch );
17967 if( major != DB_VERSION_MAJOR ||
17968 minor < DB_VERSION_MINOR )
17970 printf("Berkeley DB version mismatch\n"
17971 "\texpected: %s\n\tgot: %s\n",
17972 DB_VERSION_STRING, version);
17978 #if DB_VERSION_MAJOR > 2
17979 db_env_create( NULL, 0 );
17980 #elif DB_VERSION_MAJOR > 1
17981 db_appexit( NULL );
17983 (void) dbopen( NULL, 0, 0, 0, NULL);
17988 if { (eval echo configure:17989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17992 echo "configure: failed program was:" >&5
17993 cat conftest.$ac_ext >&5
18003 echo "$ac_t""$ol_cv_db_db41" 1>&6
18005 if test $ol_cv_db_db41 = yes ; then
18006 ol_cv_lib_db=-ldb41
18010 if test $ol_cv_lib_db = no ; then
18011 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18012 echo "configure:18013: checking for Berkeley DB link (-ldb-41)" >&5
18013 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18014 echo $ac_n "(cached) $ac_c" 1>&6
18019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18021 cat > conftest.$ac_ext <<EOF
18022 #line 18023 "configure"
18023 #include "confdefs.h"
18025 #ifdef HAVE_DB_185_H
18026 # include <db_185.h>
18031 #ifndef DB_VERSION_MAJOR
18032 # define DB_VERSION_MAJOR 1
18036 #define NULL ((void*)0)
18041 #if DB_VERSION_MAJOR > 1
18044 int major, minor, patch;
18046 version = db_version( &major, &minor, &patch );
18048 if( major != DB_VERSION_MAJOR ||
18049 minor < DB_VERSION_MINOR )
18051 printf("Berkeley DB version mismatch\n"
18052 "\texpected: %s\n\tgot: %s\n",
18053 DB_VERSION_STRING, version);
18059 #if DB_VERSION_MAJOR > 2
18060 db_env_create( NULL, 0 );
18061 #elif DB_VERSION_MAJOR > 1
18062 db_appexit( NULL );
18064 (void) dbopen( NULL, 0, 0, 0, NULL);
18069 if { (eval echo configure:18070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18073 echo "configure: failed program was:" >&5
18074 cat conftest.$ac_ext >&5
18084 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18086 if test $ol_cv_db_db_41 = yes ; then
18087 ol_cv_lib_db=-ldb-41
18091 if test $ol_cv_lib_db = no ; then
18092 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18093 echo "configure:18094: checking for Berkeley DB link (-ldb-4.1)" >&5
18094 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18095 echo $ac_n "(cached) $ac_c" 1>&6
18100 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18102 cat > conftest.$ac_ext <<EOF
18103 #line 18104 "configure"
18104 #include "confdefs.h"
18106 #ifdef HAVE_DB_185_H
18107 # include <db_185.h>
18112 #ifndef DB_VERSION_MAJOR
18113 # define DB_VERSION_MAJOR 1
18117 #define NULL ((void*)0)
18122 #if DB_VERSION_MAJOR > 1
18125 int major, minor, patch;
18127 version = db_version( &major, &minor, &patch );
18129 if( major != DB_VERSION_MAJOR ||
18130 minor < DB_VERSION_MINOR )
18132 printf("Berkeley DB version mismatch\n"
18133 "\texpected: %s\n\tgot: %s\n",
18134 DB_VERSION_STRING, version);
18140 #if DB_VERSION_MAJOR > 2
18141 db_env_create( NULL, 0 );
18142 #elif DB_VERSION_MAJOR > 1
18143 db_appexit( NULL );
18145 (void) dbopen( NULL, 0, 0, 0, NULL);
18150 if { (eval echo configure:18151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18152 ol_cv_db_db_4_dot_1=yes
18154 echo "configure: failed program was:" >&5
18155 cat conftest.$ac_ext >&5
18157 ol_cv_db_db_4_dot_1=no
18165 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18167 if test $ol_cv_db_db_4_dot_1 = yes ; then
18168 ol_cv_lib_db=-ldb-4.1
18172 if test $ol_cv_lib_db = no ; then
18173 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18174 echo "configure:18175: checking for Berkeley DB link (-ldb-4-1)" >&5
18175 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18176 echo $ac_n "(cached) $ac_c" 1>&6
18181 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18183 cat > conftest.$ac_ext <<EOF
18184 #line 18185 "configure"
18185 #include "confdefs.h"
18187 #ifdef HAVE_DB_185_H
18188 # include <db_185.h>
18193 #ifndef DB_VERSION_MAJOR
18194 # define DB_VERSION_MAJOR 1
18198 #define NULL ((void*)0)
18203 #if DB_VERSION_MAJOR > 1
18206 int major, minor, patch;
18208 version = db_version( &major, &minor, &patch );
18210 if( major != DB_VERSION_MAJOR ||
18211 minor < DB_VERSION_MINOR )
18213 printf("Berkeley DB version mismatch\n"
18214 "\texpected: %s\n\tgot: %s\n",
18215 DB_VERSION_STRING, version);
18221 #if DB_VERSION_MAJOR > 2
18222 db_env_create( NULL, 0 );
18223 #elif DB_VERSION_MAJOR > 1
18224 db_appexit( NULL );
18226 (void) dbopen( NULL, 0, 0, 0, NULL);
18231 if { (eval echo configure:18232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18233 ol_cv_db_db_4_1=yes
18235 echo "configure: failed program was:" >&5
18236 cat conftest.$ac_ext >&5
18246 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18248 if test $ol_cv_db_db_4_1 = yes ; then
18249 ol_cv_lib_db=-ldb-4-1
18253 if test $ol_cv_lib_db = no ; then
18254 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18255 echo "configure:18256: checking for Berkeley DB link (-ldb-4)" >&5
18256 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18257 echo $ac_n "(cached) $ac_c" 1>&6
18262 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18264 cat > conftest.$ac_ext <<EOF
18265 #line 18266 "configure"
18266 #include "confdefs.h"
18268 #ifdef HAVE_DB_185_H
18269 # include <db_185.h>
18274 #ifndef DB_VERSION_MAJOR
18275 # define DB_VERSION_MAJOR 1
18279 #define NULL ((void*)0)
18284 #if DB_VERSION_MAJOR > 1
18287 int major, minor, patch;
18289 version = db_version( &major, &minor, &patch );
18291 if( major != DB_VERSION_MAJOR ||
18292 minor < DB_VERSION_MINOR )
18294 printf("Berkeley DB version mismatch\n"
18295 "\texpected: %s\n\tgot: %s\n",
18296 DB_VERSION_STRING, version);
18302 #if DB_VERSION_MAJOR > 2
18303 db_env_create( NULL, 0 );
18304 #elif DB_VERSION_MAJOR > 1
18305 db_appexit( NULL );
18307 (void) dbopen( NULL, 0, 0, 0, NULL);
18312 if { (eval echo configure:18313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18316 echo "configure: failed program was:" >&5
18317 cat conftest.$ac_ext >&5
18327 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18329 if test $ol_cv_db_db_4 = yes ; then
18330 ol_cv_lib_db=-ldb-4
18334 if test $ol_cv_lib_db = no ; then
18335 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18336 echo "configure:18337: checking for Berkeley DB link (-ldb4)" >&5
18337 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18338 echo $ac_n "(cached) $ac_c" 1>&6
18343 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18345 cat > conftest.$ac_ext <<EOF
18346 #line 18347 "configure"
18347 #include "confdefs.h"
18349 #ifdef HAVE_DB_185_H
18350 # include <db_185.h>
18355 #ifndef DB_VERSION_MAJOR
18356 # define DB_VERSION_MAJOR 1
18360 #define NULL ((void*)0)
18365 #if DB_VERSION_MAJOR > 1
18368 int major, minor, patch;
18370 version = db_version( &major, &minor, &patch );
18372 if( major != DB_VERSION_MAJOR ||
18373 minor < DB_VERSION_MINOR )
18375 printf("Berkeley DB version mismatch\n"
18376 "\texpected: %s\n\tgot: %s\n",
18377 DB_VERSION_STRING, version);
18383 #if DB_VERSION_MAJOR > 2
18384 db_env_create( NULL, 0 );
18385 #elif DB_VERSION_MAJOR > 1
18386 db_appexit( NULL );
18388 (void) dbopen( NULL, 0, 0, 0, NULL);
18393 if { (eval echo configure:18394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18397 echo "configure: failed program was:" >&5
18398 cat conftest.$ac_ext >&5
18408 echo "$ac_t""$ol_cv_db_db4" 1>&6
18410 if test $ol_cv_db_db4 = yes ; then
18415 if test $ol_cv_lib_db = no ; then
18416 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18417 echo "configure:18418: checking for Berkeley DB link (-ldb)" >&5
18418 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18419 echo $ac_n "(cached) $ac_c" 1>&6
18424 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18426 cat > conftest.$ac_ext <<EOF
18427 #line 18428 "configure"
18428 #include "confdefs.h"
18430 #ifdef HAVE_DB_185_H
18431 # include <db_185.h>
18436 #ifndef DB_VERSION_MAJOR
18437 # define DB_VERSION_MAJOR 1
18441 #define NULL ((void*)0)
18446 #if DB_VERSION_MAJOR > 1
18449 int major, minor, patch;
18451 version = db_version( &major, &minor, &patch );
18453 if( major != DB_VERSION_MAJOR ||
18454 minor < DB_VERSION_MINOR )
18456 printf("Berkeley DB version mismatch\n"
18457 "\texpected: %s\n\tgot: %s\n",
18458 DB_VERSION_STRING, version);
18464 #if DB_VERSION_MAJOR > 2
18465 db_env_create( NULL, 0 );
18466 #elif DB_VERSION_MAJOR > 1
18467 db_appexit( NULL );
18469 (void) dbopen( NULL, 0, 0, 0, NULL);
18474 if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18489 echo "$ac_t""$ol_cv_db_db" 1>&6
18491 if test $ol_cv_db_db = yes ; then
18496 if test $ol_cv_lib_db = no ; then
18497 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18498 echo "configure:18499: checking for Berkeley DB link (-ldb3)" >&5
18499 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18500 echo $ac_n "(cached) $ac_c" 1>&6
18505 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18507 cat > conftest.$ac_ext <<EOF
18508 #line 18509 "configure"
18509 #include "confdefs.h"
18511 #ifdef HAVE_DB_185_H
18512 # include <db_185.h>
18517 #ifndef DB_VERSION_MAJOR
18518 # define DB_VERSION_MAJOR 1
18522 #define NULL ((void*)0)
18527 #if DB_VERSION_MAJOR > 1
18530 int major, minor, patch;
18532 version = db_version( &major, &minor, &patch );
18534 if( major != DB_VERSION_MAJOR ||
18535 minor < DB_VERSION_MINOR )
18537 printf("Berkeley DB version mismatch\n"
18538 "\texpected: %s\n\tgot: %s\n",
18539 DB_VERSION_STRING, version);
18545 #if DB_VERSION_MAJOR > 2
18546 db_env_create( NULL, 0 );
18547 #elif DB_VERSION_MAJOR > 1
18548 db_appexit( NULL );
18550 (void) dbopen( NULL, 0, 0, 0, NULL);
18555 if { (eval echo configure:18556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18559 echo "configure: failed program was:" >&5
18560 cat conftest.$ac_ext >&5
18570 echo "$ac_t""$ol_cv_db_db3" 1>&6
18572 if test $ol_cv_db_db3 = yes ; then
18577 if test $ol_cv_lib_db = no ; then
18578 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18579 echo "configure:18580: checking for Berkeley DB link (-ldb-3)" >&5
18580 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18581 echo $ac_n "(cached) $ac_c" 1>&6
18586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18588 cat > conftest.$ac_ext <<EOF
18589 #line 18590 "configure"
18590 #include "confdefs.h"
18592 #ifdef HAVE_DB_185_H
18593 # include <db_185.h>
18598 #ifndef DB_VERSION_MAJOR
18599 # define DB_VERSION_MAJOR 1
18603 #define NULL ((void*)0)
18608 #if DB_VERSION_MAJOR > 1
18611 int major, minor, patch;
18613 version = db_version( &major, &minor, &patch );
18615 if( major != DB_VERSION_MAJOR ||
18616 minor < DB_VERSION_MINOR )
18618 printf("Berkeley DB version mismatch\n"
18619 "\texpected: %s\n\tgot: %s\n",
18620 DB_VERSION_STRING, version);
18626 #if DB_VERSION_MAJOR > 2
18627 db_env_create( NULL, 0 );
18628 #elif DB_VERSION_MAJOR > 1
18629 db_appexit( NULL );
18631 (void) dbopen( NULL, 0, 0, 0, NULL);
18636 if { (eval echo configure:18637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18640 echo "configure: failed program was:" >&5
18641 cat conftest.$ac_ext >&5
18651 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18653 if test $ol_cv_db_db_3 = yes ; then
18654 ol_cv_lib_db=-ldb-3
18658 if test $ol_cv_lib_db = no ; then
18659 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18660 echo "configure:18661: checking for Berkeley DB link (-ldb2)" >&5
18661 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18662 echo $ac_n "(cached) $ac_c" 1>&6
18667 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18669 cat > conftest.$ac_ext <<EOF
18670 #line 18671 "configure"
18671 #include "confdefs.h"
18673 #ifdef HAVE_DB_185_H
18674 # include <db_185.h>
18679 #ifndef DB_VERSION_MAJOR
18680 # define DB_VERSION_MAJOR 1
18684 #define NULL ((void*)0)
18689 #if DB_VERSION_MAJOR > 1
18692 int major, minor, patch;
18694 version = db_version( &major, &minor, &patch );
18696 if( major != DB_VERSION_MAJOR ||
18697 minor < DB_VERSION_MINOR )
18699 printf("Berkeley DB version mismatch\n"
18700 "\texpected: %s\n\tgot: %s\n",
18701 DB_VERSION_STRING, version);
18707 #if DB_VERSION_MAJOR > 2
18708 db_env_create( NULL, 0 );
18709 #elif DB_VERSION_MAJOR > 1
18710 db_appexit( NULL );
18712 (void) dbopen( NULL, 0, 0, 0, NULL);
18717 if { (eval echo configure:18718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18721 echo "configure: failed program was:" >&5
18722 cat conftest.$ac_ext >&5
18732 echo "$ac_t""$ol_cv_db_db2" 1>&6
18734 if test $ol_cv_db_db2 = yes ; then
18739 if test $ol_cv_lib_db = no ; then
18740 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18741 echo "configure:18742: checking for Berkeley DB link (-ldb-2)" >&5
18742 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18743 echo $ac_n "(cached) $ac_c" 1>&6
18748 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18750 cat > conftest.$ac_ext <<EOF
18751 #line 18752 "configure"
18752 #include "confdefs.h"
18754 #ifdef HAVE_DB_185_H
18755 # include <db_185.h>
18760 #ifndef DB_VERSION_MAJOR
18761 # define DB_VERSION_MAJOR 1
18765 #define NULL ((void*)0)
18770 #if DB_VERSION_MAJOR > 1
18773 int major, minor, patch;
18775 version = db_version( &major, &minor, &patch );
18777 if( major != DB_VERSION_MAJOR ||
18778 minor < DB_VERSION_MINOR )
18780 printf("Berkeley DB version mismatch\n"
18781 "\texpected: %s\n\tgot: %s\n",
18782 DB_VERSION_STRING, version);
18788 #if DB_VERSION_MAJOR > 2
18789 db_env_create( NULL, 0 );
18790 #elif DB_VERSION_MAJOR > 1
18791 db_appexit( NULL );
18793 (void) dbopen( NULL, 0, 0, 0, NULL);
18798 if { (eval echo configure:18799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18802 echo "configure: failed program was:" >&5
18803 cat conftest.$ac_ext >&5
18813 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18815 if test $ol_cv_db_db_2 = yes ; then
18816 ol_cv_lib_db=-ldb-2
18820 if test $ol_cv_lib_db = no ; then
18821 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18822 echo "configure:18823: checking for Berkeley DB link (-ldb1)" >&5
18823 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18824 echo $ac_n "(cached) $ac_c" 1>&6
18829 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18831 cat > conftest.$ac_ext <<EOF
18832 #line 18833 "configure"
18833 #include "confdefs.h"
18835 #ifdef HAVE_DB_185_H
18836 # include <db_185.h>
18841 #ifndef DB_VERSION_MAJOR
18842 # define DB_VERSION_MAJOR 1
18846 #define NULL ((void*)0)
18851 #if DB_VERSION_MAJOR > 1
18854 int major, minor, patch;
18856 version = db_version( &major, &minor, &patch );
18858 if( major != DB_VERSION_MAJOR ||
18859 minor < DB_VERSION_MINOR )
18861 printf("Berkeley DB version mismatch\n"
18862 "\texpected: %s\n\tgot: %s\n",
18863 DB_VERSION_STRING, version);
18869 #if DB_VERSION_MAJOR > 2
18870 db_env_create( NULL, 0 );
18871 #elif DB_VERSION_MAJOR > 1
18872 db_appexit( NULL );
18874 (void) dbopen( NULL, 0, 0, 0, NULL);
18879 if { (eval echo configure:18880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18883 echo "configure: failed program was:" >&5
18884 cat conftest.$ac_ext >&5
18894 echo "$ac_t""$ol_cv_db_db1" 1>&6
18896 if test $ol_cv_db_db1 = yes ; then
18901 if test $ol_cv_lib_db = no ; then
18902 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18903 echo "configure:18904: checking for Berkeley DB link (-ldb-1)" >&5
18904 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18905 echo $ac_n "(cached) $ac_c" 1>&6
18910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18912 cat > conftest.$ac_ext <<EOF
18913 #line 18914 "configure"
18914 #include "confdefs.h"
18916 #ifdef HAVE_DB_185_H
18917 # include <db_185.h>
18922 #ifndef DB_VERSION_MAJOR
18923 # define DB_VERSION_MAJOR 1
18927 #define NULL ((void*)0)
18932 #if DB_VERSION_MAJOR > 1
18935 int major, minor, patch;
18937 version = db_version( &major, &minor, &patch );
18939 if( major != DB_VERSION_MAJOR ||
18940 minor < DB_VERSION_MINOR )
18942 printf("Berkeley DB version mismatch\n"
18943 "\texpected: %s\n\tgot: %s\n",
18944 DB_VERSION_STRING, version);
18950 #if DB_VERSION_MAJOR > 2
18951 db_env_create( NULL, 0 );
18952 #elif DB_VERSION_MAJOR > 1
18953 db_appexit( NULL );
18955 (void) dbopen( NULL, 0, 0, 0, NULL);
18960 if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18964 echo "configure: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18975 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18977 if test $ol_cv_db_db_1 = yes ; then
18978 ol_cv_lib_db=-ldb-1
18983 if test "$ol_cv_lib_db" != no ; then
18984 ol_cv_berkeley_db=yes
18985 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18986 echo "configure:18987: checking for Berkeley DB thread support" >&5
18987 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18988 echo $ac_n "(cached) $ac_c" 1>&6
18992 LIBS="$LTHREAD_LIBS $LIBS"
18993 if test $ol_cv_lib_db != yes ; then
18994 LIBS="$ol_cv_lib_db $LIBS"
18997 if test "$cross_compiling" = yes; then
18998 ol_cv_berkeley_db_thread=cross
19000 cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19004 #ifdef HAVE_DB_185_H
19010 #define NULL ((void *)0)
19015 u_int32_t flags = DB_CREATE |
19021 #if DB_VERSION_MAJOR > 2
19022 DB_ENV *env = NULL;
19024 rc = db_env_create( &env, 0 );
19026 flags |= DB_INIT_MPOOL;
19027 #ifdef DB_MPOOL_PRIVATE
19028 flags |= DB_MPOOL_PRIVATE;
19032 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19036 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19037 rc = env->open( env, NULL, flags, 0 );
19039 rc = env->open( env, NULL, NULL, flags, 0 );
19043 rc = env->close( env, 0 );
19047 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19053 memset( &env, '\0', sizeof(env) );
19055 rc = db_appinit( NULL, NULL, &env, flags );
19058 db_appexit( &env );
19061 unlink("__db_mpool.share");
19062 unlink("__db_lock.share");
19068 if { (eval echo configure:19069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19070 ol_cv_berkeley_db_thread=yes
19072 echo "configure: failed program was:" >&5
19073 cat conftest.$ac_ext >&5
19075 ol_cv_berkeley_db_thread=no
19085 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19087 if test $ol_cv_berkeley_db_thread != no ; then
19088 cat >> confdefs.h <<\EOF
19089 #define HAVE_BERKELEY_DB_THREAD 1
19099 if test $ol_cv_berkeley_db != no ; then
19100 cat >> confdefs.h <<\EOF
19101 #define HAVE_BERKELEY_DB 1
19105 ol_link_ldbm=berkeley
19106 ol_with_ldbm_api=berkeley
19108 if test $ol_with_ldbm_type = hash ; then
19109 cat >> confdefs.h <<\EOF
19110 #define LDBM_USE_DBHASH 1
19114 cat >> confdefs.h <<\EOF
19115 #define LDBM_USE_DBBTREE 1
19120 if test $ol_cv_lib_db != yes ; then
19121 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19126 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19127 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19128 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19129 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19130 echo "configure:19131: checking Berkeley DB version for BDB backend" >&5
19131 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19132 echo $ac_n "(cached) $ac_c" 1>&6
19135 cat > conftest.$ac_ext <<EOF
19136 #line 19137 "configure"
19137 #include "confdefs.h"
19141 /* this check could be improved */
19142 #ifndef DB_VERSION_MAJOR
19143 # define DB_VERSION_MAJOR 1
19145 #ifndef DB_VERSION_MINOR
19146 # define DB_VERSION_MINOR 0
19149 /* require 4.1 or later */
19150 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
19151 __db_version_compat
19155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19156 egrep "__db_version_compat" >/dev/null 2>&1; then
19158 ol_cv_bdb_compat=yes
19161 ol_cv_bdb_compat=no
19167 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19170 if test $ol_cv_bdb_compat = yes ; then
19172 elif test $ol_enable_bdb = yes ; then
19173 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19179 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19180 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19181 ol_with_ldbm_api=none
19184 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19185 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19186 echo "configure:19187: checking for MDBM library" >&5
19187 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19188 echo $ac_n "(cached) $ac_c" 1>&6
19191 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19192 echo "configure:19193: checking for mdbm_set_chain" >&5
19193 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19194 echo $ac_n "(cached) $ac_c" 1>&6
19196 cat > conftest.$ac_ext <<EOF
19197 #line 19198 "configure"
19198 #include "confdefs.h"
19199 /* System header to define __stub macros and hopefully few prototypes,
19200 which can conflict with char mdbm_set_chain(); below. */
19201 #include <assert.h>
19202 /* Override any gcc2 internal prototype to avoid an error. */
19203 /* We use char because int might match the return type of a gcc2
19204 builtin and then its argument prototype would still apply. */
19205 char mdbm_set_chain();
19210 /* The GNU C library defines this for functions which it implements
19211 to always fail with ENOSYS. Some functions are actually named
19212 something starting with __ and the normal name is an alias. */
19213 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19216 f = mdbm_set_chain;
19221 if { (eval echo configure:19222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19223 eval "ac_cv_func_mdbm_set_chain=yes"
19225 echo "configure: failed program was:" >&5
19226 cat conftest.$ac_ext >&5
19228 eval "ac_cv_func_mdbm_set_chain=no"
19233 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19234 echo "$ac_t""yes" 1>&6
19237 echo "$ac_t""no" 1>&6
19239 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19240 echo "configure:19241: checking for mdbm_set_chain in -lmdbm" >&5
19241 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19242 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19243 echo $ac_n "(cached) $ac_c" 1>&6
19245 ac_save_LIBS="$LIBS"
19246 LIBS="-lmdbm $LIBS"
19247 cat > conftest.$ac_ext <<EOF
19248 #line 19249 "configure"
19249 #include "confdefs.h"
19250 /* Override any gcc2 internal prototype to avoid an error. */
19251 /* We use char because int might match the return type of a gcc2
19252 builtin and then its argument prototype would still apply. */
19253 char mdbm_set_chain();
19259 if { (eval echo configure:19260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19261 eval "ac_cv_lib_$ac_lib_var=yes"
19263 echo "configure: failed program was:" >&5
19264 cat conftest.$ac_ext >&5
19266 eval "ac_cv_lib_$ac_lib_var=no"
19269 LIBS="$ac_save_LIBS"
19272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19273 echo "$ac_t""yes" 1>&6
19274 ol_cv_lib_mdbm=-lmdbm
19276 echo "$ac_t""no" 1>&6
19287 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19290 for ac_hdr in mdbm.h
19292 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19293 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19294 echo "configure:19295: checking for $ac_hdr" >&5
19295 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19296 echo $ac_n "(cached) $ac_c" 1>&6
19298 cat > conftest.$ac_ext <<EOF
19299 #line 19300 "configure"
19300 #include "confdefs.h"
19303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19304 { (eval echo configure:19305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19306 if test -z "$ac_err"; then
19308 eval "ac_cv_header_$ac_safe=yes"
19311 echo "configure: failed program was:" >&5
19312 cat conftest.$ac_ext >&5
19314 eval "ac_cv_header_$ac_safe=no"
19318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19319 echo "$ac_t""yes" 1>&6
19320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19321 cat >> confdefs.h <<EOF
19322 #define $ac_tr_hdr 1
19326 echo "$ac_t""no" 1>&6
19330 echo $ac_n "checking for db""... $ac_c" 1>&6
19331 echo "configure:19332: checking for db" >&5
19332 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19333 echo $ac_n "(cached) $ac_c" 1>&6
19336 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19344 echo "$ac_t""$ol_cv_mdbm" 1>&6
19345 if test $ol_cv_mdbm = yes ; then
19346 cat >> confdefs.h <<\EOF
19347 #define HAVE_MDBM 1
19353 if test $ol_cv_mdbm = yes ; then
19355 ol_with_ldbm_api=mdbm
19356 if test $ol_cv_lib_mdbm != yes ; then
19357 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19362 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19363 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19364 echo "configure:19365: checking for GDBM library" >&5
19365 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19366 echo $ac_n "(cached) $ac_c" 1>&6
19369 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19370 echo "configure:19371: checking for gdbm_open" >&5
19371 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19372 echo $ac_n "(cached) $ac_c" 1>&6
19374 cat > conftest.$ac_ext <<EOF
19375 #line 19376 "configure"
19376 #include "confdefs.h"
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char gdbm_open(); below. */
19379 #include <assert.h>
19380 /* Override any gcc2 internal prototype to avoid an error. */
19381 /* We use char because int might match the return type of a gcc2
19382 builtin and then its argument prototype would still apply. */
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19399 if { (eval echo configure:19400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19401 eval "ac_cv_func_gdbm_open=yes"
19403 echo "configure: failed program was:" >&5
19404 cat conftest.$ac_ext >&5
19406 eval "ac_cv_func_gdbm_open=no"
19411 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19412 echo "$ac_t""yes" 1>&6
19415 echo "$ac_t""no" 1>&6
19417 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19418 echo "configure:19419: checking for gdbm_open in -lgdbm" >&5
19419 ac_lib_var=`echo gdbm'_'gdbm_open | 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="-lgdbm $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. */
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
19452 ol_cv_lib_gdbm=-lgdbm
19454 echo "$ac_t""no" 1>&6
19465 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19468 for ac_hdr in gdbm.h
19470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19472 echo "configure:19473: checking for $ac_hdr" >&5
19473 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19474 echo $ac_n "(cached) $ac_c" 1>&6
19476 cat > conftest.$ac_ext <<EOF
19477 #line 19478 "configure"
19478 #include "confdefs.h"
19481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19482 { (eval echo configure:19483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19484 if test -z "$ac_err"; then
19486 eval "ac_cv_header_$ac_safe=yes"
19489 echo "configure: failed program was:" >&5
19490 cat conftest.$ac_ext >&5
19492 eval "ac_cv_header_$ac_safe=no"
19496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19497 echo "$ac_t""yes" 1>&6
19498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19499 cat >> confdefs.h <<EOF
19500 #define $ac_tr_hdr 1
19504 echo "$ac_t""no" 1>&6
19508 echo $ac_n "checking for db""... $ac_c" 1>&6
19509 echo "configure:19510: checking for db" >&5
19510 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19511 echo $ac_n "(cached) $ac_c" 1>&6
19514 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19522 echo "$ac_t""$ol_cv_gdbm" 1>&6
19523 if test $ol_cv_gdbm = yes ; then
19524 cat >> confdefs.h <<\EOF
19525 #define HAVE_GDBM 1
19531 if test $ol_cv_gdbm = yes ; then
19533 ol_with_ldbm_api=gdbm
19535 if test $ol_cv_lib_gdbm != yes ; then
19536 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19541 if test $ol_with_ldbm_api = ndbm ; then
19542 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19543 echo "configure:19544: checking for NDBM library" >&5
19544 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19545 echo $ac_n "(cached) $ac_c" 1>&6
19548 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19549 echo "configure:19550: checking for dbm_open" >&5
19550 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19551 echo $ac_n "(cached) $ac_c" 1>&6
19553 cat > conftest.$ac_ext <<EOF
19554 #line 19555 "configure"
19555 #include "confdefs.h"
19556 /* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char dbm_open(); below. */
19558 #include <assert.h>
19559 /* Override any gcc2 internal prototype to avoid an error. */
19560 /* We use char because int might match the return type of a gcc2
19561 builtin and then its argument prototype would still apply. */
19567 /* The GNU C library defines this for functions which it implements
19568 to always fail with ENOSYS. Some functions are actually named
19569 something starting with __ and the normal name is an alias. */
19570 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19578 if { (eval echo configure:19579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19580 eval "ac_cv_func_dbm_open=yes"
19582 echo "configure: failed program was:" >&5
19583 cat conftest.$ac_ext >&5
19585 eval "ac_cv_func_dbm_open=no"
19590 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19591 echo "$ac_t""yes" 1>&6
19594 echo "$ac_t""no" 1>&6
19596 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19597 echo "configure:19598: checking for dbm_open in -lndbm" >&5
19598 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19599 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19600 echo $ac_n "(cached) $ac_c" 1>&6
19602 ac_save_LIBS="$LIBS"
19603 LIBS="-lndbm $LIBS"
19604 cat > conftest.$ac_ext <<EOF
19605 #line 19606 "configure"
19606 #include "confdefs.h"
19607 /* Override any gcc2 internal prototype to avoid an error. */
19608 /* We use char because int might match the return type of a gcc2
19609 builtin and then its argument prototype would still apply. */
19616 if { (eval echo configure:19617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19618 eval "ac_cv_lib_$ac_lib_var=yes"
19620 echo "configure: failed program was:" >&5
19621 cat conftest.$ac_ext >&5
19623 eval "ac_cv_lib_$ac_lib_var=no"
19626 LIBS="$ac_save_LIBS"
19629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19630 echo "$ac_t""yes" 1>&6
19631 ol_cv_lib_ndbm=-lndbm
19633 echo "$ac_t""no" 1>&6
19635 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19636 echo "configure:19637: checking for dbm_open in -ldbm" >&5
19637 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19639 echo $ac_n "(cached) $ac_c" 1>&6
19641 ac_save_LIBS="$LIBS"
19643 cat > conftest.$ac_ext <<EOF
19644 #line 19645 "configure"
19645 #include "confdefs.h"
19646 /* Override any gcc2 internal prototype to avoid an error. */
19647 /* We use char because int might match the return type of a gcc2
19648 builtin and then its argument prototype would still apply. */
19655 if { (eval echo configure:19656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19657 eval "ac_cv_lib_$ac_lib_var=yes"
19659 echo "configure: failed program was:" >&5
19660 cat conftest.$ac_ext >&5
19662 eval "ac_cv_lib_$ac_lib_var=no"
19665 LIBS="$ac_save_LIBS"
19668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19669 echo "$ac_t""yes" 1>&6
19670 ol_cv_lib_ndbm=-ldbm
19672 echo "$ac_t""no" 1>&6
19685 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19688 for ac_hdr in ndbm.h
19690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19692 echo "configure:19693: checking for $ac_hdr" >&5
19693 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19694 echo $ac_n "(cached) $ac_c" 1>&6
19696 cat > conftest.$ac_ext <<EOF
19697 #line 19698 "configure"
19698 #include "confdefs.h"
19701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19702 { (eval echo configure:19703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19704 if test -z "$ac_err"; then
19706 eval "ac_cv_header_$ac_safe=yes"
19709 echo "configure: failed program was:" >&5
19710 cat conftest.$ac_ext >&5
19712 eval "ac_cv_header_$ac_safe=no"
19716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19717 echo "$ac_t""yes" 1>&6
19718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19719 cat >> confdefs.h <<EOF
19720 #define $ac_tr_hdr 1
19724 echo "$ac_t""no" 1>&6
19728 echo $ac_n "checking for db""... $ac_c" 1>&6
19729 echo "configure:19730: checking for db" >&5
19730 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19731 echo $ac_n "(cached) $ac_c" 1>&6
19734 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19742 echo "$ac_t""$ol_cv_ndbm" 1>&6
19743 if test $ol_cv_ndbm = yes ; then
19744 cat >> confdefs.h <<\EOF
19745 #define HAVE_NDBM 1
19751 if test $ol_cv_ndbm = yes ; then
19753 ol_with_ldbm_api=ndbm
19755 if test $ol_cv_lib_ndbm != yes ; then
19756 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19761 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19762 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19763 if test $ol_enable_ldbm = yes ; then
19764 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19767 echo "configure: warning: disabling LDBM" 1>&2
19772 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19773 BUILD_LIBS_DYNAMIC=shared
19774 cat >> confdefs.h <<\EOF
19775 #define LDAP_LIBS_DYNAMIC 1
19780 BUILD_LIBS_DYNAMIC=static
19784 if test $ol_enable_wrappers != no ; then
19785 for ac_hdr in tcpd.h
19787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19789 echo "configure:19790: checking for $ac_hdr" >&5
19790 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19791 echo $ac_n "(cached) $ac_c" 1>&6
19793 cat > conftest.$ac_ext <<EOF
19794 #line 19795 "configure"
19795 #include "confdefs.h"
19798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19799 { (eval echo configure:19800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19801 if test -z "$ac_err"; then
19803 eval "ac_cv_header_$ac_safe=yes"
19806 echo "configure: failed program was:" >&5
19807 cat conftest.$ac_ext >&5
19809 eval "ac_cv_header_$ac_safe=no"
19813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19814 echo "$ac_t""yes" 1>&6
19815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19816 cat >> confdefs.h <<EOF
19817 #define $ac_tr_hdr 1
19820 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19821 echo "configure:19822: checking for TCP wrappers library" >&5
19823 LIBS="$LIBS -lwrap"
19824 cat > conftest.$ac_ext <<EOF
19825 #line 19826 "configure"
19826 #include "confdefs.h"
19829 int allow_severity = 0;
19830 int deny_severity = 0;
19832 struct request_info *req;
19840 if { (eval echo configure:19841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19842 echo "$ac_t""-lwrap" 1>&6
19846 echo "configure: failed program was:" >&5
19847 cat conftest.$ac_ext >&5
19851 cat > conftest.$ac_ext <<EOF
19852 #line 19853 "configure"
19853 #include "confdefs.h"
19856 int allow_severity = 0;
19857 int deny_severity = 0;
19859 struct request_info *req;
19867 if { (eval echo configure:19868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19869 echo "$ac_t""-lwrap -lnsl" 1>&6
19871 LIBS="$save_LIBS -lnsl"
19873 echo "configure: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19877 echo "$ac_t""no" 1>&6
19885 echo "$ac_t""no" 1>&6
19891 if test $have_wrappers = yes ; then
19892 cat >> confdefs.h <<\EOF
19893 #define HAVE_TCPD 1
19897 elif test $ol_enable_wrappers = yes ; then
19898 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19900 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19905 if test $ol_enable_syslog != no ; then
19906 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19907 echo "configure:19908: checking for openlog" >&5
19908 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19909 echo $ac_n "(cached) $ac_c" 1>&6
19911 cat > conftest.$ac_ext <<EOF
19912 #line 19913 "configure"
19913 #include "confdefs.h"
19914 /* System header to define __stub macros and hopefully few prototypes,
19915 which can conflict with char openlog(); below. */
19916 #include <assert.h>
19917 /* Override any gcc2 internal prototype to avoid an error. */
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19925 /* The GNU C library defines this for functions which it implements
19926 to always fail with ENOSYS. Some functions are actually named
19927 something starting with __ and the normal name is an alias. */
19928 #if defined (__stub_openlog) || defined (__stub___openlog)
19936 if { (eval echo configure:19937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19938 eval "ac_cv_func_openlog=yes"
19940 echo "configure: failed program was:" >&5
19941 cat conftest.$ac_ext >&5
19943 eval "ac_cv_func_openlog=no"
19948 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19949 echo "$ac_t""yes" 1>&6
19952 echo "$ac_t""no" 1>&6
19955 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19956 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19958 ol_enable_syslog=$ac_cv_func_openlog
19963 if test $ol_enable_sql != no ; then
19964 for ac_hdr in sql.h sqlext.h
19966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19968 echo "configure:19969: checking for $ac_hdr" >&5
19969 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19970 echo $ac_n "(cached) $ac_c" 1>&6
19972 cat > conftest.$ac_ext <<EOF
19973 #line 19974 "configure"
19974 #include "confdefs.h"
19977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19978 { (eval echo configure:19979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19980 if test -z "$ac_err"; then
19982 eval "ac_cv_header_$ac_safe=yes"
19985 echo "configure: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19988 eval "ac_cv_header_$ac_safe=no"
19992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19993 echo "$ac_t""yes" 1>&6
19994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19995 cat >> confdefs.h <<EOF
19996 #define $ac_tr_hdr 1
20000 echo "$ac_t""no" 1>&6
20001 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20007 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20008 echo "configure:20009: checking for SQLDriverConnect in -liodbc" >&5
20009 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20011 echo $ac_n "(cached) $ac_c" 1>&6
20013 ac_save_LIBS="$LIBS"
20014 LIBS="-liodbc $LIBS"
20015 cat > conftest.$ac_ext <<EOF
20016 #line 20017 "configure"
20017 #include "confdefs.h"
20018 /* Override any gcc2 internal prototype to avoid an error. */
20019 /* We use char because int might match the return type of a gcc2
20020 builtin and then its argument prototype would still apply. */
20021 char SQLDriverConnect();
20027 if { (eval echo configure:20028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20029 eval "ac_cv_lib_$ac_lib_var=yes"
20031 echo "configure: failed program was:" >&5
20032 cat conftest.$ac_ext >&5
20034 eval "ac_cv_lib_$ac_lib_var=no"
20037 LIBS="$ac_save_LIBS"
20040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20041 echo "$ac_t""yes" 1>&6
20044 echo "$ac_t""no" 1>&6
20048 if test $have_iodbc = yes ; then
20049 ol_link_sql="-liodbc"
20051 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20052 echo "configure:20053: checking for SQLDriverConnect in -lodbc" >&5
20053 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20054 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20055 echo $ac_n "(cached) $ac_c" 1>&6
20057 ac_save_LIBS="$LIBS"
20058 LIBS="-lodbc $LIBS"
20059 cat > conftest.$ac_ext <<EOF
20060 #line 20061 "configure"
20061 #include "confdefs.h"
20062 /* Override any gcc2 internal prototype to avoid an error. */
20063 /* We use char because int might match the return type of a gcc2
20064 builtin and then its argument prototype would still apply. */
20065 char SQLDriverConnect();
20071 if { (eval echo configure:20072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20073 eval "ac_cv_lib_$ac_lib_var=yes"
20075 echo "configure: failed program was:" >&5
20076 cat conftest.$ac_ext >&5
20078 eval "ac_cv_lib_$ac_lib_var=no"
20081 LIBS="$ac_save_LIBS"
20084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20085 echo "$ac_t""yes" 1>&6
20088 echo "$ac_t""no" 1>&6
20092 if test $have_odbc = yes ; then
20093 ol_link_sql="-lodbc"
20097 if test $ol_link_sql != no ; then
20098 SLAPD_SQL_LIBS="$ol_link_sql"
20100 elif test $ol_enable_sql != auto ; then
20101 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20105 if test $ol_enable_tcl != no ; then
20106 for ac_hdr in tcl.h
20108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20110 echo "configure:20111: checking for $ac_hdr" >&5
20111 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20112 echo $ac_n "(cached) $ac_c" 1>&6
20114 cat > conftest.$ac_ext <<EOF
20115 #line 20116 "configure"
20116 #include "confdefs.h"
20119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20120 { (eval echo configure:20121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20122 if test -z "$ac_err"; then
20124 eval "ac_cv_header_$ac_safe=yes"
20127 echo "configure: failed program was:" >&5
20128 cat conftest.$ac_ext >&5
20130 eval "ac_cv_header_$ac_safe=no"
20134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20135 echo "$ac_t""yes" 1>&6
20136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20137 cat >> confdefs.h <<EOF
20138 #define $ac_tr_hdr 1
20142 echo "$ac_t""no" 1>&6
20147 if test $ac_cv_header_tcl_h != yes ; then
20150 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
20151 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
20152 echo "configure:20153: checking for main in -l$lib" >&5
20153 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
20154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20155 echo $ac_n "(cached) $ac_c" 1>&6
20157 ac_save_LIBS="$LIBS"
20158 LIBS="-l$lib $LIBS"
20159 cat > conftest.$ac_ext <<EOF
20160 #line 20161 "configure"
20161 #include "confdefs.h"
20167 if { (eval echo configure:20168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20169 eval "ac_cv_lib_$ac_lib_var=yes"
20171 echo "configure: failed program was:" >&5
20172 cat conftest.$ac_ext >&5
20174 eval "ac_cv_lib_$ac_lib_var=no"
20177 LIBS="$ac_save_LIBS"
20180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20181 echo "$ac_t""yes" 1>&6
20183 if test x"$ol_with_tcl_module" = "xstatic" ; then
20184 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
20186 MOD_TCL_LIB="-l${lib}"
20189 echo "$ac_t""no" 1>&6
20196 if test $have_tcl != yes ; then
20197 echo "configure: warning: could not find -ltcl" 1>&2
20198 if test $ol_enable_tcl = yes ; then
20199 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
20207 for ac_hdr in termcap.h ncurses.h
20209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20211 echo "configure:20212: checking for $ac_hdr" >&5
20212 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20213 echo $ac_n "(cached) $ac_c" 1>&6
20215 cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20221 { (eval echo configure:20222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20223 if test -z "$ac_err"; then
20225 eval "ac_cv_header_$ac_safe=yes"
20228 echo "configure: failed program was:" >&5
20229 cat conftest.$ac_ext >&5
20231 eval "ac_cv_header_$ac_safe=no"
20235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20236 echo "$ac_t""yes" 1>&6
20237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20238 cat >> confdefs.h <<EOF
20239 #define $ac_tr_hdr 1
20243 echo "$ac_t""no" 1>&6
20248 if test $ol_link_termcap = no ; then
20249 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
20250 echo "configure:20251: checking for tputs in -ltermcap" >&5
20251 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20253 echo $ac_n "(cached) $ac_c" 1>&6
20255 ac_save_LIBS="$LIBS"
20256 LIBS="-ltermcap $LIBS"
20257 cat > conftest.$ac_ext <<EOF
20258 #line 20259 "configure"
20259 #include "confdefs.h"
20260 /* Override any gcc2 internal prototype to avoid an error. */
20261 /* We use char because int might match the return type of a gcc2
20262 builtin and then its argument prototype would still apply. */
20269 if { (eval echo configure:20270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20271 eval "ac_cv_lib_$ac_lib_var=yes"
20273 echo "configure: failed program was:" >&5
20274 cat conftest.$ac_ext >&5
20276 eval "ac_cv_lib_$ac_lib_var=no"
20279 LIBS="$ac_save_LIBS"
20282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20283 echo "$ac_t""yes" 1>&6
20286 echo "$ac_t""no" 1>&6
20290 if test $have_termcap = yes ; then
20291 cat >> confdefs.h <<\EOF
20292 #define HAVE_TERMCAP 1
20295 ol_link_termcap=yes
20296 TERMCAP_LIBS=-ltermcap
20300 if test $ol_link_termcap = no ; then
20301 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20302 echo "configure:20303: checking for initscr in -lncurses" >&5
20303 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20304 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20305 echo $ac_n "(cached) $ac_c" 1>&6
20307 ac_save_LIBS="$LIBS"
20308 LIBS="-lncurses $LIBS"
20309 cat > conftest.$ac_ext <<EOF
20310 #line 20311 "configure"
20311 #include "confdefs.h"
20312 /* Override any gcc2 internal prototype to avoid an error. */
20313 /* We use char because int might match the return type of a gcc2
20314 builtin and then its argument prototype would still apply. */
20321 if { (eval echo configure:20322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20323 eval "ac_cv_lib_$ac_lib_var=yes"
20325 echo "configure: failed program was:" >&5
20326 cat conftest.$ac_ext >&5
20328 eval "ac_cv_lib_$ac_lib_var=no"
20331 LIBS="$ac_save_LIBS"
20334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20335 echo "$ac_t""yes" 1>&6
20338 echo "$ac_t""no" 1>&6
20342 if test $have_ncurses = yes ; then
20343 cat >> confdefs.h <<\EOF
20344 #define HAVE_NCURSES 1
20347 ol_link_termcap=yes
20348 TERMCAP_LIBS=-lncurses
20352 if test $ol_link_termcap = no ; then
20353 cat >> confdefs.h <<\EOF
20354 #define NO_TERMCAP 1
20362 if test $ol_with_cyrus_sasl != no ; then
20363 for ac_hdr in sasl/sasl.h sasl.h
20365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20367 echo "configure:20368: checking for $ac_hdr" >&5
20368 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20369 echo $ac_n "(cached) $ac_c" 1>&6
20371 cat > conftest.$ac_ext <<EOF
20372 #line 20373 "configure"
20373 #include "confdefs.h"
20376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20377 { (eval echo configure:20378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20379 if test -z "$ac_err"; then
20381 eval "ac_cv_header_$ac_safe=yes"
20384 echo "configure: failed program was:" >&5
20385 cat conftest.$ac_ext >&5
20387 eval "ac_cv_header_$ac_safe=no"
20391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20392 echo "$ac_t""yes" 1>&6
20393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20394 cat >> confdefs.h <<EOF
20395 #define $ac_tr_hdr 1
20399 echo "$ac_t""no" 1>&6
20404 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20405 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20406 echo "configure:20407: checking for sasl_client_init in -lsasl2" >&5
20407 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20408 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20409 echo $ac_n "(cached) $ac_c" 1>&6
20411 ac_save_LIBS="$LIBS"
20412 LIBS="-lsasl2 $LIBS"
20413 cat > conftest.$ac_ext <<EOF
20414 #line 20415 "configure"
20415 #include "confdefs.h"
20416 /* Override any gcc2 internal prototype to avoid an error. */
20417 /* We use char because int might match the return type of a gcc2
20418 builtin and then its argument prototype would still apply. */
20419 char sasl_client_init();
20425 if { (eval echo configure:20426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20427 eval "ac_cv_lib_$ac_lib_var=yes"
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20432 eval "ac_cv_lib_$ac_lib_var=no"
20435 LIBS="$ac_save_LIBS"
20438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20439 echo "$ac_t""yes" 1>&6
20440 ol_link_sasl="-lsasl2"
20442 echo "$ac_t""no" 1>&6
20443 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20444 echo "configure:20445: checking for sasl_client_init in -lsasl" >&5
20445 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20447 echo $ac_n "(cached) $ac_c" 1>&6
20449 ac_save_LIBS="$LIBS"
20450 LIBS="-lsasl $LIBS"
20451 cat > conftest.$ac_ext <<EOF
20452 #line 20453 "configure"
20453 #include "confdefs.h"
20454 /* Override any gcc2 internal prototype to avoid an error. */
20455 /* We use char because int might match the return type of a gcc2
20456 builtin and then its argument prototype would still apply. */
20457 char sasl_client_init();
20463 if { (eval echo configure:20464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20465 eval "ac_cv_lib_$ac_lib_var=yes"
20467 echo "configure: failed program was:" >&5
20468 cat conftest.$ac_ext >&5
20470 eval "ac_cv_lib_$ac_lib_var=no"
20473 LIBS="$ac_save_LIBS"
20476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20477 echo "$ac_t""yes" 1>&6
20478 ol_link_sasl="-lsasl"
20480 echo "$ac_t""no" 1>&6
20487 if test $ol_link_sasl = no ; then
20488 if test $ol_with_cyrus_sasl != auto ; then
20489 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20491 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20492 echo "configure: warning: SASL authentication not supported!" 1>&2
20493 if test $ol_link_tls = no ; then
20494 echo "configure: warning: Strong authentication not supported!" 1>&2
20498 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20499 echo "configure:20500: checking Cyrus SASL library version" >&5
20500 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20501 echo $ac_n "(cached) $ac_c" 1>&6
20504 cat > conftest.$ac_ext <<EOF
20505 #line 20506 "configure"
20506 #include "confdefs.h"
20508 #ifdef HAVE_SASL_SASL_H
20509 #include <sasl/sasl.h>
20514 /* require 2.1.3 or later */
20515 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20516 char *__sasl_compat = "1.5.x okay";
20517 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20518 __sasl_compat "2.2+ or better okay (we guess)";
20519 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20520 && SASL_VERSION_STEP >=3
20521 __sasl_compat = "2.1.3+ or better okay";
20525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20526 egrep "__sasl_compat" >/dev/null 2>&1; then
20528 ol_cv_sasl_compat=yes
20531 ol_cv_sasl_compat=no
20537 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20539 if test $ol_cv_sasl_compat = no ; then
20541 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20544 cat >> confdefs.h <<\EOF
20545 #define HAVE_CYRUS_SASL 1
20548 SASL_LIBS="$ol_link_sasl"
20549 if test $ol_enable_spasswd != no ; then
20550 ol_link_spasswd=yes
20553 ac_save_LIBS="$LIBS"
20554 LIBS="$LIBS $ol_link_sasl"
20555 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20556 echo "configure:20557: checking for sasl_version" >&5
20557 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20558 echo $ac_n "(cached) $ac_c" 1>&6
20560 cat > conftest.$ac_ext <<EOF
20561 #line 20562 "configure"
20562 #include "confdefs.h"
20563 /* System header to define __stub macros and hopefully few prototypes,
20564 which can conflict with char sasl_version(); below. */
20565 #include <assert.h>
20566 /* Override any gcc2 internal prototype to avoid an error. */
20567 /* We use char because int might match the return type of a gcc2
20568 builtin and then its argument prototype would still apply. */
20569 char sasl_version();
20574 /* The GNU C library defines this for functions which it implements
20575 to always fail with ENOSYS. Some functions are actually named
20576 something starting with __ and the normal name is an alias. */
20577 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20585 if { (eval echo configure:20586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20587 eval "ac_cv_func_sasl_version=yes"
20589 echo "configure: failed program was:" >&5
20590 cat conftest.$ac_ext >&5
20592 eval "ac_cv_func_sasl_version=no"
20597 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20598 echo "$ac_t""yes" 1>&6
20599 cat >> confdefs.h <<\EOF
20600 #define HAVE_SASL_VERSION 1
20604 echo "$ac_t""no" 1>&6
20607 LIBS="$ac_save_LIBS"
20611 echo "configure: warning: SASL authentication not supported!" 1>&2
20612 if test $ol_link_tls = no ; then
20613 echo "configure: warning: Strong authentication not supported!" 1>&2
20617 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20619 if test -r /dev/urandom ; then
20620 dev="/dev/urandom";
20621 elif test -r /idev/urandom ; then
20622 dev="/idev/urandom";
20623 elif test -r /dev/srandom ; then
20624 dev="/dev/srandom";
20625 elif test -r /dev/random ; then
20627 elif test -r /idev/random ; then
20628 dev="/idev/random";
20631 if test $dev != no ; then
20632 cat >> confdefs.h <<EOF
20633 #define URANDOM_DEVICE "$dev"
20640 if test $ol_with_fetch != no ; then
20642 LIBS="-lfetch -lcom_err $LIBS"
20643 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20644 echo "configure:20645: checking fetch(3) library" >&5
20645 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20646 echo $ac_n "(cached) $ac_c" 1>&6
20649 cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20653 #include <sys/param.h>
20657 struct url *u = fetchParseURL("file:///");
20660 if { (eval echo configure:20661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20662 ol_cv_lib_fetch=yes
20664 echo "configure: failed program was:" >&5
20665 cat conftest.$ac_ext >&5
20672 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20674 if test $ol_cv_lib_fetch != no ; then
20675 ol_link_fetch="-lfetch -lcom_err"
20676 cat >> confdefs.h <<\EOF
20677 #define HAVE_FETCH 1
20683 if test $ol_cv_lib_fetch != no ; then
20684 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20685 ol_link_fetch=freebsd
20687 elif test $ol_with_fetch != auto ; then
20688 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20692 ol_link_readline=no
20693 if test $ol_with_readline != no ; then
20694 for ac_hdr in readline/readline.h readline/history.h
20696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20698 echo "configure:20699: checking for $ac_hdr" >&5
20699 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20700 echo $ac_n "(cached) $ac_c" 1>&6
20702 cat > conftest.$ac_ext <<EOF
20703 #line 20704 "configure"
20704 #include "confdefs.h"
20707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20708 { (eval echo configure:20709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20710 if test -z "$ac_err"; then
20712 eval "ac_cv_header_$ac_safe=yes"
20715 echo "configure: failed program was:" >&5
20716 cat conftest.$ac_ext >&5
20718 eval "ac_cv_header_$ac_safe=no"
20722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20723 echo "$ac_t""yes" 1>&6
20724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20725 cat >> confdefs.h <<EOF
20726 #define $ac_tr_hdr 1
20730 echo "$ac_t""no" 1>&6
20735 if test $ac_cv_header_readline_readline_h = yes ; then
20737 LIBS="$TERMCAP_LIBS $LIBS"
20738 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20739 echo "configure:20740: checking for readline in -lreadline" >&5
20740 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20741 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20742 echo $ac_n "(cached) $ac_c" 1>&6
20744 ac_save_LIBS="$LIBS"
20745 LIBS="-lreadline $LIBS"
20746 cat > conftest.$ac_ext <<EOF
20747 #line 20748 "configure"
20748 #include "confdefs.h"
20749 /* Override any gcc2 internal prototype to avoid an error. */
20750 /* We use char because int might match the return type of a gcc2
20751 builtin and then its argument prototype would still apply. */
20758 if { (eval echo configure:20759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20760 eval "ac_cv_lib_$ac_lib_var=yes"
20762 echo "configure: failed program was:" >&5
20763 cat conftest.$ac_ext >&5
20765 eval "ac_cv_lib_$ac_lib_var=no"
20768 LIBS="$ac_save_LIBS"
20771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20772 echo "$ac_t""yes" 1>&6
20775 echo "$ac_t""no" 1>&6
20781 if test $have_readline = yes ; then
20782 ol_with_readline=found
20783 ol_link_readline=yes
20785 READLINE_LIBS="-lreadline"
20790 if test $ol_link_readline = yes ; then
20791 cat >> confdefs.h <<\EOF
20792 #define HAVE_READLINE 1
20798 if test $ol_enable_crypt != no ; then
20800 LIBS="$TLS_LIBS $LIBS"
20802 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20803 echo "configure:20804: checking for crypt" >&5
20804 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20805 echo $ac_n "(cached) $ac_c" 1>&6
20807 cat > conftest.$ac_ext <<EOF
20808 #line 20809 "configure"
20809 #include "confdefs.h"
20810 /* System header to define __stub macros and hopefully few prototypes,
20811 which can conflict with char crypt(); below. */
20812 #include <assert.h>
20813 /* Override any gcc2 internal prototype to avoid an error. */
20814 /* We use char because int might match the return type of a gcc2
20815 builtin and then its argument prototype would still apply. */
20821 /* The GNU C library defines this for functions which it implements
20822 to always fail with ENOSYS. Some functions are actually named
20823 something starting with __ and the normal name is an alias. */
20824 #if defined (__stub_crypt) || defined (__stub___crypt)
20832 if { (eval echo configure:20833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20834 eval "ac_cv_func_crypt=yes"
20836 echo "configure: failed program was:" >&5
20837 cat conftest.$ac_ext >&5
20839 eval "ac_cv_func_crypt=no"
20844 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20845 echo "$ac_t""yes" 1>&6
20848 echo "$ac_t""no" 1>&6
20851 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20852 echo "configure:20853: checking for crypt in -lcrypt" >&5
20853 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20855 echo $ac_n "(cached) $ac_c" 1>&6
20857 ac_save_LIBS="$LIBS"
20858 LIBS="-lcrypt $LIBS"
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20862 /* Override any gcc2 internal prototype to avoid an error. */
20863 /* We use char because int might match the return type of a gcc2
20864 builtin and then its argument prototype would still apply. */
20871 if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20873 eval "ac_cv_lib_$ac_lib_var=yes"
20875 echo "configure: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20878 eval "ac_cv_lib_$ac_lib_var=no"
20881 LIBS="$ac_save_LIBS"
20884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20885 echo "$ac_t""yes" 1>&6
20886 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20889 echo "$ac_t""no" 1>&6
20898 if test $have_crypt = yes ; then
20899 cat >> confdefs.h <<\EOF
20900 #define HAVE_CRYPT 1
20904 echo "configure: warning: could not find crypt" 1>&2
20905 if test $ol_enable_crypt = yes ; then
20906 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20909 echo "configure: warning: disabling crypt support" 1>&2
20914 if test $ol_enable_proctitle != no ; then
20915 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20916 echo "configure:20917: checking for setproctitle" >&5
20917 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20918 echo $ac_n "(cached) $ac_c" 1>&6
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 /* System header to define __stub macros and hopefully few prototypes,
20924 which can conflict with char setproctitle(); below. */
20925 #include <assert.h>
20926 /* Override any gcc2 internal prototype to avoid an error. */
20927 /* We use char because int might match the return type of a gcc2
20928 builtin and then its argument prototype would still apply. */
20929 char setproctitle();
20934 /* The GNU C library defines this for functions which it implements
20935 to always fail with ENOSYS. Some functions are actually named
20936 something starting with __ and the normal name is an alias. */
20937 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20945 if { (eval echo configure:20946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20947 eval "ac_cv_func_setproctitle=yes"
20949 echo "configure: failed program was:" >&5
20950 cat conftest.$ac_ext >&5
20952 eval "ac_cv_func_setproctitle=no"
20957 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20958 echo "$ac_t""yes" 1>&6
20959 have_setproctitle=yes
20961 echo "$ac_t""no" 1>&6
20963 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20964 echo "configure:20965: checking for setproctitle in -lutil" >&5
20965 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20967 echo $ac_n "(cached) $ac_c" 1>&6
20969 ac_save_LIBS="$LIBS"
20970 LIBS="-lutil $LIBS"
20971 cat > conftest.$ac_ext <<EOF
20972 #line 20973 "configure"
20973 #include "confdefs.h"
20974 /* Override any gcc2 internal prototype to avoid an error. */
20975 /* We use char because int might match the return type of a gcc2
20976 builtin and then its argument prototype would still apply. */
20977 char setproctitle();
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20985 eval "ac_cv_lib_$ac_lib_var=yes"
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 eval "ac_cv_lib_$ac_lib_var=no"
20993 LIBS="$ac_save_LIBS"
20996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20997 echo "$ac_t""yes" 1>&6
20998 have_setproctitle=yes
20999 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21001 echo "$ac_t""no" 1>&6
21002 have_setproctitle=no
21003 LIBOBJS="$LIBOBJS setproctitle.o"
21004 LIBSRCS="$LIBSRCS setproctitle.c"
21010 if test $have_setproctitle = yes ; then
21011 cat >> confdefs.h <<\EOF
21012 #define HAVE_SETPROCTITLE 1
21018 if test $ol_enable_slp != no ; then
21019 for ac_hdr in slp.h
21021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21023 echo "configure:21024: checking for $ac_hdr" >&5
21024 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21025 echo $ac_n "(cached) $ac_c" 1>&6
21027 cat > conftest.$ac_ext <<EOF
21028 #line 21029 "configure"
21029 #include "confdefs.h"
21032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21033 { (eval echo configure:21034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21035 if test -z "$ac_err"; then
21037 eval "ac_cv_header_$ac_safe=yes"
21040 echo "configure: failed program was:" >&5
21041 cat conftest.$ac_ext >&5
21043 eval "ac_cv_header_$ac_safe=no"
21047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21048 echo "$ac_t""yes" 1>&6
21049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21050 cat >> confdefs.h <<EOF
21051 #define $ac_tr_hdr 1
21055 echo "$ac_t""no" 1>&6
21060 if test $ac_cv_header_slp_h = yes ; then
21061 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21062 echo "configure:21063: checking for SLPOpen in -lslp" >&5
21063 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21065 echo $ac_n "(cached) $ac_c" 1>&6
21067 ac_save_LIBS="$LIBS"
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21072 /* Override any gcc2 internal prototype to avoid an error. */
21073 /* We use char because int might match the return type of a gcc2
21074 builtin and then its argument prototype would still apply. */
21081 if { (eval echo configure:21082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21083 eval "ac_cv_lib_$ac_lib_var=yes"
21085 echo "configure: failed program was:" >&5
21086 cat conftest.$ac_ext >&5
21088 eval "ac_cv_lib_$ac_lib_var=no"
21091 LIBS="$ac_save_LIBS"
21094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21095 echo "$ac_t""yes" 1>&6
21098 echo "$ac_t""no" 1>&6
21102 if test $have_slp = yes ; then
21103 cat >> confdefs.h <<\EOF
21107 SLAPD_SLP_LIBS=-lslp
21110 elif test $ol_enable_slp = yes ; then
21111 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21115 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21116 echo "configure:21117: checking for ANSI C header files" >&5
21117 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21118 echo $ac_n "(cached) $ac_c" 1>&6
21120 cat > conftest.$ac_ext <<EOF
21121 #line 21122 "configure"
21122 #include "confdefs.h"
21123 #include <stdlib.h>
21124 #include <stdarg.h>
21125 #include <string.h>
21128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21129 { (eval echo configure:21130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21131 if test -z "$ac_err"; then
21133 ac_cv_header_stdc=yes
21136 echo "configure: failed program was:" >&5
21137 cat conftest.$ac_ext >&5
21139 ac_cv_header_stdc=no
21143 if test $ac_cv_header_stdc = yes; then
21144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21145 cat > conftest.$ac_ext <<EOF
21146 #line 21147 "configure"
21147 #include "confdefs.h"
21148 #include <string.h>
21150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21151 egrep "memchr" >/dev/null 2>&1; then
21155 ac_cv_header_stdc=no
21161 if test $ac_cv_header_stdc = yes; then
21162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21163 cat > conftest.$ac_ext <<EOF
21164 #line 21165 "configure"
21165 #include "confdefs.h"
21166 #include <stdlib.h>
21168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21169 egrep "free" >/dev/null 2>&1; then
21173 ac_cv_header_stdc=no
21179 if test $ac_cv_header_stdc = yes; then
21180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21181 if test "$cross_compiling" = yes; then
21184 cat > conftest.$ac_ext <<EOF
21185 #line 21186 "configure"
21186 #include "confdefs.h"
21188 #if ((' ' & 0x0FF) == 0x020)
21189 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21190 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21192 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21193 || ('j' <= (c) && (c) <= 'r') \
21194 || ('s' <= (c) && (c) <= 'z'))
21195 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21198 int main () { int i; for (i = 0; i < 256; i++)
21199 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21203 if { (eval echo configure:21204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21207 echo "configure: failed program was:" >&5
21208 cat conftest.$ac_ext >&5
21210 ac_cv_header_stdc=no
21218 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21219 if test $ac_cv_header_stdc = yes; then
21220 cat >> confdefs.h <<\EOF
21221 #define STDC_HEADERS 1
21226 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21227 echo "configure:21228: checking for mode_t" >&5
21228 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21229 echo $ac_n "(cached) $ac_c" 1>&6
21231 cat > conftest.$ac_ext <<EOF
21232 #line 21233 "configure"
21233 #include "confdefs.h"
21234 #include <sys/types.h>
21236 #include <stdlib.h>
21237 #include <stddef.h>
21241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21242 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21244 eval "ac_cv_type_mode_t=yes"
21247 eval "ac_cv_type_mode_t=no"
21252 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21253 echo "$ac_t""yes" 1>&6
21255 echo "$ac_t""no" 1>&6
21256 cat >> confdefs.h <<EOF
21262 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21263 echo "configure:21264: checking for off_t" >&5
21264 if eval "test \"\${ac_cv_type_off_t+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"
21270 #include <sys/types.h>
21272 #include <stdlib.h>
21273 #include <stddef.h>
21277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21278 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21280 eval "ac_cv_type_off_t=yes"
21283 eval "ac_cv_type_off_t=no"
21288 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21289 echo "$ac_t""yes" 1>&6
21291 echo "$ac_t""no" 1>&6
21292 cat >> confdefs.h <<EOF
21298 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21299 echo "configure:21300: checking for pid_t" >&5
21300 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21301 echo $ac_n "(cached) $ac_c" 1>&6
21303 cat > conftest.$ac_ext <<EOF
21304 #line 21305 "configure"
21305 #include "confdefs.h"
21306 #include <sys/types.h>
21308 #include <stdlib.h>
21309 #include <stddef.h>
21313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21316 eval "ac_cv_type_pid_t=yes"
21319 eval "ac_cv_type_pid_t=no"
21324 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21325 echo "$ac_t""yes" 1>&6
21327 echo "$ac_t""no" 1>&6
21328 cat >> confdefs.h <<EOF
21334 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21335 echo "configure:21336: checking for ptrdiff_t" >&5
21336 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21337 echo $ac_n "(cached) $ac_c" 1>&6
21339 cat > conftest.$ac_ext <<EOF
21340 #line 21341 "configure"
21341 #include "confdefs.h"
21342 #include <stddef.h>
21347 if { (eval echo configure:21348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21349 am_cv_type_ptrdiff_t=yes
21351 echo "configure: failed program was:" >&5
21352 cat conftest.$ac_ext >&5
21354 am_cv_type_ptrdiff_t=no
21359 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21360 if test $am_cv_type_ptrdiff_t = yes; then
21361 cat >> confdefs.h <<\EOF
21362 #define HAVE_PTRDIFF_T 1
21367 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21368 echo "configure:21369: checking return type of signal handlers" >&5
21369 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21370 echo $ac_n "(cached) $ac_c" 1>&6
21372 cat > conftest.$ac_ext <<EOF
21373 #line 21374 "configure"
21374 #include "confdefs.h"
21375 #include <sys/types.h>
21376 #include <signal.h>
21381 extern "C" void (*signal (int, void (*)(int)))(int);
21383 void (*signal ()) ();
21390 if { (eval echo configure:21391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21392 ac_cv_type_signal=void
21394 echo "configure: failed program was:" >&5
21395 cat conftest.$ac_ext >&5
21397 ac_cv_type_signal=int
21402 echo "$ac_t""$ac_cv_type_signal" 1>&6
21403 cat >> confdefs.h <<EOF
21404 #define RETSIGTYPE $ac_cv_type_signal
21408 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21409 echo "configure:21410: checking for size_t" >&5
21410 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21411 echo $ac_n "(cached) $ac_c" 1>&6
21413 cat > conftest.$ac_ext <<EOF
21414 #line 21415 "configure"
21415 #include "confdefs.h"
21416 #include <sys/types.h>
21418 #include <stdlib.h>
21419 #include <stddef.h>
21423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21426 eval "ac_cv_type_size_t=yes"
21429 eval "ac_cv_type_size_t=no"
21434 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21435 echo "$ac_t""yes" 1>&6
21437 echo "$ac_t""no" 1>&6
21438 cat >> confdefs.h <<EOF
21439 #define size_t unsigned
21445 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21446 echo "configure:21447: checking for ssize_t" >&5
21447 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21448 echo $ac_n "(cached) $ac_c" 1>&6
21450 cat > conftest.$ac_ext <<EOF
21451 #line 21452 "configure"
21452 #include "confdefs.h"
21453 #include <sys/types.h>
21455 #include <stdlib.h>
21456 #include <stddef.h>
21460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21461 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21463 eval "ac_cv_type_ssize_t=yes"
21466 eval "ac_cv_type_ssize_t=no"
21471 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21472 echo "$ac_t""yes" 1>&6
21474 echo "$ac_t""no" 1>&6
21475 cat >> confdefs.h <<EOF
21476 #define ssize_t signed int
21481 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21482 echo "configure:21483: checking for caddr_t" >&5
21483 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21484 echo $ac_n "(cached) $ac_c" 1>&6
21486 cat > conftest.$ac_ext <<EOF
21487 #line 21488 "configure"
21488 #include "confdefs.h"
21489 #include <sys/types.h>
21491 #include <stdlib.h>
21492 #include <stddef.h>
21496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21497 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21499 eval "ac_cv_type_caddr_t=yes"
21502 eval "ac_cv_type_caddr_t=no"
21507 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21508 echo "$ac_t""yes" 1>&6
21510 echo "$ac_t""no" 1>&6
21511 cat >> confdefs.h <<EOF
21512 #define caddr_t char *
21518 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21519 echo "configure:21520: checking for socklen_t" >&5
21520 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21521 echo $ac_n "(cached) $ac_c" 1>&6
21523 cat > conftest.$ac_ext <<EOF
21524 #line 21525 "configure"
21525 #include "confdefs.h"
21527 #ifdef HAVE_SYS_TYPES_H
21528 #include <sys/types.h>
21530 #ifdef HAVE_SYS_SOCKET_H
21531 #include <sys/socket.h>
21538 if { (eval echo configure:21539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21540 ol_cv_type_socklen_t=yes
21542 echo "configure: failed program was:" >&5
21543 cat conftest.$ac_ext >&5
21545 ol_cv_type_socklen_t=no
21550 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21551 if test $ol_cv_type_socklen_t = no; then
21552 cat >> confdefs.h <<\EOF
21553 #define socklen_t int
21558 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21559 echo "configure:21560: checking for member st_blksize in aggregate type struct stat" >&5
21560 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21561 echo $ac_n "(cached) $ac_c" 1>&6
21563 cat > conftest.$ac_ext <<EOF
21564 #line 21565 "configure"
21565 #include "confdefs.h"
21566 #include <sys/types.h>
21567 #include <sys/stat.h>
21569 struct stat foo; foo.st_blksize;
21572 if { (eval echo configure:21573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21574 ac_cv_c_struct_member_st_blksize=yes
21576 echo "configure: failed program was:" >&5
21577 cat conftest.$ac_ext >&5
21579 ac_cv_c_struct_member_st_blksize=no
21584 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21585 st_blksize="$ac_cv_c_struct_member_st_blksize"
21586 if test $ac_cv_c_struct_member_st_blksize = yes; then
21587 cat >> confdefs.h <<\EOF
21588 #define HAVE_ST_BLKSIZE 1
21593 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21594 echo "configure:21595: checking whether time.h and sys/time.h may both be included" >&5
21595 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21596 echo $ac_n "(cached) $ac_c" 1>&6
21598 cat > conftest.$ac_ext <<EOF
21599 #line 21600 "configure"
21600 #include "confdefs.h"
21601 #include <sys/types.h>
21602 #include <sys/time.h>
21608 if { (eval echo configure:21609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21610 ac_cv_header_time=yes
21612 echo "configure: failed program was:" >&5
21613 cat conftest.$ac_ext >&5
21615 ac_cv_header_time=no
21620 echo "$ac_t""$ac_cv_header_time" 1>&6
21621 if test $ac_cv_header_time = yes; then
21622 cat >> confdefs.h <<\EOF
21623 #define TIME_WITH_SYS_TIME 1
21628 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21629 echo "configure:21630: checking whether struct tm is in sys/time.h or time.h" >&5
21630 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21631 echo $ac_n "(cached) $ac_c" 1>&6
21633 cat > conftest.$ac_ext <<EOF
21634 #line 21635 "configure"
21635 #include "confdefs.h"
21636 #include <sys/types.h>
21639 struct tm *tp; tp->tm_sec;
21642 if { (eval echo configure:21643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21644 ac_cv_struct_tm=time.h
21646 echo "configure: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21649 ac_cv_struct_tm=sys/time.h
21654 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21655 if test $ac_cv_struct_tm = sys/time.h; then
21656 cat >> confdefs.h <<\EOF
21657 #define TM_IN_SYS_TIME 1
21662 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21663 echo "configure:21664: checking for uid_t in sys/types.h" >&5
21664 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21665 echo $ac_n "(cached) $ac_c" 1>&6
21667 cat > conftest.$ac_ext <<EOF
21668 #line 21669 "configure"
21669 #include "confdefs.h"
21670 #include <sys/types.h>
21672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21673 egrep "uid_t" >/dev/null 2>&1; then
21675 ac_cv_type_uid_t=yes
21678 ac_cv_type_uid_t=no
21684 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21685 if test $ac_cv_type_uid_t = no; then
21686 cat >> confdefs.h <<\EOF
21690 cat >> confdefs.h <<\EOF
21696 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21697 echo "configure:21698: checking for sig_atomic_t" >&5
21698 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21699 echo $ac_n "(cached) $ac_c" 1>&6
21701 cat > conftest.$ac_ext <<EOF
21702 #line 21703 "configure"
21703 #include "confdefs.h"
21704 #include <signal.h>
21706 sig_atomic_t atomic;
21709 if { (eval echo configure:21710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21711 ol_cv_type_sig_atomic_t=yes
21713 echo "configure: failed program was:" >&5
21714 cat conftest.$ac_ext >&5
21716 ol_cv_type_sig_atomic_t=no
21721 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21722 if test $ol_cv_type_sig_atomic_t = no; then
21723 cat >> confdefs.h <<\EOF
21724 #define sig_atomic_t int
21731 # test for pw_gecos in struct passwd
21732 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21733 echo "configure:21734: checking struct passwd for pw_gecos" >&5
21734 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21735 echo $ac_n "(cached) $ac_c" 1>&6
21738 cat > conftest.$ac_ext <<EOF
21739 #line 21740 "configure"
21740 #include "confdefs.h"
21745 pwd.pw_gecos = pwd.pw_name;
21749 if { (eval echo configure:21750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21751 ol_cv_struct_passwd_pw_gecos=yes
21753 echo "configure: failed program was:" >&5
21754 cat conftest.$ac_ext >&5
21756 ol_cv_struct_passwd_pw_gecos=no
21761 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21762 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21763 cat >> confdefs.h <<\EOF
21764 #define HAVE_PW_GECOS 1
21769 # test for pw_passwd in struct passwd
21770 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21771 echo "configure:21772: checking struct passwd for pw_passwd" >&5
21772 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21773 echo $ac_n "(cached) $ac_c" 1>&6
21776 cat > conftest.$ac_ext <<EOF
21777 #line 21778 "configure"
21778 #include "confdefs.h"
21783 pwd.pw_passwd = pwd.pw_name;
21787 if { (eval echo configure:21788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21789 ol_cv_struct_passwd_pw_passwd=yes
21791 echo "configure: failed program was:" >&5
21792 cat conftest.$ac_ext >&5
21794 ol_cv_struct_passwd_pw_passwd=no
21799 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21800 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21801 cat >> confdefs.h <<\EOF
21802 #define HAVE_PW_PASSWD 1
21808 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21809 echo "configure:21810: checking if toupper() requires islower()" >&5
21810 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21811 echo $ac_n "(cached) $ac_c" 1>&6
21814 if test "$cross_compiling" = yes; then
21815 ol_cv_c_upper_lower=safe
21817 cat > conftest.$ac_ext <<EOF
21818 #line 21819 "configure"
21819 #include "confdefs.h"
21824 if ('C' == toupper('C'))
21830 if { (eval echo configure:21831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21832 ol_cv_c_upper_lower=no
21834 echo "configure: failed program was:" >&5
21835 cat conftest.$ac_ext >&5
21837 ol_cv_c_upper_lower=yes
21844 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21845 if test $ol_cv_c_upper_lower != no ; then
21846 cat >> confdefs.h <<\EOF
21847 #define C_UPPER_LOWER 1
21852 echo $ac_n "checking for working const""... $ac_c" 1>&6
21853 echo "configure:21854: checking for working const" >&5
21854 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21855 echo $ac_n "(cached) $ac_c" 1>&6
21857 cat > conftest.$ac_ext <<EOF
21858 #line 21859 "configure"
21859 #include "confdefs.h"
21863 /* Ultrix mips cc rejects this. */
21864 typedef int charset[2]; const charset x;
21865 /* SunOS 4.1.1 cc rejects this. */
21866 char const *const *ccp;
21868 /* NEC SVR4.0.2 mips cc rejects this. */
21869 struct point {int x, y;};
21870 static struct point const zero = {0,0};
21871 /* AIX XL C 1.02.0.0 rejects this.
21872 It does not let you subtract one const X* pointer from another in an arm
21873 of an if-expression whose if-part is not a constant expression */
21874 const char *g = "string";
21875 ccp = &g + (g ? g-g : 0);
21876 /* HPUX 7.0 cc rejects these. */
21879 ccp = (char const *const *) p;
21880 { /* SCO 3.2v4 cc rejects this. */
21882 char const *s = 0 ? (char *) 0 : (char const *) 0;
21886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21887 int x[] = {25, 17};
21888 const int *foo = &x[0];
21891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21892 typedef const int *iptr;
21896 { /* AIX XL C 1.02.0.0 rejects this saying
21897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21898 struct s { int j; const int *ap[3]; };
21899 struct s *b; b->j = 5;
21901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21902 const int foo = 10;
21907 if { (eval echo configure:21908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21911 echo "configure: failed program was:" >&5
21912 cat conftest.$ac_ext >&5
21919 echo "$ac_t""$ac_cv_c_const" 1>&6
21920 if test $ac_cv_c_const = no; then
21921 cat >> confdefs.h <<\EOF
21927 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21928 echo "configure:21929: checking if compiler understands volatile" >&5
21929 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21930 echo $ac_n "(cached) $ac_c" 1>&6
21932 cat > conftest.$ac_ext <<EOF
21933 #line 21934 "configure"
21934 #include "confdefs.h"
21937 volatile int a; int * volatile b = x ? &y : &z;
21938 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21942 if { (eval echo configure:21943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21944 ol_cv_c_volatile=yes
21946 echo "configure: failed program was:" >&5
21947 cat conftest.$ac_ext >&5
21949 ol_cv_c_volatile=no
21954 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21955 if test $ol_cv_c_volatile = yes; then
21958 cat >> confdefs.h <<\EOF
21965 if test $cross_compiling = yes ; then
21966 cat >> confdefs.h <<\EOF
21967 #define CROSS_COMPILING 1
21971 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21972 echo "configure:21973: checking whether byte ordering is bigendian" >&5
21973 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21974 echo $ac_n "(cached) $ac_c" 1>&6
21976 ac_cv_c_bigendian=unknown
21977 # See if sys/param.h defines the BYTE_ORDER macro.
21978 cat > conftest.$ac_ext <<EOF
21979 #line 21980 "configure"
21980 #include "confdefs.h"
21981 #include <sys/types.h>
21982 #include <sys/param.h>
21985 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21986 bogus endian macros
21990 if { (eval echo configure:21991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21992 # It does; now see whether it defined to BIG_ENDIAN or not.
21993 cat > conftest.$ac_ext <<EOF
21994 #line 21995 "configure"
21995 #include "confdefs.h"
21996 #include <sys/types.h>
21997 #include <sys/param.h>
22000 #if BYTE_ORDER != BIG_ENDIAN
22005 if { (eval echo configure:22006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22007 ac_cv_c_bigendian=yes
22009 echo "configure: failed program was:" >&5
22010 cat conftest.$ac_ext >&5
22012 ac_cv_c_bigendian=no
22016 echo "configure: failed program was:" >&5
22017 cat conftest.$ac_ext >&5
22020 if test $ac_cv_c_bigendian = unknown; then
22021 if test "$cross_compiling" = yes; then
22022 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22024 cat > conftest.$ac_ext <<EOF
22025 #line 22026 "configure"
22026 #include "confdefs.h"
22028 /* Are we little or big endian? From Harbison&Steele. */
22032 char c[sizeof (long)];
22035 exit (u.c[sizeof (long) - 1] == 1);
22038 if { (eval echo configure:22039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22040 ac_cv_c_bigendian=no
22042 echo "configure: failed program was:" >&5
22043 cat conftest.$ac_ext >&5
22045 ac_cv_c_bigendian=yes
22053 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22054 if test $ac_cv_c_bigendian = yes; then
22055 cat >> confdefs.h <<\EOF
22056 #define WORDS_BIGENDIAN 1
22063 echo $ac_n "checking size of short""... $ac_c" 1>&6
22064 echo "configure:22065: checking size of short" >&5
22065 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22066 echo $ac_n "(cached) $ac_c" 1>&6
22068 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22069 cat > conftest.$ac_ext <<EOF
22070 #line 22071 "configure"
22071 #include "confdefs.h"
22072 #include "confdefs.h"
22073 #include <sys/types.h>
22077 switch (0) case 0: case (sizeof (short) == $ac_size):;
22080 if { (eval echo configure:22081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22082 ac_cv_sizeof_short=$ac_size
22084 echo "configure: failed program was:" >&5
22085 cat conftest.$ac_ext >&5
22088 if test x$ac_cv_sizeof_short != x ; then break; fi
22093 if test x$ac_cv_sizeof_short = x ; then
22094 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22096 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22097 cat >> confdefs.h <<EOF
22098 #define SIZEOF_SHORT $ac_cv_sizeof_short
22102 echo $ac_n "checking size of int""... $ac_c" 1>&6
22103 echo "configure:22104: checking size of int" >&5
22104 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22105 echo $ac_n "(cached) $ac_c" 1>&6
22107 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22108 cat > conftest.$ac_ext <<EOF
22109 #line 22110 "configure"
22110 #include "confdefs.h"
22111 #include "confdefs.h"
22112 #include <sys/types.h>
22116 switch (0) case 0: case (sizeof (int) == $ac_size):;
22119 if { (eval echo configure:22120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22121 ac_cv_sizeof_int=$ac_size
22123 echo "configure: failed program was:" >&5
22124 cat conftest.$ac_ext >&5
22127 if test x$ac_cv_sizeof_int != x ; then break; fi
22132 if test x$ac_cv_sizeof_int = x ; then
22133 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22135 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22136 cat >> confdefs.h <<EOF
22137 #define SIZEOF_INT $ac_cv_sizeof_int
22141 echo $ac_n "checking size of long""... $ac_c" 1>&6
22142 echo "configure:22143: checking size of long" >&5
22143 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22144 echo $ac_n "(cached) $ac_c" 1>&6
22146 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22147 cat > conftest.$ac_ext <<EOF
22148 #line 22149 "configure"
22149 #include "confdefs.h"
22150 #include "confdefs.h"
22151 #include <sys/types.h>
22155 switch (0) case 0: case (sizeof (long) == $ac_size):;
22158 if { (eval echo configure:22159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22160 ac_cv_sizeof_long=$ac_size
22162 echo "configure: failed program was:" >&5
22163 cat conftest.$ac_ext >&5
22166 if test x$ac_cv_sizeof_long != x ; then break; fi
22171 if test x$ac_cv_sizeof_long = x ; then
22172 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22174 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22175 cat >> confdefs.h <<EOF
22176 #define SIZEOF_LONG $ac_cv_sizeof_long
22181 if test "$ac_cv_sizeof_int" -lt 4 ; then
22182 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22184 cat >> confdefs.h <<\EOF
22185 #define LBER_INT_T long
22189 cat >> confdefs.h <<\EOF
22190 #define LBER_INT_T int
22195 cat >> confdefs.h <<\EOF
22196 #define LBER_LEN_T long
22199 cat >> confdefs.h <<\EOF
22200 #define LBER_SOCKET_T int
22203 cat >> confdefs.h <<\EOF
22204 #define LBER_TAG_T long
22208 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22209 echo "configure:22210: checking for 8-bit clean memcmp" >&5
22210 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22211 echo $ac_n "(cached) $ac_c" 1>&6
22213 if test "$cross_compiling" = yes; then
22214 ac_cv_func_memcmp_clean=no
22216 cat > conftest.$ac_ext <<EOF
22217 #line 22218 "configure"
22218 #include "confdefs.h"
22222 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22223 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22227 if { (eval echo configure:22228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22229 ac_cv_func_memcmp_clean=yes
22231 echo "configure: failed program was:" >&5
22232 cat conftest.$ac_ext >&5
22234 ac_cv_func_memcmp_clean=no
22241 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22242 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22244 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22245 echo "configure:22246: checking for strftime" >&5
22246 if eval "test \"\${ac_cv_func_strftime+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 strftime(); 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_strftime) || defined (__stub___strftime)
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_strftime=yes"
22278 echo "configure: failed program was:" >&5
22279 cat conftest.$ac_ext >&5
22281 eval "ac_cv_func_strftime=no"
22286 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22287 echo "$ac_t""yes" 1>&6
22288 cat >> confdefs.h <<\EOF
22289 #define HAVE_STRFTIME 1
22293 echo "$ac_t""no" 1>&6
22294 # strftime is in -lintl on SCO UNIX.
22295 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22296 echo "configure:22297: checking for strftime in -lintl" >&5
22297 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22299 echo $ac_n "(cached) $ac_c" 1>&6
22301 ac_save_LIBS="$LIBS"
22302 LIBS="-lintl $LIBS"
22303 cat > conftest.$ac_ext <<EOF
22304 #line 22305 "configure"
22305 #include "confdefs.h"
22306 /* Override any gcc2 internal prototype to avoid an error. */
22307 /* We use char because int might match the return type of a gcc2
22308 builtin and then its argument prototype would still apply. */
22315 if { (eval echo configure:22316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22317 eval "ac_cv_lib_$ac_lib_var=yes"
22319 echo "configure: failed program was:" >&5
22320 cat conftest.$ac_ext >&5
22322 eval "ac_cv_lib_$ac_lib_var=no"
22325 LIBS="$ac_save_LIBS"
22328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22329 echo "$ac_t""yes" 1>&6
22330 cat >> confdefs.h <<\EOF
22331 #define HAVE_STRFTIME 1
22334 LIBS="-lintl $LIBS"
22336 echo "$ac_t""no" 1>&6
22342 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22343 echo "configure:22344: checking for inet_aton()" >&5
22344 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22345 echo $ac_n "(cached) $ac_c" 1>&6
22347 cat > conftest.$ac_ext <<EOF
22348 #line 22349 "configure"
22349 #include "confdefs.h"
22351 #ifdef HAVE_SYS_TYPES_H
22352 # include <sys/types.h>
22354 #ifdef HAVE_SYS_SOCKET_H
22355 # include <sys/socket.h>
22356 # ifdef HAVE_SYS_SELECT_H
22357 # include <sys/select.h>
22359 # include <netinet/in.h>
22360 # ifdef HAVE_ARPA_INET_H
22361 # include <arpa/inet.h>
22367 int rc = inet_aton( "255.255.255.255", &in );
22370 if { (eval echo configure:22371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22372 ol_cv_func_inet_aton=yes
22374 echo "configure: failed program was:" >&5
22375 cat conftest.$ac_ext >&5
22377 ol_cv_func_inet_aton=no
22382 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22383 if test $ol_cv_func_inet_aton != no; then
22384 cat >> confdefs.h <<\EOF
22385 #define HAVE_INET_ATON 1
22391 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22392 echo "configure:22393: checking for _spawnlp" >&5
22393 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22394 echo $ac_n "(cached) $ac_c" 1>&6
22396 cat > conftest.$ac_ext <<EOF
22397 #line 22398 "configure"
22398 #include "confdefs.h"
22399 /* System header to define __stub macros and hopefully few prototypes,
22400 which can conflict with char _spawnlp(); below. */
22401 #include <assert.h>
22402 /* Override any gcc2 internal prototype to avoid an error. */
22403 /* We use char because int might match the return type of a gcc2
22404 builtin and then its argument prototype would still apply. */
22410 /* The GNU C library defines this for functions which it implements
22411 to always fail with ENOSYS. Some functions are actually named
22412 something starting with __ and the normal name is an alias. */
22413 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22421 if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22423 eval "ac_cv_func__spawnlp=yes"
22425 echo "configure: failed program was:" >&5
22426 cat conftest.$ac_ext >&5
22428 eval "ac_cv_func__spawnlp=no"
22433 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22434 echo "$ac_t""yes" 1>&6
22435 cat >> confdefs.h <<\EOF
22436 #define HAVE_SPAWNLP 1
22440 echo "$ac_t""no" 1>&6
22444 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22445 echo "configure:22446: checking for _snprintf" >&5
22446 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22447 echo $ac_n "(cached) $ac_c" 1>&6
22449 cat > conftest.$ac_ext <<EOF
22450 #line 22451 "configure"
22451 #include "confdefs.h"
22452 /* System header to define __stub macros and hopefully few prototypes,
22453 which can conflict with char _snprintf(); below. */
22454 #include <assert.h>
22455 /* Override any gcc2 internal prototype to avoid an error. */
22456 /* We use char because int might match the return type of a gcc2
22457 builtin and then its argument prototype would still apply. */
22463 /* The GNU C library defines this for functions which it implements
22464 to always fail with ENOSYS. Some functions are actually named
22465 something starting with __ and the normal name is an alias. */
22466 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22474 if { (eval echo configure:22475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22476 eval "ac_cv_func__snprintf=yes"
22478 echo "configure: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22481 eval "ac_cv_func__snprintf=no"
22486 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22487 echo "$ac_t""yes" 1>&6
22488 ac_cv_func_snprintf=yes
22489 cat >> confdefs.h <<\EOF
22490 #define snprintf _snprintf
22495 echo "$ac_t""no" 1>&6
22499 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22500 echo "configure:22501: checking for _vsnprintf" >&5
22501 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22502 echo $ac_n "(cached) $ac_c" 1>&6
22504 cat > conftest.$ac_ext <<EOF
22505 #line 22506 "configure"
22506 #include "confdefs.h"
22507 /* System header to define __stub macros and hopefully few prototypes,
22508 which can conflict with char _vsnprintf(); below. */
22509 #include <assert.h>
22510 /* Override any gcc2 internal prototype to avoid an error. */
22511 /* We use char because int might match the return type of a gcc2
22512 builtin and then its argument prototype would still apply. */
22518 /* The GNU C library defines this for functions which it implements
22519 to always fail with ENOSYS. Some functions are actually named
22520 something starting with __ and the normal name is an alias. */
22521 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22529 if { (eval echo configure:22530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22531 eval "ac_cv_func__vsnprintf=yes"
22533 echo "configure: failed program was:" >&5
22534 cat conftest.$ac_ext >&5
22536 eval "ac_cv_func__vsnprintf=no"
22541 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22542 echo "$ac_t""yes" 1>&6
22543 ac_cv_func_vsnprintf=yes
22544 cat >> confdefs.h <<\EOF
22545 #define vsnprintf _vsnprintf
22550 echo "$ac_t""no" 1>&6
22554 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22555 echo "configure:22556: checking for vprintf" >&5
22556 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22557 echo $ac_n "(cached) $ac_c" 1>&6
22559 cat > conftest.$ac_ext <<EOF
22560 #line 22561 "configure"
22561 #include "confdefs.h"
22562 /* System header to define __stub macros and hopefully few prototypes,
22563 which can conflict with char vprintf(); below. */
22564 #include <assert.h>
22565 /* Override any gcc2 internal prototype to avoid an error. */
22566 /* We use char because int might match the return type of a gcc2
22567 builtin and then its argument prototype would still apply. */
22573 /* The GNU C library defines this for functions which it implements
22574 to always fail with ENOSYS. Some functions are actually named
22575 something starting with __ and the normal name is an alias. */
22576 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22584 if { (eval echo configure:22585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22586 eval "ac_cv_func_vprintf=yes"
22588 echo "configure: failed program was:" >&5
22589 cat conftest.$ac_ext >&5
22591 eval "ac_cv_func_vprintf=no"
22596 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22597 echo "$ac_t""yes" 1>&6
22598 cat >> confdefs.h <<\EOF
22599 #define HAVE_VPRINTF 1
22603 echo "$ac_t""no" 1>&6
22606 if test "$ac_cv_func_vprintf" != yes; then
22607 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22608 echo "configure:22609: checking for _doprnt" >&5
22609 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22610 echo $ac_n "(cached) $ac_c" 1>&6
22612 cat > conftest.$ac_ext <<EOF
22613 #line 22614 "configure"
22614 #include "confdefs.h"
22615 /* System header to define __stub macros and hopefully few prototypes,
22616 which can conflict with char _doprnt(); below. */
22617 #include <assert.h>
22618 /* Override any gcc2 internal prototype to avoid an error. */
22619 /* We use char because int might match the return type of a gcc2
22620 builtin and then its argument prototype would still apply. */
22626 /* The GNU C library defines this for functions which it implements
22627 to always fail with ENOSYS. Some functions are actually named
22628 something starting with __ and the normal name is an alias. */
22629 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22637 if { (eval echo configure:22638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22639 eval "ac_cv_func__doprnt=yes"
22641 echo "configure: failed program was:" >&5
22642 cat conftest.$ac_ext >&5
22644 eval "ac_cv_func__doprnt=no"
22649 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22650 echo "$ac_t""yes" 1>&6
22651 cat >> confdefs.h <<\EOF
22652 #define HAVE_DOPRNT 1
22656 echo "$ac_t""no" 1>&6
22662 if test $ac_cv_func_vprintf = yes ; then
22663 for ac_func in snprintf vsnprintf
22665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22666 echo "configure:22667: checking for $ac_func" >&5
22667 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22668 echo $ac_n "(cached) $ac_c" 1>&6
22670 cat > conftest.$ac_ext <<EOF
22671 #line 22672 "configure"
22672 #include "confdefs.h"
22673 /* System header to define __stub macros and hopefully few prototypes,
22674 which can conflict with char $ac_func(); below. */
22675 #include <assert.h>
22676 /* Override any gcc2 internal prototype to avoid an error. */
22677 /* We use char because int might match the return type of a gcc2
22678 builtin and then its argument prototype would still apply. */
22684 /* The GNU C library defines this for functions which it implements
22685 to always fail with ENOSYS. Some functions are actually named
22686 something starting with __ and the normal name is an alias. */
22687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22695 if { (eval echo configure:22696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22697 eval "ac_cv_func_$ac_func=yes"
22699 echo "configure: failed program was:" >&5
22700 cat conftest.$ac_ext >&5
22702 eval "ac_cv_func_$ac_func=no"
22707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22708 echo "$ac_t""yes" 1>&6
22709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22710 cat >> confdefs.h <<EOF
22711 #define $ac_tr_func 1
22715 echo "$ac_t""no" 1>&6
22777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22778 echo "configure:22779: checking for $ac_func" >&5
22779 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22780 echo $ac_n "(cached) $ac_c" 1>&6
22782 cat > conftest.$ac_ext <<EOF
22783 #line 22784 "configure"
22784 #include "confdefs.h"
22785 /* System header to define __stub macros and hopefully few prototypes,
22786 which can conflict with char $ac_func(); below. */
22787 #include <assert.h>
22788 /* Override any gcc2 internal prototype to avoid an error. */
22789 /* We use char because int might match the return type of a gcc2
22790 builtin and then its argument prototype would still apply. */
22796 /* The GNU C library defines this for functions which it implements
22797 to always fail with ENOSYS. Some functions are actually named
22798 something starting with __ and the normal name is an alias. */
22799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22807 if { (eval echo configure:22808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22809 eval "ac_cv_func_$ac_func=yes"
22811 echo "configure: failed program was:" >&5
22812 cat conftest.$ac_ext >&5
22814 eval "ac_cv_func_$ac_func=no"
22819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22820 echo "$ac_t""yes" 1>&6
22821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22822 cat >> confdefs.h <<EOF
22823 #define $ac_tr_func 1
22827 echo "$ac_t""no" 1>&6
22832 for ac_func in getopt getpeereid
22834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22835 echo "configure:22836: checking for $ac_func" >&5
22836 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22837 echo $ac_n "(cached) $ac_c" 1>&6
22839 cat > conftest.$ac_ext <<EOF
22840 #line 22841 "configure"
22841 #include "confdefs.h"
22842 /* System header to define __stub macros and hopefully few prototypes,
22843 which can conflict with char $ac_func(); below. */
22844 #include <assert.h>
22845 /* Override any gcc2 internal prototype to avoid an error. */
22846 /* We use char because int might match the return type of a gcc2
22847 builtin and then its argument prototype would still apply. */
22853 /* The GNU C library defines this for functions which it implements
22854 to always fail with ENOSYS. Some functions are actually named
22855 something starting with __ and the normal name is an alias. */
22856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22864 if { (eval echo configure:22865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22866 eval "ac_cv_func_$ac_func=yes"
22868 echo "configure: failed program was:" >&5
22869 cat conftest.$ac_ext >&5
22871 eval "ac_cv_func_$ac_func=no"
22876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22877 echo "$ac_t""yes" 1>&6
22878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22879 cat >> confdefs.h <<EOF
22880 #define $ac_tr_func 1
22884 echo "$ac_t""no" 1>&6
22885 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22891 if test "$ac_cv_func_getopt" != yes; then
22892 LIBSRCS="$LIBSRCS getopt.c"
22894 if test "$ac_cv_func_getpeereid" != yes; then
22895 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22896 echo "configure:22897: checking for msg_accrights in msghdr" >&5
22897 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22898 echo $ac_n "(cached) $ac_c" 1>&6
22900 cat > conftest.$ac_ext <<EOF
22901 #line 22902 "configure"
22902 #include "confdefs.h"
22903 #include <sys/socket.h>
22905 struct msghdr m; m.msg_accrightslen=0
22908 if { (eval echo configure:22909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22910 ol_cv_msghdr_msg_accrights=yes
22912 echo "configure: failed program was:" >&5
22913 cat conftest.$ac_ext >&5
22915 ol_cv_msghdr_msg_accrights=no
22921 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22922 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22923 cat >> confdefs.h <<\EOF
22924 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22929 LIBSRCS="$LIBSRCS getpeereid.c"
22931 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22932 if test "$ac_cv_func_snprintf" != yes; then
22933 cat >> confdefs.h <<\EOF
22934 #define snprintf ber_pvt_snprintf
22938 if test "$ac_cv_func_vsnprintf" != yes; then
22939 cat >> confdefs.h <<\EOF
22940 #define vsnprintf ber_pvt_vsnprintf
22946 # Check Configuration
22947 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22948 echo "configure:22949: checking declaration of sys_errlist" >&5
22949 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22950 echo $ac_n "(cached) $ac_c" 1>&6
22953 cat > conftest.$ac_ext <<EOF
22954 #line 22955 "configure"
22955 #include "confdefs.h"
22958 #include <sys/types.h>
22961 #include <stdlib.h>
22964 char *c = (char *) *sys_errlist
22967 if { (eval echo configure:22968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22969 ol_cv_dcl_sys_errlist=yes
22970 ol_cv_have_sys_errlist=yes
22972 echo "configure: failed program was:" >&5
22973 cat conftest.$ac_ext >&5
22975 ol_cv_dcl_sys_errlist=no
22980 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22982 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22983 if test $ol_cv_dcl_sys_errlist = no ; then
22984 cat >> confdefs.h <<\EOF
22985 #define DECL_SYS_ERRLIST 1
22989 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22990 echo "configure:22991: checking existence of sys_errlist" >&5
22991 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22992 echo $ac_n "(cached) $ac_c" 1>&6
22995 cat > conftest.$ac_ext <<EOF
22996 #line 22997 "configure"
22997 #include "confdefs.h"
23000 char *c = (char *) *sys_errlist
23003 if { (eval echo configure:23004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23005 ol_cv_have_sys_errlist=yes
23007 echo "configure: failed program was:" >&5
23008 cat conftest.$ac_ext >&5
23010 ol_cv_have_sys_errlist=no
23015 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23017 if test $ol_cv_have_sys_errlist = yes ; then
23018 cat >> confdefs.h <<\EOF
23019 #define HAVE_SYS_ERRLIST 1
23026 if test "$ol_enable_slapi" != no ; then
23027 for ac_hdr in ltdl.h
23029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23031 echo "configure:23032: checking for $ac_hdr" >&5
23032 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23033 echo $ac_n "(cached) $ac_c" 1>&6
23035 cat > conftest.$ac_ext <<EOF
23036 #line 23037 "configure"
23037 #include "confdefs.h"
23040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23041 { (eval echo configure:23042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23043 if test -z "$ac_err"; then
23045 eval "ac_cv_header_$ac_safe=yes"
23048 echo "configure: failed program was:" >&5
23049 cat conftest.$ac_ext >&5
23051 eval "ac_cv_header_$ac_safe=no"
23055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23056 echo "$ac_t""yes" 1>&6
23057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23058 cat >> confdefs.h <<EOF
23059 #define $ac_tr_hdr 1
23063 echo "$ac_t""no" 1>&6
23068 if test $ac_cv_header_ltdl_h != yes ; then
23069 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23071 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23072 echo "configure:23073: checking for lt_dlinit in -lltdl" >&5
23073 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23074 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23075 echo $ac_n "(cached) $ac_c" 1>&6
23077 ac_save_LIBS="$LIBS"
23078 LIBS="-lltdl $LIBS"
23079 cat > conftest.$ac_ext <<EOF
23080 #line 23081 "configure"
23081 #include "confdefs.h"
23082 /* Override any gcc2 internal prototype to avoid an error. */
23083 /* We use char because int might match the return type of a gcc2
23084 builtin and then its argument prototype would still apply. */
23091 if { (eval echo configure:23092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23093 eval "ac_cv_lib_$ac_lib_var=yes"
23095 echo "configure: failed program was:" >&5
23096 cat conftest.$ac_ext >&5
23098 eval "ac_cv_lib_$ac_lib_var=no"
23101 LIBS="$ac_save_LIBS"
23104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23105 echo "$ac_t""yes" 1>&6
23108 LIBSLAPI=./libslapi.a
23109 LIBSLAPITOOLS=../libslapi.a
23110 cat >> confdefs.h <<\EOF
23111 #define HAVE_LIBLTDL 1
23116 echo "$ac_t""no" 1>&6
23117 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23121 cat >> confdefs.h <<\EOF
23122 #define LDAP_SLAPI 1
23127 if test "$ol_enable_debug" != no ; then
23128 cat >> confdefs.h <<\EOF
23129 #define LDAP_DEBUG 1
23133 if test "$ol_enable_syslog" = yes ; then
23134 cat >> confdefs.h <<\EOF
23135 #define LDAP_SYSLOG 1
23139 if test "$ol_link_kbind" != no ; then
23140 cat >> confdefs.h <<\EOF
23141 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23145 if test "$ol_enable_proctitle" != no ; then
23146 cat >> confdefs.h <<\EOF
23147 #define LDAP_PROCTITLE 1
23151 if test "$ol_enable_referrals" != no ; then
23152 cat >> confdefs.h <<\EOF
23153 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23157 if test "$ol_enable_local" != no; then
23158 cat >> confdefs.h <<\EOF
23159 #define LDAP_PF_LOCAL 1
23163 if test "$ol_link_ipv6" != no; then
23164 cat >> confdefs.h <<\EOF
23165 #define LDAP_PF_INET6 1
23169 if test "$ol_enable_cleartext" != no ; then
23170 cat >> confdefs.h <<\EOF
23171 #define SLAPD_CLEARTEXT 1
23175 if test "$ol_enable_crypt" != no ; then
23176 cat >> confdefs.h <<\EOF
23177 #define SLAPD_CRYPT 1
23181 if test "$ol_link_kpasswd" != no ; then
23182 cat >> confdefs.h <<\EOF
23183 #define SLAPD_KPASSWD 1
23187 if test "$ol_link_spasswd" != no ; then
23188 cat >> confdefs.h <<\EOF
23189 #define SLAPD_SPASSWD 1
23193 if test "$ol_enable_multimaster" != no ; then
23194 cat >> confdefs.h <<\EOF
23195 #define SLAPD_MULTIMASTER 1
23199 if test "$ol_enable_phonetic" != no ; then
23200 cat >> confdefs.h <<\EOF
23201 #define SLAPD_PHONETIC 1
23205 if test "$ol_enable_rlookups" != no ; then
23206 cat >> confdefs.h <<\EOF
23207 #define SLAPD_RLOOKUPS 1
23211 if test "$ol_enable_aci" != no ; then
23212 cat >> confdefs.h <<\EOF
23213 #define SLAPD_ACI_ENABLED 1
23218 if test "$ol_link_modules" != no ; then
23219 cat >> confdefs.h <<\EOF
23220 #define SLAPD_MODULES 1
23224 SLAPD_MODULES_LDFLAGS="-dlopen self"
23227 if test "$ol_enable_bdb" != no ; then
23228 cat >> confdefs.h <<\EOF
23229 #define SLAPD_BDB 1
23234 if test "$ol_with_bdb_module" != static ; then
23235 cat >> confdefs.h <<\EOF
23236 #define SLAPD_BDB_DYNAMIC 1
23240 BUILD_BDB_DYNAMIC=shared
23241 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23243 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23247 if test "$ol_link_dnssrv" != no ; then
23248 cat >> confdefs.h <<\EOF
23249 #define SLAPD_DNSSRV 1
23254 if test "$ol_with_dnssrv_module" != static ; then
23255 cat >> confdefs.h <<\EOF
23256 #define SLAPD_DNSSRV_DYNAMIC 1
23260 BUILD_DNSSRV_DYNAMIC=shared
23261 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23263 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23267 if test "$ol_enable_ldap" != no ; then
23268 cat >> confdefs.h <<\EOF
23269 #define SLAPD_LDAP 1
23274 if test "$ol_with_ldap_module" != static ; then
23275 cat >> confdefs.h <<\EOF
23276 #define SLAPD_LDAP_DYNAMIC 1
23280 BUILD_LDAP_DYNAMIC=shared
23281 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23283 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23287 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23288 cat >> confdefs.h <<\EOF
23289 #define SLAPD_LDBM 1
23294 if test "$ol_with_ldbm_module" != static ; then
23295 cat >> confdefs.h <<\EOF
23296 #define SLAPD_LDBM_DYNAMIC 1
23300 BUILD_LDBM_DYNAMIC=shared
23301 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23303 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23307 if test "$ol_enable_meta" != no ; then
23308 if test "$ol_enable_ldap" = no ; then
23309 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23311 if test "$ol_enable_rewrite" = no ; then
23312 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23314 cat >> confdefs.h <<\EOF
23315 #define SLAPD_META 1
23322 if test "$ol_with_meta_module" != static ; then
23323 cat >> confdefs.h <<\EOF
23324 #define SLAPD_META_DYNAMIC 1
23328 BUILD_META_DYNAMIC=shared
23329 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23331 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23335 if test "$ol_enable_monitor" != no ; then
23336 cat >> confdefs.h <<\EOF
23337 #define SLAPD_MONITOR 1
23342 if test "$ol_with_monitor_module" != static ; then
23343 cat >> confdefs.h <<\EOF
23344 #define SLAPD_MONITOR_DYNAMIC 1
23348 BUILD_MONITOR_DYNAMIC=shared
23349 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23351 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23355 if test "$ol_enable_null" != no ; then
23356 cat >> confdefs.h <<\EOF
23357 #define SLAPD_NULL 1
23362 if test "$ol_with_null_module" != static ; then
23363 cat >> confdefs.h <<\EOF
23364 #define SLAPD_NULL_DYNAMIC 1
23368 BUILD_NULL_DYNAMIC=shared
23369 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23375 if test "$ol_enable_passwd" != no ; then
23376 cat >> confdefs.h <<\EOF
23377 #define SLAPD_PASSWD 1
23382 if test "$ol_with_passwd_module" != static ; then
23383 cat >> confdefs.h <<\EOF
23384 #define SLAPD_PASSWD_DYNAMIC 1
23388 BUILD_PASSWD_DYNAMIC=shared
23389 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23391 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23395 if test "$ol_link_perl" != no ; then
23396 cat >> confdefs.h <<\EOF
23397 #define SLAPD_PERL 1
23402 if test "$ol_with_perl_module" != static ; then
23403 cat >> confdefs.h <<\EOF
23404 #define SLAPD_PERL_DYNAMIC 1
23408 BUILD_PERL_DYNAMIC=shared
23409 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23415 if test "$ol_enable_shell" != no ; then
23416 if test "$ol_link_thread" != no ; then
23417 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23419 cat >> confdefs.h <<\EOF
23420 #define SLAPD_SHELL 1
23425 if test "$ol_with_shell_module" != static ; then
23426 cat >> confdefs.h <<\EOF
23427 #define SLAPD_SHELL_DYNAMIC 1
23431 BUILD_SHELL_DYNAMIC=shared
23432 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23434 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23438 if test "$ol_enable_tcl" != no ; then
23439 cat >> confdefs.h <<\EOF
23440 #define SLAPD_TCL 1
23445 if test "$ol_with_tcl_module" != static; then
23446 cat >> confdefs.h <<\EOF
23447 #define SLAPD_TCL_DYNAMIC 1
23451 BUILD_TCL_DYNAMIC=shared
23452 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
23454 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
23458 if test "$ol_link_sql" != no ; then
23459 cat >> confdefs.h <<\EOF
23460 #define SLAPD_SQL 1
23465 if test "$ol_with_sql_module" != static; then
23466 cat >> confdefs.h <<\EOF
23467 #define SLAPD_SQL_DYNAMIC 1
23471 BUILD_SQL_DYNAMIC=shared
23472 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23474 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23478 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23479 $BUILD_SLAPD = yes ; then
23483 if test "$ol_enable_rewrite" != no ; then
23484 cat >> confdefs.h <<\EOF
23485 #define ENABLE_REWRITE 1
23491 if test "$ol_enable_slapi" != no ; then
23492 cat >> confdefs.h <<\EOF
23493 #define ENABLE_SLAPI 1
23497 SLAPD_SLAPI_DEPEND=libslapi.a
23502 if test "$ac_cv_mingw32" = yes ; then
23504 SLAPD_MODULES_LDFLAGS=
23509 if test -z "$SLAPD_STATIC_BACKENDS"; then
23510 SLAPD_NO_STATIC='#'
23587 # Check whether --with-xxinstall or --without-xxinstall was given.
23588 if test "${with_xxinstall+set}" = set; then
23589 withval="$with_xxinstall"
23597 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23600 # Let make expand exec_prefix.
23601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23603 # Any assignment to VPATH causes Sun make to only execute
23604 # the first set of double-colon rules, so remove it if not needed.
23605 # If there is a colon in the path, we need to keep it.
23606 if test "x$srcdir" = x.; then
23607 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23610 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23612 DEFS=-DHAVE_CONFIG_H
23614 # Without the "./", some shells look in PATH for config.status.
23615 : ${CONFIG_STATUS=./config.status}
23617 echo creating $CONFIG_STATUS
23618 rm -f $CONFIG_STATUS
23619 cat > $CONFIG_STATUS <<EOF
23621 # Generated automatically by configure.
23622 # Run this file to recreate the current configuration.
23623 # This directory was configured as follows,
23624 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23626 # $0 $ac_configure_args
23628 # Compiler output produced by configure, useful for debugging
23629 # configure, is in ./config.log if it exists.
23631 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23634 case "\$ac_option" in
23635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23636 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23637 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23638 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23639 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23641 -help | --help | --hel | --he | --h)
23642 echo "\$ac_cs_usage"; exit 0 ;;
23643 *) echo "\$ac_cs_usage"; exit 1 ;;
23647 ac_given_srcdir=$srcdir
23648 ac_given_INSTALL="$INSTALL"
23650 trap 'rm -fr `echo "\
23651 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23652 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23653 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23654 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23655 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23656 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23657 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23658 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23659 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23660 include/Makefile:build/top.mk:include/Makefile.in \
23661 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23662 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23663 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23664 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23665 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23666 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23667 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23668 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23669 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23670 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23671 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23672 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23673 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23674 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23675 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23676 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23677 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23678 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23679 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23680 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23681 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23682 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23683 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23684 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23685 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23686 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23687 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23688 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23689 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23690 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23691 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23693 cat >> $CONFIG_STATUS <<EOF
23695 # Protect against being on the right side of a sed subst in config.status.
23696 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23697 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23701 s%@CFLAGS@%$CFLAGS%g
23702 s%@CPPFLAGS@%$CPPFLAGS%g
23703 s%@CXXFLAGS@%$CXXFLAGS%g
23704 s%@FFLAGS@%$FFLAGS%g
23706 s%@LDFLAGS@%$LDFLAGS%g
23708 s%@exec_prefix@%$exec_prefix%g
23709 s%@prefix@%$prefix%g
23710 s%@program_transform_name@%$program_transform_name%g
23711 s%@bindir@%$bindir%g
23712 s%@sbindir@%$sbindir%g
23713 s%@libexecdir@%$libexecdir%g
23714 s%@datadir@%$datadir%g
23715 s%@sysconfdir@%$sysconfdir%g
23716 s%@sharedstatedir@%$sharedstatedir%g
23717 s%@localstatedir@%$localstatedir%g
23718 s%@libdir@%$libdir%g
23719 s%@includedir@%$includedir%g
23720 s%@oldincludedir@%$oldincludedir%g
23721 s%@infodir@%$infodir%g
23722 s%@mandir@%$mandir%g
23724 s%@host_alias@%$host_alias%g
23725 s%@host_cpu@%$host_cpu%g
23726 s%@host_vendor@%$host_vendor%g
23727 s%@host_os@%$host_os%g
23728 s%@target@%$target%g
23729 s%@target_alias@%$target_alias%g
23730 s%@target_cpu@%$target_cpu%g
23731 s%@target_vendor@%$target_vendor%g
23732 s%@target_os@%$target_os%g
23734 s%@build_alias@%$build_alias%g
23735 s%@build_cpu@%$build_cpu%g
23736 s%@build_vendor@%$build_vendor%g
23737 s%@build_os@%$build_os%g
23738 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23739 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23740 s%@INSTALL_DATA@%$INSTALL_DATA%g
23741 s%@PACKAGE@%$PACKAGE%g
23742 s%@VERSION@%$VERSION%g
23743 s%@ACLOCAL@%$ACLOCAL%g
23744 s%@AUTOCONF@%$AUTOCONF%g
23745 s%@AUTOMAKE@%$AUTOMAKE%g
23746 s%@AUTOHEADER@%$AUTOHEADER%g
23747 s%@MAKEINFO@%$MAKEINFO%g
23748 s%@install_sh@%$install_sh%g
23751 s%@AMTARFLAGS@%$AMTARFLAGS%g
23752 s%@SET_MAKE@%$SET_MAKE%g
23753 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23754 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23755 s%@top_builddir@%$top_builddir%g
23756 s%@ldap_subdir@%$ldap_subdir%g
23760 s%@OBJEXT@%$OBJEXT%g
23761 s%@EXEEXT@%$EXEEXT%g
23763 s%@RANLIB@%$RANLIB%g
23765 s%@DLLTOOL@%$DLLTOOL%g
23767 s%@OBJDUMP@%$OBJDUMP%g
23769 s%@LIBTOOL@%$LIBTOOL%g
23771 s%@PERLBIN@%$PERLBIN%g
23772 s%@OL_MKDEP@%$OL_MKDEP%g
23773 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23774 s%@LTSTATIC@%$LTSTATIC%g
23775 s%@LIBOBJS@%$LIBOBJS%g
23776 s%@LIBSRCS@%$LIBSRCS%g
23778 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23779 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23780 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23781 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23782 s%@BUILD_BDB@%$BUILD_BDB%g
23783 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23784 s%@BUILD_LDAP@%$BUILD_LDAP%g
23785 s%@BUILD_LDBM@%$BUILD_LDBM%g
23786 s%@BUILD_META@%$BUILD_META%g
23787 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23788 s%@BUILD_NULL@%$BUILD_NULL%g
23789 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23790 s%@BUILD_PERL@%$BUILD_PERL%g
23791 s%@BUILD_SHELL@%$BUILD_SHELL%g
23792 s%@BUILD_SQL@%$BUILD_SQL%g
23793 s%@BUILD_TCL@%$BUILD_TCL%g
23794 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23795 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23796 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23797 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23798 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23799 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23800 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23801 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23802 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23803 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23804 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23805 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23806 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23807 s%@LDAP_LIBS@%$LDAP_LIBS%g
23808 s%@LDIF_LIBS@%$LDIF_LIBS%g
23809 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23810 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23811 s%@LDBM_LIBS@%$LDBM_LIBS%g
23812 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23813 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23814 s%@WRAP_LIBS@%$WRAP_LIBS%g
23815 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23816 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23817 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23818 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23819 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23820 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23821 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23822 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23823 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23824 s%@KRB4_LIBS@%$KRB4_LIBS%g
23825 s%@KRB5_LIBS@%$KRB5_LIBS%g
23826 s%@READLINE_LIBS@%$READLINE_LIBS%g
23827 s%@SASL_LIBS@%$SASL_LIBS%g
23828 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23829 s%@TLS_LIBS@%$TLS_LIBS%g
23830 s%@MODULES_LIBS@%$MODULES_LIBS%g
23831 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23832 s%@LIBSLAPI@%$LIBSLAPI%g
23833 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23834 s%@AUTH_LIBS@%$AUTH_LIBS%g
23835 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23836 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23837 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23838 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23843 cat >> $CONFIG_STATUS <<\EOF
23845 # Split the substitutions into bite-sized pieces for seds with
23846 # small command number limits, like on Digital OSF/1 and HP-UX.
23847 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23848 ac_file=1 # Number of current file.
23849 ac_beg=1 # First line for current file.
23850 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23853 while $ac_more_lines; do
23854 if test $ac_beg -gt 1; then
23855 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23857 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23859 if test ! -s conftest.s$ac_file; then
23860 ac_more_lines=false
23861 rm -f conftest.s$ac_file
23863 if test -z "$ac_sed_cmds"; then
23864 ac_sed_cmds="sed -f conftest.s$ac_file"
23866 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23868 ac_file=`expr $ac_file + 1`
23870 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23873 if test -z "$ac_sed_cmds"; then
23878 cat >> $CONFIG_STATUS <<EOF
23880 CONFIG_FILES=\${CONFIG_FILES-"\
23881 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23882 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23883 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23884 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23885 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23886 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23887 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23888 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23889 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23890 include/Makefile:build/top.mk:include/Makefile.in \
23891 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23892 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23893 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23894 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23895 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23896 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23897 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23898 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23899 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23900 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23901 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23902 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23903 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23904 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23905 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23906 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23907 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23908 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23909 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23910 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23911 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23912 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23913 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23914 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23915 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23916 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23917 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23918 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23919 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23920 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23923 cat >> $CONFIG_STATUS <<\EOF
23924 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23927 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23928 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23929 *) ac_file_in="${ac_file}.in" ;;
23932 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23934 # Remove last slash and all that follows it. Not all systems have dirname.
23935 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23936 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23937 # The file is in a subdirectory.
23938 test ! -d "$ac_dir" && mkdir "$ac_dir"
23939 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23940 # A "../" for each directory in $ac_dir_suffix.
23941 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23943 ac_dir_suffix= ac_dots=
23946 case "$ac_given_srcdir" in
23948 if test -z "$ac_dots"; then top_srcdir=.
23949 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23950 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23951 *) # Relative path.
23952 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23953 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23956 case "$ac_given_INSTALL" in
23957 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23958 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23961 echo creating "$ac_file"
23963 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23965 *[Mm]akefile*) ac_comsub="1i\\
23966 # $configure_input" ;;
23970 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23972 s%@configure_input@%$configure_input%g
23973 s%@srcdir@%$srcdir%g
23974 s%@top_srcdir@%$top_srcdir%g
23975 s%@INSTALL@%$INSTALL%g
23976 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23983 # ac_d sets the value in "#define NAME VALUE" lines.
23984 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23985 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23988 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23989 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23990 ac_uB='\([ ]\)%\1#\2define\3'
23993 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23994 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23995 ac_eB='$%\1#\2define\3'
23999 if test "${CONFIG_HEADERS+set}" != set; then
24001 cat >> $CONFIG_STATUS <<EOF
24002 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24004 cat >> $CONFIG_STATUS <<\EOF
24006 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24009 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24010 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24011 *) ac_file_in="${ac_file}.in" ;;
24014 echo creating $ac_file
24016 rm -f conftest.frag conftest.in conftest.out
24017 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24018 cat $ac_file_inputs > conftest.in
24022 # Transform confdefs.h into a sed script conftest.vals that substitutes
24023 # the proper values into config.h.in to produce config.h. And first:
24024 # Protect against being on the right side of a sed subst in config.status.
24025 # Protect against being in an unquoted here document in config.status.
24026 rm -f conftest.vals
24027 cat > conftest.hdr <<\EOF
24030 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24034 sed -n -f conftest.hdr confdefs.h > conftest.vals
24037 # This sed command replaces #undef with comments. This is necessary, for
24038 # example, in the case of _POSIX_SOURCE, which is predefined and required
24039 # on some systems where configure will not decide to define it.
24040 cat >> conftest.vals <<\EOF
24041 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24044 # Break up conftest.vals because some shells have a limit on
24045 # the size of here documents, and old seds have small limits too.
24047 rm -f conftest.tail
24050 ac_lines=`grep -c . conftest.vals`
24051 # grep -c gives empty output for an empty file on some AIX systems.
24052 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24053 # Write a limited-size here document to conftest.frag.
24054 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24055 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24057 sed -f conftest.frag conftest.in > conftest.out
24059 mv conftest.out conftest.in
24060 ' >> $CONFIG_STATUS
24061 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24062 rm -f conftest.vals
24063 mv conftest.tail conftest.vals
24065 rm -f conftest.vals
24067 cat >> $CONFIG_STATUS <<\EOF
24068 rm -f conftest.frag conftest.h
24069 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24070 cat conftest.in >> conftest.h
24072 if cmp -s $ac_file conftest.h 2>/dev/null; then
24073 echo "$ac_file is unchanged"
24076 # Remove last slash and all that follows it. Not all systems have dirname.
24077 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24078 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24079 # The file is in a subdirectory.
24080 test ! -d "$ac_dir" && mkdir "$ac_dir"
24083 mv conftest.h $ac_file
24088 cat >> $CONFIG_STATUS <<EOF
24091 cat >> $CONFIG_STATUS <<\EOF
24094 echo Please run \"make depend\" to build dependencies
24098 chmod +x $CONFIG_STATUS
24099 rm -fr confdefs* $ac_clean_files
24100 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1