3 # from OpenLDAP: pkg/ldap/configure.in,v 1.474 2003/04/23 07:13:24 hyc 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-hdb enable Hierarchical DB backend [no]"
100 --with-hdb-module module type static|dynamic [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type static|dynamic [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
110 --with-ldbm-module module type static|dynamic [static]"
112 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type static|dynamic [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type static|dynamic [static]"
122 --enable-null enable null backend [no]"
124 --with-null-module module type static|dynamic [static]"
126 --enable-passwd enable passwd backend [no]"
128 --with-passwd-module module type static|dynamic [static]"
130 --enable-perl enable perl backend [no]"
132 --with-perl-module module type static|dynamic [static]"
134 --enable-shell enable shell backend [no]"
136 --with-shell-module module type static|dynamic [static]"
138 --enable-sql enable sql backend [no]"
140 --with-sql-module module type static|dynamic [static]"
142 --enable-tcl enable tcl backend [no]"
144 --with-tcl-module module type static|dynamic [static]"
147 SLURPD (Replication Daemon) Options:"
149 --enable-slurpd enable building slurpd [auto]"
152 Library Generation & Linking Options"
154 --enable-static[=PKGS] build static libraries [default=yes]"
156 --enable-shared[=PKGS] build shared libraries [default=yes]"
158 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
160 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
162 # Find the correct PATH separator. Usually this is `:', but
163 # DJGPP uses `;' like DOS.
164 if test "X${PATH_SEPARATOR+set}" != Xset; then
165 UNAME=${UNAME-`uname 2>/dev/null`}
167 *-DOS) lt_cv_sys_path_separator=';' ;;
168 *) lt_cv_sys_path_separator=':' ;;
170 PATH_SEPARATOR=$lt_cv_sys_path_separator
174 # Check that we are running under the correct shell.
175 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Remove one level of quotation (which was required for Make).
180 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
185 if test "X$1" = X--no-reexec; then
186 # Discard the --no-reexec flag, and continue.
188 elif test "X$1" = X--fallback-echo; then
189 # Avoid inline document here, it may be left over
191 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
192 # Yippee, $echo works!
195 # Restart under the correct shell.
196 exec $SHELL "$0" --no-reexec ${1+"$@"}
199 if test "X$1" = X--fallback-echo; then
200 # used as fallback echo
208 # The HP-UX ksh and POSIX shell print the target directory to stdout
210 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
212 if test -z "$ECHO"; then
213 if test "X${echo_test_string+set}" != Xset; then
214 # find a string as large as possible, as long as the shell can cope with it
215 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
216 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
217 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
218 echo_test_string="`eval $cmd`" &&
219 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
227 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
228 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # The Solaris, AIX, and Digital Unix default echo programs unquote
232 # backslashes. This makes it impossible to quote backslashes using
233 # echo "$something" | sed 's/\\/\\\\/g'
235 # So, first we look for a working echo in the user's PATH.
237 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
238 for dir in $PATH /usr/ucb; do
239 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
240 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
249 if test "X$echo" = Xecho; then
250 # We didn't find a better echo, so look for alternatives.
251 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
254 # This shell has a builtin print -r that does the trick.
256 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
257 test "X$CONFIG_SHELL" != X/bin/ksh; then
258 # If we have ksh, try running configure again with it.
259 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
260 export ORIGINAL_CONFIG_SHELL
261 CONFIG_SHELL=/bin/ksh
263 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
267 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
268 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
272 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
273 test "X$echo_testing_string" = 'X\t' &&
274 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
275 test "X$echo_testing_string" = "X$echo_test_string"; then
276 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
278 SHELL="$CONFIG_SHELL"
280 echo="$CONFIG_SHELL $0 --fallback-echo"
281 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
282 test "X$echo_testing_string" = 'X\t' &&
283 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
284 test "X$echo_testing_string" = "X$echo_test_string"; then
285 echo="$CONFIG_SHELL $0 --fallback-echo"
287 # maybe with a smaller string...
290 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
291 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
298 if test "$prev" != 'sed 50q "$0"'; then
299 echo_test_string=`eval $prev`
300 export echo_test_string
301 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
303 # Oops. We lost completely, so just stick with echo.
312 # Copy echo and quote the copy suitably for passing to libtool from
313 # the Makefile, instead of quoting the original, which is used later.
315 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
316 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
321 --disable-libtool-lock avoid locking (might break parallel builds)"
323 --with-pic try to use only PIC/non-PIC objects [default=use both]"
326 See INSTALL file for further details."
328 # Initialize some variables set by options.
329 # The variables have the same names as the options, with
330 # dashes changed to underlines.
332 cache_file=./config.cache
341 program_transform_name=s,x,x,
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
362 # Initialize some other variables.
365 SHELL=${CONFIG_SHELL-/bin/sh}
366 # Maximum number of lines to put in a shell here document.
373 # If the previous option needs an argument, assign it.
374 if test -n "$ac_prev"; then
375 eval "$ac_prev=\$ac_option"
381 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
385 # Accept the important Cygnus configure options, so we can diagnose typos.
389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 bindir="$ac_optarg" ;;
394 -build | --build | --buil | --bui | --bu)
396 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
397 build="$ac_optarg" ;;
399 -cache-file | --cache-file | --cache-fil | --cache-fi \
400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
401 ac_prev=cache_file ;;
402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
404 cache_file="$ac_optarg" ;;
406 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410 datadir="$ac_optarg" ;;
412 -disable-* | --disable-*)
413 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
418 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
419 eval "enable_${ac_feature}=no" ;;
421 -enable-* | --enable-*)
422 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
427 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
432 eval "enable_${ac_feature}='$ac_optarg'" ;;
434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
436 | --exec | --exe | --ex)
437 ac_prev=exec_prefix ;;
438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
440 | --exec=* | --exe=* | --ex=*)
441 exec_prefix="$ac_optarg" ;;
443 -gas | --gas | --ga | --g)
444 # Obsolete; use --with-gas.
447 -help | --help | --hel | --he)
448 # Omit some internal or obsolete options to make the list less imposing.
449 # This message is too long to be a string in the A/UX 3.1 sh.
451 Usage: configure [options] [host]
452 Options: [defaults in brackets after descriptions]
454 --cache-file=FILE cache test results in FILE
455 --help print this message
456 --no-create do not create output files
457 --quiet, --silent do not print \`checking...' messages
458 --version print the version of autoconf that created configure
459 Directory and file names:
460 --prefix=PREFIX install architecture-independent files in PREFIX
462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
464 --bindir=DIR user executables in DIR [EPREFIX/bin]
465 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
466 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
467 --datadir=DIR read-only architecture-independent data in DIR
469 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
470 --sharedstatedir=DIR modifiable architecture-independent data in DIR
472 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
473 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
474 --includedir=DIR C header files in DIR [PREFIX/include]
475 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
476 --infodir=DIR info documentation in DIR [PREFIX/info]
477 --mandir=DIR man documentation in DIR [PREFIX/man]
478 --srcdir=DIR find the sources in DIR [configure dir or ..]
479 --program-prefix=PREFIX prepend PREFIX to installed program names
480 --program-suffix=SUFFIX append SUFFIX to installed program names
481 --program-transform-name=PROGRAM
482 run sed PROGRAM on installed program names
486 --build=BUILD configure for building on BUILD [BUILD=HOST]
487 --host=HOST configure for HOST [guessed]
488 --target=TARGET configure for TARGET [TARGET=HOST]
489 Features and packages:
490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
494 --x-includes=DIR X include files are in DIR
495 --x-libraries=DIR X library files are in DIR
497 if test -n "$ac_help"; then
498 echo "--enable and --with options recognized:$ac_help"
502 -host | --host | --hos | --ho)
504 -host=* | --host=* | --hos=* | --ho=*)
507 -includedir | --includedir | --includedi | --included | --include \
508 | --includ | --inclu | --incl | --inc)
509 ac_prev=includedir ;;
510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
511 | --includ=* | --inclu=* | --incl=* | --inc=*)
512 includedir="$ac_optarg" ;;
514 -infodir | --infodir | --infodi | --infod | --info | --inf)
516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
517 infodir="$ac_optarg" ;;
519 -libdir | --libdir | --libdi | --libd)
521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
522 libdir="$ac_optarg" ;;
524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
525 | --libexe | --libex | --libe)
526 ac_prev=libexecdir ;;
527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
528 | --libexe=* | --libex=* | --libe=*)
529 libexecdir="$ac_optarg" ;;
531 -localstatedir | --localstatedir | --localstatedi | --localstated \
532 | --localstate | --localstat | --localsta | --localst \
533 | --locals | --local | --loca | --loc | --lo)
534 ac_prev=localstatedir ;;
535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
536 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
537 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
538 localstatedir="$ac_optarg" ;;
540 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
542 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
543 mandir="$ac_optarg" ;;
546 # Obsolete; use --without-fp.
549 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
554 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
557 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
558 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
559 | --oldin | --oldi | --old | --ol | --o)
560 ac_prev=oldincludedir ;;
561 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
562 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
563 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
564 oldincludedir="$ac_optarg" ;;
566 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
568 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
569 prefix="$ac_optarg" ;;
571 -program-prefix | --program-prefix | --program-prefi | --program-pref \
572 | --program-pre | --program-pr | --program-p)
573 ac_prev=program_prefix ;;
574 -program-prefix=* | --program-prefix=* | --program-prefi=* \
575 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
576 program_prefix="$ac_optarg" ;;
578 -program-suffix | --program-suffix | --program-suffi | --program-suff \
579 | --program-suf | --program-su | --program-s)
580 ac_prev=program_suffix ;;
581 -program-suffix=* | --program-suffix=* | --program-suffi=* \
582 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
583 program_suffix="$ac_optarg" ;;
585 -program-transform-name | --program-transform-name \
586 | --program-transform-nam | --program-transform-na \
587 | --program-transform-n | --program-transform- \
588 | --program-transform | --program-transfor \
589 | --program-transfo | --program-transf \
590 | --program-trans | --program-tran \
591 | --progr-tra | --program-tr | --program-t)
592 ac_prev=program_transform_name ;;
593 -program-transform-name=* | --program-transform-name=* \
594 | --program-transform-nam=* | --program-transform-na=* \
595 | --program-transform-n=* | --program-transform-=* \
596 | --program-transform=* | --program-transfor=* \
597 | --program-transfo=* | --program-transf=* \
598 | --program-trans=* | --program-tran=* \
599 | --progr-tra=* | --program-tr=* | --program-t=*)
600 program_transform_name="$ac_optarg" ;;
602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
603 | -silent | --silent | --silen | --sile | --sil)
606 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
608 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
610 sbindir="$ac_optarg" ;;
612 -sharedstatedir | --sharedstatedir | --sharedstatedi \
613 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
614 | --sharedst | --shareds | --shared | --share | --shar \
616 ac_prev=sharedstatedir ;;
617 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
618 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
619 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
621 sharedstatedir="$ac_optarg" ;;
623 -site | --site | --sit)
625 -site=* | --site=* | --sit=*)
628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
631 srcdir="$ac_optarg" ;;
633 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
634 | --syscon | --sysco | --sysc | --sys | --sy)
635 ac_prev=sysconfdir ;;
636 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
637 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
638 sysconfdir="$ac_optarg" ;;
640 -target | --target | --targe | --targ | --tar | --ta | --t)
642 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
643 target="$ac_optarg" ;;
645 -v | -verbose | --verbose | --verbos | --verbo | --verb)
648 -version | --version | --versio | --versi | --vers)
649 echo "configure generated by autoconf version 2.13.1"
653 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
654 # Reject names that are not valid shell variable names.
655 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
656 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
658 ac_package=`echo $ac_package| sed 's/-/_/g'`
663 eval "with_${ac_package}='$ac_optarg'" ;;
665 -without-* | --without-*)
666 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
667 # Reject names that are not valid shell variable names.
668 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
669 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
671 ac_package=`echo $ac_package| sed 's/-/_/g'`
672 eval "with_${ac_package}=no" ;;
675 # Obsolete; use --with-x.
678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
679 | --x-incl | --x-inc | --x-in | --x-i)
680 ac_prev=x_includes ;;
681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
683 x_includes="$ac_optarg" ;;
685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
687 ac_prev=x_libraries ;;
688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
690 x_libraries="$ac_optarg" ;;
692 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
696 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
697 echo "configure: warning: $ac_option: invalid host type" 1>&2
699 if test "x$nonopt" != xNONE; then
700 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
708 if test -n "$ac_prev"; then
709 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
714 # File descriptor usage:
717 # 2 errors and warnings
718 # 3 some systems may open it to /dev/tty
719 # 4 used on the Kubota Titan
720 # 6 checking for... messages and results
721 # 5 compiler messages saved in config.log
722 if test "$silent" = yes; then
730 This file contains any messages produced by compilers while
731 running configure, to aid debugging if configure makes a mistake.
734 # Strip out --no-create and --no-recursion so they do not pile up.
735 # Also quote any args containing shell metacharacters.
740 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
741 | --no-cr | --no-c) ;;
742 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
743 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
744 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
745 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
746 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
751 # Only set these to C if already set. These must not be set unconditionally
752 # because not all systems understand e.g. LANG=C (notably SCO).
753 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
754 # Non-C LC_CTYPE values break the ctype check.
755 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
756 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
757 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
758 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
761 rm -rf conftest* confdefs.h
762 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
765 # A filename unique to this package, relative to the directory that
766 # configure is in, which we can look for to find out if srcdir is correct.
767 ac_unique_file=build/version.sh
769 # Find the source files, if location was not specified.
770 if test -z "$srcdir"; then
771 ac_srcdir_defaulted=yes
772 # Try the directory containing this script, then its parent.
774 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
775 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
777 if test ! -r $srcdir/$ac_unique_file; then
781 ac_srcdir_defaulted=no
783 if test ! -r $srcdir/$ac_unique_file; then
784 if test "$ac_srcdir_defaulted" = yes; then
785 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
787 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
790 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
792 # Prefer explicitly selected file to automatically selected ones.
793 if test -z "$CONFIG_SITE"; then
794 if test "x$prefix" != xNONE; then
795 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
797 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
800 for ac_site_file in $CONFIG_SITE; do
801 if test -r "$ac_site_file"; then
802 echo "loading site script $ac_site_file"
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
817 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
818 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
819 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
826 ac_n= ac_c='\c' ac_t=
830 # set unset (borrowed from autoconf 2.49c)
831 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
837 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
840 for ac_dir in build $srcdir/build; do
841 if test -f $ac_dir/install-sh; then
843 ac_install_sh="$ac_aux_dir/install-sh -c"
845 elif test -f $ac_dir/install.sh; then
847 ac_install_sh="$ac_aux_dir/install.sh -c"
849 elif test -f $ac_dir/shtool; then
851 ac_install_sh="$ac_aux_dir/shtool install -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
860 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
862 eval `$ac_aux_dir/version.sh`
863 if test -z "$OL_STRING"; then
864 { echo "configure: error: could not determine version" 1>&2; exit 1; }
867 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
868 ac_cv_shtool="$ac_aux_dir/shtool"
870 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
873 SHTOOL="$ac_cv_shtool"
875 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
876 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
879 if test -d $ac_aux_dir/CVS; then
880 OPENLDAP_CVS="(from CVS sources) "
883 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
887 echo "configure:888: checking host system type" >&5
888 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
890 # Make sure we can run config.sub.
891 if $ac_config_sub sun4 >/dev/null 2>&1; then :
892 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
895 ac_cv_host_alias=$host
896 case "$ac_cv_host_alias" in
900 if ac_cv_host_alias=`$ac_config_guess`; then :
901 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
903 *) ac_cv_host_alias=$nonopt ;;
907 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
908 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo $ac_n "(cached) $ac_c" 1>&6
915 echo "$ac_t""$ac_cv_host" 1>&6
918 host_alias=$ac_cv_host_alias
919 host_cpu=$ac_cv_host_cpu
920 host_vendor=$ac_cv_host_vendor
921 host_os=$ac_cv_host_os
927 echo $ac_n "checking target system type""... $ac_c" 1>&6
928 echo "configure:929: checking target system type" >&5
929 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
931 # Make sure we can run config.sub.
932 if $ac_config_sub sun4 >/dev/null 2>&1; then :
933 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
936 ac_cv_target_alias=$target
937 case "$ac_cv_target_alias" in
941 ac_cv_target_alias=$host_alias ;;
943 *) ac_cv_target_alias=$nonopt ;;
947 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
948 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo $ac_n "(cached) $ac_c" 1>&6
955 echo "$ac_t""$ac_cv_target" 1>&6
958 target_alias=$ac_cv_target_alias
959 target_cpu=$ac_cv_target_cpu
960 target_vendor=$ac_cv_target_vendor
961 target_os=$ac_cv_target_os
967 echo $ac_n "checking build system type""... $ac_c" 1>&6
968 echo "configure:969: checking build system type" >&5
969 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
971 # Make sure we can run config.sub.
972 if $ac_config_sub sun4 >/dev/null 2>&1; then :
973 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 ac_cv_build_alias=$build
977 case "$ac_cv_build_alias" in
981 ac_cv_build_alias=$host_alias ;;
983 *) ac_cv_build_alias=$nonopt ;;
987 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
988 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo $ac_n "(cached) $ac_c" 1>&6
995 echo "$ac_t""$ac_cv_build" 1>&6
998 build_alias=$ac_cv_build_alias
999 build_cpu=$ac_cv_build_cpu
1000 build_vendor=$ac_cv_build_vendor
1001 build_os=$ac_cv_build_os
1007 # Do some error checking and defaulting for the host and target type.
1009 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1012 # 1. You are not allowed to specify --host, --target, and nonopt at the
1014 # 2. Host defaults to nonopt.
1015 # 3. If nonopt is not specified, then host defaults to the current host,
1016 # as determined by config.guess.
1017 # 4. Target and build default to nonopt.
1018 # 5. If nonopt is not specified, then target and build default to host.
1020 # The aliases save the names the user supplied, while $host etc.
1021 # will get canonicalized.
1022 case $host---$target---$nonopt in
1023 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1024 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix=${target_alias}-
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1043 # ./install, which can be erroneously created by make from ./install.sh.
1044 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1045 echo "configure:1046: checking for a BSD compatible install" >&5
1046 if test -z "$INSTALL"; then
1047 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1051 for ac_dir in $PATH; do
1052 # Account for people who put trailing slashes in PATH elements.
1054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1056 # OSF1 and SCO ODT 3.0 have their own names for install.
1057 # Don't use installbsd from OSF since it installs stuff as root
1059 for ac_prog in ginstall scoinst install; do
1060 if test -f $ac_dir/$ac_prog; then
1061 if test $ac_prog = install &&
1062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # AIX install. It has an incompatible calling convention.
1065 elif test $ac_prog = install &&
1066 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1067 # program-specific install script used by HP pwplus--don't use.
1070 ac_cv_path_install="$ac_dir/$ac_prog -c"
1081 if test "${ac_cv_path_install+set}" = set; then
1082 INSTALL="$ac_cv_path_install"
1084 # As a last resort, use the slow shell script. We don't cache a
1085 # path for INSTALL within a source directory, because that will
1086 # break other packages using the cache if that directory is
1087 # removed, or if the path is relative.
1088 INSTALL="$ac_install_sh"
1091 echo "$ac_t""$INSTALL" 1>&6
1093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1094 # It thinks the first close brace ends the variable substitution.
1095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1101 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether build environment is sane" >&5
1105 echo timestamp > conftestfile
1106 # Do `set' in a subshell so we don't clobber the current shell's
1107 # arguments. Must try -L first in case configure is actually a
1108 # symlink; some systems play weird games with the mod time of symlinks
1109 # (eg FreeBSD returns the mod time of the symlink's containing
1112 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1113 if test "$*" = "X"; then
1115 set X `ls -t $srcdir/configure conftestfile`
1117 if test "$*" != "X $srcdir/configure conftestfile" \
1118 && test "$*" != "X conftestfile $srcdir/configure"; then
1120 # If neither matched, then we have a broken ls. This can happen
1121 # if, for instance, CONFIG_SHELL is bash and it inherits a
1122 # broken ls alias from the environment. This has actually
1123 # happened. Such a system could not be considered "sane".
1124 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1125 alias in your environment" 1>&2; exit 1; }
1128 test "$2" = conftestfile
1134 { echo "configure: error: newly created file is older than distributed files!
1135 Check your system clock" 1>&2; exit 1; }
1138 echo "$ac_t""yes" 1>&6
1139 if test "$program_transform_name" = s,x,x,; then
1140 program_transform_name=
1142 # Double any \ or $. echo might interpret backslashes.
1143 cat <<\EOF_SED > conftestsed
1144 s,\\,\\\\,g; s,\$,$$,g
1146 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1149 test "$program_prefix" != NONE &&
1150 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1151 # Use a double $ so make ignores it.
1152 test "$program_suffix" != NONE &&
1153 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1155 # sed with no file args requires a program.
1156 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1158 for ac_prog in mawk gawk nawk awk
1160 # Extract the first word of "$ac_prog", so it can be a program name with args.
1161 set dummy $ac_prog; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$AWK"; then
1168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_AWK="$ac_prog"
1182 AWK="$ac_cv_prog_AWK"
1183 if test -n "$AWK"; then
1184 echo "$ac_t""$AWK" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -n "$AWK" && break
1192 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${MAKE-make} sets \${MAKE}" >&5
1194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1195 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftestmake <<\EOF
1200 @echo 'ac_maketemp="${MAKE}"'
1202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1203 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1204 if test -n "$ac_maketemp"; then
1205 eval ac_cv_prog_make_${ac_make}_set=yes
1207 eval ac_cv_prog_make_${ac_make}_set=no
1211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1215 echo "$ac_t""no" 1>&6
1216 SET_MAKE="MAKE=${MAKE-make}"
1225 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1226 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working aclocal" >&5
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 ACLOCAL="$missing_dir/missing aclocal"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working autoconf" >&5
1247 # Run test in a subshell; some versions of sh will print an error if
1248 # an executable is not found, even if stderr is redirected.
1249 # Redirect stdin to placate older versions of autoconf. Sigh.
1250 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1252 echo "$ac_t""found" 1>&6
1254 AUTOCONF="$missing_dir/missing autoconf"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working automake" >&5
1260 # Run test in a subshell; some versions of sh will print an error if
1261 # an executable is not found, even if stderr is redirected.
1262 # Redirect stdin to placate older versions of autoconf. Sigh.
1263 if (automake --version) < /dev/null > /dev/null 2>&1; then
1265 echo "$ac_t""found" 1>&6
1267 AUTOMAKE="$missing_dir/missing automake"
1268 echo "$ac_t""missing" 1>&6
1271 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working autoheader" >&5
1273 # Run test in a subshell; some versions of sh will print an error if
1274 # an executable is not found, even if stderr is redirected.
1275 # Redirect stdin to placate older versions of autoconf. Sigh.
1276 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1277 AUTOHEADER=autoheader
1278 echo "$ac_t""found" 1>&6
1280 AUTOHEADER="$missing_dir/missing autoheader"
1281 echo "$ac_t""missing" 1>&6
1284 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working makeinfo" >&5
1286 # Run test in a subshell; some versions of sh will print an error if
1287 # an executable is not found, even if stderr is redirected.
1288 # Redirect stdin to placate older versions of autoconf. Sigh.
1289 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1291 echo "$ac_t""found" 1>&6
1293 MAKEINFO="$missing_dir/missing makeinfo"
1294 echo "$ac_t""missing" 1>&6
1297 install_sh="$missing_dir/install-sh"
1298 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1300 for ac_prog in gnutar gtar tar
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy $ac_prog; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$AMTAR"; then
1310 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_AMTAR="$ac_prog"
1324 AMTAR="$ac_cv_prog_AMTAR"
1325 if test -n "$AMTAR"; then
1326 echo "$ac_t""$AMTAR" 1>&6
1328 echo "$ac_t""no" 1>&6
1331 test -n "$AMTAR" && break
1336 if test -n "$AMTAR"; then
1337 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_PACKAGE "$PACKAGE"
1346 cat >> confdefs.h <<EOF
1347 #define OPENLDAP_VERSION "$VERSION"
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION $OL_API_INC
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1363 cat >> confdefs.h <<EOF
1364 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1368 OPENLDAP_LIBVERSION=$OL_API_LIB
1370 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1374 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1375 echo "configure:1376: checking configure arguments" >&5
1380 ldap_subdir="/openldap"
1382 # Check whether --with-subdir or --without-subdir was given.
1383 if test "${with_subdir+set}" = set; then
1384 withval="$with_subdir"
1391 ldap_subdir="$withval"
1394 ldap_subdir="/$withval"
1401 # OpenLDAP --enable-debug
1402 # Check whether --enable-debug or --disable-debug was given.
1403 if test "${enable_debug+set}" = set; then
1404 enableval="$enable_debug"
1407 for ol_val in auto yes no ; do
1408 if test "$enableval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1415 ol_enable_debug="$ol_arg"
1418 ol_enable_debug="yes"
1420 # end --enable-debug
1421 # OpenLDAP --enable-dynamic
1422 # Check whether --enable-dynamic or --disable-dynamic was given.
1423 if test "${enable_dynamic+set}" = set; then
1424 enableval="$enable_dynamic"
1427 for ol_val in auto yes no ; do
1428 if test "$enableval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1435 ol_enable_dynamic="$ol_arg"
1438 ol_enable_dynamic="no"
1440 # end --enable-dynamic
1441 # OpenLDAP --enable-syslog
1442 # Check whether --enable-syslog or --disable-syslog was given.
1443 if test "${enable_syslog+set}" = set; then
1444 enableval="$enable_syslog"
1447 for ol_val in auto yes no ; do
1448 if test "$enableval" = "$ol_val" ; then
1452 if test "$ol_arg" = "invalid" ; then
1453 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1455 ol_enable_syslog="$ol_arg"
1458 ol_enable_syslog="auto"
1460 # end --enable-syslog
1461 # OpenLDAP --enable-proctitle
1462 # Check whether --enable-proctitle or --disable-proctitle was given.
1463 if test "${enable_proctitle+set}" = set; then
1464 enableval="$enable_proctitle"
1467 for ol_val in auto yes no ; do
1468 if test "$enableval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1475 ol_enable_proctitle="$ol_arg"
1478 ol_enable_proctitle="yes"
1480 # end --enable-proctitle
1481 ol_enable_referrals=${ol_enable_referrals-no}
1482 ol_enable_kbind=${ol_enable_kbind-no}
1483 # OpenLDAP --enable-ipv6
1484 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1485 if test "${enable_ipv6+set}" = set; then
1486 enableval="$enable_ipv6"
1489 for ol_val in auto yes no ; do
1490 if test "$enableval" = "$ol_val" ; then
1494 if test "$ol_arg" = "invalid" ; then
1495 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1497 ol_enable_ipv6="$ol_arg"
1500 ol_enable_ipv6="auto"
1503 # OpenLDAP --enable-local
1504 # Check whether --enable-local or --disable-local was given.
1505 if test "${enable_local+set}" = set; then
1506 enableval="$enable_local"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1517 ol_enable_local="$ol_arg"
1520 ol_enable_local="auto"
1522 # end --enable-local
1523 # OpenLDAP --enable-x_compile
1524 # Check whether --enable-x_compile or --disable-x_compile was given.
1525 if test "${enable_x_compile+set}" = set; then
1526 enableval="$enable_x_compile"
1529 for ol_val in yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1537 ol_enable_x_compile="$ol_arg"
1540 ol_enable_x_compile="no"
1542 # end --enable-x_compile
1545 # OpenLDAP --with-cyrus_sasl
1546 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1547 if test "${with_cyrus_sasl+set}" = set; then
1548 withval="$with_cyrus_sasl"
1551 for ol_val in auto yes no ; do
1552 if test "$withval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1559 ol_with_cyrus_sasl="$ol_arg"
1562 ol_with_cyrus_sasl="auto"
1564 # end --with-cyrus_sasl
1566 # OpenLDAP --with-fetch
1567 # Check whether --with-fetch or --without-fetch was given.
1568 if test "${with_fetch+set}" = set; then
1569 withval="$with_fetch"
1572 for ol_val in auto yes no ; do
1573 if test "$withval" = "$ol_val" ; then
1577 if test "$ol_arg" = "invalid" ; then
1578 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1580 ol_with_fetch="$ol_arg"
1583 ol_with_fetch="auto"
1587 # OpenLDAP --with-kerberos
1588 # Check whether --with-kerberos or --without-kerberos was given.
1589 if test "${with_kerberos+set}" = set; then
1590 withval="$with_kerberos"
1593 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1594 if test "$withval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1601 ol_with_kerberos="$ol_arg"
1604 ol_with_kerberos="auto"
1606 # end --with-kerberos
1608 # OpenLDAP --with-readline
1609 # Check whether --with-readline or --without-readline was given.
1610 if test "${with_readline+set}" = set; then
1611 withval="$with_readline"
1614 for ol_val in auto yes no ; do
1615 if test "$withval" = "$ol_val" ; then
1619 if test "$ol_arg" = "invalid" ; then
1620 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1622 ol_with_readline="$ol_arg"
1625 ol_with_readline="auto"
1627 # end --with-readline
1629 # OpenLDAP --with-threads
1630 # Check whether --with-threads or --without-threads was given.
1631 if test "${with_threads+set}" = set; then
1632 withval="$with_threads"
1635 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1636 if test "$withval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1643 ol_with_threads="$ol_arg"
1646 ol_with_threads="auto"
1648 # end --with-threads
1650 # OpenLDAP --with-tls
1651 # Check whether --with-tls or --without-tls was given.
1652 if test "${with_tls+set}" = set; then
1656 for ol_val in auto ssleay openssl yes no ; do
1657 if test "$withval" = "$ol_val" ; then
1661 if test "$ol_arg" = "invalid" ; then
1662 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1664 ol_with_tls="$ol_arg"
1671 # OpenLDAP --with-yielding_select
1672 # Check whether --with-yielding_select or --without-yielding_select was given.
1673 if test "${with_yielding_select+set}" = set; then
1674 withval="$with_yielding_select"
1677 for ol_val in auto yes no manual ; do
1678 if test "$withval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1685 ol_with_yielding_select="$ol_arg"
1688 ol_with_yielding_select="auto"
1690 # end --with-yielding_select
1694 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1695 if test "${with_xxslapdoptions+set}" = set; then
1696 withval="$with_xxslapdoptions"
1700 # OpenLDAP --enable-slapd
1701 # Check whether --enable-slapd or --disable-slapd was given.
1702 if test "${enable_slapd+set}" = set; then
1703 enableval="$enable_slapd"
1706 for ol_val in auto yes no ; do
1707 if test "$enableval" = "$ol_val" ; then
1711 if test "$ol_arg" = "invalid" ; then
1712 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1714 ol_enable_slapd="$ol_arg"
1717 ol_enable_slapd="yes"
1719 # end --enable-slapd
1720 # OpenLDAP --enable-aci
1721 # Check whether --enable-aci or --disable-aci was given.
1722 if test "${enable_aci+set}" = set; then
1723 enableval="$enable_aci"
1726 for ol_val in auto yes no ; do
1727 if test "$enableval" = "$ol_val" ; then
1731 if test "$ol_arg" = "invalid" ; then
1732 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1734 ol_enable_aci="$ol_arg"
1740 # OpenLDAP --enable-cleartext
1741 # Check whether --enable-cleartext or --disable-cleartext was given.
1742 if test "${enable_cleartext+set}" = set; then
1743 enableval="$enable_cleartext"
1746 for ol_val in auto yes no ; do
1747 if test "$enableval" = "$ol_val" ; then
1751 if test "$ol_arg" = "invalid" ; then
1752 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1754 ol_enable_cleartext="$ol_arg"
1757 ol_enable_cleartext="yes"
1759 # end --enable-cleartext
1760 # OpenLDAP --enable-crypt
1761 # Check whether --enable-crypt or --disable-crypt was given.
1762 if test "${enable_crypt+set}" = set; then
1763 enableval="$enable_crypt"
1766 for ol_val in auto yes no ; do
1767 if test "$enableval" = "$ol_val" ; then
1771 if test "$ol_arg" = "invalid" ; then
1772 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1774 ol_enable_crypt="$ol_arg"
1777 ol_enable_crypt="no"
1779 # end --enable-crypt
1780 # OpenLDAP --enable-kpasswd
1781 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1782 if test "${enable_kpasswd+set}" = set; then
1783 enableval="$enable_kpasswd"
1786 for ol_val in auto yes no ; do
1787 if test "$enableval" = "$ol_val" ; then
1791 if test "$ol_arg" = "invalid" ; then
1792 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1794 ol_enable_kpasswd="$ol_arg"
1797 ol_enable_kpasswd="no"
1799 # end --enable-kpasswd
1800 # OpenLDAP --enable-lmpasswd
1801 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1802 if test "${enable_lmpasswd+set}" = set; then
1803 enableval="$enable_lmpasswd"
1806 for ol_val in auto yes no ; do
1807 if test "$enableval" = "$ol_val" ; then
1811 if test "$ol_arg" = "invalid" ; then
1812 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1814 ol_enable_lmpasswd="$ol_arg"
1817 ol_enable_lmpasswd="no"
1819 # end --enable-lmpasswd
1820 # OpenLDAP --enable-spasswd
1821 # Check whether --enable-spasswd or --disable-spasswd was given.
1822 if test "${enable_spasswd+set}" = set; then
1823 enableval="$enable_spasswd"
1826 for ol_val in auto yes no ; do
1827 if test "$enableval" = "$ol_val" ; then
1831 if test "$ol_arg" = "invalid" ; then
1832 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1834 ol_enable_spasswd="$ol_arg"
1837 ol_enable_spasswd="no"
1839 # end --enable-spasswd
1840 # OpenLDAP --enable-modules
1841 # Check whether --enable-modules or --disable-modules was given.
1842 if test "${enable_modules+set}" = set; then
1843 enableval="$enable_modules"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1854 ol_enable_modules="$ol_arg"
1857 ol_enable_modules="no"
1859 # end --enable-modules
1860 ol_enable_multimaster=${ol_enable_multimaster-no}
1861 # OpenLDAP --enable-phonetic
1862 # Check whether --enable-phonetic or --disable-phonetic was given.
1863 if test "${enable_phonetic+set}" = set; then
1864 enableval="$enable_phonetic"
1867 for ol_val in auto yes no ; do
1868 if test "$enableval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1875 ol_enable_phonetic="$ol_arg"
1878 ol_enable_phonetic="no"
1880 # end --enable-phonetic
1881 # OpenLDAP --enable-rewrite
1882 # Check whether --enable-rewrite or --disable-rewrite was given.
1883 if test "${enable_rewrite+set}" = set; then
1884 enableval="$enable_rewrite"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1895 ol_enable_rewrite="$ol_arg"
1898 ol_enable_rewrite="no"
1900 # end --enable-rewrite
1901 # OpenLDAP --enable-rlookups
1902 # Check whether --enable-rlookups or --disable-rlookups was given.
1903 if test "${enable_rlookups+set}" = set; then
1904 enableval="$enable_rlookups"
1907 for ol_val in auto yes no ; do
1908 if test "$enableval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1915 ol_enable_rlookups="$ol_arg"
1918 ol_enable_rlookups="no"
1920 # end --enable-rlookups
1921 # OpenLDAP --enable-slapi
1922 # Check whether --enable-slapi or --disable-slapi was given.
1923 if test "${enable_slapi+set}" = set; then
1924 enableval="$enable_slapi"
1927 for ol_val in auto yes no ; do
1928 if test "$enableval" = "$ol_val" ; then
1932 if test "$ol_arg" = "invalid" ; then
1933 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1935 ol_enable_slapi="$ol_arg"
1938 ol_enable_slapi="no"
1940 # end --enable-slapi
1941 # OpenLDAP --enable-slp
1942 # Check whether --enable-slp or --disable-slp was given.
1943 if test "${enable_slp+set}" = set; then
1944 enableval="$enable_slp"
1947 for ol_val in auto yes no ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1955 ol_enable_slp="$ol_arg"
1961 # OpenLDAP --enable-wrappers
1962 # Check whether --enable-wrappers or --disable-wrappers was given.
1963 if test "${enable_wrappers+set}" = set; then
1964 enableval="$enable_wrappers"
1967 for ol_val in auto yes no ; do
1968 if test "$enableval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1975 ol_enable_wrappers="$ol_arg"
1978 ol_enable_wrappers="no"
1980 # end --enable-wrappers
1983 # OpenLDAP --enable-bdb
1984 # Check whether --enable-bdb or --disable-bdb was given.
1985 if test "${enable_bdb+set}" = set; then
1986 enableval="$enable_bdb"
1989 for ol_val in auto yes no ; do
1990 if test "$enableval" = "$ol_val" ; then
1994 if test "$ol_arg" = "invalid" ; then
1995 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1997 ol_enable_bdb="$ol_arg"
2003 # OpenLDAP --with-bdb_module
2004 # Check whether --with-bdb_module or --without-bdb_module was given.
2005 if test "${with_bdb_module+set}" = set; then
2006 withval="$with_bdb_module"
2009 for ol_val in static dynamic ; do
2010 if test "$withval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2017 ol_with_bdb_module="$ol_arg"
2020 ol_with_bdb_module="static"
2022 # end --with-bdb_module
2024 # OpenLDAP --enable-dnssrv
2025 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2026 if test "${enable_dnssrv+set}" = set; then
2027 enableval="$enable_dnssrv"
2030 for ol_val in auto yes no ; do
2031 if test "$enableval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2038 ol_enable_dnssrv="$ol_arg"
2041 ol_enable_dnssrv="no"
2043 # end --enable-dnssrv
2044 # OpenLDAP --with-dnssrv_module
2045 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2046 if test "${with_dnssrv_module+set}" = set; then
2047 withval="$with_dnssrv_module"
2050 for ol_val in static dynamic ; do
2051 if test "$withval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2058 ol_with_dnssrv_module="$ol_arg"
2061 ol_with_dnssrv_module="static"
2063 # end --with-dnssrv_module
2065 # OpenLDAP --enable-hdb
2066 # Check whether --enable-hdb or --disable-hdb was given.
2067 if test "${enable_hdb+set}" = set; then
2068 enableval="$enable_hdb"
2071 for ol_val in auto yes no ; do
2072 if test "$enableval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
2079 ol_enable_hdb="$ol_arg"
2085 # OpenLDAP --with-hdb_module
2086 # Check whether --with-hdb_module or --without-hdb_module was given.
2087 if test "${with_hdb_module+set}" = set; then
2088 withval="$with_hdb_module"
2091 for ol_val in static dynamic ; do
2092 if test "$withval" = "$ol_val" ; then
2096 if test "$ol_arg" = "invalid" ; then
2097 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2099 ol_with_hdb_module="$ol_arg"
2102 ol_with_hdb_module="static"
2104 # end --with-hdb_module
2106 # OpenLDAP --enable-ldap
2107 # Check whether --enable-ldap or --disable-ldap was given.
2108 if test "${enable_ldap+set}" = set; then
2109 enableval="$enable_ldap"
2112 for ol_val in auto yes no ; do
2113 if test "$enableval" = "$ol_val" ; then
2117 if test "$ol_arg" = "invalid" ; then
2118 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2120 ol_enable_ldap="$ol_arg"
2126 # OpenLDAP --with-ldap_module
2127 # Check whether --with-ldap_module or --without-ldap_module was given.
2128 if test "${with_ldap_module+set}" = set; then
2129 withval="$with_ldap_module"
2132 for ol_val in static dynamic ; do
2133 if test "$withval" = "$ol_val" ; then
2137 if test "$ol_arg" = "invalid" ; then
2138 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2140 ol_with_ldap_module="$ol_arg"
2143 ol_with_ldap_module="static"
2145 # end --with-ldap_module
2147 # OpenLDAP --enable-ldbm
2148 # Check whether --enable-ldbm or --disable-ldbm was given.
2149 if test "${enable_ldbm+set}" = set; then
2150 enableval="$enable_ldbm"
2153 for ol_val in auto yes no ; do
2154 if test "$enableval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2161 ol_enable_ldbm="$ol_arg"
2167 # OpenLDAP --with-ldbm_api
2168 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2169 if test "${with_ldbm_api+set}" = set; then
2170 withval="$with_ldbm_api"
2173 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2174 if test "$withval" = "$ol_val" ; then
2178 if test "$ol_arg" = "invalid" ; then
2179 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2181 ol_with_ldbm_api="$ol_arg"
2184 ol_with_ldbm_api="auto"
2186 # end --with-ldbm_api
2188 # OpenLDAP --with-ldbm_module
2189 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2190 if test "${with_ldbm_module+set}" = set; then
2191 withval="$with_ldbm_module"
2194 for ol_val in static dynamic ; do
2195 if test "$withval" = "$ol_val" ; then
2199 if test "$ol_arg" = "invalid" ; then
2200 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2202 ol_with_ldbm_module="$ol_arg"
2205 ol_with_ldbm_module="static"
2207 # end --with-ldbm_module
2209 # OpenLDAP --with-ldbm_type
2210 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2211 if test "${with_ldbm_type+set}" = set; then
2212 withval="$with_ldbm_type"
2215 for ol_val in auto btree hash ; do
2216 if test "$withval" = "$ol_val" ; then
2220 if test "$ol_arg" = "invalid" ; then
2221 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2223 ol_with_ldbm_type="$ol_arg"
2226 ol_with_ldbm_type="auto"
2228 # end --with-ldbm_type
2230 # OpenLDAP --enable-meta
2231 # Check whether --enable-meta or --disable-meta was given.
2232 if test "${enable_meta+set}" = set; then
2233 enableval="$enable_meta"
2236 for ol_val in auto yes no ; do
2237 if test "$enableval" = "$ol_val" ; then
2241 if test "$ol_arg" = "invalid" ; then
2242 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2244 ol_enable_meta="$ol_arg"
2250 # OpenLDAP --with-meta_module
2251 # Check whether --with-meta_module or --without-meta_module was given.
2252 if test "${with_meta_module+set}" = set; then
2253 withval="$with_meta_module"
2256 for ol_val in static dynamic ; do
2257 if test "$withval" = "$ol_val" ; then
2261 if test "$ol_arg" = "invalid" ; then
2262 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2264 ol_with_meta_module="$ol_arg"
2267 ol_with_meta_module="static"
2269 # end --with-meta_module
2271 # OpenLDAP --enable-monitor
2272 # Check whether --enable-monitor or --disable-monitor was given.
2273 if test "${enable_monitor+set}" = set; then
2274 enableval="$enable_monitor"
2277 for ol_val in auto yes no ; do
2278 if test "$enableval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2285 ol_enable_monitor="$ol_arg"
2288 ol_enable_monitor="no"
2290 # end --enable-monitor
2291 # OpenLDAP --with-monitor_module
2292 # Check whether --with-monitor_module or --without-monitor_module was given.
2293 if test "${with_monitor_module+set}" = set; then
2294 withval="$with_monitor_module"
2297 for ol_val in static dynamic ; do
2298 if test "$withval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2305 ol_with_monitor_module="$ol_arg"
2308 ol_with_monitor_module="static"
2310 # end --with-monitor_module
2312 # OpenLDAP --enable-null
2313 # Check whether --enable-null or --disable-null was given.
2314 if test "${enable_null+set}" = set; then
2315 enableval="$enable_null"
2318 for ol_val in auto yes no ; do
2319 if test "$enableval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2326 ol_enable_null="$ol_arg"
2332 # OpenLDAP --with-null_module
2333 # Check whether --with-null_module or --without-null_module was given.
2334 if test "${with_null_module+set}" = set; then
2335 withval="$with_null_module"
2338 for ol_val in static dynamic ; do
2339 if test "$withval" = "$ol_val" ; then
2343 if test "$ol_arg" = "invalid" ; then
2344 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2346 ol_with_null_module="$ol_arg"
2349 ol_with_null_module="static"
2351 # end --with-null_module
2353 # OpenLDAP --enable-passwd
2354 # Check whether --enable-passwd or --disable-passwd was given.
2355 if test "${enable_passwd+set}" = set; then
2356 enableval="$enable_passwd"
2359 for ol_val in auto yes no ; do
2360 if test "$enableval" = "$ol_val" ; then
2364 if test "$ol_arg" = "invalid" ; then
2365 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2367 ol_enable_passwd="$ol_arg"
2370 ol_enable_passwd="no"
2372 # end --enable-passwd
2373 # OpenLDAP --with-passwd_module
2374 # Check whether --with-passwd_module or --without-passwd_module was given.
2375 if test "${with_passwd_module+set}" = set; then
2376 withval="$with_passwd_module"
2379 for ol_val in static dynamic ; do
2380 if test "$withval" = "$ol_val" ; then
2384 if test "$ol_arg" = "invalid" ; then
2385 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2387 ol_with_passwd_module="$ol_arg"
2390 ol_with_passwd_module="static"
2392 # end --with-passwd_module
2394 # OpenLDAP --enable-perl
2395 # Check whether --enable-perl or --disable-perl was given.
2396 if test "${enable_perl+set}" = set; then
2397 enableval="$enable_perl"
2400 for ol_val in auto yes no ; do
2401 if test "$enableval" = "$ol_val" ; then
2405 if test "$ol_arg" = "invalid" ; then
2406 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2408 ol_enable_perl="$ol_arg"
2414 # OpenLDAP --with-perl_module
2415 # Check whether --with-perl_module or --without-perl_module was given.
2416 if test "${with_perl_module+set}" = set; then
2417 withval="$with_perl_module"
2420 for ol_val in static dynamic ; do
2421 if test "$withval" = "$ol_val" ; then
2425 if test "$ol_arg" = "invalid" ; then
2426 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2428 ol_with_perl_module="$ol_arg"
2431 ol_with_perl_module="static"
2433 # end --with-perl_module
2435 # OpenLDAP --enable-shell
2436 # Check whether --enable-shell or --disable-shell was given.
2437 if test "${enable_shell+set}" = set; then
2438 enableval="$enable_shell"
2441 for ol_val in auto yes no ; do
2442 if test "$enableval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2449 ol_enable_shell="$ol_arg"
2452 ol_enable_shell="no"
2454 # end --enable-shell
2455 # OpenLDAP --with-shell_module
2456 # Check whether --with-shell_module or --without-shell_module was given.
2457 if test "${with_shell_module+set}" = set; then
2458 withval="$with_shell_module"
2461 for ol_val in static dynamic ; do
2462 if test "$withval" = "$ol_val" ; then
2466 if test "$ol_arg" = "invalid" ; then
2467 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2469 ol_with_shell_module="$ol_arg"
2472 ol_with_shell_module="static"
2474 # end --with-shell_module
2476 # OpenLDAP --enable-sql
2477 # Check whether --enable-sql or --disable-sql was given.
2478 if test "${enable_sql+set}" = set; then
2479 enableval="$enable_sql"
2482 for ol_val in auto yes no ; do
2483 if test "$enableval" = "$ol_val" ; then
2487 if test "$ol_arg" = "invalid" ; then
2488 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2490 ol_enable_sql="$ol_arg"
2496 # OpenLDAP --with-sql_module
2497 # Check whether --with-sql_module or --without-sql_module was given.
2498 if test "${with_sql_module+set}" = set; then
2499 withval="$with_sql_module"
2502 for ol_val in static dynamic ; do
2503 if test "$withval" = "$ol_val" ; then
2507 if test "$ol_arg" = "invalid" ; then
2508 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2510 ol_with_sql_module="$ol_arg"
2513 ol_with_sql_module="static"
2515 # end --with-sql_module
2517 # OpenLDAP --enable-tcl
2518 # Check whether --enable-tcl or --disable-tcl was given.
2519 if test "${enable_tcl+set}" = set; then
2520 enableval="$enable_tcl"
2523 for ol_val in auto yes no ; do
2524 if test "$enableval" = "$ol_val" ; then
2528 if test "$ol_arg" = "invalid" ; then
2529 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2531 ol_enable_tcl="$ol_arg"
2537 # OpenLDAP --with-tcl_module
2538 # Check whether --with-tcl_module or --without-tcl_module was given.
2539 if test "${with_tcl_module+set}" = set; then
2540 withval="$with_tcl_module"
2543 for ol_val in static dynamic ; do
2544 if test "$withval" = "$ol_val" ; then
2548 if test "$ol_arg" = "invalid" ; then
2549 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2551 ol_with_tcl_module="$ol_arg"
2554 ol_with_tcl_module="static"
2556 # end --with-tcl_module
2559 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2560 if test "${with_xxslurpdoptions+set}" = set; then
2561 withval="$with_xxslurpdoptions"
2565 # OpenLDAP --enable-slurpd
2566 # Check whether --enable-slurpd or --disable-slurpd was given.
2567 if test "${enable_slurpd+set}" = set; then
2568 enableval="$enable_slurpd"
2571 for ol_val in auto yes no ; do
2572 if test "$enableval" = "$ol_val" ; then
2576 if test "$ol_arg" = "invalid" ; then
2577 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2579 ol_enable_slurpd="$ol_arg"
2582 ol_enable_slurpd="auto"
2584 # end --enable-slurpd
2586 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2587 if test "${with_xxliboptions+set}" = set; then
2588 withval="$with_xxliboptions"
2592 # Check whether --enable-static or --disable-static was given.
2593 if test "${enable_static+set}" = set; then
2594 enableval="$enable_static"
2595 p=${PACKAGE-default}
2597 yes) enable_static=yes ;;
2598 no) enable_static=no ;;
2601 # Look at the argument we got. We use all the common list separators.
2602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2603 for pkg in $enableval; do
2604 if test "X$pkg" = "X$p"; then
2615 # Check whether --enable-shared or --disable-shared was given.
2616 if test "${enable_shared+set}" = set; then
2617 enableval="$enable_shared"
2618 p=${PACKAGE-default}
2620 yes) enable_shared=yes ;;
2621 no) enable_shared=no ;;
2624 # Look at the argument we got. We use all the common list separators.
2625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2626 for pkg in $enableval; do
2627 if test "X$pkg" = "X$p"; then
2641 if test $ol_enable_slapd = no ; then
2642 if test $ol_enable_slapi = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2645 if test $ol_enable_bdb = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2648 if test $ol_enable_dnssrv = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2651 if test $ol_enable_hdb = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2654 if test $ol_enable_ldap = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2657 if test $ol_enable_ldbm = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2660 if test $ol_enable_meta = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2663 if test $ol_enable_monitor = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2666 if test $ol_enable_null = yes ; then
2667 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2669 if test $ol_enable_passwd = yes ; then
2670 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2672 if test $ol_enable_perl = yes ; then
2673 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2675 if test $ol_enable_shell = yes ; then
2676 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2678 if test $ol_enable_tcl = yes ; then
2679 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2681 if test $ol_enable_sql = yes ; then
2682 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2684 if test $ol_enable_modules = yes ; then
2685 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2687 if test $ol_enable_multimaster = yes ; then
2688 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2690 if test $ol_enable_wrappers = yes ; then
2691 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2693 if test $ol_enable_phonetic = yes ; then
2694 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2696 if test $ol_enable_rlookups = yes ; then
2697 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2699 if test $ol_enable_aci = yes ; then
2700 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2702 if test $ol_with_ldbm_api != auto ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2705 if test $ol_with_ldbm_type != auto ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2708 if test $ol_with_bdb_module != static ; then
2709 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2711 if test $ol_with_dnssrv_module != static ; then
2712 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2714 if test $ol_with_hdb_module != static ; then
2715 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2717 if test $ol_with_ldap_module != static ; then
2718 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2720 if test $ol_with_ldbm_module != static ; then
2721 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2723 if test $ol_with_meta_module != static ; then
2724 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2726 if test $ol_with_monitor_module != static ; then
2727 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2729 if test $ol_with_null_module != static ; then
2730 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2732 if test $ol_with_passwd_module != static ; then
2733 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2735 if test $ol_with_perl_module != static ; then
2736 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2738 if test $ol_with_shell_module != static ; then
2739 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2741 if test $ol_with_tcl_module != static ; then
2742 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2744 if test $ol_with_sql_module != static ; then
2745 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2747 if test $ol_enable_slurpd = yes ; then
2748 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2750 if test $ol_enable_rewrite = yes ; then
2751 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2754 # force settings to no
2762 ol_enable_monitor=no
2770 ol_enable_modules=no
2771 ol_enable_multimaster=no
2772 ol_enable_phonetic=no
2773 ol_enable_rlookups=no
2775 ol_enable_wrappers=no
2776 ol_enable_dynamic=no
2779 ol_with_ldbm_type=no
2781 ol_with_bdb_module=static
2782 ol_with_dnssrv_module=static
2783 ol_with_hdb_module=static
2784 ol_with_ldap_module=static
2785 ol_with_ldbm_module=static
2786 ol_with_meta_module=static
2787 ol_with_monitor_module=static
2788 ol_with_null_module=static
2789 ol_with_passwd_module=static
2790 ol_with_perl_module=static
2791 ol_with_shell_module=static
2792 ol_with_tcl_module=static
2793 ol_with_sql_module=static
2797 ol_enable_rewrite=no
2799 elif test $ol_enable_ldbm = no ; then
2801 if test $ol_with_ldbm_api != auto ; then
2802 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2805 if test $ol_with_ldbm_type != auto ; then
2806 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2809 if test $ol_with_ldbm_module != static ; then
2810 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2813 if test $ol_enable_modules != yes -a \
2814 $ol_enable_bdb = no -a \
2815 $ol_enable_dnssrv = no -a \
2816 $ol_enable_hdb = no -a \
2817 $ol_enable_ldap = no -a \
2818 $ol_enable_meta = no -a \
2819 $ol_enable_monitor = no -a \
2820 $ol_enable_null = no -a \
2821 $ol_enable_passwd = no -a \
2822 $ol_enable_perl = no -a \
2823 $ol_enable_shell = no -a \
2824 $ol_enable_sql = no -a \
2825 $ol_enable_tcl = no ; then
2827 if test $ol_enable_slapd = yes ; then
2828 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2830 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2836 ol_with_ldbm_type=no
2837 ol_with_ldbm_module=static
2839 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2840 ol_with_ldbm_api=berkeley
2844 if test $ol_with_ldbm_api = gdbm -a \
2845 $ol_with_ldbm_type = btree ; then
2846 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2848 if test $ol_with_ldbm_api = mdbm -a \
2849 $ol_with_ldbm_type = btree ; then
2850 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2852 if test $ol_with_ldbm_api = ndbm -a \
2853 $ol_with_ldbm_type = btree ; then
2854 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2857 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2858 if test $ol_with_ldbm_api = auto ; then
2859 ol_with_ldbm_api=berkeley
2860 elif test $ol_with_ldbm_api != berkeley ; then
2861 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2864 elif test $ol_enable_bdb = auto ; then
2865 if test $ol_with_ldbm_api != berkeley \
2866 -o $ol_with_ldbm_api != auto ; then
2867 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2873 if test $ol_enable_slurpd = yes ; then
2874 if test $ol_with_threads = no ; then
2875 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2879 if test $ol_enable_lmpasswd = yes ; then
2880 if test $ol_with_tls = no ; then
2881 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2885 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2886 if test $ol_with_kerberos = no ; then
2887 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2888 elif test $ol_with_kerberos = auto ; then
2889 ol_with_kerberos=yes
2892 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2893 if test $ol_with_kerberos = auto ; then
2895 elif test $ol_with_kerberos != no ; then
2896 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2901 if test $ol_enable_spasswd = yes ; then
2902 if test $ol_with_cyrus_sasl = no ; then
2903 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2905 ol_with_cyrus_sasl=yes
2908 echo "$ac_t""done" 1>&6
2941 BUILD_BDB_DYNAMIC=static
2942 BUILD_DNSSRV_DYNAMIC=static
2943 BUILD_HDB_DYNAMIC=static
2944 BUILD_LDAP_DYNAMIC=static
2945 BUILD_LDBM_DYNAMIC=static
2946 BUILD_META_DYNAMIC=static
2947 BUILD_MONITOR_DYNAMIC=static
2948 BUILD_NULL_DYNAMIC=static
2949 BUILD_PASSWD_DYNAMIC=static
2950 BUILD_PERL_DYNAMIC=static
2951 BUILD_SHELL_DYNAMIC=static
2952 BUILD_TCL_DYNAMIC=static
2953 BUILD_SQL_DYNAMIC=static
2955 SLAPD_MODULES_LDFLAGS=
2956 SLAPD_MODULES_CPPFLAGS=
2958 SLAPD_STATIC_BACKENDS=
2959 SLAPD_DYNAMIC_BACKENDS=
2985 # Find a good install program. We prefer a C program (faster),
2986 # so one script is as good as another. But avoid the broken or
2987 # incompatible versions:
2988 # SysV /etc/install, /usr/sbin/install
2989 # SunOS /usr/etc/install
2990 # IRIX /sbin/install
2992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 # ./install, which can be erroneously created by make from ./install.sh.
2996 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2997 echo "configure:2998: checking for a BSD compatible install" >&5
2998 if test -z "$INSTALL"; then
2999 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3003 for ac_dir in $PATH; do
3004 # Account for people who put trailing slashes in PATH elements.
3006 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3008 # OSF1 and SCO ODT 3.0 have their own names for install.
3009 # Don't use installbsd from OSF since it installs stuff as root
3011 for ac_prog in ginstall scoinst install; do
3012 if test -f $ac_dir/$ac_prog; then
3013 if test $ac_prog = install &&
3014 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3015 # AIX install. It has an incompatible calling convention.
3017 elif test $ac_prog = install &&
3018 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
3019 # program-specific install script used by HP pwplus--don't use.
3022 ac_cv_path_install="$ac_dir/$ac_prog -c"
3033 if test "${ac_cv_path_install+set}" = set; then
3034 INSTALL="$ac_cv_path_install"
3036 # As a last resort, use the slow shell script. We don't cache a
3037 # path for INSTALL within a source directory, because that will
3038 # break other packages using the cache if that directory is
3039 # removed, or if the path is relative.
3040 INSTALL="$ac_install_sh"
3043 echo "$ac_t""$INSTALL" 1>&6
3045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046 # It thinks the first close brace ends the variable substitution.
3047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 cat >> confdefs.h <<\EOF
3055 #define HAVE_MKVERSION 1
3063 *-*-aix*) if test -z "$CC" ; then
3064 case "$ol_with_threads" in
3065 auto | yes | posix) ol_aix_threads=yes ;;
3071 if test $ol_aix_threads = yes ; then
3072 if test -z "${CC}" ; then
3073 for ac_prog in cc_r xlc_r cc
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3087 for ac_dir in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_CC="$ac_prog"
3098 if test -n "$CC"; then
3099 echo "$ac_t""$CC" 1>&6
3101 echo "$ac_t""no" 1>&6
3104 test -n "$CC" && break
3108 if test "$CC" = cc ; then
3109 if test $ol_with_threads != auto ; then
3110 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3112 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3118 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3119 ol_with_threads=posix
3120 ol_cv_pthread_create=yes
3124 if test -z "${CC}"; then
3125 for ac_prog in cc gcc
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3130 echo "configure:3131: checking for $ac_word" >&5
3131 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3139 for ac_dir in $ac_dummy; do
3140 test -z "$ac_dir" && ac_dir=.
3141 if test -f $ac_dir/$ac_word; then
3142 ac_cv_prog_CC="$ac_prog"
3150 if test -n "$CC"; then
3151 echo "$ac_t""$CC" 1>&6
3153 echo "$ac_t""no" 1>&6
3156 test -n "$CC" && break
3158 test -n "$CC" || CC="missing"
3161 if test "${CC}" = "missing" ; then
3162 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3166 if test -z "${AR}"; then
3167 for ac_prog in ar gar
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3172 echo "configure:3173: checking for $ac_word" >&5
3173 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 if test -n "$AR"; then
3177 ac_cv_prog_AR="$AR" # Let the user override the test.
3179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3181 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 if test -f $ac_dir/$ac_word; then
3184 ac_cv_prog_AR="$ac_prog"
3192 if test -n "$AR"; then
3193 echo "$ac_t""$AR" 1>&6
3195 echo "$ac_t""no" 1>&6
3198 test -n "$AR" && break
3200 test -n "$AR" || AR="missing"
3203 if test "${AR}" = "missing" ; then
3204 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3210 # Find the correct PATH separator. Usually this is `:', but
3211 # DJGPP uses `;' like DOS.
3212 if test "X${PATH_SEPARATOR+set}" != Xset; then
3213 UNAME=${UNAME-`uname 2>/dev/null`}
3215 *-DOS) lt_cv_sys_path_separator=';' ;;
3216 *) lt_cv_sys_path_separator=':' ;;
3218 PATH_SEPARATOR=$lt_cv_sys_path_separator
3221 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3222 echo "configure:3223: checking for Cygwin environment" >&5
3223 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3233 #define __CYGWIN__ __CYGWIN32__
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_cygwin" 1>&6
3252 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3253 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3254 echo "configure:3255: checking for mingw32 environment" >&5
3255 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3266 if { (eval echo configure:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3278 echo "$ac_t""$ac_cv_mingw32" 1>&6
3280 test "$ac_cv_mingw32" = yes && MINGW32=yes
3281 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3282 echo "configure:3283: checking for EMX OS/2 environment" >&5
3283 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3306 echo "$ac_t""$ac_cv_emxos2" 1>&6
3308 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3309 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3310 echo "configure:3311: checking how to run the C preprocessor" >&5
3311 # On Suns, sometimes $CPP names a directory.
3312 if test -n "$CPP" && test -d "$CPP"; then
3315 if test -z "$CPP"; then
3316 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 # This must be in double quotes, not single quotes, because CPP may get
3320 # substituted into the Makefile and "${CC-cc}" will confuse make.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp.
3324 cat > conftest.$ac_ext <<EOF
3325 #line 3326 "configure"
3326 #include "confdefs.h"
3330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3331 { (eval echo configure:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3333 if test -z "$ac_err"; then
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3340 CPP="${CC-cc} -E -traditional-cpp"
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3348 { (eval echo configure:3349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3350 if test -z "$ac_err"; then
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 CPP="${CC-cc} -nologo -E"
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3365 { (eval echo configure:3366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3367 if test -z "$ac_err"; then
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3381 ac_cv_prog_CPP="$CPP"
3383 CPP="$ac_cv_prog_CPP"
3385 ac_cv_prog_CPP="$CPP"
3387 echo "$ac_t""$CPP" 1>&6
3389 # Check whether --enable-fast-install or --disable-fast-install was given.
3390 if test "${enable_fast_install+set}" = set; then
3391 enableval="$enable_fast_install"
3392 p=${PACKAGE-default}
3394 yes) enable_fast_install=yes ;;
3395 no) enable_fast_install=no ;;
3397 enable_fast_install=no
3398 # Look at the argument we got. We use all the common list separators.
3399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3400 for pkg in $enableval; do
3401 if test "X$pkg" = "X$p"; then
3402 enable_fast_install=yes
3409 enable_fast_install=yes
3412 # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc; ac_word=$2
3414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3415 echo "configure:3416: checking for $ac_word" >&5
3416 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3424 for ac_dir in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir=.
3426 if test -f $ac_dir/$ac_word; then
3435 if test -n "$CC"; then
3436 echo "$ac_t""$CC" 1>&6
3438 echo "$ac_t""no" 1>&6
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_word" >&5
3446 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3458 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3459 ac_prog_rejected=yes
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy $ac_cv_prog_CC
3471 if test $# -gt 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3476 set dummy "$ac_dir/$ac_word" "$@"
3484 if test -n "$CC"; then
3485 echo "$ac_t""$CC" 1>&6
3487 echo "$ac_t""no" 1>&6
3490 if test -z "$CC"; then
3491 case "`uname -s`" in
3492 *win32* | *WIN32* | *CYGWIN*)
3493 # Extract the first word of "cl", so it can be a program name with args.
3494 set dummy cl; ac_word=$2
3495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_word" >&5
3497 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3505 for ac_dir in $ac_dummy; do
3506 test -z "$ac_dir" && ac_dir=.
3507 if test -f $ac_dir/$ac_word; then
3516 if test -n "$CC"; then
3517 echo "$ac_t""$CC" 1>&6
3519 echo "$ac_t""no" 1>&6
3524 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3527 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3528 echo "configure:3529: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3535 cross_compiling=$ac_cv_prog_cc_cross
3537 cat > conftest.$ac_ext << EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 ac_cv_prog_cc_works=yes
3546 # If we can't run a trivial program, we are probably using a cross compiler.
3547 if (./conftest; exit) 2>/dev/null; then
3548 ac_cv_prog_cc_cross=no
3550 ac_cv_prog_cc_cross=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 ac_cv_prog_cc_works=no
3559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3562 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3563 cross_compiling=$ac_cv_prog_cc_cross
3565 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3566 if test $ac_cv_prog_cc_works = no; then
3567 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3569 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3570 echo "configure:3571: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3571 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3572 cross_compiling=$ac_cv_prog_cc_cross
3574 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3575 echo "configure:3576: checking whether we are using GNU C" >&5
3576 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.c <<EOF
3584 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3591 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3593 if test $ac_cv_prog_gcc = yes; then
3599 ac_test_CFLAGS="${CFLAGS+set}"
3600 ac_save_CFLAGS="$CFLAGS"
3602 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3603 echo "configure:3604: checking whether ${CC-cc} accepts -g" >&5
3604 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 echo 'void f(){}' > conftest.c
3608 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3617 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3618 if test "$ac_test_CFLAGS" = set; then
3619 CFLAGS="$ac_save_CFLAGS"
3620 elif test $ac_cv_prog_cc_g = yes; then
3621 if test "$GCC" = yes; then
3627 if test "$GCC" = yes; then
3634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then
3636 withval="$with_gnu_ld"
3637 test "$withval" = no || with_gnu_ld=yes
3643 if test "$GCC" = yes; then
3644 # Check if gcc -print-prog-name=ld gives a path.
3645 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3646 echo "configure:3647: checking for ld used by GCC" >&5
3649 # gcc leaves a trailing carriage return which upsets mingw
3650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3655 # Accept absolute paths.
3656 [\\/]* | [A-Za-z]:[\\/]*)
3657 re_direlt='/[^/][^/]*/\.\./'
3658 # Canonicalize the path of ld
3659 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3660 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3661 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3663 test -z "$LD" && LD="$ac_prog"
3666 # If it fails, then pretend we aren't using GCC.
3670 # If it is relative, then search for the first ld in PATH.
3674 elif test "$with_gnu_ld" = yes; then
3675 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3676 echo "configure:3677: checking for GNU ld" >&5
3678 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3679 echo "configure:3680: checking for non-GNU ld" >&5
3681 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 if test -z "$LD"; then
3685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3686 for ac_dir in $PATH; do
3687 test -z "$ac_dir" && ac_dir=.
3688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3689 lt_cv_path_LD="$ac_dir/$ac_prog"
3690 # Check to see if the program is GNU ld. I'd rather use --version,
3691 # but apparently some GNU ld's only accept -v.
3692 # Break only if it was the GNU/non-GNU ld that we prefer.
3693 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3694 test "$with_gnu_ld" != no && break
3696 test "$with_gnu_ld" != yes && break
3702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3707 if test -n "$LD"; then
3708 echo "$ac_t""$LD" 1>&6
3710 echo "$ac_t""no" 1>&6
3712 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3713 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3714 echo "configure:3715: checking if the linker ($LD) is GNU ld" >&5
3715 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3719 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3720 lt_cv_prog_gnu_ld=yes
3722 lt_cv_prog_gnu_ld=no
3726 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3727 with_gnu_ld=$lt_cv_prog_gnu_ld
3730 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3731 echo "configure:3732: checking for $LD option to reload object files" >&5
3732 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 lt_cv_ld_reload_flag='-r'
3738 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3739 reload_flag=$lt_cv_ld_reload_flag
3740 test -n "$reload_flag" && reload_flag=" $reload_flag"
3742 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3743 echo "configure:3744: checking for BSD-compatible nm" >&5
3744 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 if test -n "$NM"; then
3748 # Let the user override the test.
3751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3752 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3753 test -z "$ac_dir" && ac_dir=.
3754 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3755 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3756 # Check to see if the nm accepts a BSD-compat flag.
3757 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3758 # nm: unknown option "B" ignored
3759 # Tru64's nm complains that /dev/null is an invalid object file
3760 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3761 lt_cv_path_NM="$tmp_nm -B"
3763 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3764 lt_cv_path_NM="$tmp_nm -p"
3767 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3768 continue # so that we can try to find one that supports BSD flags
3773 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3778 echo "$ac_t""$NM" 1>&6
3780 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3781 echo "configure:3782: checking for a sed that does not truncate output" >&5
3782 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 # Loop through the user's path and test for sed and gsed.
3786 # Then use that list of sed's as ones to test for truncation.
3787 as_executable_p="test -f"
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in sed gsed; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3796 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3802 # Create a temporary directory, and hook for its removal unless debugging.
3805 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3806 trap '{ (exit 1); exit 1; }' 1 2 13 15
3809 # Create a (secure) tmp directory for tmp files.
3812 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3813 test -n "$tmp" && test -d "$tmp"
3816 tmp=$TMPDIR/sed$$-$RANDOM
3817 (umask 077 && mkdir $tmp)
3820 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3821 { (exit 1); exit 1; }
3825 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3826 # along with /bin/sed that truncates output.
3827 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3828 test ! -f ${_sed} && break
3829 cat /dev/null > "$tmp/sed.in"
3831 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3832 # Check for GNU sed and select it if it is found.
3833 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3834 lt_cv_path_SED=${_sed}
3838 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3839 mv "$tmp/sed.tmp" "$tmp/sed.in"
3840 cp "$tmp/sed.in" "$tmp/sed.nl"
3841 echo >>"$tmp/sed.nl"
3842 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3843 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3844 # 40000 chars as input seems more than enough
3845 test $_count -gt 10 && break
3846 _count=`expr $_count + 1`
3847 if test $_count -gt $_max; then
3849 lt_cv_path_SED=$_sed
3857 if test "X$SED" != "X"; then
3862 echo "$ac_t""$SED" 1>&6
3864 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3865 echo "configure:3866: checking whether ln -s works" >&5
3866 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3870 if ln -s X conftestdata 2>/dev/null
3873 ac_cv_prog_LN_S="ln -s"
3878 LN_S="$ac_cv_prog_LN_S"
3879 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3880 echo "$ac_t""yes" 1>&6
3882 echo "$ac_t""no" 1>&6
3885 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3886 echo "configure:3887: checking how to recognise dependent libraries" >&5
3887 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 lt_cv_file_magic_cmd='$MAGIC_CMD'
3891 lt_cv_file_magic_test_file=
3892 lt_cv_deplibs_check_method='unknown'
3893 # Need to set the preceding variable on all platforms that support
3894 # interlibrary dependencies.
3895 # 'none' -- dependencies not supported.
3896 # `unknown' -- same as none, but documents that we really don't know.
3897 # 'pass_all' -- all dependencies passed with no checks.
3898 # 'test_compile' -- check by making test program.
3899 # 'file_magic [[regex]]' -- check by looking for files in library path
3900 # which responds to the $file_magic_cmd with a given egrep regex.
3901 # If you have `file' or equivalent on your system and you're not sure
3902 # whether `pass_all' will *always* work, you probably want this one.
3906 lt_cv_deplibs_check_method=pass_all
3910 lt_cv_deplibs_check_method=pass_all
3914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3915 lt_cv_file_magic_cmd='/usr/bin/file -L'
3916 lt_cv_file_magic_test_file=/shlib/libc.so
3919 cygwin* | mingw* | pw32*)
3920 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3921 lt_cv_file_magic_cmd='$OBJDUMP -f'
3924 darwin* | rhapsody*)
3925 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3926 lt_cv_file_magic_cmd='/usr/bin/file -L'
3928 rhapsody* | darwin1.[012])
3929 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3932 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3938 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3941 # Not sure whether the presence of OpenBSD here was a mistake.
3942 # Let's accept both of them until this is cleared up.
3943 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3944 lt_cv_file_magic_cmd=/usr/bin/file
3945 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3949 lt_cv_deplibs_check_method=pass_all
3954 lt_cv_deplibs_check_method=pass_all
3958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3959 lt_cv_file_magic_cmd=/usr/bin/file
3960 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3963 irix5* | irix6* | nonstopux*)
3965 irix5* | nonstopux*)
3966 # this will be overridden with pass_all, but let us keep it just in case
3967 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3971 *-32|*"-32 ") libmagic=32-bit;;
3972 *-n32|*"-n32 ") libmagic=N32;;
3973 *-64|*"-64 ") libmagic=64-bit;;
3974 *) libmagic=never-match;;
3976 # this will be overridden with pass_all, but let us keep it just in case
3977 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3981 lt_cv_deplibs_check_method=pass_all
3984 # This must be Linux ELF.
3987 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3988 lt_cv_deplibs_check_method=pass_all ;;
3990 # glibc up to 2.1.1 does not perform some relocations on ARM
3991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3993 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3997 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3998 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4000 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4006 lt_cv_file_magic_cmd=/usr/bin/file
4007 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4011 lt_cv_file_magic_cmd=/usr/bin/file
4012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4016 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4020 osf3* | osf4* | osf5*)
4021 # this will be overridden with pass_all, but let us keep it just in case
4022 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4023 lt_cv_file_magic_test_file=/shlib/libc.so
4024 lt_cv_deplibs_check_method=pass_all
4028 lt_cv_deplibs_check_method=pass_all
4032 lt_cv_deplibs_check_method=pass_all
4033 lt_cv_file_magic_test_file=/lib/libc.so
4036 sysv5uw[78]* | sysv4*uw2*)
4037 lt_cv_deplibs_check_method=pass_all
4040 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4041 case $host_vendor in
4043 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]'
4044 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4047 lt_cv_deplibs_check_method=pass_all
4050 lt_cv_file_magic_cmd='/bin/file'
4051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4054 lt_cv_file_magic_cmd='/bin/file'
4055 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4056 lt_cv_file_magic_test_file=/lib/libc.so
4059 lt_cv_deplibs_check_method=pass_all
4067 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4068 file_magic_cmd=$lt_cv_file_magic_cmd
4069 deplibs_check_method=$lt_cv_deplibs_check_method
4071 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4072 echo "configure:4073: checking for object suffix" >&5
4073 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4077 echo 'int i = 1;' > conftest.$ac_ext
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079 for ac_file in conftest.*; do
4082 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4086 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4091 echo "$ac_t""$ac_cv_objext" 1>&6
4092 OBJEXT=$ac_cv_objext
4093 ac_objext=$ac_cv_objext
4098 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4099 echo "configure:4100: checking for executable suffix" >&5
4100 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4107 echo 'int main () { return 0; }' > conftest.$ac_ext
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4110 for file in conftest.*; do
4112 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4113 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4117 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4120 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4125 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4126 echo "$ac_t""${ac_cv_exeext}" 1>&6
4129 if test $host != $build; then
4130 ac_tool_prefix=${host_alias}-
4138 # Check for command to grab the raw symbol name followed by C symbol from nm.
4139 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4140 echo "configure:4141: checking command to parse $NM output" >&5
4141 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4145 # These are sane defaults that work on at least a few old systems.
4146 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4148 # Character class describing NM global symbol codes.
4149 symcode='[BCDEGRST]'
4151 # Regexp to match symbols that can be accessed directly from C.
4152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4154 # Transform the above into a raw symbol and a C symbol.
4155 symxfrm='\1 \2\3 \3'
4157 # Transform an extracted symbol line into a proper C declaration
4158 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4160 # Transform an extracted symbol line into symbol name and symbol address
4161 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'"
4163 # Define system-specific variables.
4168 cygwin* | mingw* | pw32*)
4169 symcode='[ABCDGISTW]'
4171 hpux*) # Its linker distinguishes data from code symbols
4172 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4173 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'"
4176 symcode='[BCDEGRST]'
4179 symcode='[BCDEGQRST]'
4189 # Handle CRLF in mingw tool chain
4193 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4197 # If we're using GNU nm, then use its standard symbol codes.
4198 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4199 symcode='[ABCDGISTW]'
4202 # Try without a prefix undercore, then with it.
4203 for ac_symprfx in "" "_"; do
4205 # Write the raw and C identifiers.
4206 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4208 # Check to see that the pipe works correctly.
4211 cat > conftest.$ac_ext <<EOF
4216 void nm_test_func(){}
4220 int main(){nm_test_var='a';nm_test_func();return(0);}
4223 if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4224 # Now try to grab the symbols.
4226 if { (eval echo configure:4227: \"$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
4227 # Try sorting and uniquifying the output.
4228 if sort "$nlist" | uniq > "$nlist"T; then
4229 mv -f "$nlist"T "$nlist"
4234 # Make sure that we snagged all the symbols we need.
4235 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4236 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4237 cat <<EOF > conftest.$ac_ext
4243 # Now generate the symbol file.
4244 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4246 cat <<EOF >> conftest.$ac_ext
4247 #if defined (__STDC__) && __STDC__
4248 # define lt_ptr void *
4250 # define lt_ptr char *
4254 /* The mapping between symbol names and symbols. */
4259 lt_preloaded_symbols[] =
4262 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4263 cat <<\EOF >> conftest.$ac_ext
4271 # Now try linking the two files.
4272 mv conftest.$ac_objext conftstm.$ac_objext
4274 save_CFLAGS="$CFLAGS"
4275 LIBS="conftstm.$ac_objext"
4276 CFLAGS="$CFLAGS$no_builtin_flag"
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4281 CFLAGS="$save_CFLAGS"
4283 echo "cannot find nm_test_func in $nlist" >&5
4286 echo "cannot find nm_test_var in $nlist" >&5
4289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4292 echo "$progname: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 rm -f conftest* conftst*
4297 # Do not use the global_symbol_pipe unless it works.
4298 if test "$pipe_works" = yes; then
4301 lt_cv_sys_global_symbol_pipe=
4307 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4308 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4309 global_symbol_to_cdecl=
4310 global_symbol_to_c_name_address=
4312 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4313 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4315 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4317 echo "$ac_t""failed" 1>&6
4319 echo "$ac_t""ok" 1>&6
4322 for ac_hdr in dlfcn.h
4324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4326 echo "configure:4327: checking for $ac_hdr" >&5
4327 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 cat > conftest.$ac_ext <<EOF
4331 #line 4332 "configure"
4332 #include "confdefs.h"
4335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4336 { (eval echo configure:4337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4338 if test -z "$ac_err"; then
4340 eval "ac_cv_header_$ac_safe=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_header_$ac_safe=no"
4350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4351 echo "$ac_t""yes" 1>&6
4352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4353 cat >> confdefs.h <<EOF
4354 #define $ac_tr_hdr 1
4358 echo "$ac_t""no" 1>&6
4367 # Only perform the check for file, if the check method requires it
4368 case $deplibs_check_method in
4370 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4371 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4372 echo "configure:4373: checking for ${ac_tool_prefix}file" >&5
4373 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4384 ac_save_MAGIC_CMD="$MAGIC_CMD"
4385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 ac_dummy="/usr/bin:$PATH"
4387 for ac_dir in $ac_dummy; do
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f $ac_dir/${ac_tool_prefix}file; then
4390 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4391 if test -n "$file_magic_test_file"; then
4392 case $deplibs_check_method in
4394 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4397 egrep "$file_magic_regex" > /dev/null; then
4402 *** Warning: the command libtool uses to detect shared libraries,
4403 *** $file_magic_cmd, produces output that libtool cannot recognize.
4404 *** The result is that libtool may fail to recognize shared libraries
4405 *** as such. This will affect the creation of libtool libraries that
4406 *** depend on shared libraries, but programs linked with such libtool
4407 *** libraries will work regardless of this problem. Nevertheless, you
4408 *** may want to report the problem to your system manager and/or to
4409 *** bug-libtool@gnu.org
4419 MAGIC_CMD="$ac_save_MAGIC_CMD"
4424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4425 if test -n "$MAGIC_CMD"; then
4426 echo "$ac_t""$MAGIC_CMD" 1>&6
4428 echo "$ac_t""no" 1>&6
4431 if test -z "$lt_cv_path_MAGIC_CMD"; then
4432 if test -n "$ac_tool_prefix"; then
4433 echo $ac_n "checking for file""... $ac_c" 1>&6
4434 echo "configure:4435: checking for file" >&5
4435 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4440 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4443 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4446 ac_save_MAGIC_CMD="$MAGIC_CMD"
4447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4448 ac_dummy="/usr/bin:$PATH"
4449 for ac_dir in $ac_dummy; do
4450 test -z "$ac_dir" && ac_dir=.
4451 if test -f $ac_dir/file; then
4452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4453 if test -n "$file_magic_test_file"; then
4454 case $deplibs_check_method in
4456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4459 egrep "$file_magic_regex" > /dev/null; then
4464 *** Warning: the command libtool uses to detect shared libraries,
4465 *** $file_magic_cmd, produces output that libtool cannot recognize.
4466 *** The result is that libtool may fail to recognize shared libraries
4467 *** as such. This will affect the creation of libtool libraries that
4468 *** depend on shared libraries, but programs linked with such libtool
4469 *** libraries will work regardless of this problem. Nevertheless, you
4470 *** may want to report the problem to your system manager and/or to
4471 *** bug-libtool@gnu.org
4481 MAGIC_CMD="$ac_save_MAGIC_CMD"
4486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4487 if test -n "$MAGIC_CMD"; then
4488 echo "$ac_t""$MAGIC_CMD" 1>&6
4490 echo "$ac_t""no" 1>&6
4502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4505 echo "configure:4506: checking for $ac_word" >&5
4506 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 if test -n "$RANLIB"; then
4510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4514 for ac_dir in $ac_dummy; do
4515 test -z "$ac_dir" && ac_dir=.
4516 if test -f $ac_dir/$ac_word; then
4517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4524 RANLIB="$ac_cv_prog_RANLIB"
4525 if test -n "$RANLIB"; then
4526 echo "$ac_t""$RANLIB" 1>&6
4528 echo "$ac_t""no" 1>&6
4532 if test -z "$ac_cv_prog_RANLIB"; then
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "ranlib", so it can be a program name with args.
4535 set dummy ranlib; ac_word=$2
4536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4537 echo "configure:4538: checking for $ac_word" >&5
4538 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 if test -n "$RANLIB"; then
4542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4546 for ac_dir in $ac_dummy; do
4547 test -z "$ac_dir" && ac_dir=.
4548 if test -f $ac_dir/$ac_word; then
4549 ac_cv_prog_RANLIB="ranlib"
4554 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4557 RANLIB="$ac_cv_prog_RANLIB"
4558 if test -n "$RANLIB"; then
4559 echo "$ac_t""$RANLIB" 1>&6
4561 echo "$ac_t""no" 1>&6
4569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}strip; ac_word=$2
4571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4572 echo "configure:4573: checking for $ac_word" >&5
4573 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 if test -n "$STRIP"; then
4577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4581 for ac_dir in $ac_dummy; do
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f $ac_dir/$ac_word; then
4584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4591 STRIP="$ac_cv_prog_STRIP"
4592 if test -n "$STRIP"; then
4593 echo "$ac_t""$STRIP" 1>&6
4595 echo "$ac_t""no" 1>&6
4599 if test -z "$ac_cv_prog_STRIP"; then
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "strip", so it can be a program name with args.
4602 set dummy strip; ac_word=$2
4603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4604 echo "configure:4605: checking for $ac_word" >&5
4605 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 if test -n "$STRIP"; then
4609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4613 for ac_dir in $ac_dummy; do
4614 test -z "$ac_dir" && ac_dir=.
4615 if test -f $ac_dir/$ac_word; then
4616 ac_cv_prog_STRIP="strip"
4621 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4624 STRIP="$ac_cv_prog_STRIP"
4625 if test -n "$STRIP"; then
4626 echo "$ac_t""$STRIP" 1>&6
4628 echo "$ac_t""no" 1>&6
4638 enable_win32_dll=yes
4640 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4641 if test "${enable_libtool_lock+set}" = set; then
4642 enableval="$enable_libtool_lock"
4646 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4648 # Some flags need to be propagated to the compiler or linker for good
4652 # Find out which ABI we are using.
4653 echo '#line 4654 "configure"' > conftest.$ac_ext
4654 if { (eval echo configure:4655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4655 case `/usr/bin/file conftest.$ac_objext` in
4671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4672 SAVE_CFLAGS="$CFLAGS"
4673 CFLAGS="$CFLAGS -belf"
4674 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4675 echo "configure:4676: checking whether the C compiler needs -belf" >&5
4676 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4685 cross_compiling=$ac_cv_prog_cc_cross
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4697 lt_cv_cc_needs_belf=yes
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4702 lt_cv_cc_needs_belf=no
4706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4707 ac_cpp='$CPP $CPPFLAGS'
4708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4710 cross_compiling=$ac_cv_prog_cc_cross
4714 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4715 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4716 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4717 CFLAGS="$SAVE_CFLAGS"
4721 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4722 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_word" >&5
4726 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 if test -n "$DLLTOOL"; then
4730 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4734 for ac_dir in $ac_dummy; do
4735 test -z "$ac_dir" && ac_dir=.
4736 if test -f $ac_dir/$ac_word; then
4737 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4744 DLLTOOL="$ac_cv_prog_DLLTOOL"
4745 if test -n "$DLLTOOL"; then
4746 echo "$ac_t""$DLLTOOL" 1>&6
4748 echo "$ac_t""no" 1>&6
4752 if test -z "$ac_cv_prog_DLLTOOL"; then
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "dlltool", so it can be a program name with args.
4755 set dummy dlltool; ac_word=$2
4756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_word" >&5
4758 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 if test -n "$DLLTOOL"; then
4762 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4766 for ac_dir in $ac_dummy; do
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f $ac_dir/$ac_word; then
4769 ac_cv_prog_DLLTOOL="dlltool"
4774 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4777 DLLTOOL="$ac_cv_prog_DLLTOOL"
4778 if test -n "$DLLTOOL"; then
4779 echo "$ac_t""$DLLTOOL" 1>&6
4781 echo "$ac_t""no" 1>&6
4789 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4790 set dummy ${ac_tool_prefix}as; ac_word=$2
4791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_word" >&5
4793 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 if test -n "$AS"; then
4797 ac_cv_prog_AS="$AS" # Let the user override the test.
4799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4801 for ac_dir in $ac_dummy; do
4802 test -z "$ac_dir" && ac_dir=.
4803 if test -f $ac_dir/$ac_word; then
4804 ac_cv_prog_AS="${ac_tool_prefix}as"
4812 if test -n "$AS"; then
4813 echo "$ac_t""$AS" 1>&6
4815 echo "$ac_t""no" 1>&6
4819 if test -z "$ac_cv_prog_AS"; then
4820 if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "as", so it can be a program name with args.
4822 set dummy as; ac_word=$2
4823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4824 echo "configure:4825: checking for $ac_word" >&5
4825 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 if test -n "$AS"; then
4829 ac_cv_prog_AS="$AS" # Let the user override the test.
4831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4833 for ac_dir in $ac_dummy; do
4834 test -z "$ac_dir" && ac_dir=.
4835 if test -f $ac_dir/$ac_word; then
4841 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4845 if test -n "$AS"; then
4846 echo "$ac_t""$AS" 1>&6
4848 echo "$ac_t""no" 1>&6
4856 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4857 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_word" >&5
4860 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 if test -n "$OBJDUMP"; then
4864 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4868 for ac_dir in $ac_dummy; do
4869 test -z "$ac_dir" && ac_dir=.
4870 if test -f $ac_dir/$ac_word; then
4871 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4878 OBJDUMP="$ac_cv_prog_OBJDUMP"
4879 if test -n "$OBJDUMP"; then
4880 echo "$ac_t""$OBJDUMP" 1>&6
4882 echo "$ac_t""no" 1>&6
4886 if test -z "$ac_cv_prog_OBJDUMP"; then
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "objdump", so it can be a program name with args.
4889 set dummy objdump; ac_word=$2
4890 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4891 echo "configure:4892: checking for $ac_word" >&5
4892 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 if test -n "$OBJDUMP"; then
4896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4900 for ac_dir in $ac_dummy; do
4901 test -z "$ac_dir" && ac_dir=.
4902 if test -f $ac_dir/$ac_word; then
4903 ac_cv_prog_OBJDUMP="objdump"
4908 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4911 OBJDUMP="$ac_cv_prog_OBJDUMP"
4912 if test -n "$OBJDUMP"; then
4913 echo "$ac_t""$OBJDUMP" 1>&6
4915 echo "$ac_t""no" 1>&6
4924 # recent cygwin and mingw systems supply a stub DllMain which the user
4925 # can override, but on older systems we have to supply one
4926 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4927 echo "configure:4928: checking if libtool should supply DllMain function" >&5
4928 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4942 lt_cv_need_dllmain=no
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4947 lt_cv_need_dllmain=yes
4952 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4955 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4956 # old mingw systems require "-dll" to link a DLL, while more recent ones
4958 SAVE_CFLAGS="$CFLAGS"
4959 CFLAGS="$CFLAGS -mdll"
4960 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4961 echo "configure:4962: checking how to link DLLs" >&5
4962 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 lt_cv_cc_dll_switch=-mdll
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 lt_cv_cc_dll_switch=-dll
4985 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4986 CFLAGS="$SAVE_CFLAGS" ;;
4987 *-*-cygwin* | *-*-pw32*)
4988 # cygwin systems need to pass --dll to the linker, and not link
4989 # crt.o which will require a WinMain@16 definition.
4990 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4996 # Sed substitution that helps us do robust quoting. It backslashifies
4997 # metacharacters that are still active within double-quoted strings.
4998 Xsed='sed -e s/^X//'
4999 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5001 # Same as above, but do not quote variable references.
5002 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5004 # Sed substitution to delay expansion of an escaped shell variable in a
5005 # double_quote_subst'ed string.
5006 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5012 default_ofile=libtool
5013 can_build_shared=yes
5015 # All known linkers require a `.a' archive for static linking (except M$VC,
5016 # which needs '.lib').
5018 ltmain="$ac_aux_dir/ltmain.sh"
5019 ofile="$default_ofile"
5020 with_gnu_ld="$lt_cv_prog_gnu_ld"
5021 need_locks="$enable_libtool_lock"
5024 old_CFLAGS="$CFLAGS"
5026 # Set sane defaults for various variables
5027 test -z "$AR" && AR=ar
5028 test -z "$AR_FLAGS" && AR_FLAGS=cru
5029 test -z "$AS" && AS=as
5030 test -z "$CC" && CC=cc
5031 test -z "$DLLTOOL" && DLLTOOL=dlltool
5032 test -z "$LD" && LD=ld
5033 test -z "$LN_S" && LN_S="ln -s"
5034 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5035 test -z "$NM" && NM=nm
5036 test -z "$OBJDUMP" && OBJDUMP=objdump
5037 test -z "$RANLIB" && RANLIB=:
5038 test -z "$STRIP" && STRIP=:
5039 test -z "$ac_objext" && ac_objext=o
5041 if test x"$host" != x"$build"; then
5042 ac_tool_prefix=${host_alias}-
5047 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5050 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5055 # AIX sometimes has problems with the GCC collect2 program. For some
5056 # reason, if we set the COLLECT_NAMES environment variable, the problems
5057 # vanish in a puff of smoke.
5058 if test "X${COLLECT_NAMES+set}" != Xset; then
5060 export COLLECT_NAMES
5065 # Determine commands to create old-style static archives.
5066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5067 old_postinstall_cmds='chmod 644 $oldlib'
5068 old_postuninstall_cmds=
5070 if test -n "$RANLIB"; then
5073 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5076 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5082 # Allow CC to be a program name with arguments.
5086 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5087 echo "configure:5088: checking for objdir" >&5
5088 rm -f .libs 2>/dev/null
5089 mkdir .libs 2>/dev/null
5090 if test -d .libs; then
5093 # MS-DOS does not allow filenames that begin with a dot.
5096 rmdir .libs 2>/dev/null
5097 echo "$ac_t""$objdir" 1>&6
5100 # Check whether --with-pic or --without-pic was given.
5101 if test "${with_pic+set}" = set; then
5108 test -z "$pic_mode" && pic_mode=default
5110 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5111 # in isolation, and that seeing it set (from the cache) indicates that
5112 # the associated values are set (in the cache) correctly too.
5113 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5114 echo "configure:5115: checking for $compiler option to produce PIC" >&5
5115 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5119 lt_cv_prog_cc_shlib=
5121 lt_cv_prog_cc_static=
5122 lt_cv_prog_cc_no_builtin=
5123 lt_cv_prog_cc_can_build_shared=$can_build_shared
5125 if test "$GCC" = yes; then
5126 lt_cv_prog_cc_wl='-Wl,'
5127 lt_cv_prog_cc_static='-static'
5131 # Below there is a dirty hack to force normal static linking with -ldl
5132 # The problem is because libdl dynamically linked with both libc and
5133 # libC (AIX C++ library), which obviously doesn't included in libraries
5134 # list by gcc. This cause undefined symbols with -static flags.
5135 # This hack allows C programs to be linked with "-static -ldl", but
5136 # not sure about C++ programs.
5137 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5140 # FIXME: we need at least 68020 code to build shared libraries, but
5141 # adding the `-m68020' flag to GCC prevents building anything better,
5143 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5146 # PIC is the default for these OSes.
5148 darwin* | rhapsody*)
5149 # PIC is the default on this platform
5150 # Common symbols not allowed in MH_DYLIB files
5151 lt_cv_prog_cc_pic='-fno-common'
5153 cygwin* | mingw* | pw32* | os2*)
5154 # This hack is so that the source file can tell whether it is being
5155 # built for inclusion in a dll (and should export symbols for example).
5156 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5159 if test -d /usr/nec; then
5160 lt_cv_prog_cc_pic=-Kconform_pic
5164 lt_cv_prog_cc_pic='-fPIC'
5168 # PORTME Check for PIC flags for the system compiler.
5170 aix3* | aix4* | aix5*)
5171 lt_cv_prog_cc_wl='-Wl,'
5172 # All AIX code is PIC.
5173 if test "$host_cpu" = ia64; then
5174 # AIX 5 now supports IA64 processor
5175 lt_cv_prog_cc_static='-Bstatic'
5177 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5181 hpux9* | hpux10* | hpux11*)
5182 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5183 lt_cv_prog_cc_wl='-Wl,'
5184 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5185 lt_cv_prog_cc_pic='+Z'
5188 irix5* | irix6* | nonstopux*)
5189 lt_cv_prog_cc_wl='-Wl,'
5190 lt_cv_prog_cc_static='-non_shared'
5191 # PIC (with -KPIC) is the default.
5194 cygwin* | mingw* | pw32* | os2*)
5195 # This hack is so that the source file can tell whether it is being
5196 # built for inclusion in a dll (and should export symbols for example).
5197 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5201 lt_cv_prog_cc_pic='-KPIC'
5202 lt_cv_prog_cc_static='-Bstatic'
5205 osf3* | osf4* | osf5*)
5206 # All OSF/1 code is PIC.
5207 lt_cv_prog_cc_wl='-Wl,'
5208 lt_cv_prog_cc_static='-non_shared'
5212 lt_cv_prog_cc_pic='-Kpic'
5213 lt_cv_prog_cc_static='-dn'
5214 lt_cv_prog_cc_shlib='-belf'
5218 lt_cv_prog_cc_pic='-KPIC'
5219 lt_cv_prog_cc_static='-Bstatic'
5220 lt_cv_prog_cc_wl='-Wl,'
5224 lt_cv_prog_cc_pic='-PIC'
5225 lt_cv_prog_cc_static='-Bstatic'
5226 lt_cv_prog_cc_wl='-Qoption ld '
5229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5230 lt_cv_prog_cc_pic='-KPIC'
5231 lt_cv_prog_cc_static='-Bstatic'
5232 lt_cv_prog_cc_wl='-Wl,'
5236 lt_cv_prog_cc_pic='-pic'
5237 lt_cv_prog_cc_static='-Bstatic'
5241 if test -d /usr/nec ;then
5242 lt_cv_prog_cc_pic='-Kconform_pic'
5243 lt_cv_prog_cc_static='-Bstatic'
5248 lt_cv_prog_cc_can_build_shared=no
5255 if test -z "$lt_cv_prog_cc_pic"; then
5256 echo "$ac_t""none" 1>&6
5258 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5260 # Check to make sure the pic_flag actually works.
5261 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5262 echo "configure:5263: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5263 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5266 save_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5268 cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure"
5270 #include "confdefs.h"
5276 if { (eval echo configure:5277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5279 hpux9* | hpux10* | hpux11*)
5280 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5281 # they create non-PIC objects. So, if there were any warnings, we
5282 # assume that PIC is not supported.
5283 if test -s conftest.err; then
5284 lt_cv_prog_cc_pic_works=no
5286 lt_cv_prog_cc_pic_works=yes
5290 lt_cv_prog_cc_pic_works=yes
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 lt_cv_prog_cc_pic_works=no
5302 CFLAGS="$save_CFLAGS"
5307 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5309 lt_cv_prog_cc_can_build_shared=no
5311 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5314 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5317 # Check for any special shared library compilation flags.
5318 if test -n "$lt_cv_prog_cc_shlib"; then
5319 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5320 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5322 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5323 lt_cv_prog_cc_can_build_shared=no
5327 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5328 echo "configure:5329: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5329 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5332 lt_cv_prog_cc_static_works=no
5333 save_LDFLAGS="$LDFLAGS"
5334 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345 lt_cv_prog_cc_static_works=yes
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5351 LDFLAGS="$save_LDFLAGS"
5356 # Belt *and* braces to stop my trousers falling down:
5357 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5358 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5360 pic_flag="$lt_cv_prog_cc_pic"
5361 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5362 wl="$lt_cv_prog_cc_wl"
5363 link_static_flag="$lt_cv_prog_cc_static"
5364 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5365 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5368 # Check to see if options -o and -c are simultaneously supported by compiler
5369 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5370 echo "configure:5371: checking if $compiler supports -c -o file.$ac_objext" >&5
5371 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5372 echo $ac_n "(cached) $ac_c" 1>&6
5375 $rm -r conftest 2>/dev/null
5378 echo "int some_variable = 0;" > conftest.$ac_ext
5380 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5381 # that will create temporary files in the current directory regardless of
5382 # the output directory. Thus, making CWD read-only will cause this test
5383 # to fail, enabling locking or at least warning the user not to do parallel
5386 save_CFLAGS="$CFLAGS"
5387 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5389 if { (eval echo configure:5390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5390 # The compiler can only warn and ignore the option if not recognized
5391 # So say no if there are warnings
5392 if test -s out/conftest.err; then
5393 lt_cv_compiler_c_o=no
5395 lt_cv_compiler_c_o=yes
5398 # Append any errors to the config.log.
5399 cat out/conftest.err 1>&5
5400 lt_cv_compiler_c_o=no
5402 CFLAGS="$save_CFLAGS"
5408 $rm -r conftest 2>/dev/null
5412 compiler_c_o=$lt_cv_compiler_c_o
5413 echo "$ac_t""$compiler_c_o" 1>&6
5415 if test x"$compiler_c_o" = x"yes"; then
5416 # Check to see if we can write to a .lo
5417 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5418 echo "configure:5419: checking if $compiler supports -c -o file.lo" >&5
5419 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5423 lt_cv_compiler_o_lo=no
5424 save_CFLAGS="$CFLAGS"
5425 CFLAGS="$CFLAGS -c -o conftest.lo"
5426 save_objext="$ac_objext"
5428 cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5433 int some_variable = 0;
5436 if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 # The compiler can only warn and ignore the option if not recognized
5439 # So say no if there are warnings
5440 if test -s conftest.err; then
5441 lt_cv_compiler_o_lo=no
5443 lt_cv_compiler_o_lo=yes
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5451 ac_objext="$save_objext"
5452 CFLAGS="$save_CFLAGS"
5456 compiler_o_lo=$lt_cv_compiler_o_lo
5457 echo "$ac_t""$compiler_o_lo" 1>&6
5462 # Check to see if we can do hard links to lock some files if needed
5463 hard_links="nottested"
5464 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5465 # do not overwrite the value of need_locks provided by the user
5466 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5467 echo "configure:5468: checking if we can lock with hard links" >&5
5470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5472 ln conftest.a conftest.b 2>&5 || hard_links=no
5473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5474 echo "$ac_t""$hard_links" 1>&6
5475 if test "$hard_links" = no; then
5476 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5483 if test "$GCC" = yes; then
5484 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5485 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5486 echo "configure:5487: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5487 echo "int some_variable = 0;" > conftest.$ac_ext
5488 save_CFLAGS="$CFLAGS"
5489 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5490 compiler_rtti_exceptions=no
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5496 int some_variable = 0;
5499 if { (eval echo configure:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5501 # The compiler can only warn and ignore the option if not recognized
5502 # So say no if there are warnings
5503 if test -s conftest.err; then
5504 compiler_rtti_exceptions=no
5506 compiler_rtti_exceptions=yes
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5514 CFLAGS="$save_CFLAGS"
5515 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5517 if test "$compiler_rtti_exceptions" = "yes"; then
5518 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5520 no_builtin_flag=' -fno-builtin'
5524 # See if the linker supports building shared libraries.
5525 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5526 echo "configure:5527: checking whether the linker ($LD) supports shared libraries" >&5
5528 allow_undefined_flag=
5530 need_lib_prefix=unknown
5531 need_version=unknown
5532 # when you set need_version to no, make sure it does not cause -set_version
5533 # flags to be left without arguments
5535 archive_expsym_cmds=
5536 old_archive_from_new_cmds=
5537 old_archive_from_expsyms_cmds=
5538 export_dynamic_flag_spec=
5539 whole_archive_flag_spec=
5540 thread_safe_flag_spec=
5541 hardcode_into_libs=no
5542 hardcode_libdir_flag_spec=
5543 hardcode_libdir_separator=
5546 hardcode_shlibpath_var=unsupported
5548 link_all_deplibs=unknown
5549 always_export_symbols=no
5550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5551 # include_expsyms should be a list of space-separated symbols to be *always*
5552 # included in the symbol list
5554 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5555 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5556 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5557 # as well as any symbol that contains `d'.
5558 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5559 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5560 # platforms (ab)use it in PIC code, but their linkers get confused if
5561 # the symbol is explicitly referenced. Since portable code cannot
5562 # rely on this symbol name, it's probably fine to never include it in
5563 # preloaded symbol tables.
5564 extract_expsyms_cmds=
5567 cygwin* | mingw* | pw32*)
5568 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5569 # When not using gcc, we currently assume that we are using
5570 # Microsoft Visual C++.
5571 if test "$GCC" != yes; then
5581 if test "$with_gnu_ld" = yes; then
5582 # If archive_cmds runs LD, not CC, wlarc should be empty
5585 # See if GNU ld supports shared libraries.
5587 aix3* | aix4* | aix5*)
5588 # On AIX, the GNU linker is very broken
5589 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5593 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5594 *** to be unable to reliably create shared libraries on AIX.
5595 *** Therefore, libtool is disabling shared libraries support. If you
5596 *** really care for shared libraries, you may want to modify your PATH
5597 *** so that a non-GNU linker is found, and then restart.
5603 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)'
5604 hardcode_libdir_flag_spec='-L$libdir'
5605 hardcode_minus_L=yes
5607 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5608 # that the semantics of dynamic libraries on AmigaOS, at least up
5609 # to version 4, is to share data among multiple programs linked
5610 # with the same dynamic library. Since this doesn't match the
5611 # behavior of shared libraries on other platforms, we can use
5617 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5618 allow_undefined_flag=unsupported
5619 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5620 # support --undefined. This deserves some investigation. FIXME
5621 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5627 cygwin* | mingw* | pw32*)
5628 # hardcode_libdir_flag_spec is actually meaningless, as there is
5629 # no search path for DLLs.
5630 hardcode_libdir_flag_spec='-L$libdir'
5631 allow_undefined_flag=unsupported
5632 always_export_symbols=yes
5634 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5635 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5636 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5637 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5638 else $CC -o impgen impgen.c ; fi)~
5639 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5641 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5643 # cygwin and mingw dlls have different entry points and sets of symbols
5645 # FIXME: what about values for MSVC?
5646 dll_entry=__cygwin_dll_entry@12
5647 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5651 dll_entry=_DllMainCRTStartup@12
5652 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5656 # mingw and cygwin differ, and it's simplest to just exclude the union
5657 # of the two symbol sets.
5658 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5660 # recent cygwin and mingw systems supply a stub DllMain which the user
5661 # can override, but on older systems we have to supply one (in ltdll.c)
5662 if test "x$lt_cv_need_dllmain" = "xyes"; then
5663 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5664 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~
5665 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5671 # Extract the symbol export list from an `--export-all' def file,
5672 # then regenerate the def file from the symbol export list, so that
5673 # the compiled dll only exports the symbol export list.
5674 # Be careful not to strip the DATA tag left be newer dlltools.
5675 export_symbols_cmds="$ltdll_cmds"'
5676 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5677 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5679 # If the export-symbols file already is a .def file (1st line
5680 # is EXPORTS), use it as is.
5681 # If DATA tags from a recent dlltool are present, honour them!
5682 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5683 cp $export_symbols $output_objdir/$soname-def;
5685 echo EXPORTS > $output_objdir/$soname-def;
5687 cat $export_symbols | while read symbol; do
5690 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5691 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5692 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5694 _lt_hint=`expr 1 + \$_lt_hint`;
5698 $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~
5699 $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~
5700 $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~
5701 $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~
5702 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5707 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5710 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5711 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5716 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5721 *** create shared libraries on Solaris systems. Therefore, libtool
5722 *** is disabling shared libraries support. We urge you to upgrade GNU
5723 *** binutils to release 2.9.1 or newer. Another option is to modify
5724 *** your PATH or compiler configuration so that the native linker is
5725 *** used, and then restart.
5728 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5737 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5740 hardcode_shlibpath_var=no
5744 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5753 if test "$ld_shlibs" = yes; then
5754 runpath_var=LD_RUN_PATH
5755 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5756 export_dynamic_flag_spec='${wl}--export-dynamic'
5758 cygwin* | mingw* | pw32*)
5759 # dlltool doesn't understand --whole-archive et. al.
5760 whole_archive_flag_spec=
5763 # ancient GNU ld didn't support --whole-archive et. al.
5764 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5765 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5767 whole_archive_flag_spec=
5773 # PORTME fill in a description of your system's linker (not GNU ld)
5776 allow_undefined_flag=unsupported
5777 always_export_symbols=yes
5778 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'
5779 # Note: this linker hardcodes the directories in LIBPATH if there
5780 # are no directories specified by -L.
5781 hardcode_minus_L=yes
5782 if test "$GCC" = yes && test -z "$link_static_flag"; then
5783 # Neither direct hardcoding nor static linking is supported with a
5785 hardcode_direct=unsupported
5790 if test "$host_cpu" = ia64; then
5791 # On IA64, the linker does run time linking by default, so we don't
5792 # have to do anything special.
5793 aix_use_runtimelinking=no
5794 exp_sym_flag='-Bexport'
5797 aix_use_runtimelinking=no
5799 # Test if we are trying to use run time linking or normal
5800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5801 # need to do runtime linking.
5802 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5803 for ld_flag in $LDFLAGS; do
5806 aix_use_runtimelinking=yes
5813 exp_sym_flag='-bexport'
5814 no_entry_flag='-bnoentry'
5817 # When large executables or shared objects are built, AIX ld can
5818 # have problems creating the table of contents. If linking a library
5819 # or program results in "error TOC overflow" add -mminimal-toc to
5820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5825 hardcode_libdir_separator=':'
5826 if test "$GCC" = yes; then
5827 case $host_os in aix4.[012]|aix4.[012].*)
5828 collect2name=`${CC} -print-prog-name=collect2`
5829 if test -f "$collect2name" && \
5830 strings "$collect2name" | grep resolve_lib_name >/dev/null
5832 # We have reworked collect2
5835 # We have old collect2
5836 hardcode_direct=unsupported
5837 # It fails to find uninstalled libraries when the uninstalled
5838 # path is not listed in the libpath. Setting hardcode_minus_L
5839 # to unsupported forces relinking
5840 hardcode_minus_L=yes
5841 hardcode_libdir_flag_spec='-L$libdir'
5842 hardcode_libdir_separator=
5846 shared_flag='-shared'
5849 if test "$host_cpu" = ia64; then
5850 shared_flag='${wl}-G'
5852 if test "$aix_use_runtimelinking" = yes; then
5853 shared_flag='${wl}-G'
5855 shared_flag='${wl}-bM:SRE'
5860 # It seems that -bexpall can do strange things, so it is better to
5861 # generate a list of symbols to export.
5862 always_export_symbols=yes
5863 if test "$aix_use_runtimelinking" = yes; then
5864 # Warning - without using the other runtime loading flags (-brtl),
5865 # -berok will link without error, but may produce a broken library.
5866 allow_undefined_flag='-berok'
5867 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5868 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"
5870 if test "$host_cpu" = ia64; then
5871 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5872 allow_undefined_flag="-z nodefs"
5873 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"
5875 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5876 # Warning - without using the other run time loading flags,
5877 # -berok will link without error, but may produce a broken library.
5878 allow_undefined_flag='${wl}-berok'
5879 # This is a bit strange, but is similar to how AIX traditionally builds
5880 # it's shared libraries.
5881 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'
5887 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)'
5888 hardcode_libdir_flag_spec='-L$libdir'
5889 hardcode_minus_L=yes
5890 # see comment about different semantics on the GNU ld section
5894 cygwin* | mingw* | pw32*)
5895 # When not using gcc, we currently assume that we are using
5896 # Microsoft Visual C++.
5897 # hardcode_libdir_flag_spec is actually meaningless, as there is
5898 # no search path for DLLs.
5899 hardcode_libdir_flag_spec=' '
5900 allow_undefined_flag=unsupported
5901 # Tell ltmain to make .lib files, not .a files.
5903 # FIXME: Setting linknames here is a bad hack.
5904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5905 # The linker will automatically build a .lib file if we build a DLL.
5906 old_archive_from_new_cmds='true'
5907 # FIXME: Should let the user specify the lib program.
5908 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5909 fix_srcfile_path='`cygpath -w "$srcfile"`'
5912 darwin* | rhapsody*)
5914 rhapsody* | darwin1.[012])
5915 allow_undefined_flag='-undefined suppress'
5918 allow_undefined_flag='-flat_namespace -undefined suppress'
5921 # FIXME: Relying on posixy $() will cause problems for
5922 # cross-compilation, but unfortunately the echo tests do not
5923 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5924 # `"' quotes if we put them in here... so don't!
5925 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)'
5926 # We need to add '_' to the symbols in $export_symbols first
5927 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5929 hardcode_shlibpath_var=no
5930 whole_archive_flag_spec='-all_load $convenience'
5937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5938 # support. Future versions do this automatically, but an explicit c++rt0.o
5939 # does not break anything, and helps significantly (at the cost of a little
5942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5943 hardcode_libdir_flag_spec='-R$libdir'
5945 hardcode_shlibpath_var=no
5948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5952 hardcode_minus_L=yes
5953 hardcode_shlibpath_var=no
5956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5958 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5959 hardcode_libdir_flag_spec='-R$libdir'
5961 hardcode_shlibpath_var=no
5964 hpux9* | hpux10* | hpux11*)
5966 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' ;;
5967 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5970 hardcode_libdir_separator=:
5972 hardcode_minus_L=yes # Not in the search PATH, but as the default
5973 # location of the library.
5974 export_dynamic_flag_spec='${wl}-E'
5977 irix5* | irix6* | nonstopux*)
5978 if test "$GCC" = yes; then
5979 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'
5980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5982 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'
5983 hardcode_libdir_flag_spec='-rpath $libdir'
5985 hardcode_libdir_separator=:
5986 link_all_deplibs=yes
5990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5993 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5995 hardcode_libdir_flag_spec='-R$libdir'
5997 hardcode_shlibpath_var=no
6001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6004 hardcode_libdir_separator=:
6005 hardcode_shlibpath_var=no
6010 hardcode_shlibpath_var=no
6011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6014 export_dynamic_flag_spec='${wl}-E'
6017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6019 hardcode_libdir_flag_spec='-R$libdir'
6022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6030 hardcode_libdir_flag_spec='-L$libdir'
6031 hardcode_minus_L=yes
6032 allow_undefined_flag=unsupported
6033 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'
6034 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6038 if test "$GCC" = yes; then
6039 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6040 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'
6042 allow_undefined_flag=' -expect_unresolved \*'
6043 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'
6045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6046 hardcode_libdir_separator=:
6049 osf4* | osf5*) # as osf3* with the addition of -msym flag
6050 if test "$GCC" = yes; then
6051 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6052 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'
6053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6055 allow_undefined_flag=' -expect_unresolved \*'
6056 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'
6057 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6058 $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'
6060 #Both c and cxx compiler support -rpath directly
6061 hardcode_libdir_flag_spec='-rpath $libdir'
6063 hardcode_libdir_separator=:
6067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6068 hardcode_shlibpath_var=no
6069 runpath_var=LD_RUN_PATH
6070 hardcode_runpath_var=yes
6071 export_dynamic_flag_spec='${wl}-Bexport'
6075 # gcc --version < 3.0 without binutils cannot create self contained
6076 # shared libraries reliably, requiring libgcc.a to resolve some of
6077 # the object symbols generated in some cases. Libraries that use
6078 # assert need libgcc.a to resolve __eprintf, for example. Linking
6079 # a copy of libgcc.a into every shared library to guarantee resolving
6080 # such symbols causes other problems: According to Tim Van Holder
6081 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6082 # (to the application) exception stack for one thing.
6083 no_undefined_flag=' -z defs'
6084 if test "$GCC" = yes; then
6085 case `$CC --version 2>/dev/null` in
6089 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6090 *** create self contained shared libraries on Solaris systems, without
6091 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6092 *** -no-undefined support, which will at least allow you to build shared
6093 *** libraries. However, you may find that when you link such libraries
6094 *** into an application without using GCC, you have to manually add
6095 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6096 *** upgrade to a newer version of GCC. Another option is to rebuild your
6097 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6104 # $CC -shared without GNU ld will not create a library from C++
6105 # object files and a static libstdc++, better avoid it by now
6106 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6108 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6109 hardcode_libdir_flag_spec='-R$libdir'
6110 hardcode_shlibpath_var=no
6112 solaris2.[0-5] | solaris2.[0-5].*) ;;
6113 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6114 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6116 link_all_deplibs=yes
6120 if test "x$host_vendor" = xsequent; then
6121 # Use $CC to link under sequent, because it throws in some extra .o
6122 # files that make .init and .fini sections work.
6123 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6125 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6127 hardcode_libdir_flag_spec='-L$libdir'
6129 hardcode_minus_L=yes
6130 hardcode_shlibpath_var=no
6134 case $host_vendor in
6136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6137 hardcode_direct=yes # is this really true???
6140 ## LD is ld it makes a PLAMLIB
6141 ## CC just makes a GrossModule.
6142 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6143 reload_cmds='$CC -r -o $output$reload_objs'
6147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6148 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6151 runpath_var='LD_RUN_PATH'
6152 hardcode_shlibpath_var=no
6156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6157 hardcode_shlibpath_var=no
6158 export_dynamic_flag_spec='-Bexport'
6162 no_undefined_flag=' -z text'
6163 # $CC -shared without GNU ld will not create a library from C++
6164 # object files and a static libstdc++, better avoid it by now
6165 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6166 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6168 hardcode_libdir_flag_spec=
6169 hardcode_shlibpath_var=no
6170 runpath_var='LD_RUN_PATH'
6174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6175 hardcode_libdir_flag_spec='-L$libdir'
6176 hardcode_shlibpath_var=no
6180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6181 hardcode_libdir_flag_spec='-L$libdir'
6182 hardcode_shlibpath_var=no
6186 if test -d /usr/nec; then
6187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6188 hardcode_shlibpath_var=no
6189 runpath_var=LD_RUN_PATH
6190 hardcode_runpath_var=yes
6196 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6199 hardcode_shlibpath_var=no
6200 hardcode_runpath_var=yes
6201 runpath_var=LD_RUN_PATH
6204 sysv5uw7* | unixware7*)
6205 no_undefined_flag='${wl}-z ${wl}text'
6206 if test "$GCC" = yes; then
6207 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6209 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6211 runpath_var='LD_RUN_PATH'
6212 hardcode_shlibpath_var=no
6220 echo "$ac_t""$ld_shlibs" 1>&6
6221 test "$ld_shlibs" = no && can_build_shared=no
6223 # Check hardcoding attributes.
6224 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6225 echo "configure:6226: checking how to hardcode library paths into programs" >&5
6227 if test -n "$hardcode_libdir_flag_spec" || \
6228 test -n "$runpath_var"; then
6230 # We can hardcode non-existant directories.
6231 if test "$hardcode_direct" != no &&
6232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6233 # have to relink, otherwise we might link with an installed library
6234 # when we should be linking with a yet-to-be-installed one
6235 ## test "$hardcode_shlibpath_var" != no &&
6236 test "$hardcode_minus_L" != no; then
6237 # Linking always hardcodes the temporary library directory.
6238 hardcode_action=relink
6240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6241 hardcode_action=immediate
6244 # We cannot hardcode anything, or else we can only hardcode existing
6246 hardcode_action=unsupported
6248 echo "$ac_t""$hardcode_action" 1>&6
6252 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6253 echo "configure:6254: checking whether stripping libraries is possible" >&5
6254 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6255 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6256 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6257 echo "$ac_t""yes" 1>&6
6259 echo "$ac_t""no" 1>&6
6262 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6263 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6265 # PORTME Fill in your ld.so characteristics
6266 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6267 echo "configure:6268: checking dynamic linker characteristics" >&5
6269 libname_spec='lib$name'
6276 shlibpath_overrides_runpath=unknown
6278 dynamic_linker="$host_os ld.so"
6279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6280 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6285 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6286 shlibpath_var=LIBPATH
6288 # AIX has no versioning support, so we append a major version to the name.
6289 soname_spec='${libname}${release}.so$major'
6296 hardcode_into_libs=yes
6297 if test "$host_cpu" = ia64; then
6298 # AIX 5 supports IA64
6299 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6300 shlibpath_var=LD_LIBRARY_PATH
6302 # With GCC up to 2.95.x, collect2 would create an import file
6303 # for dependence libraries. The import file would start with
6304 # the line `#! .'. This would cause the generated library to
6305 # depend on `.', always an invalid library. This was fixed in
6306 # development snapshots of GCC prior to 3.0.
6308 aix4 | aix4.[01] | aix4.[01].*)
6309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6311 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6318 # AIX (on Power*) has no versioning support, so currently we can
6319 # not hardcode correct soname into executable. Probably we can
6320 # add versioning support to collect2, so additional links can
6321 # be useful in future.
6322 if test "$aix_use_runtimelinking" = yes; then
6323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6324 # instead of lib<name>.a to let people know that these are not
6325 # typical AIX shared libraries.
6326 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6328 # We preserve .a as extension for shared libraries through AIX4.2
6329 # and later when we are not doing run time linking.
6330 library_names_spec='${libname}${release}.a $libname.a'
6331 soname_spec='${libname}${release}.so$major'
6333 shlibpath_var=LIBPATH
6335 hardcode_into_libs=yes
6339 library_names_spec='$libname.ixlibrary $libname.a'
6340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6341 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'
6345 library_names_spec='${libname}.so'
6346 dynamic_linker="$host_os ld.so"
6347 shlibpath_var=LIBRARY_PATH
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6354 soname_spec='${libname}${release}.so$major'
6355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6356 shlibpath_var=LD_LIBRARY_PATH
6357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6359 export_dynamic_flag_spec=-rdynamic
6360 # the default ld.so.conf also contains /usr/contrib/lib and
6361 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6362 # libtool to hard-code these into programs
6365 cygwin* | mingw* | pw32*)
6366 version_type=windows
6369 case $GCC,$host_os in
6371 library_names_spec='$libname.dll.a'
6372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6373 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6374 dldir=$destdir/`dirname \$dlpath`~
6375 test -d \$dldir || mkdir -p \$dldir~
6376 $install_prog .libs/$dlname \$dldir/$dlname'
6377 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6378 dlpath=$dir/\$dldll~
6382 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6389 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6392 dynamic_linker='Win32 ld.exe'
6393 # FIXME: first we should search . and the directory the executable is in
6397 darwin* | rhapsody*)
6398 dynamic_linker="$host_os dyld"
6402 # FIXME: Relying on posixy $() will cause problems for
6403 # cross-compilation, but unfortunately the echo tests do not
6404 # yet detect zsh echo's removal of \ escapes.
6405 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)'
6406 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6407 shlibpath_overrides_runpath=yes
6408 shlibpath_var=DYLD_LIBRARY_PATH
6416 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6417 version_type=freebsd-$objformat
6418 case $version_type in
6420 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6425 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6429 shlibpath_var=LD_LIBRARY_PATH
6432 shlibpath_overrides_runpath=yes
6435 shlibpath_overrides_runpath=no
6436 hardcode_into_libs=yes
6445 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6446 soname_spec='${libname}${release}.so$major'
6447 shlibpath_var=LD_LIBRARY_PATH
6448 hardcode_into_libs=yes
6451 hpux9* | hpux10* | hpux11*)
6452 # Give a soname corresponding to the major version so that dld.sl refuses to
6453 # link against other versions.
6454 dynamic_linker="$host_os dld.sl"
6458 shlibpath_var=SHLIB_PATH
6459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6460 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6461 soname_spec='${libname}${release}.sl$major'
6462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6463 postinstall_cmds='chmod 555 $lib'
6466 irix5* | irix6* | nonstopux*)
6468 nonstopux*) version_type=nonstopux ;;
6469 *) version_type=irix ;;
6473 soname_spec='${libname}${release}.so$major'
6474 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6476 irix5* | nonstopux*)
6480 case $LD in # libtool.m4 will add one of these switches to LD
6481 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6482 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6483 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6484 *) libsuff= shlibsuff= libmagic=never-match;;
6488 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6489 shlibpath_overrides_runpath=no
6490 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6491 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6494 # No shared lib support for Linux oldld, aout, or coff.
6495 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6499 # This must be Linux ELF.
6504 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6505 soname_spec='${libname}${release}.so$major'
6506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6507 shlibpath_var=LD_LIBRARY_PATH
6508 shlibpath_overrides_runpath=no
6509 # This implies no fast_install, which is unacceptable.
6510 # Some rework will be needed to allow for fast_install
6511 # before this can be enabled.
6512 hardcode_into_libs=yes
6514 # We used to test for /lib/ld.so.1 and disable shared libraries on
6515 # powerpc, because MkLinux only supported shared libraries with the
6516 # GNU dynamic linker. Since this was broken with cross compilers,
6517 # most powerpc-linux boxes support dynamic linking these days and
6518 # people can always --disable-shared, the test was removed, and we
6519 # assume the GNU/Linux dynamic linker is in use.
6520 dynamic_linker='GNU/Linux ld.so'
6527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6528 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6530 dynamic_linker='NetBSD (a.out) ld.so'
6532 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6533 soname_spec='${libname}${release}.so$major'
6534 dynamic_linker='NetBSD ld.elf_so'
6536 shlibpath_var=LD_LIBRARY_PATH
6537 shlibpath_overrides_runpath=yes
6538 hardcode_into_libs=yes
6543 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6544 shlibpath_var=LD_LIBRARY_PATH
6545 shlibpath_overrides_runpath=yes
6552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6554 openbsd2.[89] | openbsd2.[89].*)
6555 shlibpath_overrides_runpath=no
6558 shlibpath_overrides_runpath=yes
6562 shlibpath_overrides_runpath=yes
6564 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6565 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6566 shlibpath_var=LD_LIBRARY_PATH
6570 libname_spec='$name'
6572 library_names_spec='$libname.dll $libname.a'
6573 dynamic_linker='OS/2 ld.exe'
6574 shlibpath_var=LIBPATH
6577 osf3* | osf4* | osf5*)
6580 soname_spec='${libname}${release}.so$major'
6581 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6582 shlibpath_var=LD_LIBRARY_PATH
6583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6585 hardcode_into_libs=yes
6590 soname_spec='${libname}${release}.so$major'
6591 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
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
6602 shlibpath_overrides_runpath=yes
6603 hardcode_into_libs=yes
6604 # ldd complains unless libraries are executable
6605 postinstall_cmds='chmod +x $lib'
6610 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6612 shlibpath_var=LD_LIBRARY_PATH
6613 shlibpath_overrides_runpath=yes
6614 if test "$with_gnu_ld" = yes; then
6620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6622 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6623 soname_spec='${libname}${release}.so$major'
6624 shlibpath_var=LD_LIBRARY_PATH
6625 case $host_vendor in
6627 shlibpath_overrides_runpath=no
6629 export_dynamic_flag_spec='${wl}-Blargedynsym'
6630 runpath_var=LD_RUN_PATH
6638 shlibpath_overrides_runpath=no
6639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6646 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6647 soname_spec='${libname}${release}.so$major'
6648 shlibpath_var=LD_LIBRARY_PATH
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6656 soname_spec='${libname}${release}.so$major'
6657 shlibpath_var=LD_LIBRARY_PATH
6661 if test -d /usr/nec ;then
6663 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6664 soname_spec='$libname.so.$major'
6665 shlibpath_var=LD_LIBRARY_PATH
6673 echo "$ac_t""$dynamic_linker" 1>&6
6674 test "$dynamic_linker" = no && can_build_shared=no
6676 # Report the final consequences.
6677 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6678 echo "configure:6679: checking if libtool supports shared libraries" >&5
6679 echo "$ac_t""$can_build_shared" 1>&6
6681 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6682 echo "configure:6683: checking whether to build shared libraries" >&5
6683 test "$can_build_shared" = "no" && enable_shared=no
6685 # On AIX, shared libraries and static libraries use the same namespace, and
6686 # are all built from PIC.
6689 test "$enable_shared" = yes && enable_static=no
6690 if test -n "$RANLIB"; then
6691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6692 postinstall_cmds='$RANLIB $lib'
6697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6698 test "$enable_shared" = yes && enable_static=no
6702 echo "$ac_t""$enable_shared" 1>&6
6704 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6705 echo "configure:6706: checking whether to build static libraries" >&5
6706 # Make sure either enable_shared or enable_static is yes.
6707 test "$enable_shared" = yes || enable_static=yes
6708 echo "$ac_t""$enable_static" 1>&6
6710 if test "$hardcode_action" = relink; then
6711 # Fast installation is not supported
6712 enable_fast_install=no
6713 elif test "$shlibpath_overrides_runpath" = yes ||
6714 test "$enable_shared" = no; then
6715 # Fast installation is not necessary
6716 enable_fast_install=needless
6719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6720 if test "$GCC" = yes; then
6721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6724 if test "x$enable_dlopen" != xyes; then
6725 enable_dlopen=unknown
6726 enable_dlopen_self=unknown
6727 enable_dlopen_self_static=unknown
6734 lt_cv_dlopen="load_add_on"
6736 lt_cv_dlopen_self=yes
6739 cygwin* | mingw* | pw32*)
6740 lt_cv_dlopen="LoadLibrary"
6745 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6746 echo "configure:6747: checking for shl_load" >&5
6747 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6748 echo $ac_n "(cached) $ac_c" 1>&6
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char shl_load(); below. */
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777 eval "ac_cv_func_shl_load=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 eval "ac_cv_func_shl_load=no"
6787 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 lt_cv_dlopen="shl_load"
6791 echo "$ac_t""no" 1>&6
6792 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6793 echo "configure:6794: checking for shl_load in -ldld" >&5
6794 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 ac_save_LIBS="$LIBS"
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 eval "ac_cv_lib_$ac_lib_var=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 eval "ac_cv_lib_$ac_lib_var=no"
6822 LIBS="$ac_save_LIBS"
6825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6829 echo "$ac_t""no" 1>&6
6830 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6831 echo "configure:6832: checking for dlopen" >&5
6832 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6833 echo $ac_n "(cached) $ac_c" 1>&6
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* System header to define __stub macros and hopefully few prototypes,
6839 which can conflict with char dlopen(); below. */
6841 /* Override any gcc2 internal prototype to avoid an error. */
6842 /* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6849 /* The GNU C library defines this for functions which it implements
6850 to always fail with ENOSYS. Some functions are actually named
6851 something starting with __ and the normal name is an alias. */
6852 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6860 if { (eval echo configure:6861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6862 eval "ac_cv_func_dlopen=yes"
6864 echo "configure: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6867 eval "ac_cv_func_dlopen=no"
6872 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6873 echo "$ac_t""yes" 1>&6
6874 lt_cv_dlopen="dlopen"
6876 echo "$ac_t""no" 1>&6
6877 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6878 echo "configure:6879: checking for dlopen in -ldl" >&5
6879 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6880 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 ac_save_LIBS="$LIBS"
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 eval "ac_cv_lib_$ac_lib_var=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_lib_$ac_lib_var=no"
6907 LIBS="$ac_save_LIBS"
6910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6911 echo "$ac_t""yes" 1>&6
6912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6914 echo "$ac_t""no" 1>&6
6915 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6916 echo "configure:6917: checking for dlopen in -lsvld" >&5
6917 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6919 echo $ac_n "(cached) $ac_c" 1>&6
6921 ac_save_LIBS="$LIBS"
6923 cat > conftest.$ac_ext <<EOF
6924 #line 6925 "configure"
6925 #include "confdefs.h"
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_lib_$ac_lib_var=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_lib_$ac_lib_var=no"
6945 LIBS="$ac_save_LIBS"
6948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6949 echo "$ac_t""yes" 1>&6
6950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6952 echo "$ac_t""no" 1>&6
6953 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6954 echo "configure:6955: checking for dld_link in -ldld" >&5
6955 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS="$LIBS"
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6990 echo "$ac_t""no" 1>&6
7011 if test "x$lt_cv_dlopen" != xno; then
7017 case $lt_cv_dlopen in
7019 save_CPPFLAGS="$CPPFLAGS"
7020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7022 save_LDFLAGS="$LDFLAGS"
7023 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7026 LIBS="$lt_cv_dlopen_libs $LIBS"
7028 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7029 echo "configure:7030: checking whether a program can dlopen itself" >&5
7030 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7031 echo $ac_n "(cached) $ac_c" 1>&6
7033 if test "$cross_compiling" = yes; then :
7034 lt_cv_dlopen_self=cross
7036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7037 lt_status=$lt_dlunknown
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7049 # define LT_DLGLOBAL RTLD_GLOBAL
7052 # define LT_DLGLOBAL DL_GLOBAL
7054 # define LT_DLGLOBAL 0
7058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7059 find out it does not work in some platform. */
7060 #ifndef LT_DLLAZY_OR_NOW
7062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7065 # define LT_DLLAZY_OR_NOW DL_LAZY
7068 # define LT_DLLAZY_OR_NOW RTLD_NOW
7071 # define LT_DLLAZY_OR_NOW DL_NOW
7073 # define LT_DLLAZY_OR_NOW 0
7081 extern "C" void exit (int);
7084 void fnord() { int i=42;}
7087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7088 int status = $lt_dlunknown;
7092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7094 /* dlclose (self); */
7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7101 (./conftest; exit; ) 2>/dev/null
7104 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7105 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7106 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7109 # compilation failed
7110 lt_cv_dlopen_self=no
7118 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7120 if test "x$lt_cv_dlopen_self" = xyes; then
7121 LDFLAGS="$LDFLAGS $link_static_flag"
7122 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7123 echo "configure:7124: checking whether a statically linked program can dlopen itself" >&5
7124 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7127 if test "$cross_compiling" = yes; then :
7128 lt_cv_dlopen_self_static=cross
7130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7131 lt_status=$lt_dlunknown
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7143 # define LT_DLGLOBAL RTLD_GLOBAL
7146 # define LT_DLGLOBAL DL_GLOBAL
7148 # define LT_DLGLOBAL 0
7152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7153 find out it does not work in some platform. */
7154 #ifndef LT_DLLAZY_OR_NOW
7156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7159 # define LT_DLLAZY_OR_NOW DL_LAZY
7162 # define LT_DLLAZY_OR_NOW RTLD_NOW
7165 # define LT_DLLAZY_OR_NOW DL_NOW
7167 # define LT_DLLAZY_OR_NOW 0
7175 extern "C" void exit (int);
7178 void fnord() { int i=42;}
7181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7182 int status = $lt_dlunknown;
7186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7188 /* dlclose (self); */
7194 if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7195 (./conftest; exit; ) 2>/dev/null
7198 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7199 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7200 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7203 # compilation failed
7204 lt_cv_dlopen_self_static=no
7212 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7215 CPPFLAGS="$save_CPPFLAGS"
7216 LDFLAGS="$save_LDFLAGS"
7221 case $lt_cv_dlopen_self in
7222 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7223 *) enable_dlopen_self=unknown ;;
7226 case $lt_cv_dlopen_self_static in
7227 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7228 *) enable_dlopen_self_static=unknown ;;
7233 if test "$enable_shared" = yes && test "$GCC" = yes; then
7234 case $archive_cmds in
7236 # FIXME: we may have to deal with multi-command sequences.
7239 # Test whether the compiler implicitly links with -lc since on some
7240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7241 # to ld, don't add -lc before -lgcc.
7242 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7243 echo "configure:7244: checking whether -lc should be explicitly linked in" >&5
7244 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7248 echo 'static int dummy;' > conftest.$ac_ext
7250 if { (eval echo configure:7251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7253 libobjs=conftest.$ac_objext
7255 wl=$lt_cv_prog_cc_wl
7261 save_allow_undefined_flag=$allow_undefined_flag
7262 allow_undefined_flag=
7263 if { (eval echo configure:7264: \"$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; }
7265 lt_cv_archive_cmds_need_lc=no
7267 lt_cv_archive_cmds_need_lc=yes
7269 allow_undefined_flag=$save_allow_undefined_flag
7271 cat conftest.err 1>&5
7275 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7279 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7281 # The second clause should only fire when bootstrapping the
7282 # libtool distribution, otherwise you forgot to ship ltmain.sh
7283 # with your package, and you will get complaints that there are
7284 # no rules to generate ltmain.sh.
7285 if test -f "$ltmain"; then
7288 # If there is no Makefile yet, we rely on a make rule to execute
7289 # `config.status --recheck' to rerun these tests and create the
7290 # libtool script then.
7291 test -f Makefile && make "$ltmain"
7294 if test -f "$ltmain"; then
7295 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7298 echo creating $ofile
7300 # Now quote all the things that may contain metacharacters while being
7301 # careful not to overquote the AC_SUBSTed values. We take copies of the
7302 # variables and quote the copies for generation of the libtool script.
7303 for var in echo old_CC old_CFLAGS SED \
7304 AR AR_FLAGS CC LD LN_S NM SHELL \
7305 reload_flag reload_cmds wl \
7306 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7307 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7308 library_names_spec soname_spec \
7309 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7310 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7311 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7312 old_striplib striplib file_magic_cmd export_symbols_cmds \
7313 deplibs_check_method allow_undefined_flag no_undefined_flag \
7314 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7315 global_symbol_to_c_name_address \
7316 hardcode_libdir_flag_spec hardcode_libdir_separator \
7317 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7318 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7321 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7322 old_postinstall_cmds | old_postuninstall_cmds | \
7323 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7324 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7325 postinstall_cmds | postuninstall_cmds | \
7326 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7327 # Double-quote double-evaled strings.
7328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7336 cat <<__EOF__ > "${ofile}T"
7339 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7340 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7341 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7343 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7344 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7346 # This program is free software; you can redistribute it and/or modify
7347 # it under the terms of the GNU General Public License as published by
7348 # the Free Software Foundation; either version 2 of the License, or
7349 # (at your option) any later version.
7351 # This program is distributed in the hope that it will be useful, but
7352 # WITHOUT ANY WARRANTY; without even the implied warranty of
7353 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7354 # General Public License for more details.
7356 # You should have received a copy of the GNU General Public License
7357 # along with this program; if not, write to the Free Software
7358 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7360 # As a special exception to the GNU General Public License, if you
7361 # distribute this file as part of a program that contains a
7362 # configuration script generated by Autoconf, you may include it under
7363 # the same distribution terms that you use for the rest of that program.
7365 # A sed that does not truncate output.
7368 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7369 Xsed="${SED} -e s/^X//"
7371 # The HP-UX ksh and POSIX shell print the target directory to stdout
7373 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7375 # ### BEGIN LIBTOOL CONFIG
7377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7379 # Shell to use when invoking shell scripts.
7382 # Whether or not to build shared libraries.
7383 build_libtool_libs=$enable_shared
7385 # Whether or not to build static libraries.
7386 build_old_libs=$enable_static
7388 # Whether or not to add -lc for building shared libraries.
7389 build_libtool_need_lc=$need_lc
7391 # Whether or not to optimize for fast installation.
7392 fast_install=$enable_fast_install
7395 host_alias=$host_alias
7398 # An echo program that does not interpret backslashes.
7403 AR_FLAGS=$lt_AR_FLAGS
7405 # The default C compiler.
7408 # Is the compiler the GNU C compiler?
7411 # The linker used to build libraries.
7414 # Whether we need hard or soft links.
7417 # A BSD-compatible nm program.
7420 # A symbol stripping program
7423 # Used to examine libraries when file_magic_cmd begins "file"
7424 MAGIC_CMD=$MAGIC_CMD
7426 # Used on cygwin: DLL creation program.
7429 # Used on cygwin: object dumper.
7432 # Used on cygwin: assembler.
7435 # The name of the directory that contains temporary libtool files.
7438 # How to create reloadable object files.
7439 reload_flag=$lt_reload_flag
7440 reload_cmds=$lt_reload_cmds
7442 # How to pass a linker flag through the compiler.
7445 # Object file suffix (normally "o").
7448 # Old archive suffix (normally "a").
7451 # Executable file suffix (normally "").
7454 # Additional compiler flags for building library objects.
7455 pic_flag=$lt_pic_flag
7458 # Does compiler simultaneously support -c and -o options?
7459 compiler_c_o=$lt_compiler_c_o
7461 # Can we write directly to a .lo ?
7462 compiler_o_lo=$lt_compiler_o_lo
7464 # Must we lock files when doing compilation ?
7465 need_locks=$lt_need_locks
7467 # Do we need the lib prefix for modules?
7468 need_lib_prefix=$need_lib_prefix
7470 # Do we need a version for libraries?
7471 need_version=$need_version
7473 # Whether dlopen is supported.
7474 dlopen_support=$enable_dlopen
7476 # Whether dlopen of programs is supported.
7477 dlopen_self=$enable_dlopen_self
7479 # Whether dlopen of statically linked programs is supported.
7480 dlopen_self_static=$enable_dlopen_self_static
7482 # Compiler flag to prevent dynamic linking.
7483 link_static_flag=$lt_link_static_flag
7485 # Compiler flag to turn off builtin functions.
7486 no_builtin_flag=$lt_no_builtin_flag
7488 # Compiler flag to allow reflexive dlopens.
7489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7491 # Compiler flag to generate shared objects directly from archives.
7492 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7494 # Compiler flag to generate thread-safe objects.
7495 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7497 # Library versioning type.
7498 version_type=$version_type
7500 # Format of library name prefix.
7501 libname_spec=$lt_libname_spec
7503 # List of archive names. First name is the real one, the rest are links.
7504 # The last name is the one that the linker finds with -lNAME.
7505 library_names_spec=$lt_library_names_spec
7507 # The coded name of the library, if different from the real name.
7508 soname_spec=$lt_soname_spec
7510 # Commands used to build and install an old-style archive.
7512 old_archive_cmds=$lt_old_archive_cmds
7513 old_postinstall_cmds=$lt_old_postinstall_cmds
7514 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7516 # Create an old-style archive from a shared archive.
7517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7519 # Create a temporary old-style archive to link instead of a shared archive.
7520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7522 # Commands used to build and install a shared archive.
7523 archive_cmds=$lt_archive_cmds
7524 archive_expsym_cmds=$lt_archive_expsym_cmds
7525 postinstall_cmds=$lt_postinstall_cmds
7526 postuninstall_cmds=$lt_postuninstall_cmds
7528 # Commands to strip libraries.
7529 old_striplib=$lt_old_striplib
7530 striplib=$lt_striplib
7532 # Method to check whether dependent libraries are shared objects.
7533 deplibs_check_method=$lt_deplibs_check_method
7535 # Command to use when deplibs_check_method == file_magic.
7536 file_magic_cmd=$lt_file_magic_cmd
7538 # Flag that allows shared libraries with undefined symbols to be built.
7539 allow_undefined_flag=$lt_allow_undefined_flag
7541 # Flag that forces no undefined symbols.
7542 no_undefined_flag=$lt_no_undefined_flag
7544 # Commands used to finish a libtool library installation in a directory.
7545 finish_cmds=$lt_finish_cmds
7547 # Same as above, but a single script fragment to be evaled but not shown.
7548 finish_eval=$lt_finish_eval
7550 # Take the output of nm and produce a listing of raw symbols and C names.
7551 global_symbol_pipe=$lt_global_symbol_pipe
7553 # Transform the output of nm in a proper C declaration
7554 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7556 # Transform the output of nm in a C name address pair
7557 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7559 # This is the shared library runtime path variable.
7560 runpath_var=$runpath_var
7562 # This is the shared library path variable.
7563 shlibpath_var=$shlibpath_var
7565 # Is shlibpath searched before the hard-coded library search path?
7566 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7568 # How to hardcode a shared library path into an executable.
7569 hardcode_action=$hardcode_action
7571 # Whether we should hardcode library paths into libraries.
7572 hardcode_into_libs=$hardcode_into_libs
7574 # Flag to hardcode \$libdir into a binary during linking.
7575 # This must work even if \$libdir does not exist.
7576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7578 # Whether we need a single -rpath flag with a separated argument.
7579 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7581 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7583 hardcode_direct=$hardcode_direct
7585 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7587 hardcode_minus_L=$hardcode_minus_L
7589 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7590 # the resulting binary.
7591 hardcode_shlibpath_var=$hardcode_shlibpath_var
7593 # Variables whose values should be saved in libtool wrapper scripts and
7594 # restored at relink time.
7595 variables_saved_for_relink="$variables_saved_for_relink"
7597 # Whether libtool must link a program against all its dependency libraries.
7598 link_all_deplibs=$link_all_deplibs
7600 # Compile-time system search path for libraries
7601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7603 # Run-time system search path for libraries
7604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7606 # Fix the shell variable \$srcfile for the compiler.
7607 fix_srcfile_path="$fix_srcfile_path"
7609 # Set to yes if exported symbols are required.
7610 always_export_symbols=$always_export_symbols
7612 # The commands to list exported symbols.
7613 export_symbols_cmds=$lt_export_symbols_cmds
7615 # The commands to extract the exported symbol list from a shared archive.
7616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7618 # Symbols that should not be listed in the preloaded symbols.
7619 exclude_expsyms=$lt_exclude_expsyms
7621 # Symbols that must always be exported.
7622 include_expsyms=$lt_include_expsyms
7624 # ### END LIBTOOL CONFIG
7630 cat <<\EOF >> "${ofile}T"
7632 # AIX sometimes has problems with the GCC collect2 program. For some
7633 # reason, if we set the COLLECT_NAMES environment variable, the problems
7634 # vanish in a puff of smoke.
7635 if test "X${COLLECT_NAMES+set}" != Xset; then
7637 export COLLECT_NAMES
7644 cygwin* | mingw* | pw32* | os2*)
7645 cat <<'EOF' >> "${ofile}T"
7646 # This is a source program that is used to create dlls on Windows
7647 # Don't remove nor modify the starting and closing comments
7648 # /* ltdll.c starts here */
7649 # #define WIN32_LEAN_AND_MEAN
7650 # #include <windows.h>
7651 # #undef WIN32_LEAN_AND_MEAN
7652 # #include <stdio.h>
7654 # #ifndef __CYGWIN__
7655 # # ifdef __CYGWIN32__
7656 # # define __CYGWIN__ __CYGWIN32__
7660 # #ifdef __cplusplus
7663 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7664 # #ifdef __cplusplus
7669 # #include <cygwin/cygwin_dll.h>
7670 # DECLARE_CYGWIN_DLL( DllMain );
7672 # HINSTANCE __hDllInstance_base;
7675 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7677 # __hDllInstance_base = hInst;
7680 # /* ltdll.c ends here */
7681 # This is a source program that is used to create import libraries
7682 # on Windows for dlls which lack them. Don't remove nor modify the
7683 # starting and closing comments
7684 # /* impgen.c starts here */
7685 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7687 # This file is part of GNU libtool.
7689 # This program is free software; you can redistribute it and/or modify
7690 # it under the terms of the GNU General Public License as published by
7691 # the Free Software Foundation; either version 2 of the License, or
7692 # (at your option) any later version.
7694 # This program is distributed in the hope that it will be useful,
7695 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7696 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7697 # GNU General Public License for more details.
7699 # You should have received a copy of the GNU General Public License
7700 # along with this program; if not, write to the Free Software
7701 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7704 # #include <stdio.h> /* for printf() */
7705 # #include <unistd.h> /* for open(), lseek(), read() */
7706 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7707 # #include <string.h> /* for strdup() */
7709 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7711 # #define O_BINARY 0
7714 # static unsigned int
7715 # pe_get16 (fd, offset)
7719 # unsigned char b[2];
7720 # lseek (fd, offset, SEEK_SET);
7722 # return b[0] + (b[1]<<8);
7725 # static unsigned int
7726 # pe_get32 (fd, offset)
7730 # unsigned char b[4];
7731 # lseek (fd, offset, SEEK_SET);
7733 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7736 # static unsigned int
7740 # unsigned char *b = ptr;
7741 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7750 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7751 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7752 # unsigned long name_rvas, nexp;
7753 # unsigned char *expdata, *erva;
7754 # char *filename, *dll_name;
7756 # filename = argv[1];
7758 # dll = open(filename, O_RDONLY|O_BINARY);
7762 # dll_name = filename;
7764 # for (i=0; filename[i]; i++)
7765 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7766 # dll_name = filename + i +1;
7768 # pe_header_offset = pe_get32 (dll, 0x3c);
7769 # opthdr_ofs = pe_header_offset + 4 + 20;
7770 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7772 # if (num_entries < 1) /* no exports */
7775 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7776 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7777 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7778 # secptr = (pe_header_offset + 4 + 20 +
7779 # pe_get16 (dll, pe_header_offset + 4 + 16));
7782 # for (i = 0; i < nsections; i++)
7785 # unsigned long secptr1 = secptr + 40 * i;
7786 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7787 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7788 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7789 # lseek(dll, secptr1, SEEK_SET);
7790 # read(dll, sname, 8);
7791 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7793 # expptr = fptr + (export_rva - vaddr);
7794 # if (export_rva + export_size > vaddr + vsize)
7795 # export_size = vsize - (export_rva - vaddr);
7800 # expdata = (unsigned char*)malloc(export_size);
7801 # lseek (dll, expptr, SEEK_SET);
7802 # read (dll, expdata, export_size);
7803 # erva = expdata - export_rva;
7805 # nexp = pe_as32 (expdata+24);
7806 # name_rvas = pe_as32 (expdata+32);
7808 # printf ("EXPORTS\n");
7809 # for (i = 0; i<nexp; i++)
7811 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7812 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7817 # /* impgen.c ends here */
7823 # We use sed instead of cat because bash on DJGPP gets confused if
7824 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7825 # text mode, it properly converts lines to CR/LF. This bash problem
7826 # is reportedly fixed, but why not run on old versions too?
7827 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7829 mv -f "${ofile}T" "$ofile" || \
7830 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7838 # This can be used to rebuild libtool when needed
7839 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7841 # Always use our own libtool.
7842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7844 # Prevent multiple expansion
7848 # test for ln hardlink support
7849 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7850 echo "configure:7851: checking whether ln works" >&5
7851 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 rm -f conftest.src conftest.dst
7855 echo "conftest" > conftest.src
7856 if ln conftest.src conftest.dst 2>/dev/null
7858 ol_cv_prog_LN_H="ln"
7860 ol_cv_prog_LN_H="cp"
7862 rm -f conftest.src conftest.dst
7865 LN_H="$ol_cv_prog_LN_H"
7866 if test "$ol_cv_prog_LN_H" = "ln"; then
7867 echo "$ac_t""yes" 1>&6
7869 echo "$ac_t""no" 1>&6
7872 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7873 echo "configure:7874: checking whether ln -s works" >&5
7874 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7875 echo $ac_n "(cached) $ac_c" 1>&6
7878 if ln -s X conftestdata 2>/dev/null
7881 ac_cv_prog_LN_S="ln -s"
7886 LN_S="$ac_cv_prog_LN_S"
7887 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7888 echo "$ac_t""yes" 1>&6
7890 echo "$ac_t""no" 1>&6
7895 if test $ol_enable_perl != no ; then
7896 # Extract the first word of "perl", so it can be a program name with args.
7897 set dummy perl; ac_word=$2
7898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_word" >&5
7900 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7905 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7908 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7913 for ac_dir in $ac_dummy; do
7914 test -z "$ac_dir" && ac_dir=.
7915 if test -f $ac_dir/$ac_word; then
7916 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7921 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7925 PERLBIN="$ac_cv_path_PERLBIN"
7926 if test -n "$PERLBIN"; then
7927 echo "$ac_t""$PERLBIN" 1>&6
7929 echo "$ac_t""no" 1>&6
7933 if test "no$PERLBIN" = "no" ; then
7934 if test $ol_enable_perl = yes ; then
7935 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7939 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7940 if test x"$ol_with_perl_module" = "xstatic" ; then
7941 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7943 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7949 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7950 echo "configure:7951: checking how to run the C preprocessor" >&5
7951 # On Suns, sometimes $CPP names a directory.
7952 if test -n "$CPP" && test -d "$CPP"; then
7955 if test -z "$CPP"; then
7956 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 # This must be in double quotes, not single quotes, because CPP may get
7960 # substituted into the Makefile and "${CC-cc}" will confuse make.
7962 # On the NeXT, cc -E runs the code through the compiler's parser,
7963 # not just through cpp.
7964 cat > conftest.$ac_ext <<EOF
7965 #line 7966 "configure"
7966 #include "confdefs.h"
7970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7971 { (eval echo configure:7972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7973 if test -z "$ac_err"; then
7977 echo "configure: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7980 CPP="${CC-cc} -E -traditional-cpp"
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then
7994 echo "configure: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7997 CPP="${CC-cc} -nologo -E"
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8005 { (eval echo configure:8006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8007 if test -z "$ac_err"; then
8011 echo "configure: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8021 ac_cv_prog_CPP="$CPP"
8023 CPP="$ac_cv_prog_CPP"
8025 ac_cv_prog_CPP="$CPP"
8027 echo "$ac_t""$CPP" 1>&6
8030 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8031 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8033 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8034 echo "configure: warning: programs compiled here do run here..." 1>&2
8035 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8037 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8038 echo "configure: warning: programs compiled here do not run here..." 1>&2
8039 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8043 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8044 echo "configure:8045: checking for Cygwin environment" >&5
8045 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8055 #define __CYGWIN__ __CYGWIN32__
8060 if { (eval echo configure:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8072 echo "$ac_t""$ac_cv_cygwin" 1>&6
8074 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8075 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8076 echo "configure:8077: checking for mingw32 environment" >&5
8077 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8080 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure"
8082 #include "confdefs.h"
8088 if { (eval echo configure:8089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8100 echo "$ac_t""$ac_cv_mingw32" 1>&6
8102 test "$ac_cv_mingw32" = yes && MINGW32=yes
8106 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8107 echo "configure:8108: checking for executable suffix" >&5
8108 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8109 echo $ac_n "(cached) $ac_c" 1>&6
8111 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8115 echo 'int main () { return 0; }' > conftest.$ac_ext
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8118 for file in conftest.*; do
8120 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8121 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8125 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8128 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8133 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8134 echo "$ac_t""${ac_cv_exeext}" 1>&6
8137 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8138 echo "configure:8139: checking for object suffix" >&5
8139 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6
8143 echo 'int i = 1;' > conftest.$ac_ext
8144 if { (eval echo configure:8145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8145 for ac_file in conftest.*; do
8148 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8152 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8157 echo "$ac_t""$ac_cv_objext" 1>&6
8158 OBJEXT=$ac_cv_objext
8159 ac_objext=$ac_cv_objext
8162 cat >> confdefs.h <<EOF
8163 #define EXEEXT "${EXEEXT}"
8167 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8168 echo "configure:8169: checking for be_app in -lbe" >&5
8169 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8170 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8173 ac_save_LIBS="$LIBS"
8174 LIBS="-lbe -lroot -lnet $LIBS"
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* Override any gcc2 internal prototype to avoid an error. */
8179 /* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8187 if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8189 eval "ac_cv_lib_$ac_lib_var=yes"
8191 echo "configure: failed program was:" >&5
8192 cat conftest.$ac_ext >&5
8194 eval "ac_cv_lib_$ac_lib_var=no"
8197 LIBS="$ac_save_LIBS"
8200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8201 echo "$ac_t""yes" 1>&6
8202 LIBS="$LIBS -lbe -lroot -lnet"
8204 echo "$ac_t""no" 1>&6
8212 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8213 echo "configure:8214: checking for ${CC-cc} option to accept ANSI C" >&5
8214 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8217 am_cv_prog_cc_stdc=no
8219 # Don't try gcc -ansi; that turns off useful extensions and
8220 # breaks some systems' header files.
8221 # AIX -qlanglvl=ansi
8222 # Ultrix and OSF/1 -std1
8223 # HP-UX 10.20 and later -Ae
8224 # HP-UX older versions -Aa -D_HPUX_SOURCE
8225 # SVR4 -Xc -D__EXTENSIONS__
8226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8228 CC="$ac_save_CC $ac_arg"
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 #include <sys/types.h>
8235 #include <sys/stat.h>
8236 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8237 struct buf { int x; };
8238 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8239 static char *e (p, i)
8245 static char *f (char * (*g) (char **, int), char **p, ...)
8250 s = g (p, va_arg (v,int));
8254 int test (int i, double x);
8255 struct s1 {int (*f) (int a);};
8256 struct s2 {int (*f) (double a);};
8257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8267 if { (eval echo configure:8268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8269 am_cv_prog_cc_stdc="$ac_arg"; break
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8280 if test -z "$am_cv_prog_cc_stdc"; then
8281 echo "$ac_t""none needed" 1>&6
8283 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8285 case "x$am_cv_prog_cc_stdc" in
8287 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8290 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8291 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8294 # test for make depend flag
8297 if test -z "${MKDEP}"; then
8299 if test -z "${MKDEP_FLAGS}"; then
8300 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8301 echo "configure:8302: checking for ${OL_MKDEP} depend flag" >&5
8302 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8307 for flag in "-M" "-xM"; do
8308 cat > conftest.c <<EOF
8311 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8312 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8314 if test ! -f conftest."${ac_object}" ; then
8316 OL_MKDEP_FLAGS="$flag"
8325 echo "$ac_t""$ol_cv_mkdep" 1>&6
8328 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8333 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8338 if test "${ol_cv_mkdep}" = no ; then
8339 # this will soon become an error
8340 echo "configure: warning: do not know how to generate dependencies" 1>&2
8343 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8344 echo "configure:8345: checking for afopen in -ls" >&5
8345 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8347 echo $ac_n "(cached) $ac_c" 1>&6
8349 ac_save_LIBS="$LIBS"
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8354 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 eval "ac_cv_lib_$ac_lib_var=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_lib_$ac_lib_var=no"
8373 LIBS="$ac_save_LIBS"
8376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8377 echo "$ac_t""yes" 1>&6
8380 cat >> confdefs.h <<\EOF
8381 #define HAVE_AIX_SECURITY 1
8386 echo "$ac_t""no" 1>&6
8392 ac_cv_func_getopt=no
8393 cat >> confdefs.h <<\EOF
8394 #define BOTH_STRINGS_H 1
8401 if test $ol_enable_modules != no ; then
8402 for ac_hdr in ltdl.h
8404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8406 echo "configure:8407: checking for $ac_hdr" >&5
8407 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8408 echo $ac_n "(cached) $ac_c" 1>&6
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8416 { (eval echo configure:8417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8418 if test -z "$ac_err"; then
8420 eval "ac_cv_header_$ac_safe=yes"
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_header_$ac_safe=no"
8430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8433 cat >> confdefs.h <<EOF
8434 #define $ac_tr_hdr 1
8438 echo "$ac_t""no" 1>&6
8443 if test $ac_cv_header_ltdl_h = no ; then
8444 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8447 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8448 echo "configure:8449: checking for lt_dlinit in -lltdl" >&5
8449 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8451 echo $ac_n "(cached) $ac_c" 1>&6
8453 ac_save_LIBS="$LIBS"
8455 cat > conftest.$ac_ext <<EOF
8456 #line 8457 "configure"
8457 #include "confdefs.h"
8458 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8469 eval "ac_cv_lib_$ac_lib_var=yes"
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8474 eval "ac_cv_lib_$ac_lib_var=no"
8477 LIBS="$ac_save_LIBS"
8480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8481 echo "$ac_t""yes" 1>&6
8484 cat >> confdefs.h <<\EOF
8485 #define HAVE_LIBLTDL 1
8490 echo "$ac_t""no" 1>&6
8494 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8495 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8499 ol_with_bdb_module=static
8500 ol_with_dnssrv_module=static
8501 ol_with_hdb_module=static
8502 ol_with_ldap_module=static
8503 ol_with_ldbm_module=static
8504 ol_with_meta_module=static
8505 ol_with_monitor_module=static
8506 ol_with_null_module=static
8507 ol_with_passwd_module=static
8508 ol_with_perl_module=static
8509 ol_with_shell_module=static
8510 ol_with_tcl_module=static
8511 ol_with_sql_module=static
8515 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8516 echo "configure:8517: checking for EBCDIC" >&5
8517 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8526 #include <__ASCII__/generate_error.h>
8530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8531 { (eval echo configure:8532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8533 if test -z "$ac_err"; then
8535 ol_cv_cpp_ebcdic=yes
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8546 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8547 if test $ol_cv_cpp_ebcdic = yes ; then
8548 cat >> confdefs.h <<\EOF
8549 #define HAVE_EBCDIC 1
8554 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8555 echo "configure:8556: checking for ANSI C header files" >&5
8556 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8557 echo $ac_n "(cached) $ac_c" 1>&6
8559 cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8570 if test -z "$ac_err"; then
8572 ol_cv_header_stdc=yes
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8578 ol_cv_header_stdc=no
8582 if test $ol_cv_header_stdc = yes; then
8583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8590 egrep "memchr" >/dev/null 2>&1; then
8594 ol_cv_header_stdc=no
8600 if test $ol_cv_header_stdc = yes; then
8601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 egrep "free" >/dev/null 2>&1; then
8612 ol_cv_header_stdc=no
8618 if test $ol_cv_header_stdc = yes; then
8619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8620 if test "$cross_compiling" = yes; then
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8631 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8632 || ('j' <= (c) && (c) <= 'r') \
8633 || ('s' <= (c) && (c) <= 'z'))
8634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8637 int main () { int i; for (i = 0; i < 256; i++)
8638 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8649 ol_cv_header_stdc=no
8657 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8658 if test $ol_cv_header_stdc = yes; then
8659 cat >> confdefs.h <<\EOF
8660 #define STDC_HEADERS 1
8664 ac_cv_header_stdc=disable
8667 if test $ol_cv_header_stdc != yes; then
8668 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8675 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8676 echo "configure:8677: checking for $ac_hdr that defines DIR" >&5
8677 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8678 echo $ac_n "(cached) $ac_c" 1>&6
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8683 #include <sys/types.h>
8689 if { (eval echo configure:8690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8691 eval "ac_cv_header_dirent_$ac_safe=yes"
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 eval "ac_cv_header_dirent_$ac_safe=no"
8700 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8701 echo "$ac_t""yes" 1>&6
8702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8703 cat >> confdefs.h <<EOF
8704 #define $ac_tr_hdr 1
8706 ac_header_dirent=$ac_hdr; break
8708 echo "$ac_t""no" 1>&6
8711 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8712 if test $ac_header_dirent = dirent.h; then
8713 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8714 echo "configure:8715: checking for opendir in -ldir" >&5
8715 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8716 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8717 echo $ac_n "(cached) $ac_c" 1>&6
8719 ac_save_LIBS="$LIBS"
8721 cat > conftest.$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 /* Override any gcc2 internal prototype to avoid an error. */
8725 /* We use char because int might match the return type of a gcc2
8726 builtin and then its argument prototype would still apply. */
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8735 eval "ac_cv_lib_$ac_lib_var=yes"
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 eval "ac_cv_lib_$ac_lib_var=no"
8743 LIBS="$ac_save_LIBS"
8746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8747 echo "$ac_t""yes" 1>&6
8750 echo "$ac_t""no" 1>&6
8754 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8755 echo "configure:8756: checking for opendir in -lx" >&5
8756 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8760 ac_save_LIBS="$LIBS"
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 /* Override any gcc2 internal prototype to avoid an error. */
8766 /* We use char because int might match the return type of a gcc2
8767 builtin and then its argument prototype would still apply. */
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8776 eval "ac_cv_lib_$ac_lib_var=yes"
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8781 eval "ac_cv_lib_$ac_lib_var=no"
8784 LIBS="$ac_save_LIBS"
8787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8788 echo "$ac_t""yes" 1>&6
8791 echo "$ac_t""no" 1>&6
8796 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8797 echo "configure:8798: checking for sys/wait.h that is POSIX.1 compatible" >&5
8798 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8799 echo $ac_n "(cached) $ac_c" 1>&6
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8804 #include <sys/types.h>
8805 #include <sys/wait.h>
8807 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8810 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8815 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8818 if { (eval echo configure:8819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8820 ac_cv_header_sys_wait_h=yes
8822 echo "configure: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8825 ac_cv_header_sys_wait_h=no
8830 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8831 if test $ac_cv_header_sys_wait_h = yes; then
8832 cat >> confdefs.h <<\EOF
8833 #define HAVE_SYS_WAIT_H 1
8838 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8839 echo "configure:8840: checking POSIX termios" >&5
8840 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8841 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 #include <sys/types.h>
8848 #include <termios.h>
8850 /* SunOS 4.0.3 has termios.h but not the library calls. */
8854 if { (eval echo configure:8855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8856 am_cv_sys_posix_termios=yes
8858 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8861 am_cv_sys_posix_termios=no
8866 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8869 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8870 echo "configure:8871: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8871 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8872 echo $ac_n "(cached) $ac_c" 1>&6
8874 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8876 gwinsz_in_termios_h=no
8877 if test $am_cv_sys_posix_termios = yes; then
8878 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure"
8880 #include "confdefs.h"
8881 #include <sys/types.h>
8882 # include <termios.h>
8888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8889 egrep "yes" >/dev/null 2>&1; then
8891 gwinsz_in_termios_h=yes
8897 if test $gwinsz_in_termios_h = no; then
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <sys/types.h>
8902 # include <sys/ioctl.h>
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 egrep "yes" >/dev/null 2>&1; then
8911 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8919 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8920 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8921 cat >> confdefs.h <<\EOF
8922 #define GWINSZ_IN_SYS_IOCTL 1
8927 if test $am_cv_sys_posix_termios = yes ; then
8928 cat >> confdefs.h <<\EOF
8929 #define HAVE_POSIX_TERMIOS 1
8984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_hdr" >&5
8987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8996 { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8998 if test -z "$ac_err"; then
9000 eval "ac_cv_header_$ac_safe=yes"
9003 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5
9006 eval "ac_cv_header_$ac_safe=no"
9010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9011 echo "$ac_t""yes" 1>&6
9012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9013 cat >> confdefs.h <<EOF
9014 #define $ac_tr_hdr 1
9018 echo "$ac_t""no" 1>&6
9025 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
9026 echo "configure:9027: checking for dlopen" >&5
9027 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
9028 echo $ac_n "(cached) $ac_c" 1>&6
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9033 /* System header to define __stub macros and hopefully few prototypes,
9034 which can conflict with char dlopen(); below. */
9036 /* Override any gcc2 internal prototype to avoid an error. */
9037 /* We use char because int might match the return type of a gcc2
9038 builtin and then its argument prototype would still apply. */
9044 /* The GNU C library defines this for functions which it implements
9045 to always fail with ENOSYS. Some functions are actually named
9046 something starting with __ and the normal name is an alias. */
9047 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9055 if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057 eval "ac_cv_func_dlopen=yes"
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9062 eval "ac_cv_func_dlopen=no"
9067 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9071 echo "$ac_t""no" 1>&6
9072 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9073 echo "configure:9074: checking for dlopen in -ldl" >&5
9074 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9078 ac_save_LIBS="$LIBS"
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9094 eval "ac_cv_lib_$ac_lib_var=yes"
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9099 eval "ac_cv_lib_$ac_lib_var=no"
9102 LIBS="$ac_save_LIBS"
9105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9106 echo "$ac_t""yes" 1>&6
9107 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9109 cat >> confdefs.h <<EOF
9110 #define $ac_tr_lib 1
9116 echo "$ac_t""no" 1>&6
9122 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9123 echo "configure:9124: checking for sigset in -lV3" >&5
9124 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9125 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9128 ac_save_LIBS="$LIBS"
9130 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 /* Override any gcc2 internal prototype to avoid an error. */
9134 /* We use char because int might match the return type of a gcc2
9135 builtin and then its argument prototype would still apply. */
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9144 eval "ac_cv_lib_$ac_lib_var=yes"
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 eval "ac_cv_lib_$ac_lib_var=no"
9152 LIBS="$ac_save_LIBS"
9155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9156 echo "$ac_t""yes" 1>&6
9157 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9159 cat >> confdefs.h <<EOF
9160 #define $ac_tr_lib 1
9166 echo "$ac_t""no" 1>&6
9170 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9171 echo "configure:9172: checking for winsock" >&5
9173 for curlib in ws2_32 wsock32; do
9174 LIBS="$LIBS -l$curlib"
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9181 char closesocket@4();
9182 char gethostname@8();
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9204 if test $have_winsock = yes; then
9205 cat >> confdefs.h <<\EOF
9206 #define HAVE_WINSOCK 1
9209 ac_cv_func_socket=yes
9210 ac_cv_func_select=yes
9211 ac_cv_func_closesocket=yes
9212 ac_cv_func_gethostname=yes
9213 if test $curlib = ws2_32; then
9214 have_winsock=winsock2
9215 cat >> confdefs.h <<\EOF
9216 #define HAVE_WINSOCK2 1
9224 echo "$ac_t""$have_winsock" 1>&6
9227 echo $ac_n "checking for socket""... $ac_c" 1>&6
9228 echo "configure:9229: checking for socket" >&5
9229 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9235 /* System header to define __stub macros and hopefully few prototypes,
9236 which can conflict with char socket(); below. */
9238 /* Override any gcc2 internal prototype to avoid an error. */
9239 /* We use char because int might match the return type of a gcc2
9240 builtin and then its argument prototype would still apply. */
9246 /* The GNU C library defines this for functions which it implements
9247 to always fail with ENOSYS. Some functions are actually named
9248 something starting with __ and the normal name is an alias. */
9249 #if defined (__stub_socket) || defined (__stub___socket)
9257 if { (eval echo configure:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9259 eval "ac_cv_func_socket=yes"
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9264 eval "ac_cv_func_socket=no"
9269 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9270 echo "$ac_t""yes" 1>&6
9273 echo "$ac_t""no" 1>&6
9275 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9276 echo "configure:9277: checking for main in -lsocket" >&5
9277 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9278 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9281 ac_save_LIBS="$LIBS"
9282 LIBS="-lsocket $LIBS"
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9291 if { (eval echo configure:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9293 eval "ac_cv_lib_$ac_lib_var=yes"
9295 echo "configure: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9298 eval "ac_cv_lib_$ac_lib_var=no"
9301 LIBS="$ac_save_LIBS"
9304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9305 echo "$ac_t""yes" 1>&6
9306 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9308 cat >> confdefs.h <<EOF
9309 #define $ac_tr_lib 1
9312 LIBS="-lsocket $LIBS"
9315 echo "$ac_t""no" 1>&6
9318 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9319 echo "configure:9320: checking for main in -lnet" >&5
9320 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9324 ac_save_LIBS="$LIBS"
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_lib_$ac_lib_var=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_lib_$ac_lib_var=no"
9344 LIBS="$ac_save_LIBS"
9347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9348 echo "$ac_t""yes" 1>&6
9349 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9351 cat >> confdefs.h <<EOF
9352 #define $ac_tr_lib 1
9358 echo "$ac_t""no" 1>&6
9361 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9362 echo "configure:9363: checking for main in -lnsl_s" >&5
9363 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9367 ac_save_LIBS="$LIBS"
9368 LIBS="-lnsl_s $LIBS"
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 eval "ac_cv_lib_$ac_lib_var=yes"
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 eval "ac_cv_lib_$ac_lib_var=no"
9387 LIBS="$ac_save_LIBS"
9390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9391 echo "$ac_t""yes" 1>&6
9392 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9394 cat >> confdefs.h <<EOF
9395 #define $ac_tr_lib 1
9398 LIBS="-lnsl_s $LIBS"
9401 echo "$ac_t""no" 1>&6
9404 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9405 echo "configure:9406: checking for main in -lnsl" >&5
9406 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9407 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9410 ac_save_LIBS="$LIBS"
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9414 "configure"
9414 #include "confdefs.h"
9420 if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9422 eval "ac_cv_lib_$ac_lib_var=yes"
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9427 eval "ac_cv_lib_$ac_lib_var=no"
9430 LIBS="$ac_save_LIBS"
9433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9434 echo "$ac_t""yes" 1>&6
9435 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9437 cat >> confdefs.h <<EOF
9438 #define $ac_tr_lib 1
9444 echo "$ac_t""no" 1>&6
9447 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9448 echo "configure:9449: checking for socket in -linet" >&5
9449 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9453 ac_save_LIBS="$LIBS"
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 /* Override any gcc2 internal prototype to avoid an error. */
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9469 eval "ac_cv_lib_$ac_lib_var=yes"
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 eval "ac_cv_lib_$ac_lib_var=no"
9477 LIBS="$ac_save_LIBS"
9480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6
9482 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9484 cat >> confdefs.h <<EOF
9485 #define $ac_tr_lib 1
9491 echo "$ac_t""no" 1>&6
9494 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9495 echo "configure:9496: checking for main in -lgen" >&5
9496 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9497 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 ac_save_LIBS="$LIBS"
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9510 if { (eval echo configure:9511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9512 eval "ac_cv_lib_$ac_lib_var=yes"
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9517 eval "ac_cv_lib_$ac_lib_var=no"
9520 LIBS="$ac_save_LIBS"
9523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
9525 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9527 cat >> confdefs.h <<EOF
9528 #define $ac_tr_lib 1
9534 echo "$ac_t""no" 1>&6
9541 echo $ac_n "checking for select""... $ac_c" 1>&6
9542 echo "configure:9543: checking for select" >&5
9543 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9549 /* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char select(); below. */
9552 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined (__stub_select) || defined (__stub___select)
9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9573 eval "ac_cv_func_select=yes"
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 eval "ac_cv_func_select=no"
9583 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9584 echo "$ac_t""yes" 1>&6
9587 echo "$ac_t""no" 1>&6
9588 { echo "configure: error: select() required." 1>&2; exit 1; }
9592 if test "${ac_cv_header_winsock_h}" != yes; then
9593 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9594 echo "configure:9595: checking types of arguments for select()" >&5
9595 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9598 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9601 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9604 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9605 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9606 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9607 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure"
9609 #include "confdefs.h"
9610 #ifdef HAVE_SYS_TYPES_H
9611 #include <sys/types.h>
9613 #ifdef HAVE_SYS_TIME_H
9614 #include <sys/time.h>
9616 #ifdef HAVE_SYS_SELECT_H
9617 #include <sys/select.h>
9619 #ifdef HAVE_SYS_SOCKET_H
9620 #include <sys/socket.h>
9622 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);
9627 if { (eval echo configure:9628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9629 ac_not_found=no ; break 3
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9646 if test "$ac_not_found" = yes; then
9647 ac_cv_func_select_arg1=int
9648 ac_cv_func_select_arg234='int *'
9649 ac_cv_func_select_arg5='struct timeval *'
9651 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9652 cat >> confdefs.h <<EOF
9653 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9656 cat >> confdefs.h <<EOF
9657 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9660 cat >> confdefs.h <<EOF
9661 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9668 for ac_hdr in regex.h
9670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9672 echo "configure:9673: checking for $ac_hdr" >&5
9673 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9674 echo $ac_n "(cached) $ac_c" 1>&6
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9682 { (eval echo configure:9683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9684 if test -z "$ac_err"; then
9686 eval "ac_cv_header_$ac_safe=yes"
9689 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9692 eval "ac_cv_header_$ac_safe=no"
9696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9697 echo "$ac_t""yes" 1>&6
9698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9699 cat >> confdefs.h <<EOF
9700 #define $ac_tr_hdr 1
9704 echo "$ac_t""no" 1>&6
9708 if test "$ac_cv_header_regex_h" != yes ; then
9709 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9712 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9713 echo "configure:9714: checking for library containing regfree" >&5
9714 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9715 echo $ac_n "(cached) $ac_c" 1>&6
9717 ac_func_search_save_LIBS="$LIBS"
9718 ac_cv_search_regfree="no"
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733 ac_cv_search_regfree="none required"
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9739 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 /* Override any gcc2 internal prototype to avoid an error. */
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755 ac_cv_search_regfree="-l$ac_lib"
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9763 LIBS="$ac_func_search_save_LIBS"
9766 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9767 if test "$ac_cv_search_regfree" != "no"; then
9768 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9771 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9775 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9776 echo "configure:9777: checking for compatible POSIX regex" >&5
9777 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9781 if test "$cross_compiling" = yes; then
9782 ol_cv_c_posix_regex=cross
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9788 #include <sys/types.h>
9790 static char *pattern, *string;
9798 if(regcomp(&re, pattern, 0)) {
9802 string = "ALL MATCH";
9804 rc = regexec(&re, string, 0, (void*)0, 0);
9811 if { (eval echo configure:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9813 ol_cv_c_posix_regex=yes
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9818 ol_cv_c_posix_regex=no
9825 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9827 if test "$ol_cv_c_posix_regex" = no ; then
9828 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9833 for ac_hdr in sys/uuid.h
9835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9837 echo "configure:9838: checking for $ac_hdr" >&5
9838 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9847 { (eval echo configure:9848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9849 if test -z "$ac_err"; then
9851 eval "ac_cv_header_$ac_safe=yes"
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9857 eval "ac_cv_header_$ac_safe=no"
9861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9864 cat >> confdefs.h <<EOF
9865 #define $ac_tr_hdr 1
9869 echo "$ac_t""no" 1>&6
9873 if test $ac_cv_header_sys_uuid_h = yes ; then
9876 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9877 echo "configure:9878: checking for library containing uuid_to_str" >&5
9878 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9881 ac_func_search_save_LIBS="$LIBS"
9882 ac_cv_search_uuid_to_str="no"
9883 cat > conftest.$ac_ext <<EOF
9884 #line 9885 "configure"
9885 #include "confdefs.h"
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9897 ac_cv_search_uuid_to_str="none required"
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9903 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 /* Override any gcc2 internal prototype to avoid an error. */
9909 /* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9917 if { (eval echo configure:9918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9919 ac_cv_search_uuid_to_str="-l$ac_lib"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9927 LIBS="$ac_func_search_save_LIBS"
9930 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9931 if test "$ac_cv_search_uuid_to_str" != "no"; then
9932 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9939 if test have_uuid = yes ; then
9940 cat >> confdefs.h <<\EOF
9941 #define HAVE_UUID_TO_STR 1
9945 test "$ac_cv_search_uuid_to_str" = "none required" || \
9946 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9950 if test $have_uuid = no ; then
9951 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9952 echo "configure:9953: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9954 LIBS="$LIBS -lrpcrt4"
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9959 char UuidCreate@4();
9960 char UuidToStringA@8();
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9979 if test $need_rpcrt = yes; then
9980 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9983 echo "$ac_t""$need_rpcrt" 1>&6
9987 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9988 echo "configure:9989: checking for res_query" >&5
9989 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9990 echo $ac_n "(cached) $ac_c" 1>&6
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 /* System header to define __stub macros and hopefully few prototypes,
9996 which can conflict with char res_query(); below. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
9999 /* We use char because int might match the return type of a gcc2
10000 builtin and then its argument prototype would still apply. */
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined (__stub_res_query) || defined (__stub___res_query)
10017 if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10019 eval "ac_cv_func_res_query=yes"
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10024 eval "ac_cv_func_res_query=no"
10029 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10033 echo "$ac_t""no" 1>&6
10036 if test $ac_cv_func_res_query = no ; then
10037 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10038 echo "configure:10039: checking for __res_query" >&5
10039 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10040 echo $ac_n "(cached) $ac_c" 1>&6
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char __res_query(); below. */
10047 #include <assert.h>
10048 /* Override any gcc2 internal prototype to avoid an error. */
10049 /* We use char because int might match the return type of a gcc2
10050 builtin and then its argument prototype would still apply. */
10051 char __res_query();
10056 /* The GNU C library defines this for functions which it implements
10057 to always fail with ENOSYS. Some functions are actually named
10058 something starting with __ and the normal name is an alias. */
10059 #if defined (__stub___res_query) || defined (__stub_____res_query)
10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10069 eval "ac_cv_func___res_query=yes"
10071 echo "configure: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10074 eval "ac_cv_func___res_query=no"
10079 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10080 echo "$ac_t""yes" 1>&6
10083 echo "$ac_t""no" 1>&6
10086 ac_cv_func_res_query=$ac_cv_func___res_query
10089 if test $ac_cv_func_res_query = no ; then
10090 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10091 echo "configure:10092: checking for res_query in -lbind" >&5
10092 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10096 ac_save_LIBS="$LIBS"
10097 LIBS="-lbind $LIBS"
10098 cat > conftest.$ac_ext <<EOF
10099 #line 10100 "configure"
10100 #include "confdefs.h"
10101 /* Override any gcc2 internal prototype to avoid an error. */
10102 /* We use char because int might match the return type of a gcc2
10103 builtin and then its argument prototype would still apply. */
10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10112 eval "ac_cv_lib_$ac_lib_var=yes"
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10117 eval "ac_cv_lib_$ac_lib_var=no"
10120 LIBS="$ac_save_LIBS"
10123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10127 cat >> confdefs.h <<EOF
10128 #define $ac_tr_lib 1
10131 LIBS="-lbind $LIBS"
10134 echo "$ac_t""no" 1>&6
10137 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10140 if test $ac_cv_func_res_query = no ; then
10141 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10142 echo "configure:10143: checking for __res_query in -lbind" >&5
10143 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10144 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10147 ac_save_LIBS="$LIBS"
10148 LIBS="-lbind $LIBS"
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 /* Override any gcc2 internal prototype to avoid an error. */
10153 /* We use char because int might match the return type of a gcc2
10154 builtin and then its argument prototype would still apply. */
10155 char __res_query();
10161 if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163 eval "ac_cv_lib_$ac_lib_var=yes"
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 eval "ac_cv_lib_$ac_lib_var=no"
10171 LIBS="$ac_save_LIBS"
10174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10175 echo "$ac_t""yes" 1>&6
10176 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10177 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10178 cat >> confdefs.h <<EOF
10179 #define $ac_tr_lib 1
10182 LIBS="-lbind $LIBS"
10185 echo "$ac_t""no" 1>&6
10188 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10191 if test $ac_cv_func_res_query = no ; then
10192 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10193 echo "configure:10194: checking for res_query in -lresolv" >&5
10194 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10195 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10198 ac_save_LIBS="$LIBS"
10199 LIBS="-lresolv $LIBS"
10200 cat > conftest.$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10212 if { (eval echo configure:10213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10214 eval "ac_cv_lib_$ac_lib_var=yes"
10216 echo "configure: failed program was:" >&5
10217 cat conftest.$ac_ext >&5
10219 eval "ac_cv_lib_$ac_lib_var=no"
10222 LIBS="$ac_save_LIBS"
10225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10226 echo "$ac_t""yes" 1>&6
10227 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10229 cat >> confdefs.h <<EOF
10230 #define $ac_tr_lib 1
10233 LIBS="-lresolv $LIBS"
10236 echo "$ac_t""no" 1>&6
10239 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10242 if test $ac_cv_func_res_query = no ; then
10243 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10244 echo "configure:10245: checking for __res_query in -lresolv" >&5
10245 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10246 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10249 ac_save_LIBS="$LIBS"
10250 LIBS="-lresolv $LIBS"
10251 cat > conftest.$ac_ext <<EOF
10252 #line 10253 "configure"
10253 #include "confdefs.h"
10254 /* Override any gcc2 internal prototype to avoid an error. */
10255 /* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
10257 char __res_query();
10263 if { (eval echo configure:10264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10265 eval "ac_cv_lib_$ac_lib_var=yes"
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 eval "ac_cv_lib_$ac_lib_var=no"
10273 LIBS="$ac_save_LIBS"
10276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10277 echo "$ac_t""yes" 1>&6
10278 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10280 cat >> confdefs.h <<EOF
10281 #define $ac_tr_lib 1
10284 LIBS="-lresolv $LIBS"
10287 echo "$ac_t""no" 1>&6
10290 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10293 if test "$ac_cv_func_res_query" = yes ; then
10294 cat >> confdefs.h <<\EOF
10295 #define HAVE_RES_QUERY 1
10299 if test $ol_enable_dnssrv != no ; then
10304 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10305 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10308 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10311 echo "configure:10312: checking for $ac_func" >&5
10312 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 /* System header to define __stub macros and hopefully few prototypes,
10319 which can conflict with char $ac_func(); below. */
10320 #include <assert.h>
10321 /* Override any gcc2 internal prototype to avoid an error. */
10322 /* We use char because int might match the return type of a gcc2
10323 builtin and then its argument prototype would still apply. */
10329 /* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10342 eval "ac_cv_func_$ac_func=yes"
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10347 eval "ac_cv_func_$ac_func=no"
10352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10353 echo "$ac_t""yes" 1>&6
10354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10355 cat >> confdefs.h <<EOF
10356 #define $ac_tr_func 1
10360 echo "$ac_t""no" 1>&6
10366 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10367 if test $ol_enable_ipv6 = yes ; then
10368 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10370 elif test $ol_enable_ipv6 != no ; then
10371 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10372 echo "configure:10373: checking INET6_ADDRSTRLEN" >&5
10373 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10374 echo $ac_n "(cached) $ac_c" 1>&6
10377 cat > conftest.$ac_ext <<EOF
10378 #line 10379 "configure"
10379 #include "confdefs.h"
10381 # include <netinet/in.h>
10382 # ifdef INET6_ADDRSTRLEN
10383 __has_inet6_addrstrlen__;
10387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10388 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10390 ol_cv_inet6_addrstrlen=yes
10393 ol_cv_inet6_addrstrlen=no
10399 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10402 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10403 echo "configure:10404: checking struct sockaddr_storage" >&5
10404 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10412 #include <sys/types.h>
10413 #include <sys/socket.h>
10417 struct sockaddr_storage ss;
10421 if { (eval echo configure:10422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10423 ol_cv_struct_sockaddr_storage=yes
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10428 ol_cv_struct_sockaddr_storage=no
10433 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10435 if test $ol_cv_inet6_addrstrlen = yes \
10436 -a $ol_cv_struct_sockaddr_storage = yes ; then
10438 elif test $ol_enable_ipv6 = yes \
10439 -a $ol_cv_inet6_addrstrlen = no ; then
10440 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10441 elif test $ol_enable_ipv6 = yes \
10442 -a $ol_cv_struct_sockaddr_storage = no ; then
10443 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10447 if test $ol_enable_local != no ; then
10448 for ac_hdr in sys/un.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 $ol_enable_local = auto ; then
10490 ol_enable_local=$ac_cv_header_sys_un_h
10491 elif test $ac_cv_header_sys_un_h = no ; then
10492 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10501 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10502 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10503 -o $ol_with_kerberos = k425 ; then
10505 for ac_hdr in krb5.h
10507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10509 echo "configure:10510: checking for $ac_hdr" >&5
10510 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10519 { (eval echo configure:10520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10521 if test -z "$ac_err"; then
10523 eval "ac_cv_header_$ac_safe=yes"
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 eval "ac_cv_header_$ac_safe=no"
10533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10534 echo "$ac_t""yes" 1>&6
10535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10536 cat >> confdefs.h <<EOF
10537 #define $ac_tr_hdr 1
10541 echo "$ac_t""no" 1>&6
10546 if test $ac_cv_header_krb5_h = yes ; then
10547 for ac_hdr in heim_err.h
10549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10551 echo "configure:10552: checking for $ac_hdr" >&5
10552 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10553 echo $ac_n "(cached) $ac_c" 1>&6
10555 cat > conftest.$ac_ext <<EOF
10556 #line 10557 "configure"
10557 #include "confdefs.h"
10560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10561 { (eval echo configure:10562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10563 if test -z "$ac_err"; then
10565 eval "ac_cv_header_$ac_safe=yes"
10568 echo "configure: failed program was:" >&5
10569 cat conftest.$ac_ext >&5
10571 eval "ac_cv_header_$ac_safe=no"
10575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10578 cat >> confdefs.h <<EOF
10579 #define $ac_tr_hdr 1
10583 echo "$ac_t""no" 1>&6
10587 if test $ac_cv_header_heim_err_h = yes ; then
10593 if test $krb5_impl = mit; then
10594 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10595 echo "configure:10596: checking for main in -lk5crypto" >&5
10596 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10597 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10600 ac_save_LIBS="$LIBS"
10601 LIBS="-lk5crypto $LIBS"
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10610 if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10612 eval "ac_cv_lib_$ac_lib_var=yes"
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10617 eval "ac_cv_lib_$ac_lib_var=no"
10620 LIBS="$ac_save_LIBS"
10623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10624 echo "$ac_t""yes" 1>&6
10625 krb5crypto=k5crypto
10627 echo "$ac_t""no" 1>&6
10632 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10633 echo "configure:10634: checking for main in -lkrb5" >&5
10634 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10635 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10636 echo $ac_n "(cached) $ac_c" 1>&6
10638 ac_save_LIBS="$LIBS"
10639 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10640 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10650 eval "ac_cv_lib_$ac_lib_var=yes"
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10655 eval "ac_cv_lib_$ac_lib_var=no"
10658 LIBS="$ac_save_LIBS"
10661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10664 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10666 echo "$ac_t""no" 1>&6
10671 elif test $krb5_impl = heimdal; then
10672 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10673 echo "configure:10674: checking for main in -ldes" >&5
10674 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10676 echo $ac_n "(cached) $ac_c" 1>&6
10678 ac_save_LIBS="$LIBS"
10680 cat > conftest.$ac_ext <<EOF
10681 #line 10682 "configure"
10682 #include "confdefs.h"
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10690 eval "ac_cv_lib_$ac_lib_var=yes"
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10695 eval "ac_cv_lib_$ac_lib_var=no"
10698 LIBS="$ac_save_LIBS"
10701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10705 echo "$ac_t""no" 1>&6
10710 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10711 echo "configure:10712: checking for main in -lkrb5" >&5
10712 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 ac_save_LIBS="$LIBS"
10717 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10728 eval "ac_cv_lib_$ac_lib_var=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_lib_$ac_lib_var=no"
10736 LIBS="$ac_save_LIBS"
10739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10742 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10744 echo "$ac_t""no" 1>&6
10749 cat >> confdefs.h <<\EOF
10750 #define HAVE_HEIMDAL_KERBEROS 1
10756 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10759 if test $have_krb5 = yes ; then
10762 cat >> confdefs.h <<\EOF
10763 #define HAVE_KRB5 1
10767 if test $ol_enable_kpasswd != no ; then
10768 ol_link_kpasswd=yes;
10771 if test $ol_with_kerberos = k5only ; then
10772 ol_with_kerberos=found
10775 elif test $ol_with_kerberos != auto ; then
10776 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10782 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10783 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10785 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10789 echo "configure:10790: checking for $ac_hdr" >&5
10790 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10791 echo $ac_n "(cached) $ac_c" 1>&6
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10799 { (eval echo configure:10800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10801 if test -z "$ac_err"; then
10803 eval "ac_cv_header_$ac_safe=yes"
10806 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5
10809 eval "ac_cv_header_$ac_safe=no"
10813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10814 echo "$ac_t""yes" 1>&6
10815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10816 cat >> confdefs.h <<EOF
10817 #define $ac_tr_hdr 1
10821 echo "$ac_t""no" 1>&6
10826 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10827 if test $krb5_impl = mit; then
10828 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10829 echo "configure:10830: checking for main in -lkrb4" >&5
10830 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10834 ac_save_LIBS="$LIBS"
10835 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10844 if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10846 eval "ac_cv_lib_$ac_lib_var=yes"
10848 echo "configure: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 eval "ac_cv_lib_$ac_lib_var=no"
10854 LIBS="$ac_save_LIBS"
10857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10858 echo "$ac_t""yes" 1>&6
10860 KRB4_LIBS="-lkrb4 -ldes425"
10862 echo "$ac_t""no" 1>&6
10867 elif test $krb5_impl = heimdal; then
10868 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10869 echo "configure:10870: checking for main in -lkrb4" >&5
10870 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10871 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10872 echo $ac_n "(cached) $ac_c" 1>&6
10874 ac_save_LIBS="$LIBS"
10875 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886 eval "ac_cv_lib_$ac_lib_var=yes"
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10891 eval "ac_cv_lib_$ac_lib_var=no"
10894 LIBS="$ac_save_LIBS"
10897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10898 echo "$ac_t""yes" 1>&6
10902 echo "$ac_t""no" 1>&6
10909 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10912 if test $have_k425 = yes ; then
10913 ol_with_kerberos=found
10916 cat >> confdefs.h <<\EOF
10917 #define HAVE_KRB425 1
10920 cat >> confdefs.h <<\EOF
10921 #define HAVE_KRB4 1
10925 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10926 echo "configure:10927: checking for des_debug in Kerberos libraries" >&5
10927 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10928 echo $ac_n "(cached) $ac_c" 1>&6
10932 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10937 #include <kerberosIV/krb.h>
10938 #include <kerberosIV/des.h>
10939 extern int des_debug;
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 ol_cv_var_des_debug=yes
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 ol_cv_var_des_debug=no
10961 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10963 if test $ol_cv_var_des_debug = yes ; then
10964 cat >> confdefs.h <<\EOF
10965 #define HAVE_DES_DEBUG 1
10975 if test $ol_link_krb5 = yes ; then
10976 ol_with_kerberos=found
10979 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10980 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10982 for ac_hdr in krb.h des.h krb-archaeology.h
10984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10986 echo "configure:10987: checking for $ac_hdr" >&5
10987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10996 { (eval echo configure:10997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10998 if test -z "$ac_err"; then
11000 eval "ac_cv_header_$ac_safe=yes"
11003 echo "configure: failed program was:" >&5
11004 cat conftest.$ac_ext >&5
11006 eval "ac_cv_header_$ac_safe=no"
11010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11013 cat >> confdefs.h <<EOF
11014 #define $ac_tr_hdr 1
11018 echo "$ac_t""no" 1>&6
11023 if test $ac_cv_header_krb_h = yes ; then
11024 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11025 echo "configure:11026: checking for main in -lkrb" >&5
11026 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11027 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11030 ac_save_LIBS="$LIBS"
11031 LIBS="-lkrb -ldes $LIBS"
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11040 if { (eval echo configure:11041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11042 eval "ac_cv_lib_$ac_lib_var=yes"
11044 echo "configure: failed program was:" >&5
11045 cat conftest.$ac_ext >&5
11047 eval "ac_cv_lib_$ac_lib_var=no"
11050 LIBS="$ac_save_LIBS"
11053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11057 echo "$ac_t""no" 1>&6
11062 if test $have_k4 = yes ; then
11063 ol_with_kerberos=found
11066 cat >> confdefs.h <<\EOF
11067 #define HAVE_KRB4 1
11071 KRB4_LIBS="-lkrb -ldes"
11073 if test $ac_cv_header_krb_archaeology_h = yes ; then
11074 cat >> confdefs.h <<\EOF
11075 #define HAVE_KTH_KERBEROS 1
11083 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11084 ol_link_kpasswd=yes
11087 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11090 elif test $ol_enable_kbind = yes ; then
11091 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11094 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11095 cat >> confdefs.h <<\EOF
11096 #define HAVE_KERBEROS 1
11100 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11101 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11105 if test $ol_with_tls != no ; then
11106 for ac_hdr in openssl/ssl.h ssl.h
11108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11110 echo "configure:11111: checking for $ac_hdr" >&5
11111 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11120 { (eval echo configure:11121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11122 if test -z "$ac_err"; then
11124 eval "ac_cv_header_$ac_safe=yes"
11127 echo "configure: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11130 eval "ac_cv_header_$ac_safe=no"
11134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11135 echo "$ac_t""yes" 1>&6
11136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11137 cat >> confdefs.h <<EOF
11138 #define $ac_tr_hdr 1
11142 echo "$ac_t""no" 1>&6
11147 if test $ac_cv_header_openssl_ssl_h = yes \
11148 -o $ac_cv_header_ssl_h = yes ; then
11149 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11150 echo "configure:11151: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11151 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11152 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11155 ac_save_LIBS="$LIBS"
11156 LIBS="-lssl -lcrypto $LIBS"
11157 cat > conftest.$ac_ext <<EOF
11158 #line 11159 "configure"
11159 #include "confdefs.h"
11160 /* Override any gcc2 internal prototype to avoid an error. */
11161 /* We use char because int might match the return type of a gcc2
11162 builtin and then its argument prototype would still apply. */
11163 char SSLeay_add_ssl_algorithms();
11166 SSLeay_add_ssl_algorithms()
11169 if { (eval echo configure:11170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11171 eval "ac_cv_lib_$ac_lib_var=yes"
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11176 eval "ac_cv_lib_$ac_lib_var=no"
11179 LIBS="$ac_save_LIBS"
11182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11183 echo "$ac_t""yes" 1>&6
11187 echo "$ac_t""no" 1>&6
11192 if test $have_ssleay = no ; then
11193 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11194 echo "configure:11195: checking for SSL_library_init in -lssl" >&5
11195 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11199 ac_save_LIBS="$LIBS"
11200 LIBS="-lssl -lcrypto $LIBS"
11201 cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11207 char SSL_library_init();
11213 if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11215 eval "ac_cv_lib_$ac_lib_var=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11220 eval "ac_cv_lib_$ac_lib_var=no"
11223 LIBS="$ac_save_LIBS"
11226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11227 echo "$ac_t""yes" 1>&6
11231 echo "$ac_t""no" 1>&6
11237 if test $have_ssleay = no ; then
11238 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11239 echo "configure:11240: checking for ssl3_accept in -lssl" >&5
11240 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11241 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11244 ac_save_LIBS="$LIBS"
11245 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11249 /* Override any gcc2 internal prototype to avoid an error. */
11250 /* We use char because int might match the return type of a gcc2
11251 builtin and then its argument prototype would still apply. */
11252 char ssl3_accept();
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11260 eval "ac_cv_lib_$ac_lib_var=yes"
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 eval "ac_cv_lib_$ac_lib_var=no"
11268 LIBS="$ac_save_LIBS"
11271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11272 echo "$ac_t""yes" 1>&6
11276 echo "$ac_t""no" 1>&6
11282 if test $have_ssleay = yes ; then
11286 cat >> confdefs.h <<\EOF
11287 #define HAVE_SSLEAY 1
11291 if test $need_rsaref = yes; then
11292 cat >> confdefs.h <<\EOF
11293 #define HAVE_RSAREF 1
11297 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11299 TLS_LIBS="-lssl -lcrypto"
11305 echo "configure: warning: TLS data protection not supported!" 1>&2
11308 if test $ol_link_tls = yes ; then
11309 cat >> confdefs.h <<\EOF
11314 elif test $ol_with_tls = auto ; then
11315 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11316 echo "configure: warning: TLS data protection not supported!" 1>&2
11318 elif test $ol_with_tls != no ; then
11319 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11322 if test $ol_enable_lmpasswd != no; then
11323 if test $ol_link_tls != yes ; then
11324 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11327 cat >> confdefs.h <<\EOF
11328 #define SLAPD_LMHASH 1
11335 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11336 -o $ol_with_threads = nt ; then
11339 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11340 echo "configure:11341: checking for _beginthread" >&5
11341 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11344 cat > conftest.$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11347 /* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char _beginthread(); below. */
11349 #include <assert.h>
11350 /* Override any gcc2 internal prototype to avoid an error. */
11351 /* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11353 char _beginthread();
11358 /* The GNU C library defines this for functions which it implements
11359 to always fail with ENOSYS. Some functions are actually named
11360 something starting with __ and the normal name is an alias. */
11361 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11369 if { (eval echo configure:11370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11371 eval "ac_cv_func__beginthread=yes"
11373 echo "configure: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11376 eval "ac_cv_func__beginthread=no"
11381 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11382 echo "$ac_t""yes" 1>&6
11385 echo "$ac_t""no" 1>&6
11389 if test $ac_cv_func__beginthread = yes ; then
11390 cat >> confdefs.h <<\EOF
11391 #define HAVE_NT_THREADS 1
11394 ol_cv_nt_threads=yes
11398 if test "$ol_cv_nt_threads" = yes ; then
11400 ol_with_threads=found
11401 ol_with_yielding_select=yes
11403 cat >> confdefs.h <<\EOF
11404 #define HAVE_NT_SERVICE_MANAGER 1
11407 cat >> confdefs.h <<\EOF
11408 #define HAVE_NT_EVENT_LOG 1
11413 if test $ol_with_threads = nt ; then
11414 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11418 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11419 -o $ol_with_threads = posix ; then
11421 for ac_hdr in pthread.h
11423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11425 echo "configure:11426: checking for $ac_hdr" >&5
11426 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11429 cat > conftest.$ac_ext <<EOF
11430 #line 11431 "configure"
11431 #include "confdefs.h"
11434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11435 { (eval echo configure:11436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11437 if test -z "$ac_err"; then
11439 eval "ac_cv_header_$ac_safe=yes"
11442 echo "configure: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11445 eval "ac_cv_header_$ac_safe=no"
11449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11450 echo "$ac_t""yes" 1>&6
11451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11452 cat >> confdefs.h <<EOF
11453 #define $ac_tr_hdr 1
11457 echo "$ac_t""no" 1>&6
11462 if test $ac_cv_header_pthread_h = yes ; then
11463 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11464 echo "configure:11465: checking POSIX thread version" >&5
11465 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11473 # include <pthread.h>
11477 int i = PTHREAD_CREATE_JOINABLE;
11481 if { (eval echo configure:11482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11487 #include <pthread.h>
11489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11490 egrep "pthread_detach" >/dev/null 2>&1; then
11492 ol_cv_pthread_version=10
11495 ol_cv_pthread_version=8
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11504 cat > conftest.$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11508 # include <pthread.h>
11509 # ifdef PTHREAD_CREATE_UNDETACHED
11514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11515 egrep "draft7" >/dev/null 2>&1; then
11517 ol_cv_pthread_version=7
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11524 #include <pthread.h>
11526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11527 egrep "pthread_attr_init" >/dev/null 2>&1; then
11529 ol_cv_pthread_version=6
11533 cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11537 # include <pthread.h>
11538 #ifdef PTHREAD_MUTEX_INITIALIZER
11543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11544 egrep "draft5" >/dev/null 2>&1; then
11546 ol_cv_pthread_version=5
11549 ol_cv_pthread_version=4
11564 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11567 if test $ol_cv_pthread_version != 0 ; then
11568 cat >> confdefs.h <<EOF
11569 #define HAVE_PTHREADS $ol_cv_pthread_version
11573 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11576 # consider threads found
11577 ol_with_threads=found
11580 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11581 echo "configure:11582: checking for LinuxThreads pthread.h" >&5
11582 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 #include <pthread.h>
11590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11593 ol_cv_header_linux_threads=yes
11596 ol_cv_header_linux_threads=no
11603 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11604 if test $ol_cv_header_linux_threads = yes; then
11605 cat >> confdefs.h <<\EOF
11606 #define HAVE_LINUX_THREADS 1
11612 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11613 echo "configure:11614: checking for GNU Pth pthread.h" >&5
11614 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11615 echo $ac_n "(cached) $ac_c" 1>&6
11617 cat > conftest.$ac_ext <<EOF
11618 #line 11619 "configure"
11619 #include "confdefs.h"
11620 #include <pthread.h>
11621 #ifdef _POSIX_THREAD_IS_GNU_PTH
11626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11627 egrep "__gnu_pth__" >/dev/null 2>&1; then
11629 ol_cv_header_gnu_pth_pthread_h=yes
11632 ol_cv_header_gnu_pth_pthread_h=no
11639 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11642 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11643 for ac_hdr in sched.h
11645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11647 echo "configure:11648: checking for $ac_hdr" >&5
11648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11657 { (eval echo configure:11658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11659 if test -z "$ac_err"; then
11661 eval "ac_cv_header_$ac_safe=yes"
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11667 eval "ac_cv_header_$ac_safe=no"
11671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11672 echo "$ac_t""yes" 1>&6
11673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11674 cat >> confdefs.h <<EOF
11675 #define $ac_tr_hdr 1
11679 echo "$ac_t""no" 1>&6
11686 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11687 echo "configure:11688: checking for pthread_create in default libraries" >&5
11688 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11692 if test "$cross_compiling" = yes; then
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11696 /* pthread test headers */
11697 #include <pthread.h>
11698 #if HAVE_PTHREADS < 7
11702 #define NULL (void*)0
11705 static void *task(p)
11708 return (void *) (p == NULL);
11713 /* pthread test function */
11714 #ifndef PTHREAD_CREATE_DETACHED
11715 #define PTHREAD_CREATE_DETACHED 1
11719 int detach = PTHREAD_CREATE_DETACHED;
11721 #if HAVE_PTHREADS > 4
11722 /* Final pthreads */
11723 pthread_attr_t attr;
11725 status = pthread_attr_init(&attr);
11726 if( status ) return status;
11728 #if HAVE_PTHREADS < 7
11729 status = pthread_attr_setdetachstate(&attr, &detach);
11730 if( status < 0 ) status = errno;
11732 status = pthread_attr_setdetachstate(&attr, detach);
11734 if( status ) return status;
11735 status = pthread_create( &t, &attr, task, NULL );
11736 #if HAVE_PTHREADS < 7
11737 if( status < 0 ) status = errno;
11739 if( status ) return status;
11741 /* Draft 4 pthreads */
11742 status = pthread_create( &t, pthread_attr_default, task, NULL );
11743 if( status ) return errno;
11745 /* give thread a chance to complete */
11746 /* it should remain joinable and hence detachable */
11749 status = pthread_detach( &t );
11750 if( status ) return errno;
11753 #ifdef HAVE_LINUX_THREADS
11754 pthread_kill_other_threads_np();
11761 if { (eval echo configure:11762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11763 ol_cv_pthread_create=yes
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11768 ol_cv_pthread_create=no
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11775 /* pthread test headers */
11776 #include <pthread.h>
11777 #if HAVE_PTHREADS < 7
11781 #define NULL (void*)0
11784 static void *task(p)
11787 return (void *) (p == NULL);
11791 int main(argc, argv)
11796 /* pthread test function */
11797 #ifndef PTHREAD_CREATE_DETACHED
11798 #define PTHREAD_CREATE_DETACHED 1
11802 int detach = PTHREAD_CREATE_DETACHED;
11804 #if HAVE_PTHREADS > 4
11805 /* Final pthreads */
11806 pthread_attr_t attr;
11808 status = pthread_attr_init(&attr);
11809 if( status ) return status;
11811 #if HAVE_PTHREADS < 7
11812 status = pthread_attr_setdetachstate(&attr, &detach);
11813 if( status < 0 ) status = errno;
11815 status = pthread_attr_setdetachstate(&attr, detach);
11817 if( status ) return status;
11818 status = pthread_create( &t, &attr, task, NULL );
11819 #if HAVE_PTHREADS < 7
11820 if( status < 0 ) status = errno;
11822 if( status ) return status;
11824 /* Draft 4 pthreads */
11825 status = pthread_create( &t, pthread_attr_default, task, NULL );
11826 if( status ) return errno;
11828 /* give thread a chance to complete */
11829 /* it should remain joinable and hence detachable */
11832 status = pthread_detach( &t );
11833 if( status ) return errno;
11836 #ifdef HAVE_LINUX_THREADS
11837 pthread_kill_other_threads_np();
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11847 ol_cv_pthread_create=yes
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11852 ol_cv_pthread_create=no
11859 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11861 if test $ol_cv_pthread_create != no ; then
11862 ol_link_threads=posix
11863 ol_link_pthreads=""
11866 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11867 if test "$ol_link_threads" = no ; then
11869 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11870 echo "configure:11871: checking for pthread link with -kthread" >&5
11871 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11872 echo $ac_n "(cached) $ac_c" 1>&6
11877 LIBS="-kthread $LIBS"
11879 if test "$cross_compiling" = yes; then
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11882 "configure"
11882 #include "confdefs.h"
11883 /* pthread test headers */
11884 #include <pthread.h>
11885 #if HAVE_PTHREADS < 7
11889 #define NULL (void*)0
11892 static void *task(p)
11895 return (void *) (p == NULL);
11900 /* pthread test function */
11901 #ifndef PTHREAD_CREATE_DETACHED
11902 #define PTHREAD_CREATE_DETACHED 1
11906 int detach = PTHREAD_CREATE_DETACHED;
11908 #if HAVE_PTHREADS > 4
11909 /* Final pthreads */
11910 pthread_attr_t attr;
11912 status = pthread_attr_init(&attr);
11913 if( status ) return status;
11915 #if HAVE_PTHREADS < 7
11916 status = pthread_attr_setdetachstate(&attr, &detach);
11917 if( status < 0 ) status = errno;
11919 status = pthread_attr_setdetachstate(&attr, detach);
11921 if( status ) return status;
11922 status = pthread_create( &t, &attr, task, NULL );
11923 #if HAVE_PTHREADS < 7
11924 if( status < 0 ) status = errno;
11926 if( status ) return status;
11928 /* Draft 4 pthreads */
11929 status = pthread_create( &t, pthread_attr_default, task, NULL );
11930 if( status ) return errno;
11932 /* give thread a chance to complete */
11933 /* it should remain joinable and hence detachable */
11936 status = pthread_detach( &t );
11937 if( status ) return errno;
11940 #ifdef HAVE_LINUX_THREADS
11941 pthread_kill_other_threads_np();
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11950 ol_cv_pthread_kthread=yes
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11955 ol_cv_pthread_kthread=no
11959 cat > conftest.$ac_ext <<EOF
11960 #line 11961 "configure"
11961 #include "confdefs.h"
11962 /* pthread test headers */
11963 #include <pthread.h>
11964 #if HAVE_PTHREADS < 7
11968 #define NULL (void*)0
11971 static void *task(p)
11974 return (void *) (p == NULL);
11978 int main(argc, argv)
11983 /* pthread test function */
11984 #ifndef PTHREAD_CREATE_DETACHED
11985 #define PTHREAD_CREATE_DETACHED 1
11989 int detach = PTHREAD_CREATE_DETACHED;
11991 #if HAVE_PTHREADS > 4
11992 /* Final pthreads */
11993 pthread_attr_t attr;
11995 status = pthread_attr_init(&attr);
11996 if( status ) return status;
11998 #if HAVE_PTHREADS < 7
11999 status = pthread_attr_setdetachstate(&attr, &detach);
12000 if( status < 0 ) status = errno;
12002 status = pthread_attr_setdetachstate(&attr, detach);
12004 if( status ) return status;
12005 status = pthread_create( &t, &attr, task, NULL );
12006 #if HAVE_PTHREADS < 7
12007 if( status < 0 ) status = errno;
12009 if( status ) return status;
12011 /* Draft 4 pthreads */
12012 status = pthread_create( &t, pthread_attr_default, task, NULL );
12013 if( status ) return errno;
12015 /* give thread a chance to complete */
12016 /* it should remain joinable and hence detachable */
12019 status = pthread_detach( &t );
12020 if( status ) return errno;
12023 #ifdef HAVE_LINUX_THREADS
12024 pthread_kill_other_threads_np();
12032 if { (eval echo configure:12033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12034 ol_cv_pthread_kthread=yes
12036 echo "configure: failed program was:" >&5
12037 cat conftest.$ac_ext >&5
12039 ol_cv_pthread_kthread=no
12050 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12052 if test $ol_cv_pthread_kthread = yes ; then
12053 ol_link_pthreads="-kthread"
12054 ol_link_threads=posix
12058 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12059 if test "$ol_link_threads" = no ; then
12061 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12062 echo "configure:12063: checking for pthread link with -pthread" >&5
12063 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12064 echo $ac_n "(cached) $ac_c" 1>&6
12069 LIBS="-pthread $LIBS"
12071 if test "$cross_compiling" = yes; then
12072 cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 /* pthread test headers */
12076 #include <pthread.h>
12077 #if HAVE_PTHREADS < 7
12081 #define NULL (void*)0
12084 static void *task(p)
12087 return (void *) (p == NULL);
12092 /* pthread test function */
12093 #ifndef PTHREAD_CREATE_DETACHED
12094 #define PTHREAD_CREATE_DETACHED 1
12098 int detach = PTHREAD_CREATE_DETACHED;
12100 #if HAVE_PTHREADS > 4
12101 /* Final pthreads */
12102 pthread_attr_t attr;
12104 status = pthread_attr_init(&attr);
12105 if( status ) return status;
12107 #if HAVE_PTHREADS < 7
12108 status = pthread_attr_setdetachstate(&attr, &detach);
12109 if( status < 0 ) status = errno;
12111 status = pthread_attr_setdetachstate(&attr, detach);
12113 if( status ) return status;
12114 status = pthread_create( &t, &attr, task, NULL );
12115 #if HAVE_PTHREADS < 7
12116 if( status < 0 ) status = errno;
12118 if( status ) return status;
12120 /* Draft 4 pthreads */
12121 status = pthread_create( &t, pthread_attr_default, task, NULL );
12122 if( status ) return errno;
12124 /* give thread a chance to complete */
12125 /* it should remain joinable and hence detachable */
12128 status = pthread_detach( &t );
12129 if( status ) return errno;
12132 #ifdef HAVE_LINUX_THREADS
12133 pthread_kill_other_threads_np();
12140 if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12142 ol_cv_pthread_pthread=yes
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12147 ol_cv_pthread_pthread=no
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 /* pthread test headers */
12155 #include <pthread.h>
12156 #if HAVE_PTHREADS < 7
12160 #define NULL (void*)0
12163 static void *task(p)
12166 return (void *) (p == NULL);
12170 int main(argc, argv)
12175 /* pthread test function */
12176 #ifndef PTHREAD_CREATE_DETACHED
12177 #define PTHREAD_CREATE_DETACHED 1
12181 int detach = PTHREAD_CREATE_DETACHED;
12183 #if HAVE_PTHREADS > 4
12184 /* Final pthreads */
12185 pthread_attr_t attr;
12187 status = pthread_attr_init(&attr);
12188 if( status ) return status;
12190 #if HAVE_PTHREADS < 7
12191 status = pthread_attr_setdetachstate(&attr, &detach);
12192 if( status < 0 ) status = errno;
12194 status = pthread_attr_setdetachstate(&attr, detach);
12196 if( status ) return status;
12197 status = pthread_create( &t, &attr, task, NULL );
12198 #if HAVE_PTHREADS < 7
12199 if( status < 0 ) status = errno;
12201 if( status ) return status;
12203 /* Draft 4 pthreads */
12204 status = pthread_create( &t, pthread_attr_default, task, NULL );
12205 if( status ) return errno;
12207 /* give thread a chance to complete */
12208 /* it should remain joinable and hence detachable */
12211 status = pthread_detach( &t );
12212 if( status ) return errno;
12215 #ifdef HAVE_LINUX_THREADS
12216 pthread_kill_other_threads_np();
12224 if { (eval echo configure:12225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12226 ol_cv_pthread_pthread=yes
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12231 ol_cv_pthread_pthread=no
12242 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12244 if test $ol_cv_pthread_pthread = yes ; then
12245 ol_link_pthreads="-pthread"
12246 ol_link_threads=posix
12250 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12251 if test "$ol_link_threads" = no ; then
12253 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12254 echo "configure:12255: checking for pthread link with -pthreads" >&5
12255 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12261 LIBS="-pthreads $LIBS"
12263 if test "$cross_compiling" = yes; then
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267 /* pthread test headers */
12268 #include <pthread.h>
12269 #if HAVE_PTHREADS < 7
12273 #define NULL (void*)0
12276 static void *task(p)
12279 return (void *) (p == NULL);
12284 /* pthread test function */
12285 #ifndef PTHREAD_CREATE_DETACHED
12286 #define PTHREAD_CREATE_DETACHED 1
12290 int detach = PTHREAD_CREATE_DETACHED;
12292 #if HAVE_PTHREADS > 4
12293 /* Final pthreads */
12294 pthread_attr_t attr;
12296 status = pthread_attr_init(&attr);
12297 if( status ) return status;
12299 #if HAVE_PTHREADS < 7
12300 status = pthread_attr_setdetachstate(&attr, &detach);
12301 if( status < 0 ) status = errno;
12303 status = pthread_attr_setdetachstate(&attr, detach);
12305 if( status ) return status;
12306 status = pthread_create( &t, &attr, task, NULL );
12307 #if HAVE_PTHREADS < 7
12308 if( status < 0 ) status = errno;
12310 if( status ) return status;
12312 /* Draft 4 pthreads */
12313 status = pthread_create( &t, pthread_attr_default, task, NULL );
12314 if( status ) return errno;
12316 /* give thread a chance to complete */
12317 /* it should remain joinable and hence detachable */
12320 status = pthread_detach( &t );
12321 if( status ) return errno;
12324 #ifdef HAVE_LINUX_THREADS
12325 pthread_kill_other_threads_np();
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334 ol_cv_pthread_pthreads=yes
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12339 ol_cv_pthread_pthreads=no
12343 cat > conftest.$ac_ext <<EOF
12344 #line 12345 "configure"
12345 #include "confdefs.h"
12346 /* pthread test headers */
12347 #include <pthread.h>
12348 #if HAVE_PTHREADS < 7
12352 #define NULL (void*)0
12355 static void *task(p)
12358 return (void *) (p == NULL);
12362 int main(argc, argv)
12367 /* pthread test function */
12368 #ifndef PTHREAD_CREATE_DETACHED
12369 #define PTHREAD_CREATE_DETACHED 1
12373 int detach = PTHREAD_CREATE_DETACHED;
12375 #if HAVE_PTHREADS > 4
12376 /* Final pthreads */
12377 pthread_attr_t attr;
12379 status = pthread_attr_init(&attr);
12380 if( status ) return status;
12382 #if HAVE_PTHREADS < 7
12383 status = pthread_attr_setdetachstate(&attr, &detach);
12384 if( status < 0 ) status = errno;
12386 status = pthread_attr_setdetachstate(&attr, detach);
12388 if( status ) return status;
12389 status = pthread_create( &t, &attr, task, NULL );
12390 #if HAVE_PTHREADS < 7
12391 if( status < 0 ) status = errno;
12393 if( status ) return status;
12395 /* Draft 4 pthreads */
12396 status = pthread_create( &t, pthread_attr_default, task, NULL );
12397 if( status ) return errno;
12399 /* give thread a chance to complete */
12400 /* it should remain joinable and hence detachable */
12403 status = pthread_detach( &t );
12404 if( status ) return errno;
12407 #ifdef HAVE_LINUX_THREADS
12408 pthread_kill_other_threads_np();
12416 if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12418 ol_cv_pthread_pthreads=yes
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12423 ol_cv_pthread_pthreads=no
12434 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12436 if test $ol_cv_pthread_pthreads = yes ; then
12437 ol_link_pthreads="-pthreads"
12438 ol_link_threads=posix
12442 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12443 if test "$ol_link_threads" = no ; then
12445 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12446 echo "configure:12447: checking for pthread link with -mthreads" >&5
12447 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12453 LIBS="-mthreads $LIBS"
12455 if test "$cross_compiling" = yes; then
12456 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure"
12458 #include "confdefs.h"
12459 /* pthread test headers */
12460 #include <pthread.h>
12461 #if HAVE_PTHREADS < 7
12465 #define NULL (void*)0
12468 static void *task(p)
12471 return (void *) (p == NULL);
12476 /* pthread test function */
12477 #ifndef PTHREAD_CREATE_DETACHED
12478 #define PTHREAD_CREATE_DETACHED 1
12482 int detach = PTHREAD_CREATE_DETACHED;
12484 #if HAVE_PTHREADS > 4
12485 /* Final pthreads */
12486 pthread_attr_t attr;
12488 status = pthread_attr_init(&attr);
12489 if( status ) return status;
12491 #if HAVE_PTHREADS < 7
12492 status = pthread_attr_setdetachstate(&attr, &detach);
12493 if( status < 0 ) status = errno;
12495 status = pthread_attr_setdetachstate(&attr, detach);
12497 if( status ) return status;
12498 status = pthread_create( &t, &attr, task, NULL );
12499 #if HAVE_PTHREADS < 7
12500 if( status < 0 ) status = errno;
12502 if( status ) return status;
12504 /* Draft 4 pthreads */
12505 status = pthread_create( &t, pthread_attr_default, task, NULL );
12506 if( status ) return errno;
12508 /* give thread a chance to complete */
12509 /* it should remain joinable and hence detachable */
12512 status = pthread_detach( &t );
12513 if( status ) return errno;
12516 #ifdef HAVE_LINUX_THREADS
12517 pthread_kill_other_threads_np();
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12526 ol_cv_pthread_mthreads=yes
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 ol_cv_pthread_mthreads=no
12535 cat > conftest.$ac_ext <<EOF
12536 #line 12537 "configure"
12537 #include "confdefs.h"
12538 /* pthread test headers */
12539 #include <pthread.h>
12540 #if HAVE_PTHREADS < 7
12544 #define NULL (void*)0
12547 static void *task(p)
12550 return (void *) (p == NULL);
12554 int main(argc, argv)
12559 /* pthread test function */
12560 #ifndef PTHREAD_CREATE_DETACHED
12561 #define PTHREAD_CREATE_DETACHED 1
12565 int detach = PTHREAD_CREATE_DETACHED;
12567 #if HAVE_PTHREADS > 4
12568 /* Final pthreads */
12569 pthread_attr_t attr;
12571 status = pthread_attr_init(&attr);
12572 if( status ) return status;
12574 #if HAVE_PTHREADS < 7
12575 status = pthread_attr_setdetachstate(&attr, &detach);
12576 if( status < 0 ) status = errno;
12578 status = pthread_attr_setdetachstate(&attr, detach);
12580 if( status ) return status;
12581 status = pthread_create( &t, &attr, task, NULL );
12582 #if HAVE_PTHREADS < 7
12583 if( status < 0 ) status = errno;
12585 if( status ) return status;
12587 /* Draft 4 pthreads */
12588 status = pthread_create( &t, pthread_attr_default, task, NULL );
12589 if( status ) return errno;
12591 /* give thread a chance to complete */
12592 /* it should remain joinable and hence detachable */
12595 status = pthread_detach( &t );
12596 if( status ) return errno;
12599 #ifdef HAVE_LINUX_THREADS
12600 pthread_kill_other_threads_np();
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12610 ol_cv_pthread_mthreads=yes
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 ol_cv_pthread_mthreads=no
12626 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12628 if test $ol_cv_pthread_mthreads = yes ; then
12629 ol_link_pthreads="-mthreads"
12630 ol_link_threads=posix
12634 # Pthread try link: -thread (ol_cv_pthread_thread)
12635 if test "$ol_link_threads" = no ; then
12637 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12638 echo "configure:12639: checking for pthread link with -thread" >&5
12639 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12640 echo $ac_n "(cached) $ac_c" 1>&6
12645 LIBS="-thread $LIBS"
12647 if test "$cross_compiling" = yes; then
12648 cat > conftest.$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* pthread test headers */
12652 #include <pthread.h>
12653 #if HAVE_PTHREADS < 7
12657 #define NULL (void*)0
12660 static void *task(p)
12663 return (void *) (p == NULL);
12668 /* pthread test function */
12669 #ifndef PTHREAD_CREATE_DETACHED
12670 #define PTHREAD_CREATE_DETACHED 1
12674 int detach = PTHREAD_CREATE_DETACHED;
12676 #if HAVE_PTHREADS > 4
12677 /* Final pthreads */
12678 pthread_attr_t attr;
12680 status = pthread_attr_init(&attr);
12681 if( status ) return status;
12683 #if HAVE_PTHREADS < 7
12684 status = pthread_attr_setdetachstate(&attr, &detach);
12685 if( status < 0 ) status = errno;
12687 status = pthread_attr_setdetachstate(&attr, detach);
12689 if( status ) return status;
12690 status = pthread_create( &t, &attr, task, NULL );
12691 #if HAVE_PTHREADS < 7
12692 if( status < 0 ) status = errno;
12694 if( status ) return status;
12696 /* Draft 4 pthreads */
12697 status = pthread_create( &t, pthread_attr_default, task, NULL );
12698 if( status ) return errno;
12700 /* give thread a chance to complete */
12701 /* it should remain joinable and hence detachable */
12704 status = pthread_detach( &t );
12705 if( status ) return errno;
12708 #ifdef HAVE_LINUX_THREADS
12709 pthread_kill_other_threads_np();
12716 if { (eval echo configure:12717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12718 ol_cv_pthread_thread=yes
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 ol_cv_pthread_thread=no
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 /* pthread test headers */
12731 #include <pthread.h>
12732 #if HAVE_PTHREADS < 7
12736 #define NULL (void*)0
12739 static void *task(p)
12742 return (void *) (p == NULL);
12746 int main(argc, argv)
12751 /* pthread test function */
12752 #ifndef PTHREAD_CREATE_DETACHED
12753 #define PTHREAD_CREATE_DETACHED 1
12757 int detach = PTHREAD_CREATE_DETACHED;
12759 #if HAVE_PTHREADS > 4
12760 /* Final pthreads */
12761 pthread_attr_t attr;
12763 status = pthread_attr_init(&attr);
12764 if( status ) return status;
12766 #if HAVE_PTHREADS < 7
12767 status = pthread_attr_setdetachstate(&attr, &detach);
12768 if( status < 0 ) status = errno;
12770 status = pthread_attr_setdetachstate(&attr, detach);
12772 if( status ) return status;
12773 status = pthread_create( &t, &attr, task, NULL );
12774 #if HAVE_PTHREADS < 7
12775 if( status < 0 ) status = errno;
12777 if( status ) return status;
12779 /* Draft 4 pthreads */
12780 status = pthread_create( &t, pthread_attr_default, task, NULL );
12781 if( status ) return errno;
12783 /* give thread a chance to complete */
12784 /* it should remain joinable and hence detachable */
12787 status = pthread_detach( &t );
12788 if( status ) return errno;
12791 #ifdef HAVE_LINUX_THREADS
12792 pthread_kill_other_threads_np();
12800 if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12802 ol_cv_pthread_thread=yes
12804 echo "configure: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12807 ol_cv_pthread_thread=no
12818 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12820 if test $ol_cv_pthread_thread = yes ; then
12821 ol_link_pthreads="-thread"
12822 ol_link_threads=posix
12827 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12828 if test "$ol_link_threads" = no ; then
12829 # try -lpthread -lmach -lexc -lc_r
12830 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12831 echo "configure:12832: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12832 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12838 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12840 if test "$cross_compiling" = yes; then
12841 cat > conftest.$ac_ext <<EOF
12842 #line 12843 "configure"
12843 #include "confdefs.h"
12844 /* pthread test headers */
12845 #include <pthread.h>
12846 #if HAVE_PTHREADS < 7
12850 #define NULL (void*)0
12853 static void *task(p)
12856 return (void *) (p == NULL);
12861 /* pthread test function */
12862 #ifndef PTHREAD_CREATE_DETACHED
12863 #define PTHREAD_CREATE_DETACHED 1
12867 int detach = PTHREAD_CREATE_DETACHED;
12869 #if HAVE_PTHREADS > 4
12870 /* Final pthreads */
12871 pthread_attr_t attr;
12873 status = pthread_attr_init(&attr);
12874 if( status ) return status;
12876 #if HAVE_PTHREADS < 7
12877 status = pthread_attr_setdetachstate(&attr, &detach);
12878 if( status < 0 ) status = errno;
12880 status = pthread_attr_setdetachstate(&attr, detach);
12882 if( status ) return status;
12883 status = pthread_create( &t, &attr, task, NULL );
12884 #if HAVE_PTHREADS < 7
12885 if( status < 0 ) status = errno;
12887 if( status ) return status;
12889 /* Draft 4 pthreads */
12890 status = pthread_create( &t, pthread_attr_default, task, NULL );
12891 if( status ) return errno;
12893 /* give thread a chance to complete */
12894 /* it should remain joinable and hence detachable */
12897 status = pthread_detach( &t );
12898 if( status ) return errno;
12901 #ifdef HAVE_LINUX_THREADS
12902 pthread_kill_other_threads_np();
12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12911 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12923 /* pthread test headers */
12924 #include <pthread.h>
12925 #if HAVE_PTHREADS < 7
12929 #define NULL (void*)0
12932 static void *task(p)
12935 return (void *) (p == NULL);
12939 int main(argc, argv)
12944 /* pthread test function */
12945 #ifndef PTHREAD_CREATE_DETACHED
12946 #define PTHREAD_CREATE_DETACHED 1
12950 int detach = PTHREAD_CREATE_DETACHED;
12952 #if HAVE_PTHREADS > 4
12953 /* Final pthreads */
12954 pthread_attr_t attr;
12956 status = pthread_attr_init(&attr);
12957 if( status ) return status;
12959 #if HAVE_PTHREADS < 7
12960 status = pthread_attr_setdetachstate(&attr, &detach);
12961 if( status < 0 ) status = errno;
12963 status = pthread_attr_setdetachstate(&attr, detach);
12965 if( status ) return status;
12966 status = pthread_create( &t, &attr, task, NULL );
12967 #if HAVE_PTHREADS < 7
12968 if( status < 0 ) status = errno;
12970 if( status ) return status;
12972 /* Draft 4 pthreads */
12973 status = pthread_create( &t, pthread_attr_default, task, NULL );
12974 if( status ) return errno;
12976 /* give thread a chance to complete */
12977 /* it should remain joinable and hence detachable */
12980 status = pthread_detach( &t );
12981 if( status ) return errno;
12984 #ifdef HAVE_LINUX_THREADS
12985 pthread_kill_other_threads_np();
12993 if { (eval echo configure:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12995 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12997 echo "configure: failed program was:" >&5
12998 cat conftest.$ac_ext >&5
13000 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13011 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13013 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13014 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13015 ol_link_threads=posix
13019 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13020 if test "$ol_link_threads" = no ; then
13021 # try -lpthread -lmach -lexc
13022 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13023 echo "configure:13024: checking for pthread link with -lpthread -lmach -lexc" >&5
13024 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13025 echo $ac_n "(cached) $ac_c" 1>&6
13030 LIBS="-lpthread -lmach -lexc $LIBS"
13032 if test "$cross_compiling" = yes; then
13033 cat > conftest.$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13036 /* pthread test headers */
13037 #include <pthread.h>
13038 #if HAVE_PTHREADS < 7
13042 #define NULL (void*)0
13045 static void *task(p)
13048 return (void *) (p == NULL);
13053 /* pthread test function */
13054 #ifndef PTHREAD_CREATE_DETACHED
13055 #define PTHREAD_CREATE_DETACHED 1
13059 int detach = PTHREAD_CREATE_DETACHED;
13061 #if HAVE_PTHREADS > 4
13062 /* Final pthreads */
13063 pthread_attr_t attr;
13065 status = pthread_attr_init(&attr);
13066 if( status ) return status;
13068 #if HAVE_PTHREADS < 7
13069 status = pthread_attr_setdetachstate(&attr, &detach);
13070 if( status < 0 ) status = errno;
13072 status = pthread_attr_setdetachstate(&attr, detach);
13074 if( status ) return status;
13075 status = pthread_create( &t, &attr, task, NULL );
13076 #if HAVE_PTHREADS < 7
13077 if( status < 0 ) status = errno;
13079 if( status ) return status;
13081 /* Draft 4 pthreads */
13082 status = pthread_create( &t, pthread_attr_default, task, NULL );
13083 if( status ) return errno;
13085 /* give thread a chance to complete */
13086 /* it should remain joinable and hence detachable */
13089 status = pthread_detach( &t );
13090 if( status ) return errno;
13093 #ifdef HAVE_LINUX_THREADS
13094 pthread_kill_other_threads_np();
13101 if { (eval echo configure:13102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13103 ol_cv_pthread_lpthread_lmach_lexc=yes
13105 echo "configure: failed program was:" >&5
13106 cat conftest.$ac_ext >&5
13108 ol_cv_pthread_lpthread_lmach_lexc=no
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 /* pthread test headers */
13116 #include <pthread.h>
13117 #if HAVE_PTHREADS < 7
13121 #define NULL (void*)0
13124 static void *task(p)
13127 return (void *) (p == NULL);
13131 int main(argc, argv)
13136 /* pthread test function */
13137 #ifndef PTHREAD_CREATE_DETACHED
13138 #define PTHREAD_CREATE_DETACHED 1
13142 int detach = PTHREAD_CREATE_DETACHED;
13144 #if HAVE_PTHREADS > 4
13145 /* Final pthreads */
13146 pthread_attr_t attr;
13148 status = pthread_attr_init(&attr);
13149 if( status ) return status;
13151 #if HAVE_PTHREADS < 7
13152 status = pthread_attr_setdetachstate(&attr, &detach);
13153 if( status < 0 ) status = errno;
13155 status = pthread_attr_setdetachstate(&attr, detach);
13157 if( status ) return status;
13158 status = pthread_create( &t, &attr, task, NULL );
13159 #if HAVE_PTHREADS < 7
13160 if( status < 0 ) status = errno;
13162 if( status ) return status;
13164 /* Draft 4 pthreads */
13165 status = pthread_create( &t, pthread_attr_default, task, NULL );
13166 if( status ) return errno;
13168 /* give thread a chance to complete */
13169 /* it should remain joinable and hence detachable */
13172 status = pthread_detach( &t );
13173 if( status ) return errno;
13176 #ifdef HAVE_LINUX_THREADS
13177 pthread_kill_other_threads_np();
13185 if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13187 ol_cv_pthread_lpthread_lmach_lexc=yes
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13192 ol_cv_pthread_lpthread_lmach_lexc=no
13203 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13205 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13206 ol_link_pthreads="-lpthread -lmach -lexc"
13207 ol_link_threads=posix
13212 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13213 if test "$ol_link_threads" = no ; then
13214 # try -lpthread -Wl,-woff,85
13215 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13216 echo "configure:13217: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13217 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13218 echo $ac_n "(cached) $ac_c" 1>&6
13223 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13225 if test "$cross_compiling" = yes; then
13226 cat > conftest.$ac_ext <<EOF
13227 #line 13228 "configure"
13228 #include "confdefs.h"
13229 /* pthread test headers */
13230 #include <pthread.h>
13231 #if HAVE_PTHREADS < 7
13235 #define NULL (void*)0
13238 static void *task(p)
13241 return (void *) (p == NULL);
13246 /* pthread test function */
13247 #ifndef PTHREAD_CREATE_DETACHED
13248 #define PTHREAD_CREATE_DETACHED 1
13252 int detach = PTHREAD_CREATE_DETACHED;
13254 #if HAVE_PTHREADS > 4
13255 /* Final pthreads */
13256 pthread_attr_t attr;
13258 status = pthread_attr_init(&attr);
13259 if( status ) return status;
13261 #if HAVE_PTHREADS < 7
13262 status = pthread_attr_setdetachstate(&attr, &detach);
13263 if( status < 0 ) status = errno;
13265 status = pthread_attr_setdetachstate(&attr, detach);
13267 if( status ) return status;
13268 status = pthread_create( &t, &attr, task, NULL );
13269 #if HAVE_PTHREADS < 7
13270 if( status < 0 ) status = errno;
13272 if( status ) return status;
13274 /* Draft 4 pthreads */
13275 status = pthread_create( &t, pthread_attr_default, task, NULL );
13276 if( status ) return errno;
13278 /* give thread a chance to complete */
13279 /* it should remain joinable and hence detachable */
13282 status = pthread_detach( &t );
13283 if( status ) return errno;
13286 #ifdef HAVE_LINUX_THREADS
13287 pthread_kill_other_threads_np();
13294 if { (eval echo configure:13295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13296 ol_cv_pthread_lib_lpthread_woff=yes
13298 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5
13301 ol_cv_pthread_lib_lpthread_woff=no
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13308 /* pthread test headers */
13309 #include <pthread.h>
13310 #if HAVE_PTHREADS < 7
13314 #define NULL (void*)0
13317 static void *task(p)
13320 return (void *) (p == NULL);
13324 int main(argc, argv)
13329 /* pthread test function */
13330 #ifndef PTHREAD_CREATE_DETACHED
13331 #define PTHREAD_CREATE_DETACHED 1
13335 int detach = PTHREAD_CREATE_DETACHED;
13337 #if HAVE_PTHREADS > 4
13338 /* Final pthreads */
13339 pthread_attr_t attr;
13341 status = pthread_attr_init(&attr);
13342 if( status ) return status;
13344 #if HAVE_PTHREADS < 7
13345 status = pthread_attr_setdetachstate(&attr, &detach);
13346 if( status < 0 ) status = errno;
13348 status = pthread_attr_setdetachstate(&attr, detach);
13350 if( status ) return status;
13351 status = pthread_create( &t, &attr, task, NULL );
13352 #if HAVE_PTHREADS < 7
13353 if( status < 0 ) status = errno;
13355 if( status ) return status;
13357 /* Draft 4 pthreads */
13358 status = pthread_create( &t, pthread_attr_default, task, NULL );
13359 if( status ) return errno;
13361 /* give thread a chance to complete */
13362 /* it should remain joinable and hence detachable */
13365 status = pthread_detach( &t );
13366 if( status ) return errno;
13369 #ifdef HAVE_LINUX_THREADS
13370 pthread_kill_other_threads_np();
13378 if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13380 ol_cv_pthread_lib_lpthread_woff=yes
13382 echo "configure: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13385 ol_cv_pthread_lib_lpthread_woff=no
13396 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13398 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13399 ol_link_pthreads="-lpthread -Wl,-woff,85"
13400 ol_link_threads=posix
13405 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13406 if test "$ol_link_threads" = no ; then
13408 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13409 echo "configure:13410: checking for pthread link with -lpthread" >&5
13410 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
13416 LIBS="-lpthread $LIBS"
13418 if test "$cross_compiling" = yes; then
13419 cat > conftest.$ac_ext <<EOF
13420 #line 13421 "configure"
13421 #include "confdefs.h"
13422 /* pthread test headers */
13423 #include <pthread.h>
13424 #if HAVE_PTHREADS < 7
13428 #define NULL (void*)0
13431 static void *task(p)
13434 return (void *) (p == NULL);
13439 /* pthread test function */
13440 #ifndef PTHREAD_CREATE_DETACHED
13441 #define PTHREAD_CREATE_DETACHED 1
13445 int detach = PTHREAD_CREATE_DETACHED;
13447 #if HAVE_PTHREADS > 4
13448 /* Final pthreads */
13449 pthread_attr_t attr;
13451 status = pthread_attr_init(&attr);
13452 if( status ) return status;
13454 #if HAVE_PTHREADS < 7
13455 status = pthread_attr_setdetachstate(&attr, &detach);
13456 if( status < 0 ) status = errno;
13458 status = pthread_attr_setdetachstate(&attr, detach);
13460 if( status ) return status;
13461 status = pthread_create( &t, &attr, task, NULL );
13462 #if HAVE_PTHREADS < 7
13463 if( status < 0 ) status = errno;
13465 if( status ) return status;
13467 /* Draft 4 pthreads */
13468 status = pthread_create( &t, pthread_attr_default, task, NULL );
13469 if( status ) return errno;
13471 /* give thread a chance to complete */
13472 /* it should remain joinable and hence detachable */
13475 status = pthread_detach( &t );
13476 if( status ) return errno;
13479 #ifdef HAVE_LINUX_THREADS
13480 pthread_kill_other_threads_np();
13487 if { (eval echo configure:13488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13489 ol_cv_pthread_lpthread=yes
13491 echo "configure: failed program was:" >&5
13492 cat conftest.$ac_ext >&5
13494 ol_cv_pthread_lpthread=no
13498 cat > conftest.$ac_ext <<EOF
13499 #line 13500 "configure"
13500 #include "confdefs.h"
13501 /* pthread test headers */
13502 #include <pthread.h>
13503 #if HAVE_PTHREADS < 7
13507 #define NULL (void*)0
13510 static void *task(p)
13513 return (void *) (p == NULL);
13517 int main(argc, argv)
13522 /* pthread test function */
13523 #ifndef PTHREAD_CREATE_DETACHED
13524 #define PTHREAD_CREATE_DETACHED 1
13528 int detach = PTHREAD_CREATE_DETACHED;
13530 #if HAVE_PTHREADS > 4
13531 /* Final pthreads */
13532 pthread_attr_t attr;
13534 status = pthread_attr_init(&attr);
13535 if( status ) return status;
13537 #if HAVE_PTHREADS < 7
13538 status = pthread_attr_setdetachstate(&attr, &detach);
13539 if( status < 0 ) status = errno;
13541 status = pthread_attr_setdetachstate(&attr, detach);
13543 if( status ) return status;
13544 status = pthread_create( &t, &attr, task, NULL );
13545 #if HAVE_PTHREADS < 7
13546 if( status < 0 ) status = errno;
13548 if( status ) return status;
13550 /* Draft 4 pthreads */
13551 status = pthread_create( &t, pthread_attr_default, task, NULL );
13552 if( status ) return errno;
13554 /* give thread a chance to complete */
13555 /* it should remain joinable and hence detachable */
13558 status = pthread_detach( &t );
13559 if( status ) return errno;
13562 #ifdef HAVE_LINUX_THREADS
13563 pthread_kill_other_threads_np();
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13573 ol_cv_pthread_lpthread=yes
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13578 ol_cv_pthread_lpthread=no
13589 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13591 if test $ol_cv_pthread_lpthread = yes ; then
13592 ol_link_pthreads="-lpthread"
13593 ol_link_threads=posix
13597 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13598 if test "$ol_link_threads" = no ; then
13600 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13601 echo "configure:13602: checking for pthread link with -lc_r" >&5
13602 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13603 echo $ac_n "(cached) $ac_c" 1>&6
13610 if test "$cross_compiling" = yes; then
13611 cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 /* pthread test headers */
13615 #include <pthread.h>
13616 #if HAVE_PTHREADS < 7
13620 #define NULL (void*)0
13623 static void *task(p)
13626 return (void *) (p == NULL);
13631 /* pthread test function */
13632 #ifndef PTHREAD_CREATE_DETACHED
13633 #define PTHREAD_CREATE_DETACHED 1
13637 int detach = PTHREAD_CREATE_DETACHED;
13639 #if HAVE_PTHREADS > 4
13640 /* Final pthreads */
13641 pthread_attr_t attr;
13643 status = pthread_attr_init(&attr);
13644 if( status ) return status;
13646 #if HAVE_PTHREADS < 7
13647 status = pthread_attr_setdetachstate(&attr, &detach);
13648 if( status < 0 ) status = errno;
13650 status = pthread_attr_setdetachstate(&attr, detach);
13652 if( status ) return status;
13653 status = pthread_create( &t, &attr, task, NULL );
13654 #if HAVE_PTHREADS < 7
13655 if( status < 0 ) status = errno;
13657 if( status ) return status;
13659 /* Draft 4 pthreads */
13660 status = pthread_create( &t, pthread_attr_default, task, NULL );
13661 if( status ) return errno;
13663 /* give thread a chance to complete */
13664 /* it should remain joinable and hence detachable */
13667 status = pthread_detach( &t );
13668 if( status ) return errno;
13671 #ifdef HAVE_LINUX_THREADS
13672 pthread_kill_other_threads_np();
13679 if { (eval echo configure:13680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13681 ol_cv_pthread_lc_r=yes
13683 echo "configure: failed program was:" >&5
13684 cat conftest.$ac_ext >&5
13686 ol_cv_pthread_lc_r=no
13690 cat > conftest.$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13693 /* pthread test headers */
13694 #include <pthread.h>
13695 #if HAVE_PTHREADS < 7
13699 #define NULL (void*)0
13702 static void *task(p)
13705 return (void *) (p == NULL);
13709 int main(argc, argv)
13714 /* pthread test function */
13715 #ifndef PTHREAD_CREATE_DETACHED
13716 #define PTHREAD_CREATE_DETACHED 1
13720 int detach = PTHREAD_CREATE_DETACHED;
13722 #if HAVE_PTHREADS > 4
13723 /* Final pthreads */
13724 pthread_attr_t attr;
13726 status = pthread_attr_init(&attr);
13727 if( status ) return status;
13729 #if HAVE_PTHREADS < 7
13730 status = pthread_attr_setdetachstate(&attr, &detach);
13731 if( status < 0 ) status = errno;
13733 status = pthread_attr_setdetachstate(&attr, detach);
13735 if( status ) return status;
13736 status = pthread_create( &t, &attr, task, NULL );
13737 #if HAVE_PTHREADS < 7
13738 if( status < 0 ) status = errno;
13740 if( status ) return status;
13742 /* Draft 4 pthreads */
13743 status = pthread_create( &t, pthread_attr_default, task, NULL );
13744 if( status ) return errno;
13746 /* give thread a chance to complete */
13747 /* it should remain joinable and hence detachable */
13750 status = pthread_detach( &t );
13751 if( status ) return errno;
13754 #ifdef HAVE_LINUX_THREADS
13755 pthread_kill_other_threads_np();
13763 if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13765 ol_cv_pthread_lc_r=yes
13767 echo "configure: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13770 ol_cv_pthread_lc_r=no
13781 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13783 if test $ol_cv_pthread_lc_r = yes ; then
13784 ol_link_pthreads="-lc_r"
13785 ol_link_threads=posix
13790 # Pthread try link: -threads (ol_cv_pthread_threads)
13791 if test "$ol_link_threads" = no ; then
13793 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13794 echo "configure:13795: checking for pthread link with -threads" >&5
13795 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13796 echo $ac_n "(cached) $ac_c" 1>&6
13801 LIBS="-threads $LIBS"
13803 if test "$cross_compiling" = yes; then
13804 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure"
13806 #include "confdefs.h"
13807 /* pthread test headers */
13808 #include <pthread.h>
13809 #if HAVE_PTHREADS < 7
13813 #define NULL (void*)0
13816 static void *task(p)
13819 return (void *) (p == NULL);
13824 /* pthread test function */
13825 #ifndef PTHREAD_CREATE_DETACHED
13826 #define PTHREAD_CREATE_DETACHED 1
13830 int detach = PTHREAD_CREATE_DETACHED;
13832 #if HAVE_PTHREADS > 4
13833 /* Final pthreads */
13834 pthread_attr_t attr;
13836 status = pthread_attr_init(&attr);
13837 if( status ) return status;
13839 #if HAVE_PTHREADS < 7
13840 status = pthread_attr_setdetachstate(&attr, &detach);
13841 if( status < 0 ) status = errno;
13843 status = pthread_attr_setdetachstate(&attr, detach);
13845 if( status ) return status;
13846 status = pthread_create( &t, &attr, task, NULL );
13847 #if HAVE_PTHREADS < 7
13848 if( status < 0 ) status = errno;
13850 if( status ) return status;
13852 /* Draft 4 pthreads */
13853 status = pthread_create( &t, pthread_attr_default, task, NULL );
13854 if( status ) return errno;
13856 /* give thread a chance to complete */
13857 /* it should remain joinable and hence detachable */
13860 status = pthread_detach( &t );
13861 if( status ) return errno;
13864 #ifdef HAVE_LINUX_THREADS
13865 pthread_kill_other_threads_np();
13872 if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13874 ol_cv_pthread_threads=yes
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13879 ol_cv_pthread_threads=no
13883 cat > conftest.$ac_ext <<EOF
13884 #line 13885 "configure"
13885 #include "confdefs.h"
13886 /* pthread test headers */
13887 #include <pthread.h>
13888 #if HAVE_PTHREADS < 7
13892 #define NULL (void*)0
13895 static void *task(p)
13898 return (void *) (p == NULL);
13902 int main(argc, argv)
13907 /* pthread test function */
13908 #ifndef PTHREAD_CREATE_DETACHED
13909 #define PTHREAD_CREATE_DETACHED 1
13913 int detach = PTHREAD_CREATE_DETACHED;
13915 #if HAVE_PTHREADS > 4
13916 /* Final pthreads */
13917 pthread_attr_t attr;
13919 status = pthread_attr_init(&attr);
13920 if( status ) return status;
13922 #if HAVE_PTHREADS < 7
13923 status = pthread_attr_setdetachstate(&attr, &detach);
13924 if( status < 0 ) status = errno;
13926 status = pthread_attr_setdetachstate(&attr, detach);
13928 if( status ) return status;
13929 status = pthread_create( &t, &attr, task, NULL );
13930 #if HAVE_PTHREADS < 7
13931 if( status < 0 ) status = errno;
13933 if( status ) return status;
13935 /* Draft 4 pthreads */
13936 status = pthread_create( &t, pthread_attr_default, task, NULL );
13937 if( status ) return errno;
13939 /* give thread a chance to complete */
13940 /* it should remain joinable and hence detachable */
13943 status = pthread_detach( &t );
13944 if( status ) return errno;
13947 #ifdef HAVE_LINUX_THREADS
13948 pthread_kill_other_threads_np();
13956 if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13958 ol_cv_pthread_threads=yes
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13963 ol_cv_pthread_threads=no
13974 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13976 if test $ol_cv_pthread_threads = yes ; then
13977 ol_link_pthreads="-threads"
13978 ol_link_threads=posix
13983 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13984 if test "$ol_link_threads" = no ; then
13985 # try -lpthreads -lmach -lexc -lc_r
13986 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13987 echo "configure:13988: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13988 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13989 echo $ac_n "(cached) $ac_c" 1>&6
13994 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13996 if test "$cross_compiling" = yes; then
13997 cat > conftest.$ac_ext <<EOF
13998 #line 13999 "configure"
13999 #include "confdefs.h"
14000 /* pthread test headers */
14001 #include <pthread.h>
14002 #if HAVE_PTHREADS < 7
14006 #define NULL (void*)0
14009 static void *task(p)
14012 return (void *) (p == NULL);
14017 /* pthread test function */
14018 #ifndef PTHREAD_CREATE_DETACHED
14019 #define PTHREAD_CREATE_DETACHED 1
14023 int detach = PTHREAD_CREATE_DETACHED;
14025 #if HAVE_PTHREADS > 4
14026 /* Final pthreads */
14027 pthread_attr_t attr;
14029 status = pthread_attr_init(&attr);
14030 if( status ) return status;
14032 #if HAVE_PTHREADS < 7
14033 status = pthread_attr_setdetachstate(&attr, &detach);
14034 if( status < 0 ) status = errno;
14036 status = pthread_attr_setdetachstate(&attr, detach);
14038 if( status ) return status;
14039 status = pthread_create( &t, &attr, task, NULL );
14040 #if HAVE_PTHREADS < 7
14041 if( status < 0 ) status = errno;
14043 if( status ) return status;
14045 /* Draft 4 pthreads */
14046 status = pthread_create( &t, pthread_attr_default, task, NULL );
14047 if( status ) return errno;
14049 /* give thread a chance to complete */
14050 /* it should remain joinable and hence detachable */
14053 status = pthread_detach( &t );
14054 if( status ) return errno;
14057 #ifdef HAVE_LINUX_THREADS
14058 pthread_kill_other_threads_np();
14065 if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14067 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14072 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14076 cat > conftest.$ac_ext <<EOF
14077 #line 14078 "configure"
14078 #include "confdefs.h"
14079 /* pthread test headers */
14080 #include <pthread.h>
14081 #if HAVE_PTHREADS < 7
14085 #define NULL (void*)0
14088 static void *task(p)
14091 return (void *) (p == NULL);
14095 int main(argc, argv)
14100 /* pthread test function */
14101 #ifndef PTHREAD_CREATE_DETACHED
14102 #define PTHREAD_CREATE_DETACHED 1
14106 int detach = PTHREAD_CREATE_DETACHED;
14108 #if HAVE_PTHREADS > 4
14109 /* Final pthreads */
14110 pthread_attr_t attr;
14112 status = pthread_attr_init(&attr);
14113 if( status ) return status;
14115 #if HAVE_PTHREADS < 7
14116 status = pthread_attr_setdetachstate(&attr, &detach);
14117 if( status < 0 ) status = errno;
14119 status = pthread_attr_setdetachstate(&attr, detach);
14121 if( status ) return status;
14122 status = pthread_create( &t, &attr, task, NULL );
14123 #if HAVE_PTHREADS < 7
14124 if( status < 0 ) status = errno;
14126 if( status ) return status;
14128 /* Draft 4 pthreads */
14129 status = pthread_create( &t, pthread_attr_default, task, NULL );
14130 if( status ) return errno;
14132 /* give thread a chance to complete */
14133 /* it should remain joinable and hence detachable */
14136 status = pthread_detach( &t );
14137 if( status ) return errno;
14140 #ifdef HAVE_LINUX_THREADS
14141 pthread_kill_other_threads_np();
14149 if { (eval echo configure:14150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14151 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14153 echo "configure: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14156 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14167 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14169 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14170 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14171 ol_link_threads=posix
14175 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14176 if test "$ol_link_threads" = no ; then
14177 # try -lpthreads -lmach -lexc
14178 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14179 echo "configure:14180: checking for pthread link with -lpthreads -lmach -lexc" >&5
14180 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14181 echo $ac_n "(cached) $ac_c" 1>&6
14186 LIBS="-lpthreads -lmach -lexc $LIBS"
14188 if test "$cross_compiling" = yes; then
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* pthread test headers */
14193 #include <pthread.h>
14194 #if HAVE_PTHREADS < 7
14198 #define NULL (void*)0
14201 static void *task(p)
14204 return (void *) (p == NULL);
14209 /* pthread test function */
14210 #ifndef PTHREAD_CREATE_DETACHED
14211 #define PTHREAD_CREATE_DETACHED 1
14215 int detach = PTHREAD_CREATE_DETACHED;
14217 #if HAVE_PTHREADS > 4
14218 /* Final pthreads */
14219 pthread_attr_t attr;
14221 status = pthread_attr_init(&attr);
14222 if( status ) return status;
14224 #if HAVE_PTHREADS < 7
14225 status = pthread_attr_setdetachstate(&attr, &detach);
14226 if( status < 0 ) status = errno;
14228 status = pthread_attr_setdetachstate(&attr, detach);
14230 if( status ) return status;
14231 status = pthread_create( &t, &attr, task, NULL );
14232 #if HAVE_PTHREADS < 7
14233 if( status < 0 ) status = errno;
14235 if( status ) return status;
14237 /* Draft 4 pthreads */
14238 status = pthread_create( &t, pthread_attr_default, task, NULL );
14239 if( status ) return errno;
14241 /* give thread a chance to complete */
14242 /* it should remain joinable and hence detachable */
14245 status = pthread_detach( &t );
14246 if( status ) return errno;
14249 #ifdef HAVE_LINUX_THREADS
14250 pthread_kill_other_threads_np();
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14259 ol_cv_pthread_lpthreads_lmach_lexc=yes
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14264 ol_cv_pthread_lpthreads_lmach_lexc=no
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 /* pthread test headers */
14272 #include <pthread.h>
14273 #if HAVE_PTHREADS < 7
14277 #define NULL (void*)0
14280 static void *task(p)
14283 return (void *) (p == NULL);
14287 int main(argc, argv)
14292 /* pthread test function */
14293 #ifndef PTHREAD_CREATE_DETACHED
14294 #define PTHREAD_CREATE_DETACHED 1
14298 int detach = PTHREAD_CREATE_DETACHED;
14300 #if HAVE_PTHREADS > 4
14301 /* Final pthreads */
14302 pthread_attr_t attr;
14304 status = pthread_attr_init(&attr);
14305 if( status ) return status;
14307 #if HAVE_PTHREADS < 7
14308 status = pthread_attr_setdetachstate(&attr, &detach);
14309 if( status < 0 ) status = errno;
14311 status = pthread_attr_setdetachstate(&attr, detach);
14313 if( status ) return status;
14314 status = pthread_create( &t, &attr, task, NULL );
14315 #if HAVE_PTHREADS < 7
14316 if( status < 0 ) status = errno;
14318 if( status ) return status;
14320 /* Draft 4 pthreads */
14321 status = pthread_create( &t, pthread_attr_default, task, NULL );
14322 if( status ) return errno;
14324 /* give thread a chance to complete */
14325 /* it should remain joinable and hence detachable */
14328 status = pthread_detach( &t );
14329 if( status ) return errno;
14332 #ifdef HAVE_LINUX_THREADS
14333 pthread_kill_other_threads_np();
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14343 ol_cv_pthread_lpthreads_lmach_lexc=yes
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14348 ol_cv_pthread_lpthreads_lmach_lexc=no
14359 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14361 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14362 ol_link_pthreads="-lpthreads -lmach -lexc"
14363 ol_link_threads=posix
14367 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14368 if test "$ol_link_threads" = no ; then
14369 # try -lpthreads -lexc
14370 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14371 echo "configure:14372: checking for pthread link with -lpthreads -lexc" >&5
14372 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14373 echo $ac_n "(cached) $ac_c" 1>&6
14378 LIBS="-lpthreads -lexc $LIBS"
14380 if test "$cross_compiling" = yes; then
14381 cat > conftest.$ac_ext <<EOF
14382 #line 14383 "configure"
14383 #include "confdefs.h"
14384 /* pthread test headers */
14385 #include <pthread.h>
14386 #if HAVE_PTHREADS < 7
14390 #define NULL (void*)0
14393 static void *task(p)
14396 return (void *) (p == NULL);
14401 /* pthread test function */
14402 #ifndef PTHREAD_CREATE_DETACHED
14403 #define PTHREAD_CREATE_DETACHED 1
14407 int detach = PTHREAD_CREATE_DETACHED;
14409 #if HAVE_PTHREADS > 4
14410 /* Final pthreads */
14411 pthread_attr_t attr;
14413 status = pthread_attr_init(&attr);
14414 if( status ) return status;
14416 #if HAVE_PTHREADS < 7
14417 status = pthread_attr_setdetachstate(&attr, &detach);
14418 if( status < 0 ) status = errno;
14420 status = pthread_attr_setdetachstate(&attr, detach);
14422 if( status ) return status;
14423 status = pthread_create( &t, &attr, task, NULL );
14424 #if HAVE_PTHREADS < 7
14425 if( status < 0 ) status = errno;
14427 if( status ) return status;
14429 /* Draft 4 pthreads */
14430 status = pthread_create( &t, pthread_attr_default, task, NULL );
14431 if( status ) return errno;
14433 /* give thread a chance to complete */
14434 /* it should remain joinable and hence detachable */
14437 status = pthread_detach( &t );
14438 if( status ) return errno;
14441 #ifdef HAVE_LINUX_THREADS
14442 pthread_kill_other_threads_np();
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14451 ol_cv_pthread_lpthreads_lexc=yes
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14456 ol_cv_pthread_lpthreads_lexc=no
14460 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure"
14462 #include "confdefs.h"
14463 /* pthread test headers */
14464 #include <pthread.h>
14465 #if HAVE_PTHREADS < 7
14469 #define NULL (void*)0
14472 static void *task(p)
14475 return (void *) (p == NULL);
14479 int main(argc, argv)
14484 /* pthread test function */
14485 #ifndef PTHREAD_CREATE_DETACHED
14486 #define PTHREAD_CREATE_DETACHED 1
14490 int detach = PTHREAD_CREATE_DETACHED;
14492 #if HAVE_PTHREADS > 4
14493 /* Final pthreads */
14494 pthread_attr_t attr;
14496 status = pthread_attr_init(&attr);
14497 if( status ) return status;
14499 #if HAVE_PTHREADS < 7
14500 status = pthread_attr_setdetachstate(&attr, &detach);
14501 if( status < 0 ) status = errno;
14503 status = pthread_attr_setdetachstate(&attr, detach);
14505 if( status ) return status;
14506 status = pthread_create( &t, &attr, task, NULL );
14507 #if HAVE_PTHREADS < 7
14508 if( status < 0 ) status = errno;
14510 if( status ) return status;
14512 /* Draft 4 pthreads */
14513 status = pthread_create( &t, pthread_attr_default, task, NULL );
14514 if( status ) return errno;
14516 /* give thread a chance to complete */
14517 /* it should remain joinable and hence detachable */
14520 status = pthread_detach( &t );
14521 if( status ) return errno;
14524 #ifdef HAVE_LINUX_THREADS
14525 pthread_kill_other_threads_np();
14533 if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14535 ol_cv_pthread_lpthreads_lexc=yes
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14540 ol_cv_pthread_lpthreads_lexc=no
14551 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14553 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14554 ol_link_pthreads="-lpthreads -lexc"
14555 ol_link_threads=posix
14560 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14561 if test "$ol_link_threads" = no ; then
14563 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14564 echo "configure:14565: checking for pthread link with -lpthreads" >&5
14565 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14566 echo $ac_n "(cached) $ac_c" 1>&6
14571 LIBS="-lpthreads $LIBS"
14573 if test "$cross_compiling" = yes; then
14574 cat > conftest.$ac_ext <<EOF
14575 #line 14576 "configure"
14576 #include "confdefs.h"
14577 /* pthread test headers */
14578 #include <pthread.h>
14579 #if HAVE_PTHREADS < 7
14583 #define NULL (void*)0
14586 static void *task(p)
14589 return (void *) (p == NULL);
14594 /* pthread test function */
14595 #ifndef PTHREAD_CREATE_DETACHED
14596 #define PTHREAD_CREATE_DETACHED 1
14600 int detach = PTHREAD_CREATE_DETACHED;
14602 #if HAVE_PTHREADS > 4
14603 /* Final pthreads */
14604 pthread_attr_t attr;
14606 status = pthread_attr_init(&attr);
14607 if( status ) return status;
14609 #if HAVE_PTHREADS < 7
14610 status = pthread_attr_setdetachstate(&attr, &detach);
14611 if( status < 0 ) status = errno;
14613 status = pthread_attr_setdetachstate(&attr, detach);
14615 if( status ) return status;
14616 status = pthread_create( &t, &attr, task, NULL );
14617 #if HAVE_PTHREADS < 7
14618 if( status < 0 ) status = errno;
14620 if( status ) return status;
14622 /* Draft 4 pthreads */
14623 status = pthread_create( &t, pthread_attr_default, task, NULL );
14624 if( status ) return errno;
14626 /* give thread a chance to complete */
14627 /* it should remain joinable and hence detachable */
14630 status = pthread_detach( &t );
14631 if( status ) return errno;
14634 #ifdef HAVE_LINUX_THREADS
14635 pthread_kill_other_threads_np();
14642 if { (eval echo configure:14643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14644 ol_cv_pthread_lib_lpthreads=yes
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14649 ol_cv_pthread_lib_lpthreads=no
14653 cat > conftest.$ac_ext <<EOF
14654 #line 14655 "configure"
14655 #include "confdefs.h"
14656 /* pthread test headers */
14657 #include <pthread.h>
14658 #if HAVE_PTHREADS < 7
14662 #define NULL (void*)0
14665 static void *task(p)
14668 return (void *) (p == NULL);
14672 int main(argc, argv)
14677 /* pthread test function */
14678 #ifndef PTHREAD_CREATE_DETACHED
14679 #define PTHREAD_CREATE_DETACHED 1
14683 int detach = PTHREAD_CREATE_DETACHED;
14685 #if HAVE_PTHREADS > 4
14686 /* Final pthreads */
14687 pthread_attr_t attr;
14689 status = pthread_attr_init(&attr);
14690 if( status ) return status;
14692 #if HAVE_PTHREADS < 7
14693 status = pthread_attr_setdetachstate(&attr, &detach);
14694 if( status < 0 ) status = errno;
14696 status = pthread_attr_setdetachstate(&attr, detach);
14698 if( status ) return status;
14699 status = pthread_create( &t, &attr, task, NULL );
14700 #if HAVE_PTHREADS < 7
14701 if( status < 0 ) status = errno;
14703 if( status ) return status;
14705 /* Draft 4 pthreads */
14706 status = pthread_create( &t, pthread_attr_default, task, NULL );
14707 if( status ) return errno;
14709 /* give thread a chance to complete */
14710 /* it should remain joinable and hence detachable */
14713 status = pthread_detach( &t );
14714 if( status ) return errno;
14717 #ifdef HAVE_LINUX_THREADS
14718 pthread_kill_other_threads_np();
14726 if { (eval echo configure:14727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14728 ol_cv_pthread_lib_lpthreads=yes
14730 echo "configure: failed program was:" >&5
14731 cat conftest.$ac_ext >&5
14733 ol_cv_pthread_lib_lpthreads=no
14744 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14746 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14747 ol_link_pthreads="-lpthreads"
14748 ol_link_threads=posix
14753 if test $ol_link_threads != no ; then
14754 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14756 save_CPPFLAGS="$CPPFLAGS"
14758 LIBS="$LTHREAD_LIBS $LIBS"
14760 for ac_func in sched_yield pthread_yield thr_yield
14762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14763 echo "configure:14764: checking for $ac_func" >&5
14764 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14765 echo $ac_n "(cached) $ac_c" 1>&6
14767 cat > conftest.$ac_ext <<EOF
14768 #line 14769 "configure"
14769 #include "confdefs.h"
14770 /* System header to define __stub macros and hopefully few prototypes,
14771 which can conflict with char $ac_func(); below. */
14772 #include <assert.h>
14773 /* Override any gcc2 internal prototype to avoid an error. */
14774 /* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14781 /* The GNU C library defines this for functions which it implements
14782 to always fail with ENOSYS. Some functions are actually named
14783 something starting with __ and the normal name is an alias. */
14784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14792 if { (eval echo configure:14793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14794 eval "ac_cv_func_$ac_func=yes"
14796 echo "configure: failed program was:" >&5
14797 cat conftest.$ac_ext >&5
14799 eval "ac_cv_func_$ac_func=no"
14804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14805 echo "$ac_t""yes" 1>&6
14806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14807 cat >> confdefs.h <<EOF
14808 #define $ac_tr_func 1
14812 echo "$ac_t""no" 1>&6
14817 if test $ac_cv_func_sched_yield = no -a \
14818 $ac_cv_func_pthread_yield = no -a \
14819 $ac_cv_func_thr_yield = no ; then
14820 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14821 echo "configure:14822: checking for sched_yield in -lrt" >&5
14822 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14826 ac_save_LIBS="$LIBS"
14828 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure"
14830 #include "confdefs.h"
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 /* We use char because int might match the return type of a gcc2
14833 builtin and then its argument prototype would still apply. */
14834 char sched_yield();
14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 eval "ac_cv_lib_$ac_lib_var=yes"
14844 echo "configure: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14847 eval "ac_cv_lib_$ac_lib_var=no"
14850 LIBS="$ac_save_LIBS"
14853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14854 echo "$ac_t""yes" 1>&6
14855 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14856 cat >> confdefs.h <<\EOF
14857 #define HAVE_SCHED_YIELD 1
14860 ac_cv_func_sched_yield=yes
14862 echo "$ac_t""no" 1>&6
14863 ac_cv_func_sched_yield=no
14867 if test $ac_cv_func_sched_yield = no -a \
14868 $ac_cv_func_pthread_yield = no -a \
14869 "$ac_cv_func_thr_yield" = no ; then
14870 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14873 for ac_func in pthread_kill pthread_rwlock_destroy
14875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14876 echo "configure:14877: checking for $ac_func" >&5
14877 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14878 echo $ac_n "(cached) $ac_c" 1>&6
14880 cat > conftest.$ac_ext <<EOF
14881 #line 14882 "configure"
14882 #include "confdefs.h"
14883 /* System header to define __stub macros and hopefully few prototypes,
14884 which can conflict with char $ac_func(); below. */
14885 #include <assert.h>
14886 /* Override any gcc2 internal prototype to avoid an error. */
14887 /* We use char because int might match the return type of a gcc2
14888 builtin and then its argument prototype would still apply. */
14894 /* The GNU C library defines this for functions which it implements
14895 to always fail with ENOSYS. Some functions are actually named
14896 something starting with __ and the normal name is an alias. */
14897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14905 if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14907 eval "ac_cv_func_$ac_func=yes"
14909 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14912 eval "ac_cv_func_$ac_func=no"
14917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14918 echo "$ac_t""yes" 1>&6
14919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14920 cat >> confdefs.h <<EOF
14921 #define $ac_tr_func 1
14925 echo "$ac_t""no" 1>&6
14930 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14931 echo "configure:14932: checking for pthread_detach with <pthread.h>" >&5
14932 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14936 cat > conftest.$ac_ext <<EOF
14937 #line 14938 "configure"
14938 #include "confdefs.h"
14940 #include <pthread.h>
14942 #define NULL (void*)0
14946 pthread_detach(NULL);
14949 if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14951 ol_cv_func_pthread_detach=yes
14953 echo "configure: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14956 ol_cv_func_pthread_detach=no
14962 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14964 if test $ol_cv_func_pthread_detach = no ; then
14965 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14968 cat >> confdefs.h <<\EOF
14969 #define HAVE_PTHREAD_DETACH 1
14974 pthread_setconcurrency \
14975 pthread_getconcurrency \
14976 thr_setconcurrency \
14977 thr_getconcurrency \
14980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14981 echo "configure:14982: checking for $ac_func" >&5
14982 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14983 echo $ac_n "(cached) $ac_c" 1>&6
14985 cat > conftest.$ac_ext <<EOF
14986 #line 14987 "configure"
14987 #include "confdefs.h"
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func(); below. */
14990 #include <assert.h>
14991 /* Override any gcc2 internal prototype to avoid an error. */
14992 /* We use char because int might match the return type of a gcc2
14993 builtin and then its argument prototype would still apply. */
14999 /* The GNU C library defines this for functions which it implements
15000 to always fail with ENOSYS. Some functions are actually named
15001 something starting with __ and the normal name is an alias. */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 if { (eval echo configure:15011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15012 eval "ac_cv_func_$ac_func=yes"
15014 echo "configure: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15017 eval "ac_cv_func_$ac_func=no"
15022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15023 echo "$ac_t""yes" 1>&6
15024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15025 cat >> confdefs.h <<EOF
15026 #define $ac_tr_func 1
15030 echo "$ac_t""no" 1>&6
15036 for ac_func in pthread_kill_other_threads_np
15038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15039 echo "configure:15040: checking for $ac_func" >&5
15040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* System header to define __stub macros and hopefully few prototypes,
15047 which can conflict with char $ac_func(); below. */
15048 #include <assert.h>
15049 /* Override any gcc2 internal prototype to avoid an error. */
15050 /* We use char because int might match the return type of a gcc2
15051 builtin and then its argument prototype would still apply. */
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 eval "ac_cv_func_$ac_func=yes"
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 eval "ac_cv_func_$ac_func=no"
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083 cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15088 echo "$ac_t""no" 1>&6
15092 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15093 echo "configure:15094: checking for LinuxThreads implementation" >&5
15094 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15095 echo $ac_n "(cached) $ac_c" 1>&6
15097 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15100 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15105 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15106 echo "configure:15107: checking for LinuxThreads consistency" >&5
15107 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15108 echo $ac_n "(cached) $ac_c" 1>&6
15111 if test $ol_cv_header_linux_threads = yes -a \
15112 $ol_cv_sys_linux_threads = yes; then
15113 ol_cv_linux_threads=yes
15114 elif test $ol_cv_header_linux_threads = no -a \
15115 $ol_cv_sys_linux_threads = no; then
15116 ol_cv_linux_threads=no
15118 ol_cv_linux_threads=error
15123 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15126 if test $ol_cv_linux_threads = error; then
15127 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15130 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15131 echo "configure:15132: checking if pthread_create() works" >&5
15132 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
15136 if test "$cross_compiling" = yes; then
15137 ol_cv_pthread_create_works=yes
15139 cat > conftest.$ac_ext <<EOF
15140 #line 15141 "configure"
15141 #include "confdefs.h"
15142 /* pthread test headers */
15143 #include <pthread.h>
15144 #if HAVE_PTHREADS < 7
15148 #define NULL (void*)0
15151 static void *task(p)
15154 return (void *) (p == NULL);
15158 int main(argc, argv)
15163 /* pthread test function */
15164 #ifndef PTHREAD_CREATE_DETACHED
15165 #define PTHREAD_CREATE_DETACHED 1
15169 int detach = PTHREAD_CREATE_DETACHED;
15171 #if HAVE_PTHREADS > 4
15172 /* Final pthreads */
15173 pthread_attr_t attr;
15175 status = pthread_attr_init(&attr);
15176 if( status ) return status;
15178 #if HAVE_PTHREADS < 7
15179 status = pthread_attr_setdetachstate(&attr, &detach);
15180 if( status < 0 ) status = errno;
15182 status = pthread_attr_setdetachstate(&attr, detach);
15184 if( status ) return status;
15185 status = pthread_create( &t, &attr, task, NULL );
15186 #if HAVE_PTHREADS < 7
15187 if( status < 0 ) status = errno;
15189 if( status ) return status;
15191 /* Draft 4 pthreads */
15192 status = pthread_create( &t, pthread_attr_default, task, NULL );
15193 if( status ) return errno;
15195 /* give thread a chance to complete */
15196 /* it should remain joinable and hence detachable */
15199 status = pthread_detach( &t );
15200 if( status ) return errno;
15203 #ifdef HAVE_LINUX_THREADS
15204 pthread_kill_other_threads_np();
15212 if { (eval echo configure:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15214 ol_cv_pthread_create_works=yes
15216 echo "configure: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15219 ol_cv_pthread_create_works=no
15226 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15228 if test $ol_cv_pthread_create_works = no ; then
15229 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15232 if test $ol_with_yielding_select = auto ; then
15233 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15234 echo "configure:15235: checking if select yields when using pthreads" >&5
15235 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15239 if test "$cross_compiling" = yes; then
15240 ol_cv_pthread_select_yields=cross
15242 cat > conftest.$ac_ext <<EOF
15243 #line 15244 "configure"
15244 #include "confdefs.h"
15246 #include <sys/types.h>
15247 #include <sys/time.h>
15248 #include <unistd.h>
15249 #include <pthread.h>
15251 #define NULL (void*) 0
15254 static int fildes[2];
15256 static void *task(p)
15268 FD_SET(fildes[0], &rfds);
15270 /* we're not interested in any fds */
15271 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15278 exit(0); /* if we exit here, the select blocked the whole process */
15281 int main(argc, argv)
15287 /* create a pipe to select */
15288 if(pipe(&fildes[0])) {
15293 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15294 (void) pthread_setconcurrency(2);
15296 #ifdef HAVE_THR_SETCONCURRENCY
15297 /* Set Solaris LWP concurrency to 2 */
15298 thr_setconcurrency(2);
15302 #if HAVE_PTHREADS < 6
15303 pthread_create(&t, pthread_attr_default, task, NULL);
15305 pthread_create(&t, NULL, task, NULL);
15308 /* make sure task runs first */
15311 #elif defined( HAVE_SCHED_YIELD )
15313 #elif defined( HAVE_PTHREAD_YIELD )
15320 if { (eval echo configure:15321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15322 ol_cv_pthread_select_yields=no
15324 echo "configure: failed program was:" >&5
15325 cat conftest.$ac_ext >&5
15327 ol_cv_pthread_select_yields=yes
15334 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15336 if test $ol_cv_pthread_select_yields = cross ; then
15337 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15340 if test $ol_cv_pthread_select_yields = yes ; then
15341 ol_with_yielding_select=yes
15345 CPPFLAGS="$save_CPPFLAGS"
15348 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15352 if test $ol_with_threads = posix ; then
15353 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15357 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15358 -o $ol_with_threads = mach ; then
15360 for ac_hdr in mach/cthreads.h cthreads.h
15362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15364 echo "configure:15365: checking for $ac_hdr" >&5
15365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15368 cat > conftest.$ac_ext <<EOF
15369 #line 15370 "configure"
15370 #include "confdefs.h"
15373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15374 { (eval echo configure:15375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15376 if test -z "$ac_err"; then
15378 eval "ac_cv_header_$ac_safe=yes"
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15384 eval "ac_cv_header_$ac_safe=no"
15388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15389 echo "$ac_t""yes" 1>&6
15390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15391 cat >> confdefs.h <<EOF
15392 #define $ac_tr_hdr 1
15396 echo "$ac_t""no" 1>&6
15400 if test $ac_cv_header_mach_cthreads_h = yes ; then
15401 ol_with_threads=found
15403 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15404 echo "configure:15405: checking for cthread_fork" >&5
15405 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15408 cat > conftest.$ac_ext <<EOF
15409 #line 15410 "configure"
15410 #include "confdefs.h"
15411 /* System header to define __stub macros and hopefully few prototypes,
15412 which can conflict with char cthread_fork(); below. */
15413 #include <assert.h>
15414 /* Override any gcc2 internal prototype to avoid an error. */
15415 /* We use char because int might match the return type of a gcc2
15416 builtin and then its argument prototype would still apply. */
15417 char cthread_fork();
15422 /* The GNU C library defines this for functions which it implements
15423 to always fail with ENOSYS. Some functions are actually named
15424 something starting with __ and the normal name is an alias. */
15425 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15433 if { (eval echo configure:15434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15435 eval "ac_cv_func_cthread_fork=yes"
15437 echo "configure: failed program was:" >&5
15438 cat conftest.$ac_ext >&5
15440 eval "ac_cv_func_cthread_fork=no"
15445 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15446 echo "$ac_t""yes" 1>&6
15447 ol_link_threads=yes
15449 echo "$ac_t""no" 1>&6
15453 if test $ol_link_threads = no ; then
15454 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15455 echo "configure:15456: checking for cthread_fork with -all_load" >&5
15456 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15457 echo $ac_n "(cached) $ac_c" 1>&6
15461 LIBS="-all_load $LIBS"
15462 cat > conftest.$ac_ext <<EOF
15463 #line 15464 "configure"
15464 #include "confdefs.h"
15465 #include <mach/cthreads.h>
15468 cthread_fork((void *)0, (void *)0);
15472 if { (eval echo configure:15473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15474 ol_cv_cthread_all_load=yes
15476 echo "configure: failed program was:" >&5
15477 cat conftest.$ac_ext >&5
15479 ol_cv_cthread_all_load=no
15486 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15488 if test $ol_cv_cthread_all_load = yes ; then
15489 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15490 ol_link_threads=mach
15491 ol_with_threads=found
15495 elif test $ac_cv_header_cthreads_h = yes ; then
15497 ol_with_threads=found
15500 LIBS="$LIBS -lthreads"
15501 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15502 echo "configure:15503: checking for cthread_fork" >&5
15503 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15504 echo $ac_n "(cached) $ac_c" 1>&6
15506 cat > conftest.$ac_ext <<EOF
15507 #line 15508 "configure"
15508 #include "confdefs.h"
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char cthread_fork(); below. */
15511 #include <assert.h>
15512 /* Override any gcc2 internal prototype to avoid an error. */
15513 /* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15515 char cthread_fork();
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533 eval "ac_cv_func_cthread_fork=yes"
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15538 eval "ac_cv_func_cthread_fork=no"
15543 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15544 echo "$ac_t""yes" 1>&6
15545 ol_link_threads=yes
15547 echo "$ac_t""no" 1>&6
15552 if test $ol_link_threads = yes ; then
15553 LTHREAD_LIBS="-lthreads"
15554 ol_link_threads=mach
15555 ol_with_threads=found
15557 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15560 elif test $ol_with_threads = mach ; then
15561 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15564 if test $ol_link_threads = mach ; then
15565 cat >> confdefs.h <<\EOF
15566 #define HAVE_MACH_CTHREADS 1
15569 elif test $ol_with_threads = found ; then
15570 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15574 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15575 -o $ol_with_threads = pth ; then
15577 for ac_hdr in pth.h
15579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15581 echo "configure:15582: checking for $ac_hdr" >&5
15582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15583 echo $ac_n "(cached) $ac_c" 1>&6
15585 cat > conftest.$ac_ext <<EOF
15586 #line 15587 "configure"
15587 #include "confdefs.h"
15590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15591 { (eval echo configure:15592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15593 if test -z "$ac_err"; then
15595 eval "ac_cv_header_$ac_safe=yes"
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 eval "ac_cv_header_$ac_safe=no"
15605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15608 cat >> confdefs.h <<EOF
15609 #define $ac_tr_hdr 1
15613 echo "$ac_t""no" 1>&6
15618 if test $ac_cv_header_pth_h = yes ; then
15619 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15620 echo "configure:15621: checking for pth_version in -lpth" >&5
15621 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15622 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
15625 ac_save_LIBS="$LIBS"
15627 cat > conftest.$ac_ext <<EOF
15628 #line 15629 "configure"
15629 #include "confdefs.h"
15630 /* Override any gcc2 internal prototype to avoid an error. */
15631 /* We use char because int might match the return type of a gcc2
15632 builtin and then its argument prototype would still apply. */
15633 char pth_version();
15639 if { (eval echo configure:15640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15641 eval "ac_cv_lib_$ac_lib_var=yes"
15643 echo "configure: failed program was:" >&5
15644 cat conftest.$ac_ext >&5
15646 eval "ac_cv_lib_$ac_lib_var=no"
15649 LIBS="$ac_save_LIBS"
15652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15653 echo "$ac_t""yes" 1>&6
15656 echo "$ac_t""no" 1>&6
15661 if test $have_pth = yes ; then
15662 cat >> confdefs.h <<\EOF
15663 #define HAVE_GNU_PTH 1
15666 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15667 ol_link_threads=pth
15668 ol_with_threads=found
15670 if test $ol_with_yielding_select = auto ; then
15671 ol_with_yielding_select=yes
15677 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15678 -o $ol_with_threads = lwp ; then
15680 for ac_hdr in thread.h synch.h
15682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15684 echo "configure:15685: checking for $ac_hdr" >&5
15685 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15686 echo $ac_n "(cached) $ac_c" 1>&6
15688 cat > conftest.$ac_ext <<EOF
15689 #line 15690 "configure"
15690 #include "confdefs.h"
15693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15694 { (eval echo configure:15695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15696 if test -z "$ac_err"; then
15698 eval "ac_cv_header_$ac_safe=yes"
15701 echo "configure: failed program was:" >&5
15702 cat conftest.$ac_ext >&5
15704 eval "ac_cv_header_$ac_safe=no"
15708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15709 echo "$ac_t""yes" 1>&6
15710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15711 cat >> confdefs.h <<EOF
15712 #define $ac_tr_hdr 1
15716 echo "$ac_t""no" 1>&6
15720 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15721 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15722 echo "configure:15723: checking for thr_create in -lthread" >&5
15723 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15724 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15725 echo $ac_n "(cached) $ac_c" 1>&6
15727 ac_save_LIBS="$LIBS"
15728 LIBS="-lthread $LIBS"
15729 cat > conftest.$ac_ext <<EOF
15730 #line 15731 "configure"
15731 #include "confdefs.h"
15732 /* Override any gcc2 internal prototype to avoid an error. */
15733 /* We use char because int might match the return type of a gcc2
15734 builtin and then its argument prototype would still apply. */
15741 if { (eval echo configure:15742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15743 eval "ac_cv_lib_$ac_lib_var=yes"
15745 echo "configure: failed program was:" >&5
15746 cat conftest.$ac_ext >&5
15748 eval "ac_cv_lib_$ac_lib_var=no"
15751 LIBS="$ac_save_LIBS"
15754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15755 echo "$ac_t""yes" 1>&6
15758 echo "$ac_t""no" 1>&6
15763 if test $have_thr = yes ; then
15764 cat >> confdefs.h <<\EOF
15768 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15769 ol_link_threads=thr
15771 if test $ol_with_yielding_select = auto ; then
15772 ol_with_yielding_select=yes
15776 thr_setconcurrency \
15777 thr_getconcurrency \
15780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15781 echo "configure:15782: checking for $ac_func" >&5
15782 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15785 cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 /* System header to define __stub macros and hopefully few prototypes,
15789 which can conflict with char $ac_func(); below. */
15790 #include <assert.h>
15791 /* Override any gcc2 internal prototype to avoid an error. */
15792 /* We use char because int might match the return type of a gcc2
15793 builtin and then its argument prototype would still apply. */
15799 /* The GNU C library defines this for functions which it implements
15800 to always fail with ENOSYS. Some functions are actually named
15801 something starting with __ and the normal name is an alias. */
15802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15810 if { (eval echo configure:15811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15812 eval "ac_cv_func_$ac_func=yes"
15814 echo "configure: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15817 eval "ac_cv_func_$ac_func=no"
15822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15823 echo "$ac_t""yes" 1>&6
15824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15825 cat >> confdefs.h <<EOF
15826 #define $ac_tr_func 1
15830 echo "$ac_t""no" 1>&6
15837 for ac_hdr in lwp/lwp.h
15839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_hdr" >&5
15842 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15851 { (eval echo configure:15852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15853 if test -z "$ac_err"; then
15855 eval "ac_cv_header_$ac_safe=yes"
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 eval "ac_cv_header_$ac_safe=no"
15865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15868 cat >> confdefs.h <<EOF
15869 #define $ac_tr_hdr 1
15873 echo "$ac_t""no" 1>&6
15877 if test $ac_cv_header_lwp_lwp_h = yes ; then
15878 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15879 echo "configure:15880: checking for lwp_create in -llwp" >&5
15880 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15882 echo $ac_n "(cached) $ac_c" 1>&6
15884 ac_save_LIBS="$LIBS"
15886 cat > conftest.$ac_ext <<EOF
15887 #line 15888 "configure"
15888 #include "confdefs.h"
15889 /* Override any gcc2 internal prototype to avoid an error. */
15890 /* We use char because int might match the return type of a gcc2
15891 builtin and then its argument prototype would still apply. */
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15900 eval "ac_cv_lib_$ac_lib_var=yes"
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15905 eval "ac_cv_lib_$ac_lib_var=no"
15908 LIBS="$ac_save_LIBS"
15911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15912 echo "$ac_t""yes" 1>&6
15915 echo "$ac_t""no" 1>&6
15920 if test $have_lwp = yes ; then
15921 cat >> confdefs.h <<\EOF
15925 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15926 ol_link_threads=lwp
15928 if test $ol_with_yielding_select = auto ; then
15929 ol_with_yielding_select=no
15935 if test $ol_with_yielding_select = yes ; then
15936 cat >> confdefs.h <<\EOF
15937 #define HAVE_YIELDING_SELECT 1
15942 if test $ol_with_threads = manual ; then
15943 ol_link_threads=yes
15945 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15947 for ac_hdr in pthread.h sched.h
15949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15951 echo "configure:15952: checking for $ac_hdr" >&5
15952 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15953 echo $ac_n "(cached) $ac_c" 1>&6
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15957 "configure"
15957 #include "confdefs.h"
15960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15961 { (eval echo configure:15962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15963 if test -z "$ac_err"; then
15965 eval "ac_cv_header_$ac_safe=yes"
15968 echo "configure: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15971 eval "ac_cv_header_$ac_safe=no"
15975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15976 echo "$ac_t""yes" 1>&6
15977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15978 cat >> confdefs.h <<EOF
15979 #define $ac_tr_hdr 1
15983 echo "$ac_t""no" 1>&6
15987 for ac_func in sched_yield pthread_yield
15989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15990 echo "configure:15991: checking for $ac_func" >&5
15991 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15992 echo $ac_n "(cached) $ac_c" 1>&6
15994 cat > conftest.$ac_ext <<EOF
15995 #line 15996 "configure"
15996 #include "confdefs.h"
15997 /* System header to define __stub macros and hopefully few prototypes,
15998 which can conflict with char $ac_func(); below. */
15999 #include <assert.h>
16000 /* Override any gcc2 internal prototype to avoid an error. */
16001 /* We use char because int might match the return type of a gcc2
16002 builtin and then its argument prototype would still apply. */
16008 /* The GNU C library defines this for functions which it implements
16009 to always fail with ENOSYS. Some functions are actually named
16010 something starting with __ and the normal name is an alias. */
16011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16019 if { (eval echo configure:16020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16021 eval "ac_cv_func_$ac_func=yes"
16023 echo "configure: failed program was:" >&5
16024 cat conftest.$ac_ext >&5
16026 eval "ac_cv_func_$ac_func=no"
16031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16032 echo "$ac_t""yes" 1>&6
16033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16034 cat >> confdefs.h <<EOF
16035 #define $ac_tr_func 1
16039 echo "$ac_t""no" 1>&6
16044 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16045 echo "configure:16046: checking for LinuxThreads pthread.h" >&5
16046 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16047 echo $ac_n "(cached) $ac_c" 1>&6
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052 #include <pthread.h>
16054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16055 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16057 ol_cv_header_linux_threads=yes
16060 ol_cv_header_linux_threads=no
16067 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16068 if test $ol_cv_header_linux_threads = yes; then
16069 cat >> confdefs.h <<\EOF
16070 #define HAVE_LINUX_THREADS 1
16076 for ac_hdr in mach/cthreads.h
16078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16080 echo "configure:16081: checking for $ac_hdr" >&5
16081 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16084 cat > conftest.$ac_ext <<EOF
16085 #line 16086 "configure"
16086 #include "confdefs.h"
16089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16090 { (eval echo configure:16091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16092 if test -z "$ac_err"; then
16094 eval "ac_cv_header_$ac_safe=yes"
16097 echo "configure: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16100 eval "ac_cv_header_$ac_safe=no"
16104 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16105 echo "$ac_t""yes" 1>&6
16106 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16107 cat >> confdefs.h <<EOF
16108 #define $ac_tr_hdr 1
16112 echo "$ac_t""no" 1>&6
16116 for ac_hdr in lwp/lwp.h
16118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16120 echo "configure:16121: checking for $ac_hdr" >&5
16121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16122 echo $ac_n "(cached) $ac_c" 1>&6
16124 cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16130 { (eval echo configure:16131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16132 if test -z "$ac_err"; then
16134 eval "ac_cv_header_$ac_safe=yes"
16137 echo "configure: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16140 eval "ac_cv_header_$ac_safe=no"
16144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16145 echo "$ac_t""yes" 1>&6
16146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16147 cat >> confdefs.h <<EOF
16148 #define $ac_tr_hdr 1
16152 echo "$ac_t""no" 1>&6
16156 for ac_hdr in thread.h synch.h
16158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16160 echo "configure:16161: checking for $ac_hdr" >&5
16161 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16164 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16170 { (eval echo configure:16171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16172 if test -z "$ac_err"; then
16174 eval "ac_cv_header_$ac_safe=yes"
16177 echo "configure: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16180 eval "ac_cv_header_$ac_safe=no"
16184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16185 echo "$ac_t""yes" 1>&6
16186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16187 cat >> confdefs.h <<EOF
16188 #define $ac_tr_hdr 1
16192 echo "$ac_t""no" 1>&6
16198 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16199 cat >> confdefs.h <<\EOF
16200 #define REENTRANT 1
16203 cat >> confdefs.h <<\EOF
16204 #define _REENTRANT 1
16207 cat >> confdefs.h <<\EOF
16208 #define THREAD_SAFE 1
16211 cat >> confdefs.h <<\EOF
16212 #define _THREAD_SAFE 1
16215 cat >> confdefs.h <<\EOF
16216 #define THREADSAFE 1
16219 cat >> confdefs.h <<\EOF
16220 #define _THREADSAFE 1
16223 cat >> confdefs.h <<\EOF
16224 #define _SGI_MP_SOURCE 1
16228 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16229 echo "configure:16230: checking for thread specific errno" >&5
16230 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16231 echo $ac_n "(cached) $ac_c" 1>&6
16234 cat > conftest.$ac_ext <<EOF
16235 #line 16236 "configure"
16236 #include "confdefs.h"
16242 if { (eval echo configure:16243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16244 ol_cv_errno_thread_specific=yes
16246 echo "configure: failed program was:" >&5
16247 cat conftest.$ac_ext >&5
16249 ol_cv_errno_thread_specific=no
16255 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16257 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16258 echo "configure:16259: checking for thread specific h_errno" >&5
16259 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16260 echo $ac_n "(cached) $ac_c" 1>&6
16263 cat > conftest.$ac_ext <<EOF
16264 #line 16265 "configure"
16265 #include "confdefs.h"
16271 if { (eval echo configure:16272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16273 ol_cv_h_errno_thread_specific=yes
16275 echo "configure: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16278 ol_cv_h_errno_thread_specific=no
16284 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16286 if test $ol_cv_errno_thread_specific != yes \
16287 -o $ol_cv_h_errno_thread_specific != yes ; then
16288 LIBS="$LTHREAD_LIBS $LIBS"
16294 if test $ol_link_threads = no ; then
16295 if test $ol_with_threads = yes ; then
16296 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16299 if test $ol_with_threads = auto ; then
16300 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16304 cat >> confdefs.h <<\EOF
16305 #define NO_THREADS 1
16311 if test $ol_link_threads != no ; then
16312 cat >> confdefs.h <<\EOF
16313 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16320 gethostbyname_r gethostbyaddr_r \
16323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16324 echo "configure:16325: checking for $ac_func" >&5
16325 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16328 cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16331 /* System header to define __stub macros and hopefully few prototypes,
16332 which can conflict with char $ac_func(); below. */
16333 #include <assert.h>
16334 /* Override any gcc2 internal prototype to avoid an error. */
16335 /* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16342 /* The GNU C library defines this for functions which it implements
16343 to always fail with ENOSYS. Some functions are actually named
16344 something starting with __ and the normal name is an alias. */
16345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 if { (eval echo configure:16354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16355 eval "ac_cv_func_$ac_func=yes"
16357 echo "configure: failed program was:" >&5
16358 cat conftest.$ac_ext >&5
16360 eval "ac_cv_func_$ac_func=no"
16365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16366 echo "$ac_t""yes" 1>&6
16367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16368 cat >> confdefs.h <<EOF
16369 #define $ac_tr_func 1
16373 echo "$ac_t""no" 1>&6
16378 if test "$ac_cv_func_ctime_r" = no ; then
16379 ol_cv_func_ctime_r_nargs=0
16381 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16382 echo "configure:16383: checking number of arguments of ctime_r" >&5
16383 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16384 echo $ac_n "(cached) $ac_c" 1>&6
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16391 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16394 if { (eval echo configure:16395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16396 ol_cv_func_ctime_r_nargs3=yes
16398 echo "configure: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16401 ol_cv_func_ctime_r_nargs3=no
16405 cat > conftest.$ac_ext <<EOF
16406 #line 16407 "configure"
16407 #include "confdefs.h"
16410 time_t ti; char *buffer; ctime_r(&ti,buffer);
16413 if { (eval echo configure:16414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16415 ol_cv_func_ctime_r_nargs2=yes
16417 echo "configure: failed program was:" >&5
16418 cat conftest.$ac_ext >&5
16420 ol_cv_func_ctime_r_nargs2=no
16424 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16425 $ol_cv_func_ctime_r_nargs2 = no ; then
16427 ol_cv_func_ctime_r_nargs=3
16429 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16430 $ol_cv_func_ctime_r_nargs2 = yes ; then
16432 ol_cv_func_ctime_r_nargs=2
16435 ol_cv_func_ctime_r_nargs=0
16440 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16442 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16443 cat >> confdefs.h <<EOF
16444 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16451 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16452 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16453 echo "configure:16454: checking number of arguments of gethostbyname_r" >&5
16454 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
16457 cat > conftest.$ac_ext <<EOF
16458 #line 16459 "configure"
16459 #include "confdefs.h"
16460 #include <sys/types.h>
16461 #include <sys/socket.h>
16462 #include <netinet/in.h>
16464 #define BUFSIZE (sizeof(struct hostent)+10)
16466 struct hostent hent; char buffer[BUFSIZE];
16467 int bufsize=BUFSIZE;int h_errno;
16468 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16469 buffer, bufsize, &h_errno);
16472 if { (eval echo configure:16473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16474 ol_cv_func_gethostbyname_r_nargs5=yes
16476 echo "configure: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16479 ol_cv_func_gethostbyname_r_nargs5=no
16483 cat > conftest.$ac_ext <<EOF
16484 #line 16485 "configure"
16485 #include "confdefs.h"
16486 #include <sys/types.h>
16487 #include <sys/socket.h>
16488 #include <netinet/in.h>
16490 #define BUFSIZE (sizeof(struct hostent)+10)
16492 struct hostent hent;struct hostent *rhent;
16493 char buffer[BUFSIZE];
16494 int bufsize=BUFSIZE;int h_errno;
16495 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16499 if { (eval echo configure:16500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16501 ol_cv_func_gethostbyname_r_nargs6=yes
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16506 ol_cv_func_gethostbyname_r_nargs6=no
16510 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16511 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16513 ol_cv_func_gethostbyname_r_nargs=5
16515 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16516 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16518 ol_cv_func_gethostbyname_r_nargs=6
16521 ol_cv_func_gethostbyname_r_nargs=0
16526 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16527 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16528 cat >> confdefs.h <<EOF
16529 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16535 ol_cv_func_gethostbyname_r_nargs=0
16538 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16539 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16540 echo "configure:16541: checking number of arguments of gethostbyaddr_r" >&5
16541 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16542 echo $ac_n "(cached) $ac_c" 1>&6
16544 cat > conftest.$ac_ext <<EOF
16545 #line 16546 "configure"
16546 #include "confdefs.h"
16547 #include <sys/types.h>
16548 #include <sys/socket.h>
16549 #include <netinet/in.h>
16551 #define BUFSIZE (sizeof(struct hostent)+10)
16553 struct hostent hent; char buffer[BUFSIZE];
16554 struct in_addr add;
16555 size_t alen=sizeof(struct in_addr);
16556 int bufsize=BUFSIZE;int h_errno;
16557 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16558 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16561 if { (eval echo configure:16562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16563 ol_cv_func_gethostbyaddr_r_nargs7=yes
16565 echo "configure: failed program was:" >&5
16566 cat conftest.$ac_ext >&5
16568 ol_cv_func_gethostbyaddr_r_nargs7=no
16572 cat > conftest.$ac_ext <<EOF
16573 #line 16574 "configure"
16574 #include "confdefs.h"
16575 #include <sys/types.h>
16576 #include <sys/socket.h>
16577 #include <netinet/in.h>
16579 #define BUFSIZE (sizeof(struct hostent)+10)
16581 struct hostent hent;
16582 struct hostent *rhent; char buffer[BUFSIZE];
16583 struct in_addr add;
16584 size_t alen=sizeof(struct in_addr);
16585 int bufsize=BUFSIZE;int h_errno;
16586 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16587 alen, AF_INET, &hent, buffer, bufsize,
16591 if { (eval echo configure:16592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16593 ol_cv_func_gethostbyaddr_r_nargs8=yes
16595 echo "configure: failed program was:" >&5
16596 cat conftest.$ac_ext >&5
16598 ol_cv_func_gethostbyaddr_r_nargs8=no
16602 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16603 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16605 ol_cv_func_gethostbyaddr_r_nargs=7
16607 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16608 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16610 ol_cv_func_gethostbyaddr_r_nargs=8
16613 ol_cv_func_gethostbyaddr_r_nargs=0
16618 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16619 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16620 cat >> confdefs.h <<EOF
16621 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16627 ol_cv_func_gethostbyaddr_r_nargs=0
16632 if test $ol_with_ldbm_api = auto \
16633 -o $ol_with_ldbm_api = berkeley \
16634 -o $ol_with_ldbm_api = bcompat ; then
16636 if test $ol_with_ldbm_api = bcompat; then \
16637 for ac_hdr in db_185.h db.h
16639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16641 echo "configure:16642: checking for $ac_hdr" >&5
16642 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16643 echo $ac_n "(cached) $ac_c" 1>&6
16645 cat > conftest.$ac_ext <<EOF
16646 #line 16647 "configure"
16647 #include "confdefs.h"
16650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16651 { (eval echo configure:16652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16653 if test -z "$ac_err"; then
16655 eval "ac_cv_header_$ac_safe=yes"
16658 echo "configure: failed program was:" >&5
16659 cat conftest.$ac_ext >&5
16661 eval "ac_cv_header_$ac_safe=no"
16665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16666 echo "$ac_t""yes" 1>&6
16667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16668 cat >> confdefs.h <<EOF
16669 #define $ac_tr_hdr 1
16673 echo "$ac_t""no" 1>&6
16677 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16678 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16679 echo "configure:16680: checking if Berkeley DB header compatibility" >&5
16680 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16681 echo $ac_n "(cached) $ac_c" 1>&6
16684 cat > conftest.$ac_ext <<EOF
16685 #line 16686 "configure"
16686 #include "confdefs.h"
16689 # include <db_185.h>
16694 /* this check could be improved */
16695 #ifndef DB_VERSION_MAJOR
16696 # define DB_VERSION_MAJOR 1
16699 #if DB_VERSION_MAJOR == 1
16704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16705 egrep "__db_version_1" >/dev/null 2>&1; then
16707 ol_cv_header_db1=yes
16710 ol_cv_header_db1=no
16716 echo "$ac_t""$ol_cv_header_db1" 1>&6
16718 if test $ol_cv_header_db1 = yes ; then
16720 if test $ol_cv_lib_db = no ; then
16721 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16722 echo "configure:16723: checking for Berkeley DB link (default)" >&5
16723 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
16729 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16731 cat > conftest.$ac_ext <<EOF
16732 #line 16733 "configure"
16733 #include "confdefs.h"
16735 #ifdef HAVE_DB_185_H
16736 # include <db_185.h>
16741 #ifndef DB_VERSION_MAJOR
16742 # define DB_VERSION_MAJOR 1
16746 #define NULL ((void*)0)
16751 #if DB_VERSION_MAJOR > 1
16754 int major, minor, patch;
16756 version = db_version( &major, &minor, &patch );
16758 if( major != DB_VERSION_MAJOR ||
16759 minor < DB_VERSION_MINOR )
16761 printf("Berkeley DB version mismatch\n"
16762 "\texpected: %s\n\tgot: %s\n",
16763 DB_VERSION_STRING, version);
16769 #if DB_VERSION_MAJOR > 2
16770 db_env_create( NULL, 0 );
16771 #elif DB_VERSION_MAJOR > 1
16772 db_appexit( NULL );
16774 (void) dbopen( NULL, 0, 0, 0, NULL);
16779 if { (eval echo configure:16780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16783 echo "configure: failed program was:" >&5
16784 cat conftest.$ac_ext >&5
16794 echo "$ac_t""$ol_cv_db_none" 1>&6
16796 if test $ol_cv_db_none = yes ; then
16801 if test $ol_cv_lib_db = no ; then
16802 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16803 echo "configure:16804: checking for Berkeley DB link (-ldb41)" >&5
16804 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16805 echo $ac_n "(cached) $ac_c" 1>&6
16810 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16812 cat > conftest.$ac_ext <<EOF
16813 #line 16814 "configure"
16814 #include "confdefs.h"
16816 #ifdef HAVE_DB_185_H
16817 # include <db_185.h>
16822 #ifndef DB_VERSION_MAJOR
16823 # define DB_VERSION_MAJOR 1
16827 #define NULL ((void*)0)
16832 #if DB_VERSION_MAJOR > 1
16835 int major, minor, patch;
16837 version = db_version( &major, &minor, &patch );
16839 if( major != DB_VERSION_MAJOR ||
16840 minor < DB_VERSION_MINOR )
16842 printf("Berkeley DB version mismatch\n"
16843 "\texpected: %s\n\tgot: %s\n",
16844 DB_VERSION_STRING, version);
16850 #if DB_VERSION_MAJOR > 2
16851 db_env_create( NULL, 0 );
16852 #elif DB_VERSION_MAJOR > 1
16853 db_appexit( NULL );
16855 (void) dbopen( NULL, 0, 0, 0, NULL);
16860 if { (eval echo configure:16861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16864 echo "configure: failed program was:" >&5
16865 cat conftest.$ac_ext >&5
16875 echo "$ac_t""$ol_cv_db_db41" 1>&6
16877 if test $ol_cv_db_db41 = yes ; then
16878 ol_cv_lib_db=-ldb41
16882 if test $ol_cv_lib_db = no ; then
16883 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16884 echo "configure:16885: checking for Berkeley DB link (-ldb-41)" >&5
16885 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16886 echo $ac_n "(cached) $ac_c" 1>&6
16891 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16893 cat > conftest.$ac_ext <<EOF
16894 #line 16895 "configure"
16895 #include "confdefs.h"
16897 #ifdef HAVE_DB_185_H
16898 # include <db_185.h>
16903 #ifndef DB_VERSION_MAJOR
16904 # define DB_VERSION_MAJOR 1
16908 #define NULL ((void*)0)
16913 #if DB_VERSION_MAJOR > 1
16916 int major, minor, patch;
16918 version = db_version( &major, &minor, &patch );
16920 if( major != DB_VERSION_MAJOR ||
16921 minor < DB_VERSION_MINOR )
16923 printf("Berkeley DB version mismatch\n"
16924 "\texpected: %s\n\tgot: %s\n",
16925 DB_VERSION_STRING, version);
16931 #if DB_VERSION_MAJOR > 2
16932 db_env_create( NULL, 0 );
16933 #elif DB_VERSION_MAJOR > 1
16934 db_appexit( NULL );
16936 (void) dbopen( NULL, 0, 0, 0, NULL);
16941 if { (eval echo configure:16942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16945 echo "configure: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16956 echo "$ac_t""$ol_cv_db_db_41" 1>&6
16958 if test $ol_cv_db_db_41 = yes ; then
16959 ol_cv_lib_db=-ldb-41
16963 if test $ol_cv_lib_db = no ; then
16964 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
16965 echo "configure:16966: checking for Berkeley DB link (-ldb-4.1)" >&5
16966 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
16967 echo $ac_n "(cached) $ac_c" 1>&6
16972 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16974 cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16978 #ifdef HAVE_DB_185_H
16979 # include <db_185.h>
16984 #ifndef DB_VERSION_MAJOR
16985 # define DB_VERSION_MAJOR 1
16989 #define NULL ((void*)0)
16994 #if DB_VERSION_MAJOR > 1
16997 int major, minor, patch;
16999 version = db_version( &major, &minor, &patch );
17001 if( major != DB_VERSION_MAJOR ||
17002 minor < DB_VERSION_MINOR )
17004 printf("Berkeley DB version mismatch\n"
17005 "\texpected: %s\n\tgot: %s\n",
17006 DB_VERSION_STRING, version);
17012 #if DB_VERSION_MAJOR > 2
17013 db_env_create( NULL, 0 );
17014 #elif DB_VERSION_MAJOR > 1
17015 db_appexit( NULL );
17017 (void) dbopen( NULL, 0, 0, 0, NULL);
17022 if { (eval echo configure:17023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17024 ol_cv_db_db_4_dot_1=yes
17026 echo "configure: failed program was:" >&5
17027 cat conftest.$ac_ext >&5
17029 ol_cv_db_db_4_dot_1=no
17037 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17039 if test $ol_cv_db_db_4_dot_1 = yes ; then
17040 ol_cv_lib_db=-ldb-4.1
17044 if test $ol_cv_lib_db = no ; then
17045 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17046 echo "configure:17047: checking for Berkeley DB link (-ldb-4-1)" >&5
17047 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17048 echo $ac_n "(cached) $ac_c" 1>&6
17053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17055 cat > conftest.$ac_ext <<EOF
17056 #line 17057 "configure"
17057 #include "confdefs.h"
17059 #ifdef HAVE_DB_185_H
17060 # include <db_185.h>
17065 #ifndef DB_VERSION_MAJOR
17066 # define DB_VERSION_MAJOR 1
17070 #define NULL ((void*)0)
17075 #if DB_VERSION_MAJOR > 1
17078 int major, minor, patch;
17080 version = db_version( &major, &minor, &patch );
17082 if( major != DB_VERSION_MAJOR ||
17083 minor < DB_VERSION_MINOR )
17085 printf("Berkeley DB version mismatch\n"
17086 "\texpected: %s\n\tgot: %s\n",
17087 DB_VERSION_STRING, version);
17093 #if DB_VERSION_MAJOR > 2
17094 db_env_create( NULL, 0 );
17095 #elif DB_VERSION_MAJOR > 1
17096 db_appexit( NULL );
17098 (void) dbopen( NULL, 0, 0, 0, NULL);
17103 if { (eval echo configure:17104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105 ol_cv_db_db_4_1=yes
17107 echo "configure: failed program was:" >&5
17108 cat conftest.$ac_ext >&5
17118 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17120 if test $ol_cv_db_db_4_1 = yes ; then
17121 ol_cv_lib_db=-ldb-4-1
17125 if test $ol_cv_lib_db = no ; then
17126 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17127 echo "configure:17128: checking for Berkeley DB link (-ldb-4)" >&5
17128 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17129 echo $ac_n "(cached) $ac_c" 1>&6
17134 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17136 cat > conftest.$ac_ext <<EOF
17137 #line 17138 "configure"
17138 #include "confdefs.h"
17140 #ifdef HAVE_DB_185_H
17141 # include <db_185.h>
17146 #ifndef DB_VERSION_MAJOR
17147 # define DB_VERSION_MAJOR 1
17151 #define NULL ((void*)0)
17156 #if DB_VERSION_MAJOR > 1
17159 int major, minor, patch;
17161 version = db_version( &major, &minor, &patch );
17163 if( major != DB_VERSION_MAJOR ||
17164 minor < DB_VERSION_MINOR )
17166 printf("Berkeley DB version mismatch\n"
17167 "\texpected: %s\n\tgot: %s\n",
17168 DB_VERSION_STRING, version);
17174 #if DB_VERSION_MAJOR > 2
17175 db_env_create( NULL, 0 );
17176 #elif DB_VERSION_MAJOR > 1
17177 db_appexit( NULL );
17179 (void) dbopen( NULL, 0, 0, 0, NULL);
17184 if { (eval echo configure:17185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17188 echo "configure: failed program was:" >&5
17189 cat conftest.$ac_ext >&5
17199 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17201 if test $ol_cv_db_db_4 = yes ; then
17202 ol_cv_lib_db=-ldb-4
17206 if test $ol_cv_lib_db = no ; then
17207 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17208 echo "configure:17209: checking for Berkeley DB link (-ldb4)" >&5
17209 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17210 echo $ac_n "(cached) $ac_c" 1>&6
17215 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17217 cat > conftest.$ac_ext <<EOF
17218 #line 17219 "configure"
17219 #include "confdefs.h"
17221 #ifdef HAVE_DB_185_H
17222 # include <db_185.h>
17227 #ifndef DB_VERSION_MAJOR
17228 # define DB_VERSION_MAJOR 1
17232 #define NULL ((void*)0)
17237 #if DB_VERSION_MAJOR > 1
17240 int major, minor, patch;
17242 version = db_version( &major, &minor, &patch );
17244 if( major != DB_VERSION_MAJOR ||
17245 minor < DB_VERSION_MINOR )
17247 printf("Berkeley DB version mismatch\n"
17248 "\texpected: %s\n\tgot: %s\n",
17249 DB_VERSION_STRING, version);
17255 #if DB_VERSION_MAJOR > 2
17256 db_env_create( NULL, 0 );
17257 #elif DB_VERSION_MAJOR > 1
17258 db_appexit( NULL );
17260 (void) dbopen( NULL, 0, 0, 0, NULL);
17265 if { (eval echo configure:17266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17269 echo "configure: failed program was:" >&5
17270 cat conftest.$ac_ext >&5
17280 echo "$ac_t""$ol_cv_db_db4" 1>&6
17282 if test $ol_cv_db_db4 = yes ; then
17287 if test $ol_cv_lib_db = no ; then
17288 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17289 echo "configure:17290: checking for Berkeley DB link (-ldb)" >&5
17290 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17291 echo $ac_n "(cached) $ac_c" 1>&6
17296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17298 cat > conftest.$ac_ext <<EOF
17299 #line 17300 "configure"
17300 #include "confdefs.h"
17302 #ifdef HAVE_DB_185_H
17303 # include <db_185.h>
17308 #ifndef DB_VERSION_MAJOR
17309 # define DB_VERSION_MAJOR 1
17313 #define NULL ((void*)0)
17318 #if DB_VERSION_MAJOR > 1
17321 int major, minor, patch;
17323 version = db_version( &major, &minor, &patch );
17325 if( major != DB_VERSION_MAJOR ||
17326 minor < DB_VERSION_MINOR )
17328 printf("Berkeley DB version mismatch\n"
17329 "\texpected: %s\n\tgot: %s\n",
17330 DB_VERSION_STRING, version);
17336 #if DB_VERSION_MAJOR > 2
17337 db_env_create( NULL, 0 );
17338 #elif DB_VERSION_MAJOR > 1
17339 db_appexit( NULL );
17341 (void) dbopen( NULL, 0, 0, 0, NULL);
17346 if { (eval echo configure:17347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17350 echo "configure: failed program was:" >&5
17351 cat conftest.$ac_ext >&5
17361 echo "$ac_t""$ol_cv_db_db" 1>&6
17363 if test $ol_cv_db_db = yes ; then
17368 if test $ol_cv_lib_db = no ; then
17369 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17370 echo "configure:17371: checking for Berkeley DB link (-ldb3)" >&5
17371 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17372 echo $ac_n "(cached) $ac_c" 1>&6
17377 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17379 cat > conftest.$ac_ext <<EOF
17380 #line 17381 "configure"
17381 #include "confdefs.h"
17383 #ifdef HAVE_DB_185_H
17384 # include <db_185.h>
17389 #ifndef DB_VERSION_MAJOR
17390 # define DB_VERSION_MAJOR 1
17394 #define NULL ((void*)0)
17399 #if DB_VERSION_MAJOR > 1
17402 int major, minor, patch;
17404 version = db_version( &major, &minor, &patch );
17406 if( major != DB_VERSION_MAJOR ||
17407 minor < DB_VERSION_MINOR )
17409 printf("Berkeley DB version mismatch\n"
17410 "\texpected: %s\n\tgot: %s\n",
17411 DB_VERSION_STRING, version);
17417 #if DB_VERSION_MAJOR > 2
17418 db_env_create( NULL, 0 );
17419 #elif DB_VERSION_MAJOR > 1
17420 db_appexit( NULL );
17422 (void) dbopen( NULL, 0, 0, 0, NULL);
17427 if { (eval echo configure:17428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17431 echo "configure: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17442 echo "$ac_t""$ol_cv_db_db3" 1>&6
17444 if test $ol_cv_db_db3 = yes ; then
17449 if test $ol_cv_lib_db = no ; then
17450 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17451 echo "configure:17452: checking for Berkeley DB link (-ldb-3)" >&5
17452 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17453 echo $ac_n "(cached) $ac_c" 1>&6
17458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17460 cat > conftest.$ac_ext <<EOF
17461 #line 17462 "configure"
17462 #include "confdefs.h"
17464 #ifdef HAVE_DB_185_H
17465 # include <db_185.h>
17470 #ifndef DB_VERSION_MAJOR
17471 # define DB_VERSION_MAJOR 1
17475 #define NULL ((void*)0)
17480 #if DB_VERSION_MAJOR > 1
17483 int major, minor, patch;
17485 version = db_version( &major, &minor, &patch );
17487 if( major != DB_VERSION_MAJOR ||
17488 minor < DB_VERSION_MINOR )
17490 printf("Berkeley DB version mismatch\n"
17491 "\texpected: %s\n\tgot: %s\n",
17492 DB_VERSION_STRING, version);
17498 #if DB_VERSION_MAJOR > 2
17499 db_env_create( NULL, 0 );
17500 #elif DB_VERSION_MAJOR > 1
17501 db_appexit( NULL );
17503 (void) dbopen( NULL, 0, 0, 0, NULL);
17508 if { (eval echo configure:17509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17512 echo "configure: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17523 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17525 if test $ol_cv_db_db_3 = yes ; then
17526 ol_cv_lib_db=-ldb-3
17530 if test $ol_cv_lib_db = no ; then
17531 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17532 echo "configure:17533: checking for Berkeley DB link (-ldb2)" >&5
17533 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17534 echo $ac_n "(cached) $ac_c" 1>&6
17539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17541 cat > conftest.$ac_ext <<EOF
17542 #line 17543 "configure"
17543 #include "confdefs.h"
17545 #ifdef HAVE_DB_185_H
17546 # include <db_185.h>
17551 #ifndef DB_VERSION_MAJOR
17552 # define DB_VERSION_MAJOR 1
17556 #define NULL ((void*)0)
17561 #if DB_VERSION_MAJOR > 1
17564 int major, minor, patch;
17566 version = db_version( &major, &minor, &patch );
17568 if( major != DB_VERSION_MAJOR ||
17569 minor < DB_VERSION_MINOR )
17571 printf("Berkeley DB version mismatch\n"
17572 "\texpected: %s\n\tgot: %s\n",
17573 DB_VERSION_STRING, version);
17579 #if DB_VERSION_MAJOR > 2
17580 db_env_create( NULL, 0 );
17581 #elif DB_VERSION_MAJOR > 1
17582 db_appexit( NULL );
17584 (void) dbopen( NULL, 0, 0, 0, NULL);
17589 if { (eval echo configure:17590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17593 echo "configure: failed program was:" >&5
17594 cat conftest.$ac_ext >&5
17604 echo "$ac_t""$ol_cv_db_db2" 1>&6
17606 if test $ol_cv_db_db2 = yes ; then
17611 if test $ol_cv_lib_db = no ; then
17612 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17613 echo "configure:17614: checking for Berkeley DB link (-ldb-2)" >&5
17614 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17620 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17622 cat > conftest.$ac_ext <<EOF
17623 #line 17624 "configure"
17624 #include "confdefs.h"
17626 #ifdef HAVE_DB_185_H
17627 # include <db_185.h>
17632 #ifndef DB_VERSION_MAJOR
17633 # define DB_VERSION_MAJOR 1
17637 #define NULL ((void*)0)
17642 #if DB_VERSION_MAJOR > 1
17645 int major, minor, patch;
17647 version = db_version( &major, &minor, &patch );
17649 if( major != DB_VERSION_MAJOR ||
17650 minor < DB_VERSION_MINOR )
17652 printf("Berkeley DB version mismatch\n"
17653 "\texpected: %s\n\tgot: %s\n",
17654 DB_VERSION_STRING, version);
17660 #if DB_VERSION_MAJOR > 2
17661 db_env_create( NULL, 0 );
17662 #elif DB_VERSION_MAJOR > 1
17663 db_appexit( NULL );
17665 (void) dbopen( NULL, 0, 0, 0, NULL);
17670 if { (eval echo configure:17671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17674 echo "configure: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17685 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17687 if test $ol_cv_db_db_2 = yes ; then
17688 ol_cv_lib_db=-ldb-2
17692 if test $ol_cv_lib_db = no ; then
17693 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17694 echo "configure:17695: checking for Berkeley DB link (-ldb1)" >&5
17695 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17696 echo $ac_n "(cached) $ac_c" 1>&6
17701 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17703 cat > conftest.$ac_ext <<EOF
17704 #line 17705 "configure"
17705 #include "confdefs.h"
17707 #ifdef HAVE_DB_185_H
17708 # include <db_185.h>
17713 #ifndef DB_VERSION_MAJOR
17714 # define DB_VERSION_MAJOR 1
17718 #define NULL ((void*)0)
17723 #if DB_VERSION_MAJOR > 1
17726 int major, minor, patch;
17728 version = db_version( &major, &minor, &patch );
17730 if( major != DB_VERSION_MAJOR ||
17731 minor < DB_VERSION_MINOR )
17733 printf("Berkeley DB version mismatch\n"
17734 "\texpected: %s\n\tgot: %s\n",
17735 DB_VERSION_STRING, version);
17741 #if DB_VERSION_MAJOR > 2
17742 db_env_create( NULL, 0 );
17743 #elif DB_VERSION_MAJOR > 1
17744 db_appexit( NULL );
17746 (void) dbopen( NULL, 0, 0, 0, NULL);
17751 if { (eval echo configure:17752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17755 echo "configure: failed program was:" >&5
17756 cat conftest.$ac_ext >&5
17766 echo "$ac_t""$ol_cv_db_db1" 1>&6
17768 if test $ol_cv_db_db1 = yes ; then
17773 if test $ol_cv_lib_db = no ; then
17774 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17775 echo "configure:17776: checking for Berkeley DB link (-ldb-1)" >&5
17776 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17777 echo $ac_n "(cached) $ac_c" 1>&6
17782 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17784 cat > conftest.$ac_ext <<EOF
17785 #line 17786 "configure"
17786 #include "confdefs.h"
17788 #ifdef HAVE_DB_185_H
17789 # include <db_185.h>
17794 #ifndef DB_VERSION_MAJOR
17795 # define DB_VERSION_MAJOR 1
17799 #define NULL ((void*)0)
17804 #if DB_VERSION_MAJOR > 1
17807 int major, minor, patch;
17809 version = db_version( &major, &minor, &patch );
17811 if( major != DB_VERSION_MAJOR ||
17812 minor < DB_VERSION_MINOR )
17814 printf("Berkeley DB version mismatch\n"
17815 "\texpected: %s\n\tgot: %s\n",
17816 DB_VERSION_STRING, version);
17822 #if DB_VERSION_MAJOR > 2
17823 db_env_create( NULL, 0 );
17824 #elif DB_VERSION_MAJOR > 1
17825 db_appexit( NULL );
17827 (void) dbopen( NULL, 0, 0, 0, NULL);
17832 if { (eval echo configure:17833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17836 echo "configure: failed program was:" >&5
17837 cat conftest.$ac_ext >&5
17847 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17849 if test $ol_cv_db_db_1 = yes ; then
17850 ol_cv_lib_db=-ldb-1
17855 if test "$ol_cv_lib_db" != no ; then
17856 ol_cv_berkeley_db=yes
17862 ol_cv_berkeley_db=no
17865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17867 echo "configure:17868: checking for $ac_hdr" >&5
17868 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17869 echo $ac_n "(cached) $ac_c" 1>&6
17871 cat > conftest.$ac_ext <<EOF
17872 #line 17873 "configure"
17873 #include "confdefs.h"
17876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17877 { (eval echo configure:17878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17879 if test -z "$ac_err"; then
17881 eval "ac_cv_header_$ac_safe=yes"
17884 echo "configure: failed program was:" >&5
17885 cat conftest.$ac_ext >&5
17887 eval "ac_cv_header_$ac_safe=no"
17891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17892 echo "$ac_t""yes" 1>&6
17893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17894 cat >> confdefs.h <<EOF
17895 #define $ac_tr_hdr 1
17899 echo "$ac_t""no" 1>&6
17903 if test $ac_cv_header_db_h = yes; then
17905 if test $ol_cv_lib_db = no ; then
17906 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17907 echo "configure:17908: checking for Berkeley DB link (default)" >&5
17908 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17909 echo $ac_n "(cached) $ac_c" 1>&6
17914 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17916 cat > conftest.$ac_ext <<EOF
17917 #line 17918 "configure"
17918 #include "confdefs.h"
17920 #ifdef HAVE_DB_185_H
17921 # include <db_185.h>
17926 #ifndef DB_VERSION_MAJOR
17927 # define DB_VERSION_MAJOR 1
17931 #define NULL ((void*)0)
17936 #if DB_VERSION_MAJOR > 1
17939 int major, minor, patch;
17941 version = db_version( &major, &minor, &patch );
17943 if( major != DB_VERSION_MAJOR ||
17944 minor < DB_VERSION_MINOR )
17946 printf("Berkeley DB version mismatch\n"
17947 "\texpected: %s\n\tgot: %s\n",
17948 DB_VERSION_STRING, version);
17954 #if DB_VERSION_MAJOR > 2
17955 db_env_create( NULL, 0 );
17956 #elif DB_VERSION_MAJOR > 1
17957 db_appexit( NULL );
17959 (void) dbopen( NULL, 0, 0, 0, NULL);
17964 if { (eval echo configure:17965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17968 echo "configure: failed program was:" >&5
17969 cat conftest.$ac_ext >&5
17979 echo "$ac_t""$ol_cv_db_none" 1>&6
17981 if test $ol_cv_db_none = yes ; then
17986 if test $ol_cv_lib_db = no ; then
17987 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17988 echo "configure:17989: checking for Berkeley DB link (-ldb41)" >&5
17989 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17990 echo $ac_n "(cached) $ac_c" 1>&6
17995 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17997 cat > conftest.$ac_ext <<EOF
17998 #line 17999 "configure"
17999 #include "confdefs.h"
18001 #ifdef HAVE_DB_185_H
18002 # include <db_185.h>
18007 #ifndef DB_VERSION_MAJOR
18008 # define DB_VERSION_MAJOR 1
18012 #define NULL ((void*)0)
18017 #if DB_VERSION_MAJOR > 1
18020 int major, minor, patch;
18022 version = db_version( &major, &minor, &patch );
18024 if( major != DB_VERSION_MAJOR ||
18025 minor < DB_VERSION_MINOR )
18027 printf("Berkeley DB version mismatch\n"
18028 "\texpected: %s\n\tgot: %s\n",
18029 DB_VERSION_STRING, version);
18035 #if DB_VERSION_MAJOR > 2
18036 db_env_create( NULL, 0 );
18037 #elif DB_VERSION_MAJOR > 1
18038 db_appexit( NULL );
18040 (void) dbopen( NULL, 0, 0, 0, NULL);
18045 if { (eval echo configure:18046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18049 echo "configure: failed program was:" >&5
18050 cat conftest.$ac_ext >&5
18060 echo "$ac_t""$ol_cv_db_db41" 1>&6
18062 if test $ol_cv_db_db41 = yes ; then
18063 ol_cv_lib_db=-ldb41
18067 if test $ol_cv_lib_db = no ; then
18068 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18069 echo "configure:18070: checking for Berkeley DB link (-ldb-41)" >&5
18070 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18071 echo $ac_n "(cached) $ac_c" 1>&6
18076 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18078 cat > conftest.$ac_ext <<EOF
18079 #line 18080 "configure"
18080 #include "confdefs.h"
18082 #ifdef HAVE_DB_185_H
18083 # include <db_185.h>
18088 #ifndef DB_VERSION_MAJOR
18089 # define DB_VERSION_MAJOR 1
18093 #define NULL ((void*)0)
18098 #if DB_VERSION_MAJOR > 1
18101 int major, minor, patch;
18103 version = db_version( &major, &minor, &patch );
18105 if( major != DB_VERSION_MAJOR ||
18106 minor < DB_VERSION_MINOR )
18108 printf("Berkeley DB version mismatch\n"
18109 "\texpected: %s\n\tgot: %s\n",
18110 DB_VERSION_STRING, version);
18116 #if DB_VERSION_MAJOR > 2
18117 db_env_create( NULL, 0 );
18118 #elif DB_VERSION_MAJOR > 1
18119 db_appexit( NULL );
18121 (void) dbopen( NULL, 0, 0, 0, NULL);
18126 if { (eval echo configure:18127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18130 echo "configure: failed program was:" >&5
18131 cat conftest.$ac_ext >&5
18141 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18143 if test $ol_cv_db_db_41 = yes ; then
18144 ol_cv_lib_db=-ldb-41
18148 if test $ol_cv_lib_db = no ; then
18149 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18150 echo "configure:18151: checking for Berkeley DB link (-ldb-4.1)" >&5
18151 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18152 echo $ac_n "(cached) $ac_c" 1>&6
18157 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18159 cat > conftest.$ac_ext <<EOF
18160 #line 18161 "configure"
18161 #include "confdefs.h"
18163 #ifdef HAVE_DB_185_H
18164 # include <db_185.h>
18169 #ifndef DB_VERSION_MAJOR
18170 # define DB_VERSION_MAJOR 1
18174 #define NULL ((void*)0)
18179 #if DB_VERSION_MAJOR > 1
18182 int major, minor, patch;
18184 version = db_version( &major, &minor, &patch );
18186 if( major != DB_VERSION_MAJOR ||
18187 minor < DB_VERSION_MINOR )
18189 printf("Berkeley DB version mismatch\n"
18190 "\texpected: %s\n\tgot: %s\n",
18191 DB_VERSION_STRING, version);
18197 #if DB_VERSION_MAJOR > 2
18198 db_env_create( NULL, 0 );
18199 #elif DB_VERSION_MAJOR > 1
18200 db_appexit( NULL );
18202 (void) dbopen( NULL, 0, 0, 0, NULL);
18207 if { (eval echo configure:18208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209 ol_cv_db_db_4_dot_1=yes
18211 echo "configure: failed program was:" >&5
18212 cat conftest.$ac_ext >&5
18214 ol_cv_db_db_4_dot_1=no
18222 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18224 if test $ol_cv_db_db_4_dot_1 = yes ; then
18225 ol_cv_lib_db=-ldb-4.1
18229 if test $ol_cv_lib_db = no ; then
18230 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18231 echo "configure:18232: checking for Berkeley DB link (-ldb-4-1)" >&5
18232 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18233 echo $ac_n "(cached) $ac_c" 1>&6
18238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18240 cat > conftest.$ac_ext <<EOF
18241 #line 18242 "configure"
18242 #include "confdefs.h"
18244 #ifdef HAVE_DB_185_H
18245 # include <db_185.h>
18250 #ifndef DB_VERSION_MAJOR
18251 # define DB_VERSION_MAJOR 1
18255 #define NULL ((void*)0)
18260 #if DB_VERSION_MAJOR > 1
18263 int major, minor, patch;
18265 version = db_version( &major, &minor, &patch );
18267 if( major != DB_VERSION_MAJOR ||
18268 minor < DB_VERSION_MINOR )
18270 printf("Berkeley DB version mismatch\n"
18271 "\texpected: %s\n\tgot: %s\n",
18272 DB_VERSION_STRING, version);
18278 #if DB_VERSION_MAJOR > 2
18279 db_env_create( NULL, 0 );
18280 #elif DB_VERSION_MAJOR > 1
18281 db_appexit( NULL );
18283 (void) dbopen( NULL, 0, 0, 0, NULL);
18288 if { (eval echo configure:18289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18290 ol_cv_db_db_4_1=yes
18292 echo "configure: failed program was:" >&5
18293 cat conftest.$ac_ext >&5
18303 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18305 if test $ol_cv_db_db_4_1 = yes ; then
18306 ol_cv_lib_db=-ldb-4-1
18310 if test $ol_cv_lib_db = no ; then
18311 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18312 echo "configure:18313: checking for Berkeley DB link (-ldb-4)" >&5
18313 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18314 echo $ac_n "(cached) $ac_c" 1>&6
18319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18321 cat > conftest.$ac_ext <<EOF
18322 #line 18323 "configure"
18323 #include "confdefs.h"
18325 #ifdef HAVE_DB_185_H
18326 # include <db_185.h>
18331 #ifndef DB_VERSION_MAJOR
18332 # define DB_VERSION_MAJOR 1
18336 #define NULL ((void*)0)
18341 #if DB_VERSION_MAJOR > 1
18344 int major, minor, patch;
18346 version = db_version( &major, &minor, &patch );
18348 if( major != DB_VERSION_MAJOR ||
18349 minor < DB_VERSION_MINOR )
18351 printf("Berkeley DB version mismatch\n"
18352 "\texpected: %s\n\tgot: %s\n",
18353 DB_VERSION_STRING, version);
18359 #if DB_VERSION_MAJOR > 2
18360 db_env_create( NULL, 0 );
18361 #elif DB_VERSION_MAJOR > 1
18362 db_appexit( NULL );
18364 (void) dbopen( NULL, 0, 0, 0, NULL);
18369 if { (eval echo configure:18370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18373 echo "configure: failed program was:" >&5
18374 cat conftest.$ac_ext >&5
18384 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18386 if test $ol_cv_db_db_4 = yes ; then
18387 ol_cv_lib_db=-ldb-4
18391 if test $ol_cv_lib_db = no ; then
18392 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18393 echo "configure:18394: checking for Berkeley DB link (-ldb4)" >&5
18394 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18400 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18402 cat > conftest.$ac_ext <<EOF
18403 #line 18404 "configure"
18404 #include "confdefs.h"
18406 #ifdef HAVE_DB_185_H
18407 # include <db_185.h>
18412 #ifndef DB_VERSION_MAJOR
18413 # define DB_VERSION_MAJOR 1
18417 #define NULL ((void*)0)
18422 #if DB_VERSION_MAJOR > 1
18425 int major, minor, patch;
18427 version = db_version( &major, &minor, &patch );
18429 if( major != DB_VERSION_MAJOR ||
18430 minor < DB_VERSION_MINOR )
18432 printf("Berkeley DB version mismatch\n"
18433 "\texpected: %s\n\tgot: %s\n",
18434 DB_VERSION_STRING, version);
18440 #if DB_VERSION_MAJOR > 2
18441 db_env_create( NULL, 0 );
18442 #elif DB_VERSION_MAJOR > 1
18443 db_appexit( NULL );
18445 (void) dbopen( NULL, 0, 0, 0, NULL);
18450 if { (eval echo configure:18451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18454 echo "configure: failed program was:" >&5
18455 cat conftest.$ac_ext >&5
18465 echo "$ac_t""$ol_cv_db_db4" 1>&6
18467 if test $ol_cv_db_db4 = yes ; then
18472 if test $ol_cv_lib_db = no ; then
18473 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18474 echo "configure:18475: checking for Berkeley DB link (-ldb)" >&5
18475 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18476 echo $ac_n "(cached) $ac_c" 1>&6
18481 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18483 cat > conftest.$ac_ext <<EOF
18484 #line 18485 "configure"
18485 #include "confdefs.h"
18487 #ifdef HAVE_DB_185_H
18488 # include <db_185.h>
18493 #ifndef DB_VERSION_MAJOR
18494 # define DB_VERSION_MAJOR 1
18498 #define NULL ((void*)0)
18503 #if DB_VERSION_MAJOR > 1
18506 int major, minor, patch;
18508 version = db_version( &major, &minor, &patch );
18510 if( major != DB_VERSION_MAJOR ||
18511 minor < DB_VERSION_MINOR )
18513 printf("Berkeley DB version mismatch\n"
18514 "\texpected: %s\n\tgot: %s\n",
18515 DB_VERSION_STRING, version);
18521 #if DB_VERSION_MAJOR > 2
18522 db_env_create( NULL, 0 );
18523 #elif DB_VERSION_MAJOR > 1
18524 db_appexit( NULL );
18526 (void) dbopen( NULL, 0, 0, 0, NULL);
18531 if { (eval echo configure:18532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18535 echo "configure: failed program was:" >&5
18536 cat conftest.$ac_ext >&5
18546 echo "$ac_t""$ol_cv_db_db" 1>&6
18548 if test $ol_cv_db_db = yes ; then
18553 if test $ol_cv_lib_db = no ; then
18554 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18555 echo "configure:18556: checking for Berkeley DB link (-ldb3)" >&5
18556 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18557 echo $ac_n "(cached) $ac_c" 1>&6
18562 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18564 cat > conftest.$ac_ext <<EOF
18565 #line 18566 "configure"
18566 #include "confdefs.h"
18568 #ifdef HAVE_DB_185_H
18569 # include <db_185.h>
18574 #ifndef DB_VERSION_MAJOR
18575 # define DB_VERSION_MAJOR 1
18579 #define NULL ((void*)0)
18584 #if DB_VERSION_MAJOR > 1
18587 int major, minor, patch;
18589 version = db_version( &major, &minor, &patch );
18591 if( major != DB_VERSION_MAJOR ||
18592 minor < DB_VERSION_MINOR )
18594 printf("Berkeley DB version mismatch\n"
18595 "\texpected: %s\n\tgot: %s\n",
18596 DB_VERSION_STRING, version);
18602 #if DB_VERSION_MAJOR > 2
18603 db_env_create( NULL, 0 );
18604 #elif DB_VERSION_MAJOR > 1
18605 db_appexit( NULL );
18607 (void) dbopen( NULL, 0, 0, 0, NULL);
18612 if { (eval echo configure:18613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18616 echo "configure: failed program was:" >&5
18617 cat conftest.$ac_ext >&5
18627 echo "$ac_t""$ol_cv_db_db3" 1>&6
18629 if test $ol_cv_db_db3 = yes ; then
18634 if test $ol_cv_lib_db = no ; then
18635 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18636 echo "configure:18637: checking for Berkeley DB link (-ldb-3)" >&5
18637 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18638 echo $ac_n "(cached) $ac_c" 1>&6
18643 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18645 cat > conftest.$ac_ext <<EOF
18646 #line 18647 "configure"
18647 #include "confdefs.h"
18649 #ifdef HAVE_DB_185_H
18650 # include <db_185.h>
18655 #ifndef DB_VERSION_MAJOR
18656 # define DB_VERSION_MAJOR 1
18660 #define NULL ((void*)0)
18665 #if DB_VERSION_MAJOR > 1
18668 int major, minor, patch;
18670 version = db_version( &major, &minor, &patch );
18672 if( major != DB_VERSION_MAJOR ||
18673 minor < DB_VERSION_MINOR )
18675 printf("Berkeley DB version mismatch\n"
18676 "\texpected: %s\n\tgot: %s\n",
18677 DB_VERSION_STRING, version);
18683 #if DB_VERSION_MAJOR > 2
18684 db_env_create( NULL, 0 );
18685 #elif DB_VERSION_MAJOR > 1
18686 db_appexit( NULL );
18688 (void) dbopen( NULL, 0, 0, 0, NULL);
18693 if { (eval echo configure:18694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18697 echo "configure: failed program was:" >&5
18698 cat conftest.$ac_ext >&5
18708 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18710 if test $ol_cv_db_db_3 = yes ; then
18711 ol_cv_lib_db=-ldb-3
18715 if test $ol_cv_lib_db = no ; then
18716 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18717 echo "configure:18718: checking for Berkeley DB link (-ldb2)" >&5
18718 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18719 echo $ac_n "(cached) $ac_c" 1>&6
18724 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18726 cat > conftest.$ac_ext <<EOF
18727 #line 18728 "configure"
18728 #include "confdefs.h"
18730 #ifdef HAVE_DB_185_H
18731 # include <db_185.h>
18736 #ifndef DB_VERSION_MAJOR
18737 # define DB_VERSION_MAJOR 1
18741 #define NULL ((void*)0)
18746 #if DB_VERSION_MAJOR > 1
18749 int major, minor, patch;
18751 version = db_version( &major, &minor, &patch );
18753 if( major != DB_VERSION_MAJOR ||
18754 minor < DB_VERSION_MINOR )
18756 printf("Berkeley DB version mismatch\n"
18757 "\texpected: %s\n\tgot: %s\n",
18758 DB_VERSION_STRING, version);
18764 #if DB_VERSION_MAJOR > 2
18765 db_env_create( NULL, 0 );
18766 #elif DB_VERSION_MAJOR > 1
18767 db_appexit( NULL );
18769 (void) dbopen( NULL, 0, 0, 0, NULL);
18774 if { (eval echo configure:18775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18778 echo "configure: failed program was:" >&5
18779 cat conftest.$ac_ext >&5
18789 echo "$ac_t""$ol_cv_db_db2" 1>&6
18791 if test $ol_cv_db_db2 = yes ; then
18796 if test $ol_cv_lib_db = no ; then
18797 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18798 echo "configure:18799: checking for Berkeley DB link (-ldb-2)" >&5
18799 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18800 echo $ac_n "(cached) $ac_c" 1>&6
18805 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18807 cat > conftest.$ac_ext <<EOF
18808 #line 18809 "configure"
18809 #include "confdefs.h"
18811 #ifdef HAVE_DB_185_H
18812 # include <db_185.h>
18817 #ifndef DB_VERSION_MAJOR
18818 # define DB_VERSION_MAJOR 1
18822 #define NULL ((void*)0)
18827 #if DB_VERSION_MAJOR > 1
18830 int major, minor, patch;
18832 version = db_version( &major, &minor, &patch );
18834 if( major != DB_VERSION_MAJOR ||
18835 minor < DB_VERSION_MINOR )
18837 printf("Berkeley DB version mismatch\n"
18838 "\texpected: %s\n\tgot: %s\n",
18839 DB_VERSION_STRING, version);
18845 #if DB_VERSION_MAJOR > 2
18846 db_env_create( NULL, 0 );
18847 #elif DB_VERSION_MAJOR > 1
18848 db_appexit( NULL );
18850 (void) dbopen( NULL, 0, 0, 0, NULL);
18855 if { (eval echo configure:18856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18859 echo "configure: failed program was:" >&5
18860 cat conftest.$ac_ext >&5
18870 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18872 if test $ol_cv_db_db_2 = yes ; then
18873 ol_cv_lib_db=-ldb-2
18877 if test $ol_cv_lib_db = no ; then
18878 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18879 echo "configure:18880: checking for Berkeley DB link (-ldb1)" >&5
18880 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18881 echo $ac_n "(cached) $ac_c" 1>&6
18886 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18888 cat > conftest.$ac_ext <<EOF
18889 #line 18890 "configure"
18890 #include "confdefs.h"
18892 #ifdef HAVE_DB_185_H
18893 # include <db_185.h>
18898 #ifndef DB_VERSION_MAJOR
18899 # define DB_VERSION_MAJOR 1
18903 #define NULL ((void*)0)
18908 #if DB_VERSION_MAJOR > 1
18911 int major, minor, patch;
18913 version = db_version( &major, &minor, &patch );
18915 if( major != DB_VERSION_MAJOR ||
18916 minor < DB_VERSION_MINOR )
18918 printf("Berkeley DB version mismatch\n"
18919 "\texpected: %s\n\tgot: %s\n",
18920 DB_VERSION_STRING, version);
18926 #if DB_VERSION_MAJOR > 2
18927 db_env_create( NULL, 0 );
18928 #elif DB_VERSION_MAJOR > 1
18929 db_appexit( NULL );
18931 (void) dbopen( NULL, 0, 0, 0, NULL);
18936 if { (eval echo configure:18937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18940 echo "configure: failed program was:" >&5
18941 cat conftest.$ac_ext >&5
18951 echo "$ac_t""$ol_cv_db_db1" 1>&6
18953 if test $ol_cv_db_db1 = yes ; then
18958 if test $ol_cv_lib_db = no ; then
18959 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18960 echo "configure:18961: checking for Berkeley DB link (-ldb-1)" >&5
18961 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18962 echo $ac_n "(cached) $ac_c" 1>&6
18967 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18969 cat > conftest.$ac_ext <<EOF
18970 #line 18971 "configure"
18971 #include "confdefs.h"
18973 #ifdef HAVE_DB_185_H
18974 # include <db_185.h>
18979 #ifndef DB_VERSION_MAJOR
18980 # define DB_VERSION_MAJOR 1
18984 #define NULL ((void*)0)
18989 #if DB_VERSION_MAJOR > 1
18992 int major, minor, patch;
18994 version = db_version( &major, &minor, &patch );
18996 if( major != DB_VERSION_MAJOR ||
18997 minor < DB_VERSION_MINOR )
18999 printf("Berkeley DB version mismatch\n"
19000 "\texpected: %s\n\tgot: %s\n",
19001 DB_VERSION_STRING, version);
19007 #if DB_VERSION_MAJOR > 2
19008 db_env_create( NULL, 0 );
19009 #elif DB_VERSION_MAJOR > 1
19010 db_appexit( NULL );
19012 (void) dbopen( NULL, 0, 0, 0, NULL);
19017 if { (eval echo configure:19018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19021 echo "configure: failed program was:" >&5
19022 cat conftest.$ac_ext >&5
19032 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19034 if test $ol_cv_db_db_1 = yes ; then
19035 ol_cv_lib_db=-ldb-1
19040 if test "$ol_cv_lib_db" != no ; then
19041 ol_cv_berkeley_db=yes
19042 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19043 echo "configure:19044: checking for Berkeley DB thread support" >&5
19044 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19045 echo $ac_n "(cached) $ac_c" 1>&6
19049 LIBS="$LTHREAD_LIBS $LIBS"
19050 if test $ol_cv_lib_db != yes ; then
19051 LIBS="$ol_cv_lib_db $LIBS"
19054 if test "$cross_compiling" = yes; then
19055 ol_cv_berkeley_db_thread=cross
19057 cat > conftest.$ac_ext <<EOF
19058 #line 19059 "configure"
19059 #include "confdefs.h"
19061 #ifdef HAVE_DB_185_H
19067 #define NULL ((void *)0)
19072 u_int32_t flags = DB_CREATE |
19078 #if DB_VERSION_MAJOR > 2
19079 DB_ENV *env = NULL;
19081 rc = db_env_create( &env, 0 );
19083 flags |= DB_INIT_MPOOL;
19084 #ifdef DB_MPOOL_PRIVATE
19085 flags |= DB_MPOOL_PRIVATE;
19089 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19093 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19094 rc = env->open( env, NULL, flags, 0 );
19096 rc = env->open( env, NULL, NULL, flags, 0 );
19100 rc = env->close( env, 0 );
19104 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19110 memset( &env, '\0', sizeof(env) );
19112 rc = db_appinit( NULL, NULL, &env, flags );
19115 db_appexit( &env );
19118 unlink("__db_mpool.share");
19119 unlink("__db_lock.share");
19125 if { (eval echo configure:19126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19127 ol_cv_berkeley_db_thread=yes
19129 echo "configure: failed program was:" >&5
19130 cat conftest.$ac_ext >&5
19132 ol_cv_berkeley_db_thread=no
19142 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19144 if test $ol_cv_berkeley_db_thread != no ; then
19145 cat >> confdefs.h <<\EOF
19146 #define HAVE_BERKELEY_DB_THREAD 1
19156 if test $ol_cv_berkeley_db != no ; then
19157 cat >> confdefs.h <<\EOF
19158 #define HAVE_BERKELEY_DB 1
19162 ol_link_ldbm=berkeley
19163 ol_with_ldbm_api=berkeley
19165 if test $ol_with_ldbm_type = hash ; then
19166 cat >> confdefs.h <<\EOF
19167 #define LDBM_USE_DBHASH 1
19171 cat >> confdefs.h <<\EOF
19172 #define LDBM_USE_DBBTREE 1
19177 if test $ol_cv_lib_db != yes ; then
19178 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19183 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19184 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19185 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19186 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19187 echo "configure:19188: checking Berkeley DB version for BDB backend" >&5
19188 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19189 echo $ac_n "(cached) $ac_c" 1>&6
19192 cat > conftest.$ac_ext <<EOF
19193 #line 19194 "configure"
19194 #include "confdefs.h"
19198 /* this check could be improved */
19199 #ifndef DB_VERSION_MAJOR
19200 # define DB_VERSION_MAJOR 1
19202 #ifndef DB_VERSION_MINOR
19203 # define DB_VERSION_MINOR 0
19206 /* require 4.1 or later */
19207 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
19208 __db_version_compat
19212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19213 egrep "__db_version_compat" >/dev/null 2>&1; then
19215 ol_cv_bdb_compat=yes
19218 ol_cv_bdb_compat=no
19224 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19227 if test $ol_cv_bdb_compat = yes ; then
19229 elif test $ol_enable_bdb = yes ; then
19230 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19235 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19236 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19239 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19240 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19241 ol_with_ldbm_api=none
19244 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19245 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19246 echo "configure:19247: checking for MDBM library" >&5
19247 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19248 echo $ac_n "(cached) $ac_c" 1>&6
19251 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19252 echo "configure:19253: checking for mdbm_set_chain" >&5
19253 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19254 echo $ac_n "(cached) $ac_c" 1>&6
19256 cat > conftest.$ac_ext <<EOF
19257 #line 19258 "configure"
19258 #include "confdefs.h"
19259 /* System header to define __stub macros and hopefully few prototypes,
19260 which can conflict with char mdbm_set_chain(); below. */
19261 #include <assert.h>
19262 /* Override any gcc2 internal prototype to avoid an error. */
19263 /* We use char because int might match the return type of a gcc2
19264 builtin and then its argument prototype would still apply. */
19265 char mdbm_set_chain();
19270 /* The GNU C library defines this for functions which it implements
19271 to always fail with ENOSYS. Some functions are actually named
19272 something starting with __ and the normal name is an alias. */
19273 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19276 f = mdbm_set_chain;
19281 if { (eval echo configure:19282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19283 eval "ac_cv_func_mdbm_set_chain=yes"
19285 echo "configure: failed program was:" >&5
19286 cat conftest.$ac_ext >&5
19288 eval "ac_cv_func_mdbm_set_chain=no"
19293 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19294 echo "$ac_t""yes" 1>&6
19297 echo "$ac_t""no" 1>&6
19299 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19300 echo "configure:19301: checking for mdbm_set_chain in -lmdbm" >&5
19301 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19302 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19303 echo $ac_n "(cached) $ac_c" 1>&6
19305 ac_save_LIBS="$LIBS"
19306 LIBS="-lmdbm $LIBS"
19307 cat > conftest.$ac_ext <<EOF
19308 #line 19309 "configure"
19309 #include "confdefs.h"
19310 /* Override any gcc2 internal prototype to avoid an error. */
19311 /* We use char because int might match the return type of a gcc2
19312 builtin and then its argument prototype would still apply. */
19313 char mdbm_set_chain();
19319 if { (eval echo configure:19320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19321 eval "ac_cv_lib_$ac_lib_var=yes"
19323 echo "configure: failed program was:" >&5
19324 cat conftest.$ac_ext >&5
19326 eval "ac_cv_lib_$ac_lib_var=no"
19329 LIBS="$ac_save_LIBS"
19332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19333 echo "$ac_t""yes" 1>&6
19334 ol_cv_lib_mdbm=-lmdbm
19336 echo "$ac_t""no" 1>&6
19347 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19350 for ac_hdr in mdbm.h
19352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19354 echo "configure:19355: checking for $ac_hdr" >&5
19355 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19356 echo $ac_n "(cached) $ac_c" 1>&6
19358 cat > conftest.$ac_ext <<EOF
19359 #line 19360 "configure"
19360 #include "confdefs.h"
19363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19364 { (eval echo configure:19365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19366 if test -z "$ac_err"; then
19368 eval "ac_cv_header_$ac_safe=yes"
19371 echo "configure: failed program was:" >&5
19372 cat conftest.$ac_ext >&5
19374 eval "ac_cv_header_$ac_safe=no"
19378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19379 echo "$ac_t""yes" 1>&6
19380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19381 cat >> confdefs.h <<EOF
19382 #define $ac_tr_hdr 1
19386 echo "$ac_t""no" 1>&6
19390 echo $ac_n "checking for db""... $ac_c" 1>&6
19391 echo "configure:19392: checking for db" >&5
19392 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
19396 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19404 echo "$ac_t""$ol_cv_mdbm" 1>&6
19405 if test $ol_cv_mdbm = yes ; then
19406 cat >> confdefs.h <<\EOF
19407 #define HAVE_MDBM 1
19413 if test $ol_cv_mdbm = yes ; then
19415 ol_with_ldbm_api=mdbm
19416 if test $ol_cv_lib_mdbm != yes ; then
19417 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19422 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19423 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19424 echo "configure:19425: checking for GDBM library" >&5
19425 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19426 echo $ac_n "(cached) $ac_c" 1>&6
19429 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19430 echo "configure:19431: checking for gdbm_open" >&5
19431 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19432 echo $ac_n "(cached) $ac_c" 1>&6
19434 cat > conftest.$ac_ext <<EOF
19435 #line 19436 "configure"
19436 #include "confdefs.h"
19437 /* System header to define __stub macros and hopefully few prototypes,
19438 which can conflict with char gdbm_open(); below. */
19439 #include <assert.h>
19440 /* Override any gcc2 internal prototype to avoid an error. */
19441 /* We use char because int might match the return type of a gcc2
19442 builtin and then its argument prototype would still apply. */
19448 /* The GNU C library defines this for functions which it implements
19449 to always fail with ENOSYS. Some functions are actually named
19450 something starting with __ and the normal name is an alias. */
19451 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19459 if { (eval echo configure:19460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19461 eval "ac_cv_func_gdbm_open=yes"
19463 echo "configure: failed program was:" >&5
19464 cat conftest.$ac_ext >&5
19466 eval "ac_cv_func_gdbm_open=no"
19471 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19472 echo "$ac_t""yes" 1>&6
19475 echo "$ac_t""no" 1>&6
19477 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19478 echo "configure:19479: checking for gdbm_open in -lgdbm" >&5
19479 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19480 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19481 echo $ac_n "(cached) $ac_c" 1>&6
19483 ac_save_LIBS="$LIBS"
19484 LIBS="-lgdbm $LIBS"
19485 cat > conftest.$ac_ext <<EOF
19486 #line 19487 "configure"
19487 #include "confdefs.h"
19488 /* Override any gcc2 internal prototype to avoid an error. */
19489 /* We use char because int might match the return type of a gcc2
19490 builtin and then its argument prototype would still apply. */
19497 if { (eval echo configure:19498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19499 eval "ac_cv_lib_$ac_lib_var=yes"
19501 echo "configure: failed program was:" >&5
19502 cat conftest.$ac_ext >&5
19504 eval "ac_cv_lib_$ac_lib_var=no"
19507 LIBS="$ac_save_LIBS"
19510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19511 echo "$ac_t""yes" 1>&6
19512 ol_cv_lib_gdbm=-lgdbm
19514 echo "$ac_t""no" 1>&6
19525 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19528 for ac_hdr in gdbm.h
19530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19532 echo "configure:19533: checking for $ac_hdr" >&5
19533 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19534 echo $ac_n "(cached) $ac_c" 1>&6
19536 cat > conftest.$ac_ext <<EOF
19537 #line 19538 "configure"
19538 #include "confdefs.h"
19541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19542 { (eval echo configure:19543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19544 if test -z "$ac_err"; then
19546 eval "ac_cv_header_$ac_safe=yes"
19549 echo "configure: failed program was:" >&5
19550 cat conftest.$ac_ext >&5
19552 eval "ac_cv_header_$ac_safe=no"
19556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19557 echo "$ac_t""yes" 1>&6
19558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19559 cat >> confdefs.h <<EOF
19560 #define $ac_tr_hdr 1
19564 echo "$ac_t""no" 1>&6
19568 echo $ac_n "checking for db""... $ac_c" 1>&6
19569 echo "configure:19570: checking for db" >&5
19570 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19571 echo $ac_n "(cached) $ac_c" 1>&6
19574 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19582 echo "$ac_t""$ol_cv_gdbm" 1>&6
19583 if test $ol_cv_gdbm = yes ; then
19584 cat >> confdefs.h <<\EOF
19585 #define HAVE_GDBM 1
19591 if test $ol_cv_gdbm = yes ; then
19593 ol_with_ldbm_api=gdbm
19595 if test $ol_cv_lib_gdbm != yes ; then
19596 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19601 if test $ol_with_ldbm_api = ndbm ; then
19602 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19603 echo "configure:19604: checking for NDBM library" >&5
19604 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19605 echo $ac_n "(cached) $ac_c" 1>&6
19608 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19609 echo "configure:19610: checking for dbm_open" >&5
19610 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19611 echo $ac_n "(cached) $ac_c" 1>&6
19613 cat > conftest.$ac_ext <<EOF
19614 #line 19615 "configure"
19615 #include "confdefs.h"
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char dbm_open(); below. */
19618 #include <assert.h>
19619 /* Override any gcc2 internal prototype to avoid an error. */
19620 /* We use char because int might match the return type of a gcc2
19621 builtin and then its argument prototype would still apply. */
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19638 if { (eval echo configure:19639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19640 eval "ac_cv_func_dbm_open=yes"
19642 echo "configure: failed program was:" >&5
19643 cat conftest.$ac_ext >&5
19645 eval "ac_cv_func_dbm_open=no"
19650 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19651 echo "$ac_t""yes" 1>&6
19654 echo "$ac_t""no" 1>&6
19656 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19657 echo "configure:19658: checking for dbm_open in -lndbm" >&5
19658 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19659 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19660 echo $ac_n "(cached) $ac_c" 1>&6
19662 ac_save_LIBS="$LIBS"
19663 LIBS="-lndbm $LIBS"
19664 cat > conftest.$ac_ext <<EOF
19665 #line 19666 "configure"
19666 #include "confdefs.h"
19667 /* Override any gcc2 internal prototype to avoid an error. */
19668 /* We use char because int might match the return type of a gcc2
19669 builtin and then its argument prototype would still apply. */
19676 if { (eval echo configure:19677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19678 eval "ac_cv_lib_$ac_lib_var=yes"
19680 echo "configure: failed program was:" >&5
19681 cat conftest.$ac_ext >&5
19683 eval "ac_cv_lib_$ac_lib_var=no"
19686 LIBS="$ac_save_LIBS"
19689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19690 echo "$ac_t""yes" 1>&6
19691 ol_cv_lib_ndbm=-lndbm
19693 echo "$ac_t""no" 1>&6
19695 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19696 echo "configure:19697: checking for dbm_open in -ldbm" >&5
19697 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19698 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19699 echo $ac_n "(cached) $ac_c" 1>&6
19701 ac_save_LIBS="$LIBS"
19703 cat > conftest.$ac_ext <<EOF
19704 #line 19705 "configure"
19705 #include "confdefs.h"
19706 /* Override any gcc2 internal prototype to avoid an error. */
19707 /* We use char because int might match the return type of a gcc2
19708 builtin and then its argument prototype would still apply. */
19715 if { (eval echo configure:19716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19717 eval "ac_cv_lib_$ac_lib_var=yes"
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19722 eval "ac_cv_lib_$ac_lib_var=no"
19725 LIBS="$ac_save_LIBS"
19728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19729 echo "$ac_t""yes" 1>&6
19730 ol_cv_lib_ndbm=-ldbm
19732 echo "$ac_t""no" 1>&6
19745 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19748 for ac_hdr in ndbm.h
19750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19752 echo "configure:19753: checking for $ac_hdr" >&5
19753 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19754 echo $ac_n "(cached) $ac_c" 1>&6
19756 cat > conftest.$ac_ext <<EOF
19757 #line 19758 "configure"
19758 #include "confdefs.h"
19761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19762 { (eval echo configure:19763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19764 if test -z "$ac_err"; then
19766 eval "ac_cv_header_$ac_safe=yes"
19769 echo "configure: failed program was:" >&5
19770 cat conftest.$ac_ext >&5
19772 eval "ac_cv_header_$ac_safe=no"
19776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19777 echo "$ac_t""yes" 1>&6
19778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19779 cat >> confdefs.h <<EOF
19780 #define $ac_tr_hdr 1
19784 echo "$ac_t""no" 1>&6
19788 echo $ac_n "checking for db""... $ac_c" 1>&6
19789 echo "configure:19790: checking for db" >&5
19790 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19791 echo $ac_n "(cached) $ac_c" 1>&6
19794 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19802 echo "$ac_t""$ol_cv_ndbm" 1>&6
19803 if test $ol_cv_ndbm = yes ; then
19804 cat >> confdefs.h <<\EOF
19805 #define HAVE_NDBM 1
19811 if test $ol_cv_ndbm = yes ; then
19813 ol_with_ldbm_api=ndbm
19815 if test $ol_cv_lib_ndbm != yes ; then
19816 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19821 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19822 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19823 if test $ol_enable_ldbm = yes ; then
19824 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19827 echo "configure: warning: disabling LDBM" 1>&2
19832 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19833 BUILD_LIBS_DYNAMIC=shared
19834 cat >> confdefs.h <<\EOF
19835 #define LDAP_LIBS_DYNAMIC 1
19840 BUILD_LIBS_DYNAMIC=static
19844 if test $ol_enable_wrappers != no ; then
19845 for ac_hdr in tcpd.h
19847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19849 echo "configure:19850: checking for $ac_hdr" >&5
19850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19851 echo $ac_n "(cached) $ac_c" 1>&6
19853 cat > conftest.$ac_ext <<EOF
19854 #line 19855 "configure"
19855 #include "confdefs.h"
19858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19859 { (eval echo configure:19860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19861 if test -z "$ac_err"; then
19863 eval "ac_cv_header_$ac_safe=yes"
19866 echo "configure: failed program was:" >&5
19867 cat conftest.$ac_ext >&5
19869 eval "ac_cv_header_$ac_safe=no"
19873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19874 echo "$ac_t""yes" 1>&6
19875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19876 cat >> confdefs.h <<EOF
19877 #define $ac_tr_hdr 1
19880 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19881 echo "configure:19882: checking for TCP wrappers library" >&5
19883 LIBS="$LIBS -lwrap"
19884 cat > conftest.$ac_ext <<EOF
19885 #line 19886 "configure"
19886 #include "confdefs.h"
19889 int allow_severity = 0;
19890 int deny_severity = 0;
19892 struct request_info *req;
19900 if { (eval echo configure:19901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19902 echo "$ac_t""-lwrap" 1>&6
19906 echo "configure: failed program was:" >&5
19907 cat conftest.$ac_ext >&5
19911 cat > conftest.$ac_ext <<EOF
19912 #line 19913 "configure"
19913 #include "confdefs.h"
19916 int allow_severity = 0;
19917 int deny_severity = 0;
19919 struct request_info *req;
19927 if { (eval echo configure:19928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19929 echo "$ac_t""-lwrap -lnsl" 1>&6
19931 LIBS="$save_LIBS -lnsl"
19933 echo "configure: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19937 echo "$ac_t""no" 1>&6
19945 echo "$ac_t""no" 1>&6
19951 if test $have_wrappers = yes ; then
19952 cat >> confdefs.h <<\EOF
19953 #define HAVE_TCPD 1
19957 elif test $ol_enable_wrappers = yes ; then
19958 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19960 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19965 if test $ol_enable_syslog != no ; then
19966 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19967 echo "configure:19968: checking for openlog" >&5
19968 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19969 echo $ac_n "(cached) $ac_c" 1>&6
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19974 /* System header to define __stub macros and hopefully few prototypes,
19975 which can conflict with char openlog(); below. */
19976 #include <assert.h>
19977 /* Override any gcc2 internal prototype to avoid an error. */
19978 /* We use char because int might match the return type of a gcc2
19979 builtin and then its argument prototype would still apply. */
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined (__stub_openlog) || defined (__stub___openlog)
19996 if { (eval echo configure:19997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19998 eval "ac_cv_func_openlog=yes"
20000 echo "configure: failed program was:" >&5
20001 cat conftest.$ac_ext >&5
20003 eval "ac_cv_func_openlog=no"
20008 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20009 echo "$ac_t""yes" 1>&6
20012 echo "$ac_t""no" 1>&6
20015 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20016 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20018 ol_enable_syslog=$ac_cv_func_openlog
20023 if test $ol_enable_sql != no ; then
20024 for ac_hdr in sql.h sqlext.h
20026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20028 echo "configure:20029: checking for $ac_hdr" >&5
20029 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20030 echo $ac_n "(cached) $ac_c" 1>&6
20032 cat > conftest.$ac_ext <<EOF
20033 #line 20034 "configure"
20034 #include "confdefs.h"
20037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20038 { (eval echo configure:20039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20040 if test -z "$ac_err"; then
20042 eval "ac_cv_header_$ac_safe=yes"
20045 echo "configure: failed program was:" >&5
20046 cat conftest.$ac_ext >&5
20048 eval "ac_cv_header_$ac_safe=no"
20052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20053 echo "$ac_t""yes" 1>&6
20054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20055 cat >> confdefs.h <<EOF
20056 #define $ac_tr_hdr 1
20060 echo "$ac_t""no" 1>&6
20061 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20067 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20068 echo "configure:20069: checking for SQLDriverConnect in -liodbc" >&5
20069 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20071 echo $ac_n "(cached) $ac_c" 1>&6
20073 ac_save_LIBS="$LIBS"
20074 LIBS="-liodbc $LIBS"
20075 cat > conftest.$ac_ext <<EOF
20076 #line 20077 "configure"
20077 #include "confdefs.h"
20078 /* Override any gcc2 internal prototype to avoid an error. */
20079 /* We use char because int might match the return type of a gcc2
20080 builtin and then its argument prototype would still apply. */
20081 char SQLDriverConnect();
20087 if { (eval echo configure:20088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20089 eval "ac_cv_lib_$ac_lib_var=yes"
20091 echo "configure: failed program was:" >&5
20092 cat conftest.$ac_ext >&5
20094 eval "ac_cv_lib_$ac_lib_var=no"
20097 LIBS="$ac_save_LIBS"
20100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20101 echo "$ac_t""yes" 1>&6
20104 echo "$ac_t""no" 1>&6
20108 if test $have_iodbc = yes ; then
20109 ol_link_sql="-liodbc"
20111 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20112 echo "configure:20113: checking for SQLDriverConnect in -lodbc" >&5
20113 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20115 echo $ac_n "(cached) $ac_c" 1>&6
20117 ac_save_LIBS="$LIBS"
20118 LIBS="-lodbc $LIBS"
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* Override any gcc2 internal prototype to avoid an error. */
20123 /* We use char because int might match the return type of a gcc2
20124 builtin and then its argument prototype would still apply. */
20125 char SQLDriverConnect();
20131 if { (eval echo configure:20132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20133 eval "ac_cv_lib_$ac_lib_var=yes"
20135 echo "configure: failed program was:" >&5
20136 cat conftest.$ac_ext >&5
20138 eval "ac_cv_lib_$ac_lib_var=no"
20141 LIBS="$ac_save_LIBS"
20144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20145 echo "$ac_t""yes" 1>&6
20148 echo "$ac_t""no" 1>&6
20152 if test $have_odbc = yes ; then
20153 ol_link_sql="-lodbc"
20157 if test $ol_link_sql != no ; then
20158 SLAPD_SQL_LIBS="$ol_link_sql"
20160 elif test $ol_enable_sql != auto ; then
20161 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20165 if test $ol_enable_tcl != no ; then
20166 for ac_hdr in tcl.h
20168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20170 echo "configure:20171: checking for $ac_hdr" >&5
20171 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20172 echo $ac_n "(cached) $ac_c" 1>&6
20174 cat > conftest.$ac_ext <<EOF
20175 #line 20176 "configure"
20176 #include "confdefs.h"
20179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20180 { (eval echo configure:20181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20182 if test -z "$ac_err"; then
20184 eval "ac_cv_header_$ac_safe=yes"
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20190 eval "ac_cv_header_$ac_safe=no"
20194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20195 echo "$ac_t""yes" 1>&6
20196 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20197 cat >> confdefs.h <<EOF
20198 #define $ac_tr_hdr 1
20202 echo "$ac_t""no" 1>&6
20207 if test $ac_cv_header_tcl_h != yes ; then
20210 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
20211 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
20212 echo "configure:20213: checking for main in -l$lib" >&5
20213 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
20214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20215 echo $ac_n "(cached) $ac_c" 1>&6
20217 ac_save_LIBS="$LIBS"
20218 LIBS="-l$lib $LIBS"
20219 cat > conftest.$ac_ext <<EOF
20220 #line 20221 "configure"
20221 #include "confdefs.h"
20227 if { (eval echo configure:20228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20229 eval "ac_cv_lib_$ac_lib_var=yes"
20231 echo "configure: failed program was:" >&5
20232 cat conftest.$ac_ext >&5
20234 eval "ac_cv_lib_$ac_lib_var=no"
20237 LIBS="$ac_save_LIBS"
20240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20241 echo "$ac_t""yes" 1>&6
20243 if test x"$ol_with_tcl_module" = "xstatic" ; then
20244 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
20246 MOD_TCL_LIB="-l${lib}"
20249 echo "$ac_t""no" 1>&6
20256 if test $have_tcl != yes ; then
20257 echo "configure: warning: could not find -ltcl" 1>&2
20258 if test $ol_enable_tcl = yes ; then
20259 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
20267 for ac_hdr in termcap.h ncurses.h
20269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20271 echo "configure:20272: checking for $ac_hdr" >&5
20272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20273 echo $ac_n "(cached) $ac_c" 1>&6
20275 cat > conftest.$ac_ext <<EOF
20276 #line 20277 "configure"
20277 #include "confdefs.h"
20280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20281 { (eval echo configure:20282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20283 if test -z "$ac_err"; then
20285 eval "ac_cv_header_$ac_safe=yes"
20288 echo "configure: failed program was:" >&5
20289 cat conftest.$ac_ext >&5
20291 eval "ac_cv_header_$ac_safe=no"
20295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20296 echo "$ac_t""yes" 1>&6
20297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20298 cat >> confdefs.h <<EOF
20299 #define $ac_tr_hdr 1
20303 echo "$ac_t""no" 1>&6
20308 if test $ol_link_termcap = no ; then
20309 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
20310 echo "configure:20311: checking for tputs in -ltermcap" >&5
20311 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20315 ac_save_LIBS="$LIBS"
20316 LIBS="-ltermcap $LIBS"
20317 cat > conftest.$ac_ext <<EOF
20318 #line 20319 "configure"
20319 #include "confdefs.h"
20320 /* Override any gcc2 internal prototype to avoid an error. */
20321 /* We use char because int might match the return type of a gcc2
20322 builtin and then its argument prototype would still apply. */
20329 if { (eval echo configure:20330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20331 eval "ac_cv_lib_$ac_lib_var=yes"
20333 echo "configure: failed program was:" >&5
20334 cat conftest.$ac_ext >&5
20336 eval "ac_cv_lib_$ac_lib_var=no"
20339 LIBS="$ac_save_LIBS"
20342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20343 echo "$ac_t""yes" 1>&6
20346 echo "$ac_t""no" 1>&6
20350 if test $have_termcap = yes ; then
20351 cat >> confdefs.h <<\EOF
20352 #define HAVE_TERMCAP 1
20355 ol_link_termcap=yes
20356 TERMCAP_LIBS=-ltermcap
20360 if test $ol_link_termcap = no ; then
20361 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20362 echo "configure:20363: checking for initscr in -lncurses" >&5
20363 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20365 echo $ac_n "(cached) $ac_c" 1>&6
20367 ac_save_LIBS="$LIBS"
20368 LIBS="-lncurses $LIBS"
20369 cat > conftest.$ac_ext <<EOF
20370 #line 20371 "configure"
20371 #include "confdefs.h"
20372 /* Override any gcc2 internal prototype to avoid an error. */
20373 /* We use char because int might match the return type of a gcc2
20374 builtin and then its argument prototype would still apply. */
20381 if { (eval echo configure:20382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20383 eval "ac_cv_lib_$ac_lib_var=yes"
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20388 eval "ac_cv_lib_$ac_lib_var=no"
20391 LIBS="$ac_save_LIBS"
20394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20395 echo "$ac_t""yes" 1>&6
20398 echo "$ac_t""no" 1>&6
20402 if test $have_ncurses = yes ; then
20403 cat >> confdefs.h <<\EOF
20404 #define HAVE_NCURSES 1
20407 ol_link_termcap=yes
20408 TERMCAP_LIBS=-lncurses
20412 if test $ol_link_termcap = no ; then
20413 cat >> confdefs.h <<\EOF
20414 #define NO_TERMCAP 1
20422 if test $ol_with_cyrus_sasl != no ; then
20423 for ac_hdr in sasl/sasl.h sasl.h
20425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20427 echo "configure:20428: checking for $ac_hdr" >&5
20428 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20429 echo $ac_n "(cached) $ac_c" 1>&6
20431 cat > conftest.$ac_ext <<EOF
20432 #line 20433 "configure"
20433 #include "confdefs.h"
20436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20437 { (eval echo configure:20438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20439 if test -z "$ac_err"; then
20441 eval "ac_cv_header_$ac_safe=yes"
20444 echo "configure: failed program was:" >&5
20445 cat conftest.$ac_ext >&5
20447 eval "ac_cv_header_$ac_safe=no"
20451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20452 echo "$ac_t""yes" 1>&6
20453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20454 cat >> confdefs.h <<EOF
20455 #define $ac_tr_hdr 1
20459 echo "$ac_t""no" 1>&6
20464 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20465 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20466 echo "configure:20467: checking for sasl_client_init in -lsasl2" >&5
20467 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20468 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20469 echo $ac_n "(cached) $ac_c" 1>&6
20471 ac_save_LIBS="$LIBS"
20472 LIBS="-lsasl2 $LIBS"
20473 cat > conftest.$ac_ext <<EOF
20474 #line 20475 "configure"
20475 #include "confdefs.h"
20476 /* Override any gcc2 internal prototype to avoid an error. */
20477 /* We use char because int might match the return type of a gcc2
20478 builtin and then its argument prototype would still apply. */
20479 char sasl_client_init();
20485 if { (eval echo configure:20486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20487 eval "ac_cv_lib_$ac_lib_var=yes"
20489 echo "configure: failed program was:" >&5
20490 cat conftest.$ac_ext >&5
20492 eval "ac_cv_lib_$ac_lib_var=no"
20495 LIBS="$ac_save_LIBS"
20498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20499 echo "$ac_t""yes" 1>&6
20500 ol_link_sasl="-lsasl2"
20502 echo "$ac_t""no" 1>&6
20503 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20504 echo "configure:20505: checking for sasl_client_init in -lsasl" >&5
20505 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20506 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20507 echo $ac_n "(cached) $ac_c" 1>&6
20509 ac_save_LIBS="$LIBS"
20510 LIBS="-lsasl $LIBS"
20511 cat > conftest.$ac_ext <<EOF
20512 #line 20513 "configure"
20513 #include "confdefs.h"
20514 /* Override any gcc2 internal prototype to avoid an error. */
20515 /* We use char because int might match the return type of a gcc2
20516 builtin and then its argument prototype would still apply. */
20517 char sasl_client_init();
20523 if { (eval echo configure:20524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20525 eval "ac_cv_lib_$ac_lib_var=yes"
20527 echo "configure: failed program was:" >&5
20528 cat conftest.$ac_ext >&5
20530 eval "ac_cv_lib_$ac_lib_var=no"
20533 LIBS="$ac_save_LIBS"
20536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20537 echo "$ac_t""yes" 1>&6
20538 ol_link_sasl="-lsasl"
20540 echo "$ac_t""no" 1>&6
20547 if test $ol_link_sasl = no ; then
20548 if test $ol_with_cyrus_sasl != auto ; then
20549 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20551 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20552 echo "configure: warning: SASL authentication not supported!" 1>&2
20553 if test $ol_link_tls = no ; then
20554 echo "configure: warning: Strong authentication not supported!" 1>&2
20558 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20559 echo "configure:20560: checking Cyrus SASL library version" >&5
20560 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20561 echo $ac_n "(cached) $ac_c" 1>&6
20564 cat > conftest.$ac_ext <<EOF
20565 #line 20566 "configure"
20566 #include "confdefs.h"
20568 #ifdef HAVE_SASL_SASL_H
20569 #include <sasl/sasl.h>
20574 /* require 2.1.3 or later */
20575 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20576 char *__sasl_compat = "1.5.x okay";
20577 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20578 __sasl_compat "2.2+ or better okay (we guess)";
20579 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20580 && SASL_VERSION_STEP >=3
20581 __sasl_compat = "2.1.3+ or better okay";
20585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20586 egrep "__sasl_compat" >/dev/null 2>&1; then
20588 ol_cv_sasl_compat=yes
20591 ol_cv_sasl_compat=no
20597 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20599 if test $ol_cv_sasl_compat = no ; then
20601 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20604 cat >> confdefs.h <<\EOF
20605 #define HAVE_CYRUS_SASL 1
20608 SASL_LIBS="$ol_link_sasl"
20609 if test $ol_enable_spasswd != no ; then
20610 ol_link_spasswd=yes
20613 ac_save_LIBS="$LIBS"
20614 LIBS="$LIBS $ol_link_sasl"
20615 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20616 echo "configure:20617: checking for sasl_version" >&5
20617 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20618 echo $ac_n "(cached) $ac_c" 1>&6
20620 cat > conftest.$ac_ext <<EOF
20621 #line 20622 "configure"
20622 #include "confdefs.h"
20623 /* System header to define __stub macros and hopefully few prototypes,
20624 which can conflict with char sasl_version(); below. */
20625 #include <assert.h>
20626 /* Override any gcc2 internal prototype to avoid an error. */
20627 /* We use char because int might match the return type of a gcc2
20628 builtin and then its argument prototype would still apply. */
20629 char sasl_version();
20634 /* The GNU C library defines this for functions which it implements
20635 to always fail with ENOSYS. Some functions are actually named
20636 something starting with __ and the normal name is an alias. */
20637 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20645 if { (eval echo configure:20646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20647 eval "ac_cv_func_sasl_version=yes"
20649 echo "configure: failed program was:" >&5
20650 cat conftest.$ac_ext >&5
20652 eval "ac_cv_func_sasl_version=no"
20657 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20658 echo "$ac_t""yes" 1>&6
20659 cat >> confdefs.h <<\EOF
20660 #define HAVE_SASL_VERSION 1
20664 echo "$ac_t""no" 1>&6
20667 LIBS="$ac_save_LIBS"
20671 echo "configure: warning: SASL authentication not supported!" 1>&2
20672 if test $ol_link_tls = no ; then
20673 echo "configure: warning: Strong authentication not supported!" 1>&2
20677 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20679 if test -r /dev/urandom ; then
20680 dev="/dev/urandom";
20681 elif test -r /idev/urandom ; then
20682 dev="/idev/urandom";
20683 elif test -r /dev/srandom ; then
20684 dev="/dev/srandom";
20685 elif test -r /dev/random ; then
20687 elif test -r /idev/random ; then
20688 dev="/idev/random";
20691 if test $dev != no ; then
20692 cat >> confdefs.h <<EOF
20693 #define URANDOM_DEVICE "$dev"
20700 if test $ol_with_fetch != no ; then
20702 LIBS="-lfetch -lcom_err $LIBS"
20703 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20704 echo "configure:20705: checking fetch(3) library" >&5
20705 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20706 echo $ac_n "(cached) $ac_c" 1>&6
20709 cat > conftest.$ac_ext <<EOF
20710 #line 20711 "configure"
20711 #include "confdefs.h"
20713 #include <sys/param.h>
20717 struct url *u = fetchParseURL("file:///");
20720 if { (eval echo configure:20721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20722 ol_cv_lib_fetch=yes
20724 echo "configure: failed program was:" >&5
20725 cat conftest.$ac_ext >&5
20732 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20734 if test $ol_cv_lib_fetch != no ; then
20735 ol_link_fetch="-lfetch -lcom_err"
20736 cat >> confdefs.h <<\EOF
20737 #define HAVE_FETCH 1
20743 if test $ol_cv_lib_fetch != no ; then
20744 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20745 ol_link_fetch=freebsd
20747 elif test $ol_with_fetch != auto ; then
20748 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20752 ol_link_readline=no
20753 if test $ol_with_readline != no ; then
20754 for ac_hdr in readline/readline.h readline/history.h
20756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20758 echo "configure:20759: checking for $ac_hdr" >&5
20759 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20760 echo $ac_n "(cached) $ac_c" 1>&6
20762 cat > conftest.$ac_ext <<EOF
20763 #line 20764 "configure"
20764 #include "confdefs.h"
20767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20768 { (eval echo configure:20769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20770 if test -z "$ac_err"; then
20772 eval "ac_cv_header_$ac_safe=yes"
20775 echo "configure: failed program was:" >&5
20776 cat conftest.$ac_ext >&5
20778 eval "ac_cv_header_$ac_safe=no"
20782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20783 echo "$ac_t""yes" 1>&6
20784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20785 cat >> confdefs.h <<EOF
20786 #define $ac_tr_hdr 1
20790 echo "$ac_t""no" 1>&6
20795 if test $ac_cv_header_readline_readline_h = yes ; then
20797 LIBS="$TERMCAP_LIBS $LIBS"
20798 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20799 echo "configure:20800: checking for readline in -lreadline" >&5
20800 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20802 echo $ac_n "(cached) $ac_c" 1>&6
20804 ac_save_LIBS="$LIBS"
20805 LIBS="-lreadline $LIBS"
20806 cat > conftest.$ac_ext <<EOF
20807 #line 20808 "configure"
20808 #include "confdefs.h"
20809 /* Override any gcc2 internal prototype to avoid an error. */
20810 /* We use char because int might match the return type of a gcc2
20811 builtin and then its argument prototype would still apply. */
20818 if { (eval echo configure:20819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20820 eval "ac_cv_lib_$ac_lib_var=yes"
20822 echo "configure: failed program was:" >&5
20823 cat conftest.$ac_ext >&5
20825 eval "ac_cv_lib_$ac_lib_var=no"
20828 LIBS="$ac_save_LIBS"
20831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20832 echo "$ac_t""yes" 1>&6
20835 echo "$ac_t""no" 1>&6
20841 if test $have_readline = yes ; then
20842 ol_with_readline=found
20843 ol_link_readline=yes
20845 READLINE_LIBS="-lreadline"
20850 if test $ol_link_readline = yes ; then
20851 cat >> confdefs.h <<\EOF
20852 #define HAVE_READLINE 1
20858 if test $ol_enable_crypt != no ; then
20860 LIBS="$TLS_LIBS $LIBS"
20862 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20863 echo "configure:20864: checking for crypt" >&5
20864 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20865 echo $ac_n "(cached) $ac_c" 1>&6
20867 cat > conftest.$ac_ext <<EOF
20868 #line 20869 "configure"
20869 #include "confdefs.h"
20870 /* System header to define __stub macros and hopefully few prototypes,
20871 which can conflict with char crypt(); below. */
20872 #include <assert.h>
20873 /* Override any gcc2 internal prototype to avoid an error. */
20874 /* We use char because int might match the return type of a gcc2
20875 builtin and then its argument prototype would still apply. */
20881 /* The GNU C library defines this for functions which it implements
20882 to always fail with ENOSYS. Some functions are actually named
20883 something starting with __ and the normal name is an alias. */
20884 #if defined (__stub_crypt) || defined (__stub___crypt)
20892 if { (eval echo configure:20893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20894 eval "ac_cv_func_crypt=yes"
20896 echo "configure: failed program was:" >&5
20897 cat conftest.$ac_ext >&5
20899 eval "ac_cv_func_crypt=no"
20904 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20905 echo "$ac_t""yes" 1>&6
20908 echo "$ac_t""no" 1>&6
20911 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20912 echo "configure:20913: checking for crypt in -lcrypt" >&5
20913 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20915 echo $ac_n "(cached) $ac_c" 1>&6
20917 ac_save_LIBS="$LIBS"
20918 LIBS="-lcrypt $LIBS"
20919 cat > conftest.$ac_ext <<EOF
20920 #line 20921 "configure"
20921 #include "confdefs.h"
20922 /* Override any gcc2 internal prototype to avoid an error. */
20923 /* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20931 if { (eval echo configure:20932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20933 eval "ac_cv_lib_$ac_lib_var=yes"
20935 echo "configure: failed program was:" >&5
20936 cat conftest.$ac_ext >&5
20938 eval "ac_cv_lib_$ac_lib_var=no"
20941 LIBS="$ac_save_LIBS"
20944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20945 echo "$ac_t""yes" 1>&6
20946 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20949 echo "$ac_t""no" 1>&6
20958 if test $have_crypt = yes ; then
20959 cat >> confdefs.h <<\EOF
20960 #define HAVE_CRYPT 1
20964 echo "configure: warning: could not find crypt" 1>&2
20965 if test $ol_enable_crypt = yes ; then
20966 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20969 echo "configure: warning: disabling crypt support" 1>&2
20974 if test $ol_enable_proctitle != no ; then
20975 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20976 echo "configure:20977: checking for setproctitle" >&5
20977 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20978 echo $ac_n "(cached) $ac_c" 1>&6
20980 cat > conftest.$ac_ext <<EOF
20981 #line 20982 "configure"
20982 #include "confdefs.h"
20983 /* System header to define __stub macros and hopefully few prototypes,
20984 which can conflict with char setproctitle(); below. */
20985 #include <assert.h>
20986 /* Override any gcc2 internal prototype to avoid an error. */
20987 /* We use char because int might match the return type of a gcc2
20988 builtin and then its argument prototype would still apply. */
20989 char setproctitle();
20994 /* The GNU C library defines this for functions which it implements
20995 to always fail with ENOSYS. Some functions are actually named
20996 something starting with __ and the normal name is an alias. */
20997 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21005 if { (eval echo configure:21006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21007 eval "ac_cv_func_setproctitle=yes"
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21012 eval "ac_cv_func_setproctitle=no"
21017 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21018 echo "$ac_t""yes" 1>&6
21019 have_setproctitle=yes
21021 echo "$ac_t""no" 1>&6
21023 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21024 echo "configure:21025: checking for setproctitle in -lutil" >&5
21025 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21027 echo $ac_n "(cached) $ac_c" 1>&6
21029 ac_save_LIBS="$LIBS"
21030 LIBS="-lutil $LIBS"
21031 cat > conftest.$ac_ext <<EOF
21032 #line 21033 "configure"
21033 #include "confdefs.h"
21034 /* Override any gcc2 internal prototype to avoid an error. */
21035 /* We use char because int might match the return type of a gcc2
21036 builtin and then its argument prototype would still apply. */
21037 char setproctitle();
21043 if { (eval echo configure:21044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21045 eval "ac_cv_lib_$ac_lib_var=yes"
21047 echo "configure: failed program was:" >&5
21048 cat conftest.$ac_ext >&5
21050 eval "ac_cv_lib_$ac_lib_var=no"
21053 LIBS="$ac_save_LIBS"
21056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21057 echo "$ac_t""yes" 1>&6
21058 have_setproctitle=yes
21059 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21061 echo "$ac_t""no" 1>&6
21062 have_setproctitle=no
21063 LIBOBJS="$LIBOBJS setproctitle.o"
21064 LIBSRCS="$LIBSRCS setproctitle.c"
21070 if test $have_setproctitle = yes ; then
21071 cat >> confdefs.h <<\EOF
21072 #define HAVE_SETPROCTITLE 1
21078 if test $ol_enable_slp != no ; then
21079 for ac_hdr in slp.h
21081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21083 echo "configure:21084: checking for $ac_hdr" >&5
21084 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21085 echo $ac_n "(cached) $ac_c" 1>&6
21087 cat > conftest.$ac_ext <<EOF
21088 #line 21089 "configure"
21089 #include "confdefs.h"
21092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21093 { (eval echo configure:21094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21095 if test -z "$ac_err"; then
21097 eval "ac_cv_header_$ac_safe=yes"
21100 echo "configure: failed program was:" >&5
21101 cat conftest.$ac_ext >&5
21103 eval "ac_cv_header_$ac_safe=no"
21107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21108 echo "$ac_t""yes" 1>&6
21109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21110 cat >> confdefs.h <<EOF
21111 #define $ac_tr_hdr 1
21115 echo "$ac_t""no" 1>&6
21120 if test $ac_cv_header_slp_h = yes ; then
21121 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21122 echo "configure:21123: checking for SLPOpen in -lslp" >&5
21123 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21124 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21125 echo $ac_n "(cached) $ac_c" 1>&6
21127 ac_save_LIBS="$LIBS"
21129 cat > conftest.$ac_ext <<EOF
21130 #line 21131 "configure"
21131 #include "confdefs.h"
21132 /* Override any gcc2 internal prototype to avoid an error. */
21133 /* We use char because int might match the return type of a gcc2
21134 builtin and then its argument prototype would still apply. */
21141 if { (eval echo configure:21142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21143 eval "ac_cv_lib_$ac_lib_var=yes"
21145 echo "configure: failed program was:" >&5
21146 cat conftest.$ac_ext >&5
21148 eval "ac_cv_lib_$ac_lib_var=no"
21151 LIBS="$ac_save_LIBS"
21154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21155 echo "$ac_t""yes" 1>&6
21158 echo "$ac_t""no" 1>&6
21162 if test $have_slp = yes ; then
21163 cat >> confdefs.h <<\EOF
21167 SLAPD_SLP_LIBS=-lslp
21170 elif test $ol_enable_slp = yes ; then
21171 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21175 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21176 echo "configure:21177: checking for ANSI C header files" >&5
21177 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21178 echo $ac_n "(cached) $ac_c" 1>&6
21180 cat > conftest.$ac_ext <<EOF
21181 #line 21182 "configure"
21182 #include "confdefs.h"
21183 #include <stdlib.h>
21184 #include <stdarg.h>
21185 #include <string.h>
21188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21189 { (eval echo configure:21190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21191 if test -z "$ac_err"; then
21193 ac_cv_header_stdc=yes
21196 echo "configure: failed program was:" >&5
21197 cat conftest.$ac_ext >&5
21199 ac_cv_header_stdc=no
21203 if test $ac_cv_header_stdc = yes; then
21204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21205 cat > conftest.$ac_ext <<EOF
21206 #line 21207 "configure"
21207 #include "confdefs.h"
21208 #include <string.h>
21210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21211 egrep "memchr" >/dev/null 2>&1; then
21215 ac_cv_header_stdc=no
21221 if test $ac_cv_header_stdc = yes; then
21222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21223 cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21226 #include <stdlib.h>
21228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21229 egrep "free" >/dev/null 2>&1; then
21233 ac_cv_header_stdc=no
21239 if test $ac_cv_header_stdc = yes; then
21240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21241 if test "$cross_compiling" = yes; then
21244 cat > conftest.$ac_ext <<EOF
21245 #line 21246 "configure"
21246 #include "confdefs.h"
21248 #if ((' ' & 0x0FF) == 0x020)
21249 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21250 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21252 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21253 || ('j' <= (c) && (c) <= 'r') \
21254 || ('s' <= (c) && (c) <= 'z'))
21255 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21258 int main () { int i; for (i = 0; i < 256; i++)
21259 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21263 if { (eval echo configure:21264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21267 echo "configure: failed program was:" >&5
21268 cat conftest.$ac_ext >&5
21270 ac_cv_header_stdc=no
21278 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21279 if test $ac_cv_header_stdc = yes; then
21280 cat >> confdefs.h <<\EOF
21281 #define STDC_HEADERS 1
21286 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21287 echo "configure:21288: checking for mode_t" >&5
21288 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21289 echo $ac_n "(cached) $ac_c" 1>&6
21291 cat > conftest.$ac_ext <<EOF
21292 #line 21293 "configure"
21293 #include "confdefs.h"
21294 #include <sys/types.h>
21296 #include <stdlib.h>
21297 #include <stddef.h>
21301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21302 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21304 eval "ac_cv_type_mode_t=yes"
21307 eval "ac_cv_type_mode_t=no"
21312 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21313 echo "$ac_t""yes" 1>&6
21315 echo "$ac_t""no" 1>&6
21316 cat >> confdefs.h <<EOF
21322 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21323 echo "configure:21324: checking for off_t" >&5
21324 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21325 echo $ac_n "(cached) $ac_c" 1>&6
21327 cat > conftest.$ac_ext <<EOF
21328 #line 21329 "configure"
21329 #include "confdefs.h"
21330 #include <sys/types.h>
21332 #include <stdlib.h>
21333 #include <stddef.h>
21337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21338 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21340 eval "ac_cv_type_off_t=yes"
21343 eval "ac_cv_type_off_t=no"
21348 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21349 echo "$ac_t""yes" 1>&6
21351 echo "$ac_t""no" 1>&6
21352 cat >> confdefs.h <<EOF
21358 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21359 echo "configure:21360: checking for pid_t" >&5
21360 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21361 echo $ac_n "(cached) $ac_c" 1>&6
21363 cat > conftest.$ac_ext <<EOF
21364 #line 21365 "configure"
21365 #include "confdefs.h"
21366 #include <sys/types.h>
21368 #include <stdlib.h>
21369 #include <stddef.h>
21373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21374 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21376 eval "ac_cv_type_pid_t=yes"
21379 eval "ac_cv_type_pid_t=no"
21384 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21385 echo "$ac_t""yes" 1>&6
21387 echo "$ac_t""no" 1>&6
21388 cat >> confdefs.h <<EOF
21394 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21395 echo "configure:21396: checking for ptrdiff_t" >&5
21396 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21397 echo $ac_n "(cached) $ac_c" 1>&6
21399 cat > conftest.$ac_ext <<EOF
21400 #line 21401 "configure"
21401 #include "confdefs.h"
21402 #include <stddef.h>
21407 if { (eval echo configure:21408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21409 am_cv_type_ptrdiff_t=yes
21411 echo "configure: failed program was:" >&5
21412 cat conftest.$ac_ext >&5
21414 am_cv_type_ptrdiff_t=no
21419 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21420 if test $am_cv_type_ptrdiff_t = yes; then
21421 cat >> confdefs.h <<\EOF
21422 #define HAVE_PTRDIFF_T 1
21427 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21428 echo "configure:21429: checking return type of signal handlers" >&5
21429 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21430 echo $ac_n "(cached) $ac_c" 1>&6
21432 cat > conftest.$ac_ext <<EOF
21433 #line 21434 "configure"
21434 #include "confdefs.h"
21435 #include <sys/types.h>
21436 #include <signal.h>
21441 extern "C" void (*signal (int, void (*)(int)))(int);
21443 void (*signal ()) ();
21450 if { (eval echo configure:21451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21452 ac_cv_type_signal=void
21454 echo "configure: failed program was:" >&5
21455 cat conftest.$ac_ext >&5
21457 ac_cv_type_signal=int
21462 echo "$ac_t""$ac_cv_type_signal" 1>&6
21463 cat >> confdefs.h <<EOF
21464 #define RETSIGTYPE $ac_cv_type_signal
21468 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21469 echo "configure:21470: checking for size_t" >&5
21470 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21471 echo $ac_n "(cached) $ac_c" 1>&6
21473 cat > conftest.$ac_ext <<EOF
21474 #line 21475 "configure"
21475 #include "confdefs.h"
21476 #include <sys/types.h>
21478 #include <stdlib.h>
21479 #include <stddef.h>
21483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21484 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21486 eval "ac_cv_type_size_t=yes"
21489 eval "ac_cv_type_size_t=no"
21494 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21495 echo "$ac_t""yes" 1>&6
21497 echo "$ac_t""no" 1>&6
21498 cat >> confdefs.h <<EOF
21499 #define size_t unsigned
21505 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21506 echo "configure:21507: checking for ssize_t" >&5
21507 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21508 echo $ac_n "(cached) $ac_c" 1>&6
21510 cat > conftest.$ac_ext <<EOF
21511 #line 21512 "configure"
21512 #include "confdefs.h"
21513 #include <sys/types.h>
21515 #include <stdlib.h>
21516 #include <stddef.h>
21520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21521 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21523 eval "ac_cv_type_ssize_t=yes"
21526 eval "ac_cv_type_ssize_t=no"
21531 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21532 echo "$ac_t""yes" 1>&6
21534 echo "$ac_t""no" 1>&6
21535 cat >> confdefs.h <<EOF
21536 #define ssize_t signed int
21541 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21542 echo "configure:21543: checking for caddr_t" >&5
21543 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21544 echo $ac_n "(cached) $ac_c" 1>&6
21546 cat > conftest.$ac_ext <<EOF
21547 #line 21548 "configure"
21548 #include "confdefs.h"
21549 #include <sys/types.h>
21551 #include <stdlib.h>
21552 #include <stddef.h>
21556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21557 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21559 eval "ac_cv_type_caddr_t=yes"
21562 eval "ac_cv_type_caddr_t=no"
21567 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21568 echo "$ac_t""yes" 1>&6
21570 echo "$ac_t""no" 1>&6
21571 cat >> confdefs.h <<EOF
21572 #define caddr_t char *
21578 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21579 echo "configure:21580: checking for socklen_t" >&5
21580 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21581 echo $ac_n "(cached) $ac_c" 1>&6
21583 cat > conftest.$ac_ext <<EOF
21584 #line 21585 "configure"
21585 #include "confdefs.h"
21587 #ifdef HAVE_SYS_TYPES_H
21588 #include <sys/types.h>
21590 #ifdef HAVE_SYS_SOCKET_H
21591 #include <sys/socket.h>
21598 if { (eval echo configure:21599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21600 ol_cv_type_socklen_t=yes
21602 echo "configure: failed program was:" >&5
21603 cat conftest.$ac_ext >&5
21605 ol_cv_type_socklen_t=no
21610 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21611 if test $ol_cv_type_socklen_t = no; then
21612 cat >> confdefs.h <<\EOF
21613 #define socklen_t int
21618 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21619 echo "configure:21620: checking for member st_blksize in aggregate type struct stat" >&5
21620 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21621 echo $ac_n "(cached) $ac_c" 1>&6
21623 cat > conftest.$ac_ext <<EOF
21624 #line 21625 "configure"
21625 #include "confdefs.h"
21626 #include <sys/types.h>
21627 #include <sys/stat.h>
21629 struct stat foo; foo.st_blksize;
21632 if { (eval echo configure:21633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21634 ac_cv_c_struct_member_st_blksize=yes
21636 echo "configure: failed program was:" >&5
21637 cat conftest.$ac_ext >&5
21639 ac_cv_c_struct_member_st_blksize=no
21644 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21645 st_blksize="$ac_cv_c_struct_member_st_blksize"
21646 if test $ac_cv_c_struct_member_st_blksize = yes; then
21647 cat >> confdefs.h <<\EOF
21648 #define HAVE_ST_BLKSIZE 1
21653 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21654 echo "configure:21655: checking whether time.h and sys/time.h may both be included" >&5
21655 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21656 echo $ac_n "(cached) $ac_c" 1>&6
21658 cat > conftest.$ac_ext <<EOF
21659 #line 21660 "configure"
21660 #include "confdefs.h"
21661 #include <sys/types.h>
21662 #include <sys/time.h>
21668 if { (eval echo configure:21669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21670 ac_cv_header_time=yes
21672 echo "configure: failed program was:" >&5
21673 cat conftest.$ac_ext >&5
21675 ac_cv_header_time=no
21680 echo "$ac_t""$ac_cv_header_time" 1>&6
21681 if test $ac_cv_header_time = yes; then
21682 cat >> confdefs.h <<\EOF
21683 #define TIME_WITH_SYS_TIME 1
21688 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21689 echo "configure:21690: checking whether struct tm is in sys/time.h or time.h" >&5
21690 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21691 echo $ac_n "(cached) $ac_c" 1>&6
21693 cat > conftest.$ac_ext <<EOF
21694 #line 21695 "configure"
21695 #include "confdefs.h"
21696 #include <sys/types.h>
21699 struct tm *tp; tp->tm_sec;
21702 if { (eval echo configure:21703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21704 ac_cv_struct_tm=time.h
21706 echo "configure: failed program was:" >&5
21707 cat conftest.$ac_ext >&5
21709 ac_cv_struct_tm=sys/time.h
21714 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21715 if test $ac_cv_struct_tm = sys/time.h; then
21716 cat >> confdefs.h <<\EOF
21717 #define TM_IN_SYS_TIME 1
21722 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21723 echo "configure:21724: checking for uid_t in sys/types.h" >&5
21724 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21725 echo $ac_n "(cached) $ac_c" 1>&6
21727 cat > conftest.$ac_ext <<EOF
21728 #line 21729 "configure"
21729 #include "confdefs.h"
21730 #include <sys/types.h>
21732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21733 egrep "uid_t" >/dev/null 2>&1; then
21735 ac_cv_type_uid_t=yes
21738 ac_cv_type_uid_t=no
21744 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21745 if test $ac_cv_type_uid_t = no; then
21746 cat >> confdefs.h <<\EOF
21750 cat >> confdefs.h <<\EOF
21756 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21757 echo "configure:21758: checking for sig_atomic_t" >&5
21758 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21759 echo $ac_n "(cached) $ac_c" 1>&6
21761 cat > conftest.$ac_ext <<EOF
21762 #line 21763 "configure"
21763 #include "confdefs.h"
21764 #include <signal.h>
21766 sig_atomic_t atomic;
21769 if { (eval echo configure:21770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21771 ol_cv_type_sig_atomic_t=yes
21773 echo "configure: failed program was:" >&5
21774 cat conftest.$ac_ext >&5
21776 ol_cv_type_sig_atomic_t=no
21781 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21782 if test $ol_cv_type_sig_atomic_t = no; then
21783 cat >> confdefs.h <<\EOF
21784 #define sig_atomic_t int
21791 # test for pw_gecos in struct passwd
21792 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21793 echo "configure:21794: checking struct passwd for pw_gecos" >&5
21794 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21795 echo $ac_n "(cached) $ac_c" 1>&6
21798 cat > conftest.$ac_ext <<EOF
21799 #line 21800 "configure"
21800 #include "confdefs.h"
21805 pwd.pw_gecos = pwd.pw_name;
21809 if { (eval echo configure:21810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21811 ol_cv_struct_passwd_pw_gecos=yes
21813 echo "configure: failed program was:" >&5
21814 cat conftest.$ac_ext >&5
21816 ol_cv_struct_passwd_pw_gecos=no
21821 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21822 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21823 cat >> confdefs.h <<\EOF
21824 #define HAVE_PW_GECOS 1
21829 # test for pw_passwd in struct passwd
21830 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21831 echo "configure:21832: checking struct passwd for pw_passwd" >&5
21832 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21833 echo $ac_n "(cached) $ac_c" 1>&6
21836 cat > conftest.$ac_ext <<EOF
21837 #line 21838 "configure"
21838 #include "confdefs.h"
21843 pwd.pw_passwd = pwd.pw_name;
21847 if { (eval echo configure:21848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21849 ol_cv_struct_passwd_pw_passwd=yes
21851 echo "configure: failed program was:" >&5
21852 cat conftest.$ac_ext >&5
21854 ol_cv_struct_passwd_pw_passwd=no
21859 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21860 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21861 cat >> confdefs.h <<\EOF
21862 #define HAVE_PW_PASSWD 1
21868 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21869 echo "configure:21870: checking if toupper() requires islower()" >&5
21870 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21871 echo $ac_n "(cached) $ac_c" 1>&6
21874 if test "$cross_compiling" = yes; then
21875 ol_cv_c_upper_lower=safe
21877 cat > conftest.$ac_ext <<EOF
21878 #line 21879 "configure"
21879 #include "confdefs.h"
21884 if ('C' == toupper('C'))
21890 if { (eval echo configure:21891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21892 ol_cv_c_upper_lower=no
21894 echo "configure: failed program was:" >&5
21895 cat conftest.$ac_ext >&5
21897 ol_cv_c_upper_lower=yes
21904 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21905 if test $ol_cv_c_upper_lower != no ; then
21906 cat >> confdefs.h <<\EOF
21907 #define C_UPPER_LOWER 1
21912 echo $ac_n "checking for working const""... $ac_c" 1>&6
21913 echo "configure:21914: checking for working const" >&5
21914 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21915 echo $ac_n "(cached) $ac_c" 1>&6
21917 cat > conftest.$ac_ext <<EOF
21918 #line 21919 "configure"
21919 #include "confdefs.h"
21923 /* Ultrix mips cc rejects this. */
21924 typedef int charset[2]; const charset x;
21925 /* SunOS 4.1.1 cc rejects this. */
21926 char const *const *ccp;
21928 /* NEC SVR4.0.2 mips cc rejects this. */
21929 struct point {int x, y;};
21930 static struct point const zero = {0,0};
21931 /* AIX XL C 1.02.0.0 rejects this.
21932 It does not let you subtract one const X* pointer from another in an arm
21933 of an if-expression whose if-part is not a constant expression */
21934 const char *g = "string";
21935 ccp = &g + (g ? g-g : 0);
21936 /* HPUX 7.0 cc rejects these. */
21939 ccp = (char const *const *) p;
21940 { /* SCO 3.2v4 cc rejects this. */
21942 char const *s = 0 ? (char *) 0 : (char const *) 0;
21946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21947 int x[] = {25, 17};
21948 const int *foo = &x[0];
21951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21952 typedef const int *iptr;
21956 { /* AIX XL C 1.02.0.0 rejects this saying
21957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21958 struct s { int j; const int *ap[3]; };
21959 struct s *b; b->j = 5;
21961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21962 const int foo = 10;
21967 if { (eval echo configure:21968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21971 echo "configure: failed program was:" >&5
21972 cat conftest.$ac_ext >&5
21979 echo "$ac_t""$ac_cv_c_const" 1>&6
21980 if test $ac_cv_c_const = no; then
21981 cat >> confdefs.h <<\EOF
21987 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21988 echo "configure:21989: checking if compiler understands volatile" >&5
21989 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21990 echo $ac_n "(cached) $ac_c" 1>&6
21992 cat > conftest.$ac_ext <<EOF
21993 #line 21994 "configure"
21994 #include "confdefs.h"
21997 volatile int a; int * volatile b = x ? &y : &z;
21998 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22002 if { (eval echo configure:22003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22004 ol_cv_c_volatile=yes
22006 echo "configure: failed program was:" >&5
22007 cat conftest.$ac_ext >&5
22009 ol_cv_c_volatile=no
22014 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22015 if test $ol_cv_c_volatile = yes; then
22018 cat >> confdefs.h <<\EOF
22025 if test $cross_compiling = yes ; then
22026 cat >> confdefs.h <<\EOF
22027 #define CROSS_COMPILING 1
22031 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22032 echo "configure:22033: checking whether byte ordering is bigendian" >&5
22033 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22034 echo $ac_n "(cached) $ac_c" 1>&6
22036 ac_cv_c_bigendian=unknown
22037 # See if sys/param.h defines the BYTE_ORDER macro.
22038 cat > conftest.$ac_ext <<EOF
22039 #line 22040 "configure"
22040 #include "confdefs.h"
22041 #include <sys/types.h>
22042 #include <sys/param.h>
22045 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22046 bogus endian macros
22050 if { (eval echo configure:22051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22052 # It does; now see whether it defined to BIG_ENDIAN or not.
22053 cat > conftest.$ac_ext <<EOF
22054 #line 22055 "configure"
22055 #include "confdefs.h"
22056 #include <sys/types.h>
22057 #include <sys/param.h>
22060 #if BYTE_ORDER != BIG_ENDIAN
22065 if { (eval echo configure:22066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22067 ac_cv_c_bigendian=yes
22069 echo "configure: failed program was:" >&5
22070 cat conftest.$ac_ext >&5
22072 ac_cv_c_bigendian=no
22076 echo "configure: failed program was:" >&5
22077 cat conftest.$ac_ext >&5
22080 if test $ac_cv_c_bigendian = unknown; then
22081 if test "$cross_compiling" = yes; then
22082 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22084 cat > conftest.$ac_ext <<EOF
22085 #line 22086 "configure"
22086 #include "confdefs.h"
22088 /* Are we little or big endian? From Harbison&Steele. */
22092 char c[sizeof (long)];
22095 exit (u.c[sizeof (long) - 1] == 1);
22098 if { (eval echo configure:22099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22100 ac_cv_c_bigendian=no
22102 echo "configure: failed program was:" >&5
22103 cat conftest.$ac_ext >&5
22105 ac_cv_c_bigendian=yes
22113 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22114 if test $ac_cv_c_bigendian = yes; then
22115 cat >> confdefs.h <<\EOF
22116 #define WORDS_BIGENDIAN 1
22123 echo $ac_n "checking size of short""... $ac_c" 1>&6
22124 echo "configure:22125: checking size of short" >&5
22125 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22126 echo $ac_n "(cached) $ac_c" 1>&6
22128 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22129 cat > conftest.$ac_ext <<EOF
22130 #line 22131 "configure"
22131 #include "confdefs.h"
22132 #include "confdefs.h"
22133 #include <sys/types.h>
22137 switch (0) case 0: case (sizeof (short) == $ac_size):;
22140 if { (eval echo configure:22141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22142 ac_cv_sizeof_short=$ac_size
22144 echo "configure: failed program was:" >&5
22145 cat conftest.$ac_ext >&5
22148 if test x$ac_cv_sizeof_short != x ; then break; fi
22153 if test x$ac_cv_sizeof_short = x ; then
22154 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22156 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22157 cat >> confdefs.h <<EOF
22158 #define SIZEOF_SHORT $ac_cv_sizeof_short
22162 echo $ac_n "checking size of int""... $ac_c" 1>&6
22163 echo "configure:22164: checking size of int" >&5
22164 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22165 echo $ac_n "(cached) $ac_c" 1>&6
22167 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22168 cat > conftest.$ac_ext <<EOF
22169 #line 22170 "configure"
22170 #include "confdefs.h"
22171 #include "confdefs.h"
22172 #include <sys/types.h>
22176 switch (0) case 0: case (sizeof (int) == $ac_size):;
22179 if { (eval echo configure:22180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22181 ac_cv_sizeof_int=$ac_size
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22187 if test x$ac_cv_sizeof_int != x ; then break; fi
22192 if test x$ac_cv_sizeof_int = x ; then
22193 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22195 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22196 cat >> confdefs.h <<EOF
22197 #define SIZEOF_INT $ac_cv_sizeof_int
22201 echo $ac_n "checking size of long""... $ac_c" 1>&6
22202 echo "configure:22203: checking size of long" >&5
22203 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22204 echo $ac_n "(cached) $ac_c" 1>&6
22206 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22207 cat > conftest.$ac_ext <<EOF
22208 #line 22209 "configure"
22209 #include "confdefs.h"
22210 #include "confdefs.h"
22211 #include <sys/types.h>
22215 switch (0) case 0: case (sizeof (long) == $ac_size):;
22218 if { (eval echo configure:22219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22220 ac_cv_sizeof_long=$ac_size
22222 echo "configure: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22226 if test x$ac_cv_sizeof_long != x ; then break; fi
22231 if test x$ac_cv_sizeof_long = x ; then
22232 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22234 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22235 cat >> confdefs.h <<EOF
22236 #define SIZEOF_LONG $ac_cv_sizeof_long
22241 if test "$ac_cv_sizeof_int" -lt 4 ; then
22242 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22244 cat >> confdefs.h <<\EOF
22245 #define LBER_INT_T long
22249 cat >> confdefs.h <<\EOF
22250 #define LBER_INT_T int
22255 cat >> confdefs.h <<\EOF
22256 #define LBER_LEN_T long
22259 cat >> confdefs.h <<\EOF
22260 #define LBER_SOCKET_T int
22263 cat >> confdefs.h <<\EOF
22264 #define LBER_TAG_T long
22268 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22269 echo "configure:22270: checking for 8-bit clean memcmp" >&5
22270 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22271 echo $ac_n "(cached) $ac_c" 1>&6
22273 if test "$cross_compiling" = yes; then
22274 ac_cv_func_memcmp_clean=no
22276 cat > conftest.$ac_ext <<EOF
22277 #line 22278 "configure"
22278 #include "confdefs.h"
22282 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22283 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22287 if { (eval echo configure:22288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22289 ac_cv_func_memcmp_clean=yes
22291 echo "configure: failed program was:" >&5
22292 cat conftest.$ac_ext >&5
22294 ac_cv_func_memcmp_clean=no
22301 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22302 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22304 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22305 echo "configure:22306: checking for strftime" >&5
22306 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22307 echo $ac_n "(cached) $ac_c" 1>&6
22309 cat > conftest.$ac_ext <<EOF
22310 #line 22311 "configure"
22311 #include "confdefs.h"
22312 /* System header to define __stub macros and hopefully few prototypes,
22313 which can conflict with char strftime(); below. */
22314 #include <assert.h>
22315 /* Override any gcc2 internal prototype to avoid an error. */
22316 /* We use char because int might match the return type of a gcc2
22317 builtin and then its argument prototype would still apply. */
22323 /* The GNU C library defines this for functions which it implements
22324 to always fail with ENOSYS. Some functions are actually named
22325 something starting with __ and the normal name is an alias. */
22326 #if defined (__stub_strftime) || defined (__stub___strftime)
22334 if { (eval echo configure:22335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22336 eval "ac_cv_func_strftime=yes"
22338 echo "configure: failed program was:" >&5
22339 cat conftest.$ac_ext >&5
22341 eval "ac_cv_func_strftime=no"
22346 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22347 echo "$ac_t""yes" 1>&6
22348 cat >> confdefs.h <<\EOF
22349 #define HAVE_STRFTIME 1
22353 echo "$ac_t""no" 1>&6
22354 # strftime is in -lintl on SCO UNIX.
22355 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22356 echo "configure:22357: checking for strftime in -lintl" >&5
22357 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22359 echo $ac_n "(cached) $ac_c" 1>&6
22361 ac_save_LIBS="$LIBS"
22362 LIBS="-lintl $LIBS"
22363 cat > conftest.$ac_ext <<EOF
22364 #line 22365 "configure"
22365 #include "confdefs.h"
22366 /* Override any gcc2 internal prototype to avoid an error. */
22367 /* We use char because int might match the return type of a gcc2
22368 builtin and then its argument prototype would still apply. */
22375 if { (eval echo configure:22376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22377 eval "ac_cv_lib_$ac_lib_var=yes"
22379 echo "configure: failed program was:" >&5
22380 cat conftest.$ac_ext >&5
22382 eval "ac_cv_lib_$ac_lib_var=no"
22385 LIBS="$ac_save_LIBS"
22388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22389 echo "$ac_t""yes" 1>&6
22390 cat >> confdefs.h <<\EOF
22391 #define HAVE_STRFTIME 1
22394 LIBS="-lintl $LIBS"
22396 echo "$ac_t""no" 1>&6
22402 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22403 echo "configure:22404: checking for inet_aton()" >&5
22404 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22405 echo $ac_n "(cached) $ac_c" 1>&6
22407 cat > conftest.$ac_ext <<EOF
22408 #line 22409 "configure"
22409 #include "confdefs.h"
22411 #ifdef HAVE_SYS_TYPES_H
22412 # include <sys/types.h>
22414 #ifdef HAVE_SYS_SOCKET_H
22415 # include <sys/socket.h>
22416 # ifdef HAVE_SYS_SELECT_H
22417 # include <sys/select.h>
22419 # include <netinet/in.h>
22420 # ifdef HAVE_ARPA_INET_H
22421 # include <arpa/inet.h>
22427 int rc = inet_aton( "255.255.255.255", &in );
22430 if { (eval echo configure:22431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22432 ol_cv_func_inet_aton=yes
22434 echo "configure: failed program was:" >&5
22435 cat conftest.$ac_ext >&5
22437 ol_cv_func_inet_aton=no
22442 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22443 if test $ol_cv_func_inet_aton != no; then
22444 cat >> confdefs.h <<\EOF
22445 #define HAVE_INET_ATON 1
22451 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22452 echo "configure:22453: checking for _spawnlp" >&5
22453 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22454 echo $ac_n "(cached) $ac_c" 1>&6
22456 cat > conftest.$ac_ext <<EOF
22457 #line 22458 "configure"
22458 #include "confdefs.h"
22459 /* System header to define __stub macros and hopefully few prototypes,
22460 which can conflict with char _spawnlp(); below. */
22461 #include <assert.h>
22462 /* Override any gcc2 internal prototype to avoid an error. */
22463 /* We use char because int might match the return type of a gcc2
22464 builtin and then its argument prototype would still apply. */
22470 /* The GNU C library defines this for functions which it implements
22471 to always fail with ENOSYS. Some functions are actually named
22472 something starting with __ and the normal name is an alias. */
22473 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22481 if { (eval echo configure:22482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22483 eval "ac_cv_func__spawnlp=yes"
22485 echo "configure: failed program was:" >&5
22486 cat conftest.$ac_ext >&5
22488 eval "ac_cv_func__spawnlp=no"
22493 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22494 echo "$ac_t""yes" 1>&6
22495 cat >> confdefs.h <<\EOF
22496 #define HAVE_SPAWNLP 1
22500 echo "$ac_t""no" 1>&6
22504 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22505 echo "configure:22506: checking for _snprintf" >&5
22506 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22507 echo $ac_n "(cached) $ac_c" 1>&6
22509 cat > conftest.$ac_ext <<EOF
22510 #line 22511 "configure"
22511 #include "confdefs.h"
22512 /* System header to define __stub macros and hopefully few prototypes,
22513 which can conflict with char _snprintf(); below. */
22514 #include <assert.h>
22515 /* Override any gcc2 internal prototype to avoid an error. */
22516 /* We use char because int might match the return type of a gcc2
22517 builtin and then its argument prototype would still apply. */
22523 /* The GNU C library defines this for functions which it implements
22524 to always fail with ENOSYS. Some functions are actually named
22525 something starting with __ and the normal name is an alias. */
22526 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22534 if { (eval echo configure:22535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22536 eval "ac_cv_func__snprintf=yes"
22538 echo "configure: failed program was:" >&5
22539 cat conftest.$ac_ext >&5
22541 eval "ac_cv_func__snprintf=no"
22546 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22547 echo "$ac_t""yes" 1>&6
22548 ac_cv_func_snprintf=yes
22549 cat >> confdefs.h <<\EOF
22550 #define snprintf _snprintf
22555 echo "$ac_t""no" 1>&6
22559 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22560 echo "configure:22561: checking for _vsnprintf" >&5
22561 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22562 echo $ac_n "(cached) $ac_c" 1>&6
22564 cat > conftest.$ac_ext <<EOF
22565 #line 22566 "configure"
22566 #include "confdefs.h"
22567 /* System header to define __stub macros and hopefully few prototypes,
22568 which can conflict with char _vsnprintf(); below. */
22569 #include <assert.h>
22570 /* Override any gcc2 internal prototype to avoid an error. */
22571 /* We use char because int might match the return type of a gcc2
22572 builtin and then its argument prototype would still apply. */
22578 /* The GNU C library defines this for functions which it implements
22579 to always fail with ENOSYS. Some functions are actually named
22580 something starting with __ and the normal name is an alias. */
22581 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22589 if { (eval echo configure:22590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22591 eval "ac_cv_func__vsnprintf=yes"
22593 echo "configure: failed program was:" >&5
22594 cat conftest.$ac_ext >&5
22596 eval "ac_cv_func__vsnprintf=no"
22601 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22602 echo "$ac_t""yes" 1>&6
22603 ac_cv_func_vsnprintf=yes
22604 cat >> confdefs.h <<\EOF
22605 #define vsnprintf _vsnprintf
22610 echo "$ac_t""no" 1>&6
22614 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22615 echo "configure:22616: checking for vprintf" >&5
22616 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22617 echo $ac_n "(cached) $ac_c" 1>&6
22619 cat > conftest.$ac_ext <<EOF
22620 #line 22621 "configure"
22621 #include "confdefs.h"
22622 /* System header to define __stub macros and hopefully few prototypes,
22623 which can conflict with char vprintf(); below. */
22624 #include <assert.h>
22625 /* Override any gcc2 internal prototype to avoid an error. */
22626 /* We use char because int might match the return type of a gcc2
22627 builtin and then its argument prototype would still apply. */
22633 /* The GNU C library defines this for functions which it implements
22634 to always fail with ENOSYS. Some functions are actually named
22635 something starting with __ and the normal name is an alias. */
22636 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22644 if { (eval echo configure:22645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22646 eval "ac_cv_func_vprintf=yes"
22648 echo "configure: failed program was:" >&5
22649 cat conftest.$ac_ext >&5
22651 eval "ac_cv_func_vprintf=no"
22656 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22657 echo "$ac_t""yes" 1>&6
22658 cat >> confdefs.h <<\EOF
22659 #define HAVE_VPRINTF 1
22663 echo "$ac_t""no" 1>&6
22666 if test "$ac_cv_func_vprintf" != yes; then
22667 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22668 echo "configure:22669: checking for _doprnt" >&5
22669 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22670 echo $ac_n "(cached) $ac_c" 1>&6
22672 cat > conftest.$ac_ext <<EOF
22673 #line 22674 "configure"
22674 #include "confdefs.h"
22675 /* System header to define __stub macros and hopefully few prototypes,
22676 which can conflict with char _doprnt(); below. */
22677 #include <assert.h>
22678 /* Override any gcc2 internal prototype to avoid an error. */
22679 /* We use char because int might match the return type of a gcc2
22680 builtin and then its argument prototype would still apply. */
22686 /* The GNU C library defines this for functions which it implements
22687 to always fail with ENOSYS. Some functions are actually named
22688 something starting with __ and the normal name is an alias. */
22689 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22697 if { (eval echo configure:22698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22699 eval "ac_cv_func__doprnt=yes"
22701 echo "configure: failed program was:" >&5
22702 cat conftest.$ac_ext >&5
22704 eval "ac_cv_func__doprnt=no"
22709 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22710 echo "$ac_t""yes" 1>&6
22711 cat >> confdefs.h <<\EOF
22712 #define HAVE_DOPRNT 1
22716 echo "$ac_t""no" 1>&6
22722 if test $ac_cv_func_vprintf = yes ; then
22723 for ac_func in snprintf vsnprintf
22725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22726 echo "configure:22727: checking for $ac_func" >&5
22727 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22728 echo $ac_n "(cached) $ac_c" 1>&6
22730 cat > conftest.$ac_ext <<EOF
22731 #line 22732 "configure"
22732 #include "confdefs.h"
22733 /* System header to define __stub macros and hopefully few prototypes,
22734 which can conflict with char $ac_func(); below. */
22735 #include <assert.h>
22736 /* Override any gcc2 internal prototype to avoid an error. */
22737 /* We use char because int might match the return type of a gcc2
22738 builtin and then its argument prototype would still apply. */
22744 /* The GNU C library defines this for functions which it implements
22745 to always fail with ENOSYS. Some functions are actually named
22746 something starting with __ and the normal name is an alias. */
22747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22755 if { (eval echo configure:22756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22757 eval "ac_cv_func_$ac_func=yes"
22759 echo "configure: failed program was:" >&5
22760 cat conftest.$ac_ext >&5
22762 eval "ac_cv_func_$ac_func=no"
22767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22768 echo "$ac_t""yes" 1>&6
22769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22770 cat >> confdefs.h <<EOF
22771 #define $ac_tr_func 1
22775 echo "$ac_t""no" 1>&6
22837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22838 echo "configure:22839: checking for $ac_func" >&5
22839 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22840 echo $ac_n "(cached) $ac_c" 1>&6
22842 cat > conftest.$ac_ext <<EOF
22843 #line 22844 "configure"
22844 #include "confdefs.h"
22845 /* System header to define __stub macros and hopefully few prototypes,
22846 which can conflict with char $ac_func(); below. */
22847 #include <assert.h>
22848 /* Override any gcc2 internal prototype to avoid an error. */
22849 /* We use char because int might match the return type of a gcc2
22850 builtin and then its argument prototype would still apply. */
22856 /* The GNU C library defines this for functions which it implements
22857 to always fail with ENOSYS. Some functions are actually named
22858 something starting with __ and the normal name is an alias. */
22859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22867 if { (eval echo configure:22868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22869 eval "ac_cv_func_$ac_func=yes"
22871 echo "configure: failed program was:" >&5
22872 cat conftest.$ac_ext >&5
22874 eval "ac_cv_func_$ac_func=no"
22879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22880 echo "$ac_t""yes" 1>&6
22881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22882 cat >> confdefs.h <<EOF
22883 #define $ac_tr_func 1
22887 echo "$ac_t""no" 1>&6
22892 for ac_func in getopt getpeereid
22894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22895 echo "configure:22896: checking for $ac_func" >&5
22896 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22897 echo $ac_n "(cached) $ac_c" 1>&6
22899 cat > conftest.$ac_ext <<EOF
22900 #line 22901 "configure"
22901 #include "confdefs.h"
22902 /* System header to define __stub macros and hopefully few prototypes,
22903 which can conflict with char $ac_func(); below. */
22904 #include <assert.h>
22905 /* Override any gcc2 internal prototype to avoid an error. */
22906 /* We use char because int might match the return type of a gcc2
22907 builtin and then its argument prototype would still apply. */
22913 /* The GNU C library defines this for functions which it implements
22914 to always fail with ENOSYS. Some functions are actually named
22915 something starting with __ and the normal name is an alias. */
22916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22924 if { (eval echo configure:22925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22926 eval "ac_cv_func_$ac_func=yes"
22928 echo "configure: failed program was:" >&5
22929 cat conftest.$ac_ext >&5
22931 eval "ac_cv_func_$ac_func=no"
22936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22937 echo "$ac_t""yes" 1>&6
22938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22939 cat >> confdefs.h <<EOF
22940 #define $ac_tr_func 1
22944 echo "$ac_t""no" 1>&6
22945 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22951 if test "$ac_cv_func_getopt" != yes; then
22952 LIBSRCS="$LIBSRCS getopt.c"
22954 if test "$ac_cv_func_getpeereid" != yes; then
22955 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22956 echo "configure:22957: checking for msg_accrights in msghdr" >&5
22957 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22958 echo $ac_n "(cached) $ac_c" 1>&6
22960 cat > conftest.$ac_ext <<EOF
22961 #line 22962 "configure"
22962 #include "confdefs.h"
22963 #include <sys/socket.h>
22965 struct msghdr m; m.msg_accrightslen=0
22968 if { (eval echo configure:22969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22970 ol_cv_msghdr_msg_accrights=yes
22972 echo "configure: failed program was:" >&5
22973 cat conftest.$ac_ext >&5
22975 ol_cv_msghdr_msg_accrights=no
22981 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22982 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22983 cat >> confdefs.h <<\EOF
22984 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22989 LIBSRCS="$LIBSRCS getpeereid.c"
22991 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22992 if test "$ac_cv_func_snprintf" != yes; then
22993 cat >> confdefs.h <<\EOF
22994 #define snprintf ber_pvt_snprintf
22998 if test "$ac_cv_func_vsnprintf" != yes; then
22999 cat >> confdefs.h <<\EOF
23000 #define vsnprintf ber_pvt_vsnprintf
23006 # Check Configuration
23007 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23008 echo "configure:23009: checking declaration of sys_errlist" >&5
23009 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23010 echo $ac_n "(cached) $ac_c" 1>&6
23013 cat > conftest.$ac_ext <<EOF
23014 #line 23015 "configure"
23015 #include "confdefs.h"
23018 #include <sys/types.h>
23021 #include <stdlib.h>
23024 char *c = (char *) *sys_errlist
23027 if { (eval echo configure:23028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23029 ol_cv_dcl_sys_errlist=yes
23030 ol_cv_have_sys_errlist=yes
23032 echo "configure: failed program was:" >&5
23033 cat conftest.$ac_ext >&5
23035 ol_cv_dcl_sys_errlist=no
23040 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23042 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23043 if test $ol_cv_dcl_sys_errlist = no ; then
23044 cat >> confdefs.h <<\EOF
23045 #define DECL_SYS_ERRLIST 1
23049 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23050 echo "configure:23051: checking existence of sys_errlist" >&5
23051 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23052 echo $ac_n "(cached) $ac_c" 1>&6
23055 cat > conftest.$ac_ext <<EOF
23056 #line 23057 "configure"
23057 #include "confdefs.h"
23060 char *c = (char *) *sys_errlist
23063 if { (eval echo configure:23064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23065 ol_cv_have_sys_errlist=yes
23067 echo "configure: failed program was:" >&5
23068 cat conftest.$ac_ext >&5
23070 ol_cv_have_sys_errlist=no
23075 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23077 if test $ol_cv_have_sys_errlist = yes ; then
23078 cat >> confdefs.h <<\EOF
23079 #define HAVE_SYS_ERRLIST 1
23086 if test "$ol_enable_slapi" != no ; then
23087 for ac_hdr in ltdl.h
23089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23091 echo "configure:23092: checking for $ac_hdr" >&5
23092 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23093 echo $ac_n "(cached) $ac_c" 1>&6
23095 cat > conftest.$ac_ext <<EOF
23096 #line 23097 "configure"
23097 #include "confdefs.h"
23100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23101 { (eval echo configure:23102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23103 if test -z "$ac_err"; then
23105 eval "ac_cv_header_$ac_safe=yes"
23108 echo "configure: failed program was:" >&5
23109 cat conftest.$ac_ext >&5
23111 eval "ac_cv_header_$ac_safe=no"
23115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23116 echo "$ac_t""yes" 1>&6
23117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23118 cat >> confdefs.h <<EOF
23119 #define $ac_tr_hdr 1
23123 echo "$ac_t""no" 1>&6
23128 if test $ac_cv_header_ltdl_h != yes ; then
23129 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23131 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23132 echo "configure:23133: checking for lt_dlinit in -lltdl" >&5
23133 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23134 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23135 echo $ac_n "(cached) $ac_c" 1>&6
23137 ac_save_LIBS="$LIBS"
23138 LIBS="-lltdl $LIBS"
23139 cat > conftest.$ac_ext <<EOF
23140 #line 23141 "configure"
23141 #include "confdefs.h"
23142 /* Override any gcc2 internal prototype to avoid an error. */
23143 /* We use char because int might match the return type of a gcc2
23144 builtin and then its argument prototype would still apply. */
23151 if { (eval echo configure:23152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23153 eval "ac_cv_lib_$ac_lib_var=yes"
23155 echo "configure: failed program was:" >&5
23156 cat conftest.$ac_ext >&5
23158 eval "ac_cv_lib_$ac_lib_var=no"
23161 LIBS="$ac_save_LIBS"
23164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23165 echo "$ac_t""yes" 1>&6
23168 LIBSLAPI=./libslapi.a
23169 LIBSLAPITOOLS=../libslapi.a
23170 cat >> confdefs.h <<\EOF
23171 #define HAVE_LIBLTDL 1
23176 echo "$ac_t""no" 1>&6
23177 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23181 cat >> confdefs.h <<\EOF
23182 #define LDAP_SLAPI 1
23187 if test "$ol_enable_debug" != no ; then
23188 cat >> confdefs.h <<\EOF
23189 #define LDAP_DEBUG 1
23193 if test "$ol_enable_syslog" = yes ; then
23194 cat >> confdefs.h <<\EOF
23195 #define LDAP_SYSLOG 1
23199 if test "$ol_link_kbind" != no ; then
23200 cat >> confdefs.h <<\EOF
23201 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23205 if test "$ol_enable_proctitle" != no ; then
23206 cat >> confdefs.h <<\EOF
23207 #define LDAP_PROCTITLE 1
23211 if test "$ol_enable_referrals" != no ; then
23212 cat >> confdefs.h <<\EOF
23213 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23217 if test "$ol_enable_local" != no; then
23218 cat >> confdefs.h <<\EOF
23219 #define LDAP_PF_LOCAL 1
23223 if test "$ol_link_ipv6" != no; then
23224 cat >> confdefs.h <<\EOF
23225 #define LDAP_PF_INET6 1
23229 if test "$ol_enable_cleartext" != no ; then
23230 cat >> confdefs.h <<\EOF
23231 #define SLAPD_CLEARTEXT 1
23235 if test "$ol_enable_crypt" != no ; then
23236 cat >> confdefs.h <<\EOF
23237 #define SLAPD_CRYPT 1
23241 if test "$ol_link_kpasswd" != no ; then
23242 cat >> confdefs.h <<\EOF
23243 #define SLAPD_KPASSWD 1
23247 if test "$ol_link_spasswd" != no ; then
23248 cat >> confdefs.h <<\EOF
23249 #define SLAPD_SPASSWD 1
23253 if test "$ol_enable_multimaster" != no ; then
23254 cat >> confdefs.h <<\EOF
23255 #define SLAPD_MULTIMASTER 1
23259 if test "$ol_enable_phonetic" != no ; then
23260 cat >> confdefs.h <<\EOF
23261 #define SLAPD_PHONETIC 1
23265 if test "$ol_enable_rlookups" != no ; then
23266 cat >> confdefs.h <<\EOF
23267 #define SLAPD_RLOOKUPS 1
23271 if test "$ol_enable_aci" != no ; then
23272 cat >> confdefs.h <<\EOF
23273 #define SLAPD_ACI_ENABLED 1
23278 if test "$ol_link_modules" != no ; then
23279 cat >> confdefs.h <<\EOF
23280 #define SLAPD_MODULES 1
23284 SLAPD_MODULES_LDFLAGS="-dlopen self"
23287 if test "$ol_enable_bdb" != no ; then
23288 cat >> confdefs.h <<\EOF
23289 #define SLAPD_BDB 1
23294 if test "$ol_with_bdb_module" != static ; then
23295 cat >> confdefs.h <<\EOF
23296 #define SLAPD_BDB_DYNAMIC 1
23300 BUILD_BDB_DYNAMIC=shared
23301 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23303 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23307 if test "$ol_link_dnssrv" != no ; then
23308 cat >> confdefs.h <<\EOF
23309 #define SLAPD_DNSSRV 1
23314 if test "$ol_with_dnssrv_module" != static ; then
23315 cat >> confdefs.h <<\EOF
23316 #define SLAPD_DNSSRV_DYNAMIC 1
23320 BUILD_DNSSRV_DYNAMIC=shared
23321 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23327 if test "$ol_enable_hdb" != no ; then
23328 cat >> confdefs.h <<\EOF
23329 #define SLAPD_HDB 1
23334 if test "$ol_with_hdb_module" != static ; then
23335 cat >> confdefs.h <<\EOF
23336 #define SLAPD_HDB_DYNAMIC 1
23340 BUILD_HDB_DYNAMIC=shared
23341 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23343 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23347 if test "$ol_enable_ldap" != no ; then
23348 cat >> confdefs.h <<\EOF
23349 #define SLAPD_LDAP 1
23354 if test "$ol_with_ldap_module" != static ; then
23355 cat >> confdefs.h <<\EOF
23356 #define SLAPD_LDAP_DYNAMIC 1
23360 BUILD_LDAP_DYNAMIC=shared
23361 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23363 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23367 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23368 cat >> confdefs.h <<\EOF
23369 #define SLAPD_LDBM 1
23374 if test "$ol_with_ldbm_module" != static ; then
23375 cat >> confdefs.h <<\EOF
23376 #define SLAPD_LDBM_DYNAMIC 1
23380 BUILD_LDBM_DYNAMIC=shared
23381 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23383 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23387 if test "$ol_enable_meta" != no ; then
23388 if test "$ol_enable_ldap" = no ; then
23389 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23391 if test "$ol_enable_rewrite" = no ; then
23392 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23394 cat >> confdefs.h <<\EOF
23395 #define SLAPD_META 1
23402 if test "$ol_with_meta_module" != static ; then
23403 cat >> confdefs.h <<\EOF
23404 #define SLAPD_META_DYNAMIC 1
23408 BUILD_META_DYNAMIC=shared
23409 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23415 if test "$ol_enable_monitor" != no ; then
23416 cat >> confdefs.h <<\EOF
23417 #define SLAPD_MONITOR 1
23422 if test "$ol_with_monitor_module" != static ; then
23423 cat >> confdefs.h <<\EOF
23424 #define SLAPD_MONITOR_DYNAMIC 1
23428 BUILD_MONITOR_DYNAMIC=shared
23429 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23431 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23435 if test "$ol_enable_null" != no ; then
23436 cat >> confdefs.h <<\EOF
23437 #define SLAPD_NULL 1
23442 if test "$ol_with_null_module" != static ; then
23443 cat >> confdefs.h <<\EOF
23444 #define SLAPD_NULL_DYNAMIC 1
23448 BUILD_NULL_DYNAMIC=shared
23449 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23451 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23455 if test "$ol_enable_passwd" != no ; then
23456 cat >> confdefs.h <<\EOF
23457 #define SLAPD_PASSWD 1
23462 if test "$ol_with_passwd_module" != static ; then
23463 cat >> confdefs.h <<\EOF
23464 #define SLAPD_PASSWD_DYNAMIC 1
23468 BUILD_PASSWD_DYNAMIC=shared
23469 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23471 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23475 if test "$ol_link_perl" != no ; then
23476 cat >> confdefs.h <<\EOF
23477 #define SLAPD_PERL 1
23482 if test "$ol_with_perl_module" != static ; then
23483 cat >> confdefs.h <<\EOF
23484 #define SLAPD_PERL_DYNAMIC 1
23488 BUILD_PERL_DYNAMIC=shared
23489 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23491 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23495 if test "$ol_enable_shell" != no ; then
23496 if test "$ol_link_thread" != no ; then
23497 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23499 cat >> confdefs.h <<\EOF
23500 #define SLAPD_SHELL 1
23505 if test "$ol_with_shell_module" != static ; then
23506 cat >> confdefs.h <<\EOF
23507 #define SLAPD_SHELL_DYNAMIC 1
23511 BUILD_SHELL_DYNAMIC=shared
23512 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23514 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23518 if test "$ol_enable_tcl" != no ; then
23519 cat >> confdefs.h <<\EOF
23520 #define SLAPD_TCL 1
23525 if test "$ol_with_tcl_module" != static; then
23526 cat >> confdefs.h <<\EOF
23527 #define SLAPD_TCL_DYNAMIC 1
23531 BUILD_TCL_DYNAMIC=shared
23532 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
23534 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
23538 if test "$ol_link_sql" != no ; then
23539 cat >> confdefs.h <<\EOF
23540 #define SLAPD_SQL 1
23545 if test "$ol_with_sql_module" != static; then
23546 cat >> confdefs.h <<\EOF
23547 #define SLAPD_SQL_DYNAMIC 1
23551 BUILD_SQL_DYNAMIC=shared
23552 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23554 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23558 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23559 $BUILD_SLAPD = yes ; then
23563 if test "$ol_enable_rewrite" != no ; then
23564 cat >> confdefs.h <<\EOF
23565 #define ENABLE_REWRITE 1
23571 if test "$ol_enable_slapi" != no ; then
23572 cat >> confdefs.h <<\EOF
23573 #define ENABLE_SLAPI 1
23577 SLAPD_SLAPI_DEPEND=libslapi.a
23582 if test "$ac_cv_mingw32" = yes ; then
23584 SLAPD_MODULES_LDFLAGS=
23589 if test -z "$SLAPD_STATIC_BACKENDS"; then
23590 SLAPD_NO_STATIC='#'
23669 # Check whether --with-xxinstall or --without-xxinstall was given.
23670 if test "${with_xxinstall+set}" = set; then
23671 withval="$with_xxinstall"
23679 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23682 # Let make expand exec_prefix.
23683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23685 # Any assignment to VPATH causes Sun make to only execute
23686 # the first set of double-colon rules, so remove it if not needed.
23687 # If there is a colon in the path, we need to keep it.
23688 if test "x$srcdir" = x.; then
23689 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23692 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23694 DEFS=-DHAVE_CONFIG_H
23696 # Without the "./", some shells look in PATH for config.status.
23697 : ${CONFIG_STATUS=./config.status}
23699 echo creating $CONFIG_STATUS
23700 rm -f $CONFIG_STATUS
23701 cat > $CONFIG_STATUS <<EOF
23703 # Generated automatically by configure.
23704 # Run this file to recreate the current configuration.
23705 # This directory was configured as follows,
23706 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23708 # $0 $ac_configure_args
23710 # Compiler output produced by configure, useful for debugging
23711 # configure, is in ./config.log if it exists.
23713 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23716 case "\$ac_option" in
23717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23718 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23719 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23720 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23721 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23723 -help | --help | --hel | --he | --h)
23724 echo "\$ac_cs_usage"; exit 0 ;;
23725 *) echo "\$ac_cs_usage"; exit 1 ;;
23729 ac_given_srcdir=$srcdir
23730 ac_given_INSTALL="$INSTALL"
23732 trap 'rm -fr `echo "\
23733 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23734 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23735 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23736 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23737 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23738 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23739 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23740 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23741 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23742 include/Makefile:build/top.mk:include/Makefile.in \
23743 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23744 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23745 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23746 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23747 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23748 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23749 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23750 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23751 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23752 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23753 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23754 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23755 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23756 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23757 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23758 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23759 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23760 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23761 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23762 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23763 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23764 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23765 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23766 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23767 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23768 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23769 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23770 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23771 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23772 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23773 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23774 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23776 cat >> $CONFIG_STATUS <<EOF
23778 # Protect against being on the right side of a sed subst in config.status.
23779 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23780 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23784 s%@CFLAGS@%$CFLAGS%g
23785 s%@CPPFLAGS@%$CPPFLAGS%g
23786 s%@CXXFLAGS@%$CXXFLAGS%g
23787 s%@FFLAGS@%$FFLAGS%g
23789 s%@LDFLAGS@%$LDFLAGS%g
23791 s%@exec_prefix@%$exec_prefix%g
23792 s%@prefix@%$prefix%g
23793 s%@program_transform_name@%$program_transform_name%g
23794 s%@bindir@%$bindir%g
23795 s%@sbindir@%$sbindir%g
23796 s%@libexecdir@%$libexecdir%g
23797 s%@datadir@%$datadir%g
23798 s%@sysconfdir@%$sysconfdir%g
23799 s%@sharedstatedir@%$sharedstatedir%g
23800 s%@localstatedir@%$localstatedir%g
23801 s%@libdir@%$libdir%g
23802 s%@includedir@%$includedir%g
23803 s%@oldincludedir@%$oldincludedir%g
23804 s%@infodir@%$infodir%g
23805 s%@mandir@%$mandir%g
23807 s%@host_alias@%$host_alias%g
23808 s%@host_cpu@%$host_cpu%g
23809 s%@host_vendor@%$host_vendor%g
23810 s%@host_os@%$host_os%g
23811 s%@target@%$target%g
23812 s%@target_alias@%$target_alias%g
23813 s%@target_cpu@%$target_cpu%g
23814 s%@target_vendor@%$target_vendor%g
23815 s%@target_os@%$target_os%g
23817 s%@build_alias@%$build_alias%g
23818 s%@build_cpu@%$build_cpu%g
23819 s%@build_vendor@%$build_vendor%g
23820 s%@build_os@%$build_os%g
23821 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23822 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23823 s%@INSTALL_DATA@%$INSTALL_DATA%g
23824 s%@PACKAGE@%$PACKAGE%g
23825 s%@VERSION@%$VERSION%g
23826 s%@ACLOCAL@%$ACLOCAL%g
23827 s%@AUTOCONF@%$AUTOCONF%g
23828 s%@AUTOMAKE@%$AUTOMAKE%g
23829 s%@AUTOHEADER@%$AUTOHEADER%g
23830 s%@MAKEINFO@%$MAKEINFO%g
23831 s%@install_sh@%$install_sh%g
23834 s%@AMTARFLAGS@%$AMTARFLAGS%g
23835 s%@SET_MAKE@%$SET_MAKE%g
23836 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23837 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23838 s%@top_builddir@%$top_builddir%g
23839 s%@ldap_subdir@%$ldap_subdir%g
23843 s%@OBJEXT@%$OBJEXT%g
23844 s%@EXEEXT@%$EXEEXT%g
23846 s%@RANLIB@%$RANLIB%g
23848 s%@DLLTOOL@%$DLLTOOL%g
23850 s%@OBJDUMP@%$OBJDUMP%g
23852 s%@LIBTOOL@%$LIBTOOL%g
23854 s%@PERLBIN@%$PERLBIN%g
23855 s%@OL_MKDEP@%$OL_MKDEP%g
23856 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23857 s%@LTSTATIC@%$LTSTATIC%g
23858 s%@LIBOBJS@%$LIBOBJS%g
23859 s%@LIBSRCS@%$LIBSRCS%g
23861 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23862 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23863 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23864 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23865 s%@BUILD_BDB@%$BUILD_BDB%g
23866 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23867 s%@BUILD_HDB@%$BUILD_HDB%g
23868 s%@BUILD_LDAP@%$BUILD_LDAP%g
23869 s%@BUILD_LDBM@%$BUILD_LDBM%g
23870 s%@BUILD_META@%$BUILD_META%g
23871 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23872 s%@BUILD_NULL@%$BUILD_NULL%g
23873 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23874 s%@BUILD_PERL@%$BUILD_PERL%g
23875 s%@BUILD_SHELL@%$BUILD_SHELL%g
23876 s%@BUILD_SQL@%$BUILD_SQL%g
23877 s%@BUILD_TCL@%$BUILD_TCL%g
23878 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23879 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23880 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
23881 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23882 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23883 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23884 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23885 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23886 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23887 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23888 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23889 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23890 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23891 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23892 s%@LDAP_LIBS@%$LDAP_LIBS%g
23893 s%@LDIF_LIBS@%$LDIF_LIBS%g
23894 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23895 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23896 s%@LDBM_LIBS@%$LDBM_LIBS%g
23897 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23898 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23899 s%@WRAP_LIBS@%$WRAP_LIBS%g
23900 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23901 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23902 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23903 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23904 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23905 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23906 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23907 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23908 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23909 s%@KRB4_LIBS@%$KRB4_LIBS%g
23910 s%@KRB5_LIBS@%$KRB5_LIBS%g
23911 s%@READLINE_LIBS@%$READLINE_LIBS%g
23912 s%@SASL_LIBS@%$SASL_LIBS%g
23913 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23914 s%@TLS_LIBS@%$TLS_LIBS%g
23915 s%@MODULES_LIBS@%$MODULES_LIBS%g
23916 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23917 s%@LIBSLAPI@%$LIBSLAPI%g
23918 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23919 s%@AUTH_LIBS@%$AUTH_LIBS%g
23920 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23921 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23922 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23923 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23928 cat >> $CONFIG_STATUS <<\EOF
23930 # Split the substitutions into bite-sized pieces for seds with
23931 # small command number limits, like on Digital OSF/1 and HP-UX.
23932 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23933 ac_file=1 # Number of current file.
23934 ac_beg=1 # First line for current file.
23935 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23938 while $ac_more_lines; do
23939 if test $ac_beg -gt 1; then
23940 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23942 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23944 if test ! -s conftest.s$ac_file; then
23945 ac_more_lines=false
23946 rm -f conftest.s$ac_file
23948 if test -z "$ac_sed_cmds"; then
23949 ac_sed_cmds="sed -f conftest.s$ac_file"
23951 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23953 ac_file=`expr $ac_file + 1`
23955 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23958 if test -z "$ac_sed_cmds"; then
23963 cat >> $CONFIG_STATUS <<EOF
23965 CONFIG_FILES=\${CONFIG_FILES-"\
23966 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23967 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23968 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23969 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23970 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23971 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23972 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23973 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23974 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23975 include/Makefile:build/top.mk:include/Makefile.in \
23976 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23977 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23978 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23979 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23980 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23981 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23982 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23983 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23984 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23985 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23986 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23987 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23988 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23989 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23990 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23991 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23992 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23993 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23994 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23995 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23996 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23997 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23998 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23999 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24000 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
24001 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24002 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24003 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24004 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24005 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24006 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24009 cat >> $CONFIG_STATUS <<\EOF
24010 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24013 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24014 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24015 *) ac_file_in="${ac_file}.in" ;;
24018 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24020 # Remove last slash and all that follows it. Not all systems have dirname.
24021 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24023 # The file is in a subdirectory.
24024 test ! -d "$ac_dir" && mkdir "$ac_dir"
24025 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24026 # A "../" for each directory in $ac_dir_suffix.
24027 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24029 ac_dir_suffix= ac_dots=
24032 case "$ac_given_srcdir" in
24034 if test -z "$ac_dots"; then top_srcdir=.
24035 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24036 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24037 *) # Relative path.
24038 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24039 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24042 case "$ac_given_INSTALL" in
24043 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24044 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24047 echo creating "$ac_file"
24049 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24051 *[Mm]akefile*) ac_comsub="1i\\
24052 # $configure_input" ;;
24056 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24058 s%@configure_input@%$configure_input%g
24059 s%@srcdir@%$srcdir%g
24060 s%@top_srcdir@%$top_srcdir%g
24061 s%@INSTALL@%$INSTALL%g
24062 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24069 # ac_d sets the value in "#define NAME VALUE" lines.
24070 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24071 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24074 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24075 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24076 ac_uB='\([ ]\)%\1#\2define\3'
24079 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24080 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24081 ac_eB='$%\1#\2define\3'
24085 if test "${CONFIG_HEADERS+set}" != set; then
24087 cat >> $CONFIG_STATUS <<EOF
24088 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24090 cat >> $CONFIG_STATUS <<\EOF
24092 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24095 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24096 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24097 *) ac_file_in="${ac_file}.in" ;;
24100 echo creating $ac_file
24102 rm -f conftest.frag conftest.in conftest.out
24103 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24104 cat $ac_file_inputs > conftest.in
24108 # Transform confdefs.h into a sed script conftest.vals that substitutes
24109 # the proper values into config.h.in to produce config.h. And first:
24110 # Protect against being on the right side of a sed subst in config.status.
24111 # Protect against being in an unquoted here document in config.status.
24112 rm -f conftest.vals
24113 cat > conftest.hdr <<\EOF
24116 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24120 sed -n -f conftest.hdr confdefs.h > conftest.vals
24123 # This sed command replaces #undef with comments. This is necessary, for
24124 # example, in the case of _POSIX_SOURCE, which is predefined and required
24125 # on some systems where configure will not decide to define it.
24126 cat >> conftest.vals <<\EOF
24127 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24130 # Break up conftest.vals because some shells have a limit on
24131 # the size of here documents, and old seds have small limits too.
24133 rm -f conftest.tail
24136 ac_lines=`grep -c . conftest.vals`
24137 # grep -c gives empty output for an empty file on some AIX systems.
24138 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24139 # Write a limited-size here document to conftest.frag.
24140 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24141 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24143 sed -f conftest.frag conftest.in > conftest.out
24145 mv conftest.out conftest.in
24146 ' >> $CONFIG_STATUS
24147 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24148 rm -f conftest.vals
24149 mv conftest.tail conftest.vals
24151 rm -f conftest.vals
24153 cat >> $CONFIG_STATUS <<\EOF
24154 rm -f conftest.frag conftest.h
24155 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24156 cat conftest.in >> conftest.h
24158 if cmp -s $ac_file conftest.h 2>/dev/null; then
24159 echo "$ac_file is unchanged"
24162 # Remove last slash and all that follows it. Not all systems have dirname.
24163 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24165 # The file is in a subdirectory.
24166 test ! -d "$ac_dir" && mkdir "$ac_dir"
24169 mv conftest.h $ac_file
24174 cat >> $CONFIG_STATUS <<EOF
24177 cat >> $CONFIG_STATUS <<\EOF
24180 echo Please run \"make depend\" to build dependencies
24184 chmod +x $CONFIG_STATUS
24185 rm -fr confdefs* $ac_clean_files
24186 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1