3 # from OpenLDAP: pkg/ldap/configure.in,v 1.538 2004/04/17 13:12:21 hyc Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-backends enable all available backends no|yes|mod [no]"
90 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
92 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
94 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
96 --enable-ldap enable ldap backend no|yes|mod [no]"
98 --enable-ldbm enable ldbm backend no|yes|mod [no]"
100 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
102 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
104 --enable-meta enable metadirectory backend no|yes|mod [no]"
106 --enable-monitor enable monitor backend no|yes|mod [yes]"
108 --enable-null enable null backend no|yes|mod [no]"
110 --enable-passwd enable passwd backend no|yes|mod [no]"
112 --enable-perl enable perl backend no|yes|mod [no]"
114 --enable-relay enable relay backend no|yes|mod [yes]"
116 --enable-shell enable shell backend no|yes|mod [no]"
118 --enable-sql enable sql backend no|yes|mod [no]"
121 SLAPD Overlay Options:"
123 --enable-overlays enable all available overlays no|yes|mod [no]"
125 --enable-chain LDAP Chain Response no|yes|mod [no]"
127 --enable-denyop Deny Operation overlay no|yes|mod [no]"
129 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
131 --enable-lastmod Last Modification overlay no|yes|mod [no]"
133 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
135 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
137 --enable-refint Referential Integrity overlay no|yes|mod [no]"
139 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
141 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
144 SLURPD (Replication Daemon) Options:"
146 --enable-slurpd enable building slurpd [auto]"
149 Library Generation & Linking Options"
151 --enable-static[=PKGS] build static libraries [default=yes]"
153 --enable-shared[=PKGS] build shared libraries [default=yes]"
155 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
157 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
159 # Find the correct PATH separator. Usually this is `:', but
160 # DJGPP uses `;' like DOS.
161 if test "X${PATH_SEPARATOR+set}" != Xset; then
162 UNAME=${UNAME-`uname 2>/dev/null`}
164 *-DOS) lt_cv_sys_path_separator=';' ;;
165 *) lt_cv_sys_path_separator=':' ;;
167 PATH_SEPARATOR=$lt_cv_sys_path_separator
171 # Check that we are running under the correct shell.
172 SHELL=${CONFIG_SHELL-/bin/sh}
176 # Remove one level of quotation (which was required for Make).
177 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
182 if test "X$1" = X--no-reexec; then
183 # Discard the --no-reexec flag, and continue.
185 elif test "X$1" = X--fallback-echo; then
186 # Avoid inline document here, it may be left over
188 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
189 # Yippee, $echo works!
192 # Restart under the correct shell.
193 exec $SHELL "$0" --no-reexec ${1+"$@"}
196 if test "X$1" = X--fallback-echo; then
197 # used as fallback echo
205 # The HP-UX ksh and POSIX shell print the target directory to stdout
207 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
209 if test -z "$ECHO"; then
210 if test "X${echo_test_string+set}" != Xset; then
211 # find a string as large as possible, as long as the shell can cope with it
212 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
213 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
214 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
215 echo_test_string="`eval $cmd`" &&
216 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
223 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
224 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
225 test "X$echo_testing_string" = "X$echo_test_string"; then
228 # The Solaris, AIX, and Digital Unix default echo programs unquote
229 # backslashes. This makes it impossible to quote backslashes using
230 # echo "$something" | sed 's/\\/\\\\/g'
232 # So, first we look for a working echo in the user's PATH.
234 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
235 for dir in $PATH /usr/ucb; do
236 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
237 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
238 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
239 test "X$echo_testing_string" = "X$echo_test_string"; then
246 if test "X$echo" = Xecho; then
247 # We didn't find a better echo, so look for alternatives.
248 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
249 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
250 test "X$echo_testing_string" = "X$echo_test_string"; then
251 # This shell has a builtin print -r that does the trick.
253 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
254 test "X$CONFIG_SHELL" != X/bin/ksh; then
255 # If we have ksh, try running configure again with it.
256 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
257 export ORIGINAL_CONFIG_SHELL
258 CONFIG_SHELL=/bin/ksh
260 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
264 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
265 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
266 test "X$echo_testing_string" = "X$echo_test_string"; then
269 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
270 test "X$echo_testing_string" = 'X\t' &&
271 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
272 test "X$echo_testing_string" = "X$echo_test_string"; then
273 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
275 SHELL="$CONFIG_SHELL"
277 echo="$CONFIG_SHELL $0 --fallback-echo"
278 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
279 test "X$echo_testing_string" = 'X\t' &&
280 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
281 test "X$echo_testing_string" = "X$echo_test_string"; then
282 echo="$CONFIG_SHELL $0 --fallback-echo"
284 # maybe with a smaller string...
287 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
288 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
295 if test "$prev" != 'sed 50q "$0"'; then
296 echo_test_string=`eval $prev`
297 export echo_test_string
298 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
300 # Oops. We lost completely, so just stick with echo.
309 # Copy echo and quote the copy suitably for passing to libtool from
310 # the Makefile, instead of quoting the original, which is used later.
312 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
313 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
318 --disable-libtool-lock avoid locking (might break parallel builds)"
320 --with-pic try to use only PIC/non-PIC objects [default=use both]"
323 See INSTALL file for further details."
325 # Initialize some variables set by options.
326 # The variables have the same names as the options, with
327 # dashes changed to underlines.
329 cache_file=./config.cache
338 program_transform_name=s,x,x,
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
359 # Initialize some other variables.
362 SHELL=${CONFIG_SHELL-/bin/sh}
363 # Maximum number of lines to put in a shell here document.
370 # If the previous option needs an argument, assign it.
371 if test -n "$ac_prev"; then
372 eval "$ac_prev=\$ac_option"
378 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
382 # Accept the important Cygnus configure options, so we can diagnose typos.
386 -bindir | --bindir | --bindi | --bind | --bin | --bi)
388 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
389 bindir="$ac_optarg" ;;
391 -build | --build | --buil | --bui | --bu)
393 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
394 build="$ac_optarg" ;;
396 -cache-file | --cache-file | --cache-fil | --cache-fi \
397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
398 ac_prev=cache_file ;;
399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
401 cache_file="$ac_optarg" ;;
403 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
405 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
407 datadir="$ac_optarg" ;;
409 -disable-* | --disable-*)
410 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
415 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
416 eval "enable_${ac_feature}=no" ;;
418 -enable-* | --enable-*)
419 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
424 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
429 eval "enable_${ac_feature}='$ac_optarg'" ;;
431 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
432 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
433 | --exec | --exe | --ex)
434 ac_prev=exec_prefix ;;
435 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
436 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
437 | --exec=* | --exe=* | --ex=*)
438 exec_prefix="$ac_optarg" ;;
440 -gas | --gas | --ga | --g)
441 # Obsolete; use --with-gas.
444 -help | --help | --hel | --he)
445 # Omit some internal or obsolete options to make the list less imposing.
446 # This message is too long to be a string in the A/UX 3.1 sh.
448 Usage: configure [options] [host]
449 Options: [defaults in brackets after descriptions]
451 --cache-file=FILE cache test results in FILE
452 --help print this message
453 --no-create do not create output files
454 --quiet, --silent do not print \`checking...' messages
455 --version print the version of autoconf that created configure
456 Directory and file names:
457 --prefix=PREFIX install architecture-independent files in PREFIX
459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
461 --bindir=DIR user executables in DIR [EPREFIX/bin]
462 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
463 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
464 --datadir=DIR read-only architecture-independent data in DIR
466 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
467 --sharedstatedir=DIR modifiable architecture-independent data in DIR
469 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
470 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
471 --includedir=DIR C header files in DIR [PREFIX/include]
472 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
473 --infodir=DIR info documentation in DIR [PREFIX/info]
474 --mandir=DIR man documentation in DIR [PREFIX/man]
475 --srcdir=DIR find the sources in DIR [configure dir or ..]
476 --program-prefix=PREFIX prepend PREFIX to installed program names
477 --program-suffix=SUFFIX append SUFFIX to installed program names
478 --program-transform-name=PROGRAM
479 run sed PROGRAM on installed program names
483 --build=BUILD configure for building on BUILD [BUILD=HOST]
484 --host=HOST configure for HOST [guessed]
485 --target=TARGET configure for TARGET [TARGET=HOST]
486 Features and packages:
487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
491 --x-includes=DIR X include files are in DIR
492 --x-libraries=DIR X library files are in DIR
494 if test -n "$ac_help"; then
495 echo "--enable and --with options recognized:$ac_help"
499 -host | --host | --hos | --ho)
501 -host=* | --host=* | --hos=* | --ho=*)
504 -includedir | --includedir | --includedi | --included | --include \
505 | --includ | --inclu | --incl | --inc)
506 ac_prev=includedir ;;
507 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
508 | --includ=* | --inclu=* | --incl=* | --inc=*)
509 includedir="$ac_optarg" ;;
511 -infodir | --infodir | --infodi | --infod | --info | --inf)
513 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
514 infodir="$ac_optarg" ;;
516 -libdir | --libdir | --libdi | --libd)
518 -libdir=* | --libdir=* | --libdi=* | --libd=*)
519 libdir="$ac_optarg" ;;
521 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
522 | --libexe | --libex | --libe)
523 ac_prev=libexecdir ;;
524 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
525 | --libexe=* | --libex=* | --libe=*)
526 libexecdir="$ac_optarg" ;;
528 -localstatedir | --localstatedir | --localstatedi | --localstated \
529 | --localstate | --localstat | --localsta | --localst \
530 | --locals | --local | --loca | --loc | --lo)
531 ac_prev=localstatedir ;;
532 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
533 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
534 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
535 localstatedir="$ac_optarg" ;;
537 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
539 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
540 mandir="$ac_optarg" ;;
543 # Obsolete; use --without-fp.
546 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
550 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
551 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
554 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
555 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
556 | --oldin | --oldi | --old | --ol | --o)
557 ac_prev=oldincludedir ;;
558 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
559 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
560 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
561 oldincludedir="$ac_optarg" ;;
563 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
565 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
566 prefix="$ac_optarg" ;;
568 -program-prefix | --program-prefix | --program-prefi | --program-pref \
569 | --program-pre | --program-pr | --program-p)
570 ac_prev=program_prefix ;;
571 -program-prefix=* | --program-prefix=* | --program-prefi=* \
572 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
573 program_prefix="$ac_optarg" ;;
575 -program-suffix | --program-suffix | --program-suffi | --program-suff \
576 | --program-suf | --program-su | --program-s)
577 ac_prev=program_suffix ;;
578 -program-suffix=* | --program-suffix=* | --program-suffi=* \
579 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
580 program_suffix="$ac_optarg" ;;
582 -program-transform-name | --program-transform-name \
583 | --program-transform-nam | --program-transform-na \
584 | --program-transform-n | --program-transform- \
585 | --program-transform | --program-transfor \
586 | --program-transfo | --program-transf \
587 | --program-trans | --program-tran \
588 | --progr-tra | --program-tr | --program-t)
589 ac_prev=program_transform_name ;;
590 -program-transform-name=* | --program-transform-name=* \
591 | --program-transform-nam=* | --program-transform-na=* \
592 | --program-transform-n=* | --program-transform-=* \
593 | --program-transform=* | --program-transfor=* \
594 | --program-transfo=* | --program-transf=* \
595 | --program-trans=* | --program-tran=* \
596 | --progr-tra=* | --program-tr=* | --program-t=*)
597 program_transform_name="$ac_optarg" ;;
599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
600 | -silent | --silent | --silen | --sile | --sil)
603 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
605 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
607 sbindir="$ac_optarg" ;;
609 -sharedstatedir | --sharedstatedir | --sharedstatedi \
610 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
611 | --sharedst | --shareds | --shared | --share | --shar \
613 ac_prev=sharedstatedir ;;
614 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
615 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
616 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
618 sharedstatedir="$ac_optarg" ;;
620 -site | --site | --sit)
622 -site=* | --site=* | --sit=*)
625 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
627 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
628 srcdir="$ac_optarg" ;;
630 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
631 | --syscon | --sysco | --sysc | --sys | --sy)
632 ac_prev=sysconfdir ;;
633 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
634 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
635 sysconfdir="$ac_optarg" ;;
637 -target | --target | --targe | --targ | --tar | --ta | --t)
639 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
640 target="$ac_optarg" ;;
642 -v | -verbose | --verbose | --verbos | --verbo | --verb)
645 -version | --version | --versio | --versi | --vers)
646 echo "configure generated by autoconf version 2.13.1"
650 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
651 # Reject names that are not valid shell variable names.
652 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
653 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
655 ac_package=`echo $ac_package| sed 's/-/_/g'`
660 eval "with_${ac_package}='$ac_optarg'" ;;
662 -without-* | --without-*)
663 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
664 # Reject names that are not valid shell variable names.
665 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
666 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
668 ac_package=`echo $ac_package| sed 's/-/_/g'`
669 eval "with_${ac_package}=no" ;;
672 # Obsolete; use --with-x.
675 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
676 | --x-incl | --x-inc | --x-in | --x-i)
677 ac_prev=x_includes ;;
678 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
679 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
680 x_includes="$ac_optarg" ;;
682 -x-libraries | --x-libraries | --x-librarie | --x-librari \
683 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
684 ac_prev=x_libraries ;;
685 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
686 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
687 x_libraries="$ac_optarg" ;;
689 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
693 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
694 echo "configure: warning: $ac_option: invalid host type" 1>&2
696 if test "x$nonopt" != xNONE; then
697 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
705 if test -n "$ac_prev"; then
706 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
709 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
711 # File descriptor usage:
714 # 2 errors and warnings
715 # 3 some systems may open it to /dev/tty
716 # 4 used on the Kubota Titan
717 # 6 checking for... messages and results
718 # 5 compiler messages saved in config.log
719 if test "$silent" = yes; then
727 This file contains any messages produced by compilers while
728 running configure, to aid debugging if configure makes a mistake.
731 # Strip out --no-create and --no-recursion so they do not pile up.
732 # Also quote any args containing shell metacharacters.
737 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
738 | --no-cr | --no-c) ;;
739 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
740 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
741 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
742 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
743 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
748 # Only set these to C if already set. These must not be set unconditionally
749 # because not all systems understand e.g. LANG=C (notably SCO).
750 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
751 # Non-C LC_CTYPE values break the ctype check.
752 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
753 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
754 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
755 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
758 rm -rf conftest* confdefs.h
759 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
762 # A filename unique to this package, relative to the directory that
763 # configure is in, which we can look for to find out if srcdir is correct.
764 ac_unique_file=build/version.sh
766 # Find the source files, if location was not specified.
767 if test -z "$srcdir"; then
768 ac_srcdir_defaulted=yes
769 # Try the directory containing this script, then its parent.
771 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
772 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
774 if test ! -r $srcdir/$ac_unique_file; then
778 ac_srcdir_defaulted=no
780 if test ! -r $srcdir/$ac_unique_file; then
781 if test "$ac_srcdir_defaulted" = yes; then
782 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
784 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
787 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
789 # Prefer explicitly selected file to automatically selected ones.
790 if test -z "$CONFIG_SITE"; then
791 if test "x$prefix" != xNONE; then
792 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
794 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
797 for ac_site_file in $CONFIG_SITE; do
798 if test -r "$ac_site_file"; then
799 echo "loading site script $ac_site_file"
806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
807 ac_cpp='$CPP $CPPFLAGS'
808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
810 cross_compiling=$ac_cv_prog_cc_cross
814 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
815 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
816 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
823 ac_n= ac_c='\c' ac_t=
827 # set unset (borrowed from autoconf 2.49c)
828 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
834 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
837 for ac_dir in build $srcdir/build; do
838 if test -f $ac_dir/install-sh; then
840 ac_install_sh="$ac_aux_dir/install-sh -c"
842 elif test -f $ac_dir/install.sh; then
844 ac_install_sh="$ac_aux_dir/install.sh -c"
846 elif test -f $ac_dir/shtool; then
848 ac_install_sh="$ac_aux_dir/shtool install -c"
852 if test -z "$ac_aux_dir"; then
853 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
855 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
856 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
857 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
859 eval `$ac_aux_dir/version.sh`
860 if test -z "$OL_STRING"; then
861 { echo "configure: error: could not determine version" 1>&2; exit 1; }
864 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
865 ac_cv_shtool="$ac_aux_dir/shtool"
867 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
870 SHTOOL="$ac_cv_shtool"
872 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
873 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
876 if test -d $ac_aux_dir/CVS; then
877 OPENLDAP_CVS="(from CVS sources) "
880 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
883 echo $ac_n "checking host system type""... $ac_c" 1>&6
884 echo "configure:885: checking host system type" >&5
885 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
887 # Make sure we can run config.sub.
888 if $ac_config_sub sun4 >/dev/null 2>&1; then :
889 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
892 ac_cv_host_alias=$host
893 case "$ac_cv_host_alias" in
897 if ac_cv_host_alias=`$ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
900 *) ac_cv_host_alias=$nonopt ;;
904 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
905 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
909 echo $ac_n "(cached) $ac_c" 1>&6
912 echo "$ac_t""$ac_cv_host" 1>&6
915 host_alias=$ac_cv_host_alias
916 host_cpu=$ac_cv_host_cpu
917 host_vendor=$ac_cv_host_vendor
918 host_os=$ac_cv_host_os
924 echo $ac_n "checking target system type""... $ac_c" 1>&6
925 echo "configure:926: checking target system type" >&5
926 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
928 # Make sure we can run config.sub.
929 if $ac_config_sub sun4 >/dev/null 2>&1; then :
930 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 ac_cv_target_alias=$target
934 case "$ac_cv_target_alias" in
938 ac_cv_target_alias=$host_alias ;;
940 *) ac_cv_target_alias=$nonopt ;;
944 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
945 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
949 echo $ac_n "(cached) $ac_c" 1>&6
952 echo "$ac_t""$ac_cv_target" 1>&6
955 target_alias=$ac_cv_target_alias
956 target_cpu=$ac_cv_target_cpu
957 target_vendor=$ac_cv_target_vendor
958 target_os=$ac_cv_target_os
964 echo $ac_n "checking build system type""... $ac_c" 1>&6
965 echo "configure:966: checking build system type" >&5
966 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
968 # Make sure we can run config.sub.
969 if $ac_config_sub sun4 >/dev/null 2>&1; then :
970 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
973 ac_cv_build_alias=$build
974 case "$ac_cv_build_alias" in
978 ac_cv_build_alias=$host_alias ;;
980 *) ac_cv_build_alias=$nonopt ;;
984 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
985 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989 echo $ac_n "(cached) $ac_c" 1>&6
992 echo "$ac_t""$ac_cv_build" 1>&6
995 build_alias=$ac_cv_build_alias
996 build_cpu=$ac_cv_build_cpu
997 build_vendor=$ac_cv_build_vendor
998 build_os=$ac_cv_build_os
1004 # Do some error checking and defaulting for the host and target type.
1006 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1009 # 1. You are not allowed to specify --host, --target, and nonopt at the
1011 # 2. Host defaults to nonopt.
1012 # 3. If nonopt is not specified, then host defaults to the current host,
1013 # as determined by config.guess.
1014 # 4. Target and build default to nonopt.
1015 # 5. If nonopt is not specified, then target and build default to host.
1017 # The aliases save the names the user supplied, while $host etc.
1018 # will get canonicalized.
1019 case $host---$target---$nonopt in
1020 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1021 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1024 test "$host_alias" != "$target_alias" &&
1025 test "$program_prefix$program_suffix$program_transform_name" = \
1027 program_prefix=${target_alias}-
1030 # Find a good install program. We prefer a C program (faster),
1031 # so one script is as good as another. But avoid the broken or
1032 # incompatible versions:
1033 # SysV /etc/install, /usr/sbin/install
1034 # SunOS /usr/etc/install
1035 # IRIX /sbin/install
1037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1040 # ./install, which can be erroneously created by make from ./install.sh.
1041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1042 echo "configure:1043: checking for a BSD compatible install" >&5
1043 if test -z "$INSTALL"; then
1044 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1047 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1048 for ac_dir in $PATH; do
1049 # Account for people who put trailing slashes in PATH elements.
1051 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1053 # OSF1 and SCO ODT 3.0 have their own names for install.
1054 # Don't use installbsd from OSF since it installs stuff as root
1056 for ac_prog in ginstall scoinst install; do
1057 if test -f $ac_dir/$ac_prog; then
1058 if test $ac_prog = install &&
1059 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # AIX install. It has an incompatible calling convention.
1062 elif test $ac_prog = install &&
1063 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1064 # program-specific install script used by HP pwplus--don't use.
1067 ac_cv_path_install="$ac_dir/$ac_prog -c"
1078 if test "${ac_cv_path_install+set}" = set; then
1079 INSTALL="$ac_cv_path_install"
1081 # As a last resort, use the slow shell script. We don't cache a
1082 # path for INSTALL within a source directory, because that will
1083 # break other packages using the cache if that directory is
1084 # removed, or if the path is relative.
1085 INSTALL="$ac_install_sh"
1088 echo "$ac_t""$INSTALL" 1>&6
1090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1091 # It thinks the first close brace ends the variable substitution.
1092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1098 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether build environment is sane" >&5
1102 echo timestamp > conftestfile
1103 # Do `set' in a subshell so we don't clobber the current shell's
1104 # arguments. Must try -L first in case configure is actually a
1105 # symlink; some systems play weird games with the mod time of symlinks
1106 # (eg FreeBSD returns the mod time of the symlink's containing
1109 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1110 if test "$*" = "X"; then
1112 set X `ls -t $srcdir/configure conftestfile`
1114 if test "$*" != "X $srcdir/configure conftestfile" \
1115 && test "$*" != "X conftestfile $srcdir/configure"; then
1117 # If neither matched, then we have a broken ls. This can happen
1118 # if, for instance, CONFIG_SHELL is bash and it inherits a
1119 # broken ls alias from the environment. This has actually
1120 # happened. Such a system could not be considered "sane".
1121 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1122 alias in your environment" 1>&2; exit 1; }
1125 test "$2" = conftestfile
1131 { echo "configure: error: newly created file is older than distributed files!
1132 Check your system clock" 1>&2; exit 1; }
1135 echo "$ac_t""yes" 1>&6
1136 if test "$program_transform_name" = s,x,x,; then
1137 program_transform_name=
1139 # Double any \ or $. echo might interpret backslashes.
1140 cat <<\EOF_SED > conftestsed
1141 s,\\,\\\\,g; s,\$,$$,g
1143 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1146 test "$program_prefix" != NONE &&
1147 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1148 # Use a double $ so make ignores it.
1149 test "$program_suffix" != NONE &&
1150 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1152 # sed with no file args requires a program.
1153 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1155 for ac_prog in mawk gawk nawk awk
1157 # Extract the first word of "$ac_prog", so it can be a program name with args.
1158 set dummy $ac_prog; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$AWK"; then
1165 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 ac_cv_prog_AWK="$ac_prog"
1179 AWK="$ac_cv_prog_AWK"
1180 if test -n "$AWK"; then
1181 echo "$ac_t""$AWK" 1>&6
1183 echo "$ac_t""no" 1>&6
1186 test -n "$AWK" && break
1189 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1190 echo "configure:1191: checking whether ${MAKE-make} sets \${MAKE}" >&5
1191 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1192 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftestmake <<\EOF
1197 @echo 'ac_maketemp="${MAKE}"'
1199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1200 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1201 if test -n "$ac_maketemp"; then
1202 eval ac_cv_prog_make_${ac_make}_set=yes
1204 eval ac_cv_prog_make_${ac_make}_set=no
1208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1209 echo "$ac_t""yes" 1>&6
1212 echo "$ac_t""no" 1>&6
1213 SET_MAKE="MAKE=${MAKE-make}"
1222 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1223 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1228 missing_dir=`cd $ac_aux_dir && pwd`
1229 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1230 echo "configure:1231: checking for working aclocal" >&5
1231 # Run test in a subshell; some versions of sh will print an error if
1232 # an executable is not found, even if stderr is redirected.
1233 # Redirect stdin to placate older versions of autoconf. Sigh.
1234 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1236 echo "$ac_t""found" 1>&6
1238 ACLOCAL="$missing_dir/missing aclocal"
1239 echo "$ac_t""missing" 1>&6
1242 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working autoconf" >&5
1244 # Run test in a subshell; some versions of sh will print an error if
1245 # an executable is not found, even if stderr is redirected.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 AUTOCONF="$missing_dir/missing autoconf"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working automake" >&5
1257 # Run test in a subshell; some versions of sh will print an error if
1258 # an executable is not found, even if stderr is redirected.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (automake --version) < /dev/null > /dev/null 2>&1; then
1262 echo "$ac_t""found" 1>&6
1264 AUTOMAKE="$missing_dir/missing automake"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working autoheader" >&5
1270 # Run test in a subshell; some versions of sh will print an error if
1271 # an executable is not found, even if stderr is redirected.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1274 AUTOHEADER=autoheader
1275 echo "$ac_t""found" 1>&6
1277 AUTOHEADER="$missing_dir/missing autoheader"
1278 echo "$ac_t""missing" 1>&6
1281 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working makeinfo" >&5
1283 # Run test in a subshell; some versions of sh will print an error if
1284 # an executable is not found, even if stderr is redirected.
1285 # Redirect stdin to placate older versions of autoconf. Sigh.
1286 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1288 echo "$ac_t""found" 1>&6
1290 MAKEINFO="$missing_dir/missing makeinfo"
1291 echo "$ac_t""missing" 1>&6
1294 install_sh="$missing_dir/install-sh"
1295 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1297 for ac_prog in gnutar gtar tar
1299 # Extract the first word of "$ac_prog", so it can be a program name with args.
1300 set dummy $ac_prog; ac_word=$2
1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_word" >&5
1303 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test -n "$AMTAR"; then
1307 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1311 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_AMTAR="$ac_prog"
1321 AMTAR="$ac_cv_prog_AMTAR"
1322 if test -n "$AMTAR"; then
1323 echo "$ac_t""$AMTAR" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 test -n "$AMTAR" && break
1333 if test -n "$AMTAR"; then
1334 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_PACKAGE "$PACKAGE"
1343 cat >> confdefs.h <<EOF
1344 #define OPENLDAP_VERSION "$VERSION"
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION $OL_API_INC
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1360 cat >> confdefs.h <<EOF
1361 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1365 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1367 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1369 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1373 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1374 echo "configure:1375: checking configure arguments" >&5
1379 ldap_subdir="/openldap"
1381 # Check whether --with-subdir or --without-subdir was given.
1382 if test "${with_subdir+set}" = set; then
1383 withval="$with_subdir"
1390 ldap_subdir="$withval"
1393 ldap_subdir="/$withval"
1400 # OpenLDAP --enable-debug
1401 # Check whether --enable-debug or --disable-debug was given.
1402 if test "${enable_debug+set}" = set; then
1403 enableval="$enable_debug"
1406 for ol_val in auto yes no ; do
1407 if test "$enableval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1414 ol_enable_debug="$ol_arg"
1417 ol_enable_debug="yes"
1419 # end --enable-debug
1420 # OpenLDAP --enable-dynamic
1421 # Check whether --enable-dynamic or --disable-dynamic was given.
1422 if test "${enable_dynamic+set}" = set; then
1423 enableval="$enable_dynamic"
1426 for ol_val in auto yes no ; do
1427 if test "$enableval" = "$ol_val" ; then
1431 if test "$ol_arg" = "invalid" ; then
1432 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1434 ol_enable_dynamic="$ol_arg"
1437 ol_enable_dynamic="no"
1439 # end --enable-dynamic
1440 # OpenLDAP --enable-syslog
1441 # Check whether --enable-syslog or --disable-syslog was given.
1442 if test "${enable_syslog+set}" = set; then
1443 enableval="$enable_syslog"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1454 ol_enable_syslog="$ol_arg"
1457 ol_enable_syslog="auto"
1459 # end --enable-syslog
1460 # OpenLDAP --enable-proctitle
1461 # Check whether --enable-proctitle or --disable-proctitle was given.
1462 if test "${enable_proctitle+set}" = set; then
1463 enableval="$enable_proctitle"
1466 for ol_val in auto yes no ; do
1467 if test "$enableval" = "$ol_val" ; then
1471 if test "$ol_arg" = "invalid" ; then
1472 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1474 ol_enable_proctitle="$ol_arg"
1477 ol_enable_proctitle="yes"
1479 # end --enable-proctitle
1480 ol_enable_referrals=${ol_enable_referrals-no}
1481 ol_enable_kbind=${ol_enable_kbind-no}
1482 # OpenLDAP --enable-ipv6
1483 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1484 if test "${enable_ipv6+set}" = set; then
1485 enableval="$enable_ipv6"
1488 for ol_val in auto yes no ; do
1489 if test "$enableval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1496 ol_enable_ipv6="$ol_arg"
1499 ol_enable_ipv6="auto"
1502 # OpenLDAP --enable-local
1503 # Check whether --enable-local or --disable-local was given.
1504 if test "${enable_local+set}" = set; then
1505 enableval="$enable_local"
1508 for ol_val in auto yes no ; do
1509 if test "$enableval" = "$ol_val" ; then
1513 if test "$ol_arg" = "invalid" ; then
1514 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1516 ol_enable_local="$ol_arg"
1519 ol_enable_local="auto"
1521 # end --enable-local
1524 # OpenLDAP --with-cyrus_sasl
1525 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1526 if test "${with_cyrus_sasl+set}" = set; then
1527 withval="$with_cyrus_sasl"
1530 for ol_val in auto yes no ; do
1531 if test "$withval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1538 ol_with_cyrus_sasl="$ol_arg"
1541 ol_with_cyrus_sasl="auto"
1543 # end --with-cyrus_sasl
1545 # OpenLDAP --with-fetch
1546 # Check whether --with-fetch or --without-fetch was given.
1547 if test "${with_fetch+set}" = set; then
1548 withval="$with_fetch"
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-fetch" 1>&2; exit 1; }
1559 ol_with_fetch="$ol_arg"
1562 ol_with_fetch="auto"
1566 ol_with_kerberos=${ol_with_kerberos-auto}
1567 # OpenLDAP --with-threads
1568 # Check whether --with-threads or --without-threads was given.
1569 if test "${with_threads+set}" = set; then
1570 withval="$with_threads"
1573 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1574 if test "$withval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1581 ol_with_threads="$ol_arg"
1584 ol_with_threads="auto"
1586 # end --with-threads
1588 # OpenLDAP --with-tls
1589 # Check whether --with-tls or --without-tls was given.
1590 if test "${with_tls+set}" = set; then
1594 for ol_val in auto ssleay openssl yes no ; do
1595 if test "$withval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1602 ol_with_tls="$ol_arg"
1609 # OpenLDAP --with-yielding_select
1610 # Check whether --with-yielding_select or --without-yielding_select was given.
1611 if test "${with_yielding_select+set}" = set; then
1612 withval="$with_yielding_select"
1615 for ol_val in auto yes no manual ; do
1616 if test "$withval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1623 ol_with_yielding_select="$ol_arg"
1626 ol_with_yielding_select="auto"
1628 # end --with-yielding_select
1632 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1633 if test "${with_xxslapdoptions+set}" = set; then
1634 withval="$with_xxslapdoptions"
1638 # OpenLDAP --enable-slapd
1639 # Check whether --enable-slapd or --disable-slapd was given.
1640 if test "${enable_slapd+set}" = set; then
1641 enableval="$enable_slapd"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1652 ol_enable_slapd="$ol_arg"
1655 ol_enable_slapd="yes"
1657 # end --enable-slapd
1658 # OpenLDAP --enable-aci
1659 # Check whether --enable-aci or --disable-aci was given.
1660 if test "${enable_aci+set}" = set; then
1661 enableval="$enable_aci"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1672 ol_enable_aci="$ol_arg"
1678 # OpenLDAP --enable-cleartext
1679 # Check whether --enable-cleartext or --disable-cleartext was given.
1680 if test "${enable_cleartext+set}" = set; then
1681 enableval="$enable_cleartext"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1692 ol_enable_cleartext="$ol_arg"
1695 ol_enable_cleartext="yes"
1697 # end --enable-cleartext
1698 # OpenLDAP --enable-crypt
1699 # Check whether --enable-crypt or --disable-crypt was given.
1700 if test "${enable_crypt+set}" = set; then
1701 enableval="$enable_crypt"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1712 ol_enable_crypt="$ol_arg"
1715 ol_enable_crypt="no"
1717 # end --enable-crypt
1718 # OpenLDAP --enable-lmpasswd
1719 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1720 if test "${enable_lmpasswd+set}" = set; then
1721 enableval="$enable_lmpasswd"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1732 ol_enable_lmpasswd="$ol_arg"
1735 ol_enable_lmpasswd="no"
1737 # end --enable-lmpasswd
1738 # OpenLDAP --enable-spasswd
1739 # Check whether --enable-spasswd or --disable-spasswd was given.
1740 if test "${enable_spasswd+set}" = set; then
1741 enableval="$enable_spasswd"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1752 ol_enable_spasswd="$ol_arg"
1755 ol_enable_spasswd="no"
1757 # end --enable-spasswd
1758 # OpenLDAP --enable-modules
1759 # Check whether --enable-modules or --disable-modules was given.
1760 if test "${enable_modules+set}" = set; then
1761 enableval="$enable_modules"
1764 for ol_val in auto yes no ; do
1765 if test "$enableval" = "$ol_val" ; then
1769 if test "$ol_arg" = "invalid" ; then
1770 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1772 ol_enable_modules="$ol_arg"
1775 ol_enable_modules="no"
1777 # end --enable-modules
1778 ol_enable_multimaster=${ol_enable_multimaster-no}
1779 # OpenLDAP --enable-rewrite
1780 # Check whether --enable-rewrite or --disable-rewrite was given.
1781 if test "${enable_rewrite+set}" = set; then
1782 enableval="$enable_rewrite"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1793 ol_enable_rewrite="$ol_arg"
1796 ol_enable_rewrite="auto"
1798 # end --enable-rewrite
1799 # OpenLDAP --enable-rlookups
1800 # Check whether --enable-rlookups or --disable-rlookups was given.
1801 if test "${enable_rlookups+set}" = set; then
1802 enableval="$enable_rlookups"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1813 ol_enable_rlookups="$ol_arg"
1816 ol_enable_rlookups="no"
1818 # end --enable-rlookups
1819 # OpenLDAP --enable-slapi
1820 # Check whether --enable-slapi or --disable-slapi was given.
1821 if test "${enable_slapi+set}" = set; then
1822 enableval="$enable_slapi"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1833 ol_enable_slapi="$ol_arg"
1836 ol_enable_slapi="no"
1838 # end --enable-slapi
1839 # OpenLDAP --enable-slp
1840 # Check whether --enable-slp or --disable-slp was given.
1841 if test "${enable_slp+set}" = set; then
1842 enableval="$enable_slp"
1845 for ol_val in auto yes no ; do
1846 if test "$enableval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1853 ol_enable_slp="$ol_arg"
1859 # OpenLDAP --enable-wrappers
1860 # Check whether --enable-wrappers or --disable-wrappers was given.
1861 if test "${enable_wrappers+set}" = set; then
1862 enableval="$enable_wrappers"
1865 for ol_val in auto yes no ; do
1866 if test "$enableval" = "$ol_val" ; then
1870 if test "$ol_arg" = "invalid" ; then
1871 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1873 ol_enable_wrappers="$ol_arg"
1876 ol_enable_wrappers="no"
1878 # end --enable-wrappers
1880 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1881 passwd perl relay shell sql"
1883 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1884 if test "${with_xxslapbackends+set}" = set; then
1885 withval="$with_xxslapbackends"
1890 # OpenLDAP --enable-backends
1891 # Check whether --enable-backends or --disable-backends was given.
1892 if test "${enable_backends+set}" = set; then
1893 enableval="$enable_backends"
1896 for ol_val in no yes mod ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1904 ol_enable_backends="$ol_arg"
1907 ol_enable_backends="no"
1909 # end --enable-backends
1910 # OpenLDAP --enable-bdb
1911 # Check whether --enable-bdb or --disable-bdb was given.
1912 if test "${enable_bdb+set}" = set; then
1913 enableval="$enable_bdb"
1916 for ol_val in no yes mod ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1924 ol_enable_bdb="$ol_arg"
1930 # OpenLDAP --enable-dnssrv
1931 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1932 if test "${enable_dnssrv+set}" = set; then
1933 enableval="$enable_dnssrv"
1936 for ol_val in no yes mod ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1944 ol_enable_dnssrv="$ol_arg"
1947 ol_enable_dnssrv="no"
1949 # end --enable-dnssrv
1950 # OpenLDAP --enable-hdb
1951 # Check whether --enable-hdb or --disable-hdb was given.
1952 if test "${enable_hdb+set}" = set; then
1953 enableval="$enable_hdb"
1956 for ol_val in no yes mod ; do
1957 if test "$enableval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1964 ol_enable_hdb="$ol_arg"
1970 # OpenLDAP --enable-ldap
1971 # Check whether --enable-ldap or --disable-ldap was given.
1972 if test "${enable_ldap+set}" = set; then
1973 enableval="$enable_ldap"
1976 for ol_val in no yes mod ; do
1977 if test "$enableval" = "$ol_val" ; then
1981 if test "$ol_arg" = "invalid" ; then
1982 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1984 ol_enable_ldap="$ol_arg"
1990 # OpenLDAP --enable-ldbm
1991 # Check whether --enable-ldbm or --disable-ldbm was given.
1992 if test "${enable_ldbm+set}" = set; then
1993 enableval="$enable_ldbm"
1996 for ol_val in no yes mod ; do
1997 if test "$enableval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2004 ol_enable_ldbm="$ol_arg"
2010 # OpenLDAP --with-ldbm_api
2011 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2012 if test "${with_ldbm_api+set}" = set; then
2013 withval="$with_ldbm_api"
2016 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2024 ol_with_ldbm_api="$ol_arg"
2027 ol_with_ldbm_api="auto"
2029 # end --with-ldbm_api
2031 # OpenLDAP --with-ldbm_type
2032 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2033 if test "${with_ldbm_type+set}" = set; then
2034 withval="$with_ldbm_type"
2037 for ol_val in auto btree hash ; do
2038 if test "$withval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2045 ol_with_ldbm_type="$ol_arg"
2048 ol_with_ldbm_type="auto"
2050 # end --with-ldbm_type
2052 # OpenLDAP --enable-meta
2053 # Check whether --enable-meta or --disable-meta was given.
2054 if test "${enable_meta+set}" = set; then
2055 enableval="$enable_meta"
2058 for ol_val in no yes mod ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2066 ol_enable_meta="$ol_arg"
2072 # OpenLDAP --enable-monitor
2073 # Check whether --enable-monitor or --disable-monitor was given.
2074 if test "${enable_monitor+set}" = set; then
2075 enableval="$enable_monitor"
2078 for ol_val in no yes mod ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2086 ol_enable_monitor="$ol_arg"
2089 ol_enable_monitor="yes"
2091 # end --enable-monitor
2092 # OpenLDAP --enable-null
2093 # Check whether --enable-null or --disable-null was given.
2094 if test "${enable_null+set}" = set; then
2095 enableval="$enable_null"
2098 for ol_val in no yes mod ; do
2099 if test "$enableval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2106 ol_enable_null="$ol_arg"
2112 # OpenLDAP --enable-passwd
2113 # Check whether --enable-passwd or --disable-passwd was given.
2114 if test "${enable_passwd+set}" = set; then
2115 enableval="$enable_passwd"
2118 for ol_val in no yes mod ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2126 ol_enable_passwd="$ol_arg"
2129 ol_enable_passwd="no"
2131 # end --enable-passwd
2132 # OpenLDAP --enable-perl
2133 # Check whether --enable-perl or --disable-perl was given.
2134 if test "${enable_perl+set}" = set; then
2135 enableval="$enable_perl"
2138 for ol_val in no yes mod ; do
2139 if test "$enableval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2146 ol_enable_perl="$ol_arg"
2152 # OpenLDAP --enable-relay
2153 # Check whether --enable-relay or --disable-relay was given.
2154 if test "${enable_relay+set}" = set; then
2155 enableval="$enable_relay"
2158 for ol_val in no yes mod ; do
2159 if test "$enableval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2166 ol_enable_relay="$ol_arg"
2169 ol_enable_relay="yes"
2171 # end --enable-relay
2172 # OpenLDAP --enable-shell
2173 # Check whether --enable-shell or --disable-shell was given.
2174 if test "${enable_shell+set}" = set; then
2175 enableval="$enable_shell"
2178 for ol_val in no yes mod ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2186 ol_enable_shell="$ol_arg"
2189 ol_enable_shell="no"
2191 # end --enable-shell
2192 # OpenLDAP --enable-sql
2193 # Check whether --enable-sql or --disable-sql was given.
2194 if test "${enable_sql+set}" = set; then
2195 enableval="$enable_sql"
2198 for ol_val in no yes mod ; do
2199 if test "$enableval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2206 ol_enable_sql="$ol_arg"
2213 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm \
2216 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2217 if test "${with_xxslapoverlays+set}" = set; then
2218 withval="$with_xxslapoverlays"
2223 # OpenLDAP --enable-overlays
2224 # Check whether --enable-overlays or --disable-overlays was given.
2225 if test "${enable_overlays+set}" = set; then
2226 enableval="$enable_overlays"
2229 for ol_val in no yes mod ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2237 ol_enable_overlays="$ol_arg"
2240 ol_enable_overlays="no"
2242 # end --enable-overlays
2243 # OpenLDAP --enable-chain
2244 # Check whether --enable-chain or --disable-chain was given.
2245 if test "${enable_chain+set}" = set; then
2246 enableval="$enable_chain"
2249 for ol_val in no yes mod ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2257 ol_enable_chain="$ol_arg"
2260 ol_enable_chain="no"
2262 # end --enable-chain
2264 # OpenLDAP --enable-denyop
2265 # Check whether --enable-denyop or --disable-denyop was given.
2266 if test "${enable_denyop+set}" = set; then
2267 enableval="$enable_denyop"
2270 for ol_val in no yes mod ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2278 ol_enable_denyop="$ol_arg"
2281 ol_enable_denyop="no"
2283 # end --enable-denyop
2285 # OpenLDAP --enable-dyngroup
2286 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2287 if test "${enable_dyngroup+set}" = set; then
2288 enableval="$enable_dyngroup"
2291 for ol_val in no yes mod ; do
2292 if test "$enableval" = "$ol_val" ; then
2296 if test "$ol_arg" = "invalid" ; then
2297 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2299 ol_enable_dyngroup="$ol_arg"
2302 ol_enable_dyngroup="no"
2304 # end --enable-dyngroup
2306 # OpenLDAP --enable-lastmod
2307 # Check whether --enable-lastmod or --disable-lastmod was given.
2308 if test "${enable_lastmod+set}" = set; then
2309 enableval="$enable_lastmod"
2312 for ol_val in no yes mod ; do
2313 if test "$enableval" = "$ol_val" ; then
2317 if test "$ol_arg" = "invalid" ; then
2318 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2320 ol_enable_lastmod="$ol_arg"
2323 ol_enable_lastmod="no"
2325 # end --enable-lastmod
2327 # OpenLDAP --enable-ppolicy
2328 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2329 if test "${enable_ppolicy+set}" = set; then
2330 enableval="$enable_ppolicy"
2333 for ol_val in no yes mod ; do
2334 if test "$enableval" = "$ol_val" ; then
2338 if test "$ol_arg" = "invalid" ; then
2339 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2341 ol_enable_ppolicy="$ol_arg"
2344 ol_enable_ppolicy="no"
2346 # end --enable-ppolicy
2348 # OpenLDAP --enable-proxycache
2349 # Check whether --enable-proxycache or --disable-proxycache was given.
2350 if test "${enable_proxycache+set}" = set; then
2351 enableval="$enable_proxycache"
2354 for ol_val in no yes mod ; do
2355 if test "$enableval" = "$ol_val" ; then
2359 if test "$ol_arg" = "invalid" ; then
2360 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2362 ol_enable_proxycache="$ol_arg"
2365 ol_enable_proxycache="no"
2367 # end --enable-proxycache
2369 # OpenLDAP --enable-refint
2370 # Check whether --enable-refint or --disable-refint was given.
2371 if test "${enable_refint+set}" = set; then
2372 enableval="$enable_refint"
2375 for ol_val in no yes mod ; do
2376 if test "$enableval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2383 ol_enable_refint="$ol_arg"
2386 ol_enable_refint="no"
2388 # end --enable-refint
2390 # OpenLDAP --enable-rwm
2391 # Check whether --enable-rwm or --disable-rwm was given.
2392 if test "${enable_rwm+set}" = set; then
2393 enableval="$enable_rwm"
2396 for ol_val in no yes mod ; do
2397 if test "$enableval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2404 ol_enable_rwm="$ol_arg"
2411 # OpenLDAP --enable-unique
2412 # Check whether --enable-unique or --disable-unique was given.
2413 if test "${enable_unique+set}" = set; then
2414 enableval="$enable_unique"
2417 for ol_val in no yes mod ; do
2418 if test "$enableval" = "$ol_val" ; then
2422 if test "$ol_arg" = "invalid" ; then
2423 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2425 ol_enable_unique="$ol_arg"
2428 ol_enable_unique="no"
2430 # end --enable-unique
2434 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2435 if test "${with_xxslurpdoptions+set}" = set; then
2436 withval="$with_xxslurpdoptions"
2440 # OpenLDAP --enable-slurpd
2441 # Check whether --enable-slurpd or --disable-slurpd was given.
2442 if test "${enable_slurpd+set}" = set; then
2443 enableval="$enable_slurpd"
2446 for ol_val in auto yes no ; do
2447 if test "$enableval" = "$ol_val" ; then
2451 if test "$ol_arg" = "invalid" ; then
2452 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2454 ol_enable_slurpd="$ol_arg"
2457 ol_enable_slurpd="auto"
2459 # end --enable-slurpd
2461 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2462 if test "${with_xxliboptions+set}" = set; then
2463 withval="$with_xxliboptions"
2467 # Check whether --enable-static or --disable-static was given.
2468 if test "${enable_static+set}" = set; then
2469 enableval="$enable_static"
2470 p=${PACKAGE-default}
2472 yes) enable_static=yes ;;
2473 no) enable_static=no ;;
2476 # Look at the argument we got. We use all the common list separators.
2477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2478 for pkg in $enableval; do
2479 if test "X$pkg" = "X$p"; then
2490 # Check whether --enable-shared or --disable-shared was given.
2491 if test "${enable_shared+set}" = set; then
2492 enableval="$enable_shared"
2493 p=${PACKAGE-default}
2495 yes) enable_shared=yes ;;
2496 no) enable_shared=no ;;
2499 # Look at the argument we got. We use all the common list separators.
2500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2501 for pkg in $enableval; do
2502 if test "X$pkg" = "X$p"; then
2515 # Activate any backends that were not explicitly enabled.
2516 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2517 if test $ol_enable_backends != no ; then
2518 for i in $Backends; do
2519 eval "ol_tmp=\$ol_enable_$i"
2520 if test $ol_tmp = no ; then
2521 eval "ol_enable_$i=$ol_enable_backends"
2525 # Activate the overlays
2526 if test $ol_enable_overlays != no ; then
2527 for i in $Overlays; do
2528 eval "ol_tmp=\$ol_enable_$i"
2529 if test $ol_tmp = no ; then
2530 eval "ol_enable_$i=$ol_enable_overlays"
2536 if test $ol_enable_slapd = no ; then
2537 if test $ol_enable_slapi = yes ; then
2538 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2540 if test $ol_enable_backends != no ; then
2541 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2543 for i in $Backends; do
2544 eval "ol_tmp=\$ol_enable_$i"
2545 if test $ol_tmp != no ; then
2546 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2547 eval "ol_enable_$i=no"
2550 if test $ol_enable_modules = yes ; then
2551 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2553 if test $ol_enable_multimaster = yes ; then
2554 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2556 if test $ol_enable_wrappers = yes ; then
2557 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2559 if test $ol_enable_rlookups = yes ; then
2560 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2562 if test $ol_enable_aci = yes ; then
2563 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2565 if test $ol_with_ldbm_api != auto ; then
2566 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2568 if test $ol_with_ldbm_type != auto ; then
2569 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2571 if test $ol_enable_slurpd = yes ; then
2572 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2574 if test $ol_enable_rewrite = yes ; then
2575 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2577 if test $ol_enable_overlays != no ; then
2578 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2580 for i in $Overlays; do
2581 eval "ol_tmp=\$ol_enable_$i"
2582 if test $ol_tmp != no ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2584 eval "ol_enable_$i=no"
2588 # force settings to no
2591 ol_enable_backends=no
2592 ol_enable_overlays=no
2593 ol_enable_modules=no
2594 ol_enable_multimaster=no
2595 ol_enable_rlookups=no
2597 ol_enable_wrappers=no
2600 ol_with_ldbm_type=no
2604 ol_enable_rewrite=no
2606 elif test $ol_enable_ldbm = no ; then
2608 if test $ol_with_ldbm_api != auto ; then
2609 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2612 if test $ol_with_ldbm_type != auto ; then
2613 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2616 if test $ol_enable_modules != yes -a \
2617 $ol_enable_bdb = no -a \
2618 $ol_enable_dnssrv = no -a \
2619 $ol_enable_hdb = no -a \
2620 $ol_enable_ldap = no -a \
2621 $ol_enable_meta = no -a \
2622 $ol_enable_monitor = no -a \
2623 $ol_enable_null = no -a \
2624 $ol_enable_passwd = no -a \
2625 $ol_enable_perl = no -a \
2626 $ol_enable_relay = no -a \
2627 $ol_enable_shell = no -a \
2628 $ol_enable_sql = no ; then
2630 if test $ol_enable_slapd = yes ; then
2631 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2633 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2639 ol_with_ldbm_type=no
2641 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2642 ol_with_ldbm_api=berkeley
2646 if test $ol_with_ldbm_api = gdbm -a \
2647 $ol_with_ldbm_type = btree ; then
2648 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2650 if test $ol_with_ldbm_api = mdbm -a \
2651 $ol_with_ldbm_type = btree ; then
2652 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2654 if test $ol_with_ldbm_api = ndbm -a \
2655 $ol_with_ldbm_type = btree ; then
2656 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2659 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2660 if test $ol_with_ldbm_api = auto ; then
2661 ol_with_ldbm_api=berkeley
2662 elif test $ol_with_ldbm_api != berkeley ; then
2663 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2668 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2669 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2672 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2673 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2676 if test $ol_enable_slurpd = yes ; then
2677 if test $ol_with_threads = no ; then
2678 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2682 if test $ol_enable_lmpasswd = yes ; then
2683 if test $ol_with_tls = no ; then
2684 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2688 if test $ol_enable_kbind = yes ; then
2689 if test $ol_with_kerberos = no ; then
2690 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2691 elif test $ol_with_kerberos = auto ; then
2692 ol_with_kerberos=yes
2695 elif test $ol_enable_kbind = no ; then
2696 if test $ol_with_kerberos = auto ; then
2698 elif test $ol_with_kerberos != no ; then
2699 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2704 if test $ol_enable_spasswd = yes ; then
2705 if test $ol_with_cyrus_sasl = no ; then
2706 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2708 ol_with_cyrus_sasl=yes
2711 echo "$ac_t""done" 1>&6
2753 SLAPD_DYNAMIC_OVERLAYS=
2755 SLAPD_MODULES_LDFLAGS=
2756 SLAPD_MODULES_CPPFLAGS=
2758 SLAPD_STATIC_BACKENDS=
2759 SLAPD_DYNAMIC_BACKENDS=
2782 # Find a good install program. We prefer a C program (faster),
2783 # so one script is as good as another. But avoid the broken or
2784 # incompatible versions:
2785 # SysV /etc/install, /usr/sbin/install
2786 # SunOS /usr/etc/install
2787 # IRIX /sbin/install
2789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2792 # ./install, which can be erroneously created by make from ./install.sh.
2793 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2794 echo "configure:2795: checking for a BSD compatible install" >&5
2795 if test -z "$INSTALL"; then
2796 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2800 for ac_dir in $PATH; do
2801 # Account for people who put trailing slashes in PATH elements.
2803 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2805 # OSF1 and SCO ODT 3.0 have their own names for install.
2806 # Don't use installbsd from OSF since it installs stuff as root
2808 for ac_prog in ginstall scoinst install; do
2809 if test -f $ac_dir/$ac_prog; then
2810 if test $ac_prog = install &&
2811 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2812 # AIX install. It has an incompatible calling convention.
2814 elif test $ac_prog = install &&
2815 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2816 # program-specific install script used by HP pwplus--don't use.
2819 ac_cv_path_install="$ac_dir/$ac_prog -c"
2830 if test "${ac_cv_path_install+set}" = set; then
2831 INSTALL="$ac_cv_path_install"
2833 # As a last resort, use the slow shell script. We don't cache a
2834 # path for INSTALL within a source directory, because that will
2835 # break other packages using the cache if that directory is
2836 # removed, or if the path is relative.
2837 INSTALL="$ac_install_sh"
2840 echo "$ac_t""$INSTALL" 1>&6
2842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2843 # It thinks the first close brace ends the variable substitution.
2844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2851 cat >> confdefs.h <<\EOF
2852 #define HAVE_MKVERSION 1
2860 *-*-aix*) if test -z "$CC" ; then
2861 case "$ol_with_threads" in
2862 auto | yes | posix) ol_aix_threads=yes ;;
2868 if test $ol_aix_threads = yes ; then
2869 if test -z "${CC}" ; then
2870 for ac_prog in cc_r xlc_r cc
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873 set dummy $ac_prog; ac_word=$2
2874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2875 echo "configure:2876: checking for $ac_word" >&5
2876 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2884 for ac_dir in $ac_dummy; do
2885 test -z "$ac_dir" && ac_dir=.
2886 if test -f $ac_dir/$ac_word; then
2887 ac_cv_prog_CC="$ac_prog"
2895 if test -n "$CC"; then
2896 echo "$ac_t""$CC" 1>&6
2898 echo "$ac_t""no" 1>&6
2901 test -n "$CC" && break
2905 if test "$CC" = cc ; then
2906 if test $ol_with_threads != auto ; then
2907 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2909 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2915 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2916 ol_with_threads=posix
2917 ol_cv_pthread_create=yes
2921 if test -z "${CC}"; then
2922 for ac_prog in cc gcc
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_word" >&5
2928 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2936 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f $ac_dir/$ac_word; then
2939 ac_cv_prog_CC="$ac_prog"
2947 if test -n "$CC"; then
2948 echo "$ac_t""$CC" 1>&6
2950 echo "$ac_t""no" 1>&6
2953 test -n "$CC" && break
2955 test -n "$CC" || CC="missing"
2958 if test "${CC}" = "missing" ; then
2959 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2963 if test -z "${AR}"; then
2964 for ac_prog in ar gar
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2969 echo "configure:2970: checking for $ac_word" >&5
2970 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test -n "$AR"; then
2974 ac_cv_prog_AR="$AR" # Let the user override the test.
2976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2978 for ac_dir in $ac_dummy; do
2979 test -z "$ac_dir" && ac_dir=.
2980 if test -f $ac_dir/$ac_word; then
2981 ac_cv_prog_AR="$ac_prog"
2989 if test -n "$AR"; then
2990 echo "$ac_t""$AR" 1>&6
2992 echo "$ac_t""no" 1>&6
2995 test -n "$AR" && break
2997 test -n "$AR" || AR="missing"
3000 if test "${AR}" = "missing" ; then
3001 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3007 # Find the correct PATH separator. Usually this is `:', but
3008 # DJGPP uses `;' like DOS.
3009 if test "X${PATH_SEPARATOR+set}" != Xset; then
3010 UNAME=${UNAME-`uname 2>/dev/null`}
3012 *-DOS) lt_cv_sys_path_separator=';' ;;
3013 *) lt_cv_sys_path_separator=':' ;;
3015 PATH_SEPARATOR=$lt_cv_sys_path_separator
3018 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3019 echo "configure:3020: checking for Cygwin environment" >&5
3020 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3030 #define __CYGWIN__ __CYGWIN32__
3035 if { (eval echo configure:3036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3047 echo "$ac_t""$ac_cv_cygwin" 1>&6
3049 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3050 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3051 echo "configure:3052: checking for mingw32 environment" >&5
3052 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3063 if { (eval echo configure:3064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3067 echo "configure: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3075 echo "$ac_t""$ac_cv_mingw32" 1>&6
3077 test "$ac_cv_mingw32" = yes && MINGW32=yes
3078 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3079 echo "configure:3080: checking for EMX OS/2 environment" >&5
3080 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3091 if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3103 echo "$ac_t""$ac_cv_emxos2" 1>&6
3105 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3106 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3107 echo "configure:3108: checking how to run the C preprocessor" >&5
3108 # On Suns, sometimes $CPP names a directory.
3109 if test -n "$CPP" && test -d "$CPP"; then
3112 if test -z "$CPP"; then
3113 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 # This must be in double quotes, not single quotes, because CPP may get
3117 # substituted into the Makefile and "${CC-cc}" will confuse make.
3119 # On the NeXT, cc -E runs the code through the compiler's parser,
3120 # not just through cpp.
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3137 CPP="${CC-cc} -E -traditional-cpp"
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3145 { (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3147 if test -z "$ac_err"; then
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3154 CPP="${CC-cc} -nologo -E"
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3162 { (eval echo configure:3163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3164 if test -z "$ac_err"; then
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3178 ac_cv_prog_CPP="$CPP"
3180 CPP="$ac_cv_prog_CPP"
3182 ac_cv_prog_CPP="$CPP"
3184 echo "$ac_t""$CPP" 1>&6
3186 # Check whether --enable-fast-install or --disable-fast-install was given.
3187 if test "${enable_fast_install+set}" = set; then
3188 enableval="$enable_fast_install"
3189 p=${PACKAGE-default}
3191 yes) enable_fast_install=yes ;;
3192 no) enable_fast_install=no ;;
3194 enable_fast_install=no
3195 # Look at the argument we got. We use all the common list separators.
3196 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3197 for pkg in $enableval; do
3198 if test "X$pkg" = "X$p"; then
3199 enable_fast_install=yes
3206 enable_fast_install=yes
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210 set dummy gcc; ac_word=$2
3211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3212 echo "configure:3213: checking for $ac_word" >&5
3213 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3221 for ac_dir in $ac_dummy; do
3222 test -z "$ac_dir" && ac_dir=.
3223 if test -f $ac_dir/$ac_word; then
3232 if test -n "$CC"; then
3233 echo "$ac_t""$CC" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 if test -z "$CC"; then
3239 # Extract the first word of "cc", so it can be a program name with args.
3240 set dummy cc; ac_word=$2
3241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_word" >&5
3243 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3252 for ac_dir in $ac_dummy; do
3253 test -z "$ac_dir" && ac_dir=.
3254 if test -f $ac_dir/$ac_word; then
3255 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3256 ac_prog_rejected=yes
3264 if test $ac_prog_rejected = yes; then
3265 # We found a bogon in the path, so make sure we never use it.
3266 set dummy $ac_cv_prog_CC
3268 if test $# -gt 0; then
3269 # We chose a different compiler from the bogus one.
3270 # However, it has the same basename, so the bogon will be chosen
3271 # first if we set CC to just the basename; use the full file name.
3273 set dummy "$ac_dir/$ac_word" "$@"
3281 if test -n "$CC"; then
3282 echo "$ac_t""$CC" 1>&6
3284 echo "$ac_t""no" 1>&6
3287 if test -z "$CC"; then
3288 case "`uname -s`" in
3289 *win32* | *WIN32* | *CYGWIN*)
3290 # Extract the first word of "cl", so it can be a program name with args.
3291 set dummy cl; ac_word=$2
3292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3293 echo "configure:3294: checking for $ac_word" >&5
3294 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3302 for ac_dir in $ac_dummy; do
3303 test -z "$ac_dir" && ac_dir=.
3304 if test -f $ac_dir/$ac_word; then
3313 if test -n "$CC"; then
3314 echo "$ac_t""$CC" 1>&6
3316 echo "$ac_t""no" 1>&6
3321 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3324 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3325 echo "configure:3326: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3328 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3331 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3332 cross_compiling=$ac_cv_prog_cc_cross
3334 cat > conftest.$ac_ext << EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3341 if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 ac_cv_prog_cc_works=yes
3343 # If we can't run a trivial program, we are probably using a cross compiler.
3344 if (./conftest; exit) 2>/dev/null; then
3345 ac_cv_prog_cc_cross=no
3347 ac_cv_prog_cc_cross=yes
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 ac_cv_prog_cc_works=no
3356 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3359 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3360 cross_compiling=$ac_cv_prog_cc_cross
3362 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3363 if test $ac_cv_prog_cc_works = no; then
3364 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3366 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3367 echo "configure:3368: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3368 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3369 cross_compiling=$ac_cv_prog_cc_cross
3371 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3372 echo "configure:3373: checking whether we are using GNU C" >&5
3373 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.c <<EOF
3381 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3388 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3390 if test $ac_cv_prog_gcc = yes; then
3396 ac_test_CFLAGS="${CFLAGS+set}"
3397 ac_save_CFLAGS="$CFLAGS"
3399 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3400 echo "configure:3401: checking whether ${CC-cc} accepts -g" >&5
3401 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 echo 'void f(){}' > conftest.c
3405 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3414 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3415 if test "$ac_test_CFLAGS" = set; then
3416 CFLAGS="$ac_save_CFLAGS"
3417 elif test $ac_cv_prog_cc_g = yes; then
3418 if test "$GCC" = yes; then
3424 if test "$GCC" = yes; then
3431 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3432 if test "${with_gnu_ld+set}" = set; then
3433 withval="$with_gnu_ld"
3434 test "$withval" = no || with_gnu_ld=yes
3440 if test "$GCC" = yes; then
3441 # Check if gcc -print-prog-name=ld gives a path.
3442 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3443 echo "configure:3444: checking for ld used by GCC" >&5
3446 # gcc leaves a trailing carriage return which upsets mingw
3447 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3449 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3452 # Accept absolute paths.
3453 [\\/]* | [A-Za-z]:[\\/]*)
3454 re_direlt='/[^/][^/]*/\.\./'
3455 # Canonicalize the path of ld
3456 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3457 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3458 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3460 test -z "$LD" && LD="$ac_prog"
3463 # If it fails, then pretend we aren't using GCC.
3467 # If it is relative, then search for the first ld in PATH.
3471 elif test "$with_gnu_ld" = yes; then
3472 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3473 echo "configure:3474: checking for GNU ld" >&5
3475 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3476 echo "configure:3477: checking for non-GNU ld" >&5
3478 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 if test -z "$LD"; then
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3483 for ac_dir in $PATH; do
3484 test -z "$ac_dir" && ac_dir=.
3485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3486 lt_cv_path_LD="$ac_dir/$ac_prog"
3487 # Check to see if the program is GNU ld. I'd rather use --version,
3488 # but apparently some GNU ld's only accept -v.
3489 # Break only if it was the GNU/non-GNU ld that we prefer.
3490 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3491 test "$with_gnu_ld" != no && break
3493 test "$with_gnu_ld" != yes && break
3499 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3504 if test -n "$LD"; then
3505 echo "$ac_t""$LD" 1>&6
3507 echo "$ac_t""no" 1>&6
3509 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3510 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3511 echo "configure:3512: checking if the linker ($LD) is GNU ld" >&5
3512 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3516 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3517 lt_cv_prog_gnu_ld=yes
3519 lt_cv_prog_gnu_ld=no
3523 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3524 with_gnu_ld=$lt_cv_prog_gnu_ld
3527 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3528 echo "configure:3529: checking for $LD option to reload object files" >&5
3529 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 lt_cv_ld_reload_flag='-r'
3535 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3536 reload_flag=$lt_cv_ld_reload_flag
3537 test -n "$reload_flag" && reload_flag=" $reload_flag"
3539 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3540 echo "configure:3541: checking for BSD-compatible nm" >&5
3541 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 if test -n "$NM"; then
3545 # Let the user override the test.
3548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3549 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3550 test -z "$ac_dir" && ac_dir=.
3551 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3552 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3553 # Check to see if the nm accepts a BSD-compat flag.
3554 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3555 # nm: unknown option "B" ignored
3556 # Tru64's nm complains that /dev/null is an invalid object file
3557 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3558 lt_cv_path_NM="$tmp_nm -B"
3560 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3561 lt_cv_path_NM="$tmp_nm -p"
3564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3565 continue # so that we can try to find one that supports BSD flags
3570 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3575 echo "$ac_t""$NM" 1>&6
3577 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3578 echo "configure:3579: checking for a sed that does not truncate output" >&5
3579 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 # Loop through the user's path and test for sed and gsed.
3583 # Then use that list of sed's as ones to test for truncation.
3584 as_executable_p="test -f"
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_prog in sed gsed; do
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3593 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3599 # Create a temporary directory, and hook for its removal unless debugging.
3602 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3603 trap '{ (exit 1); exit 1; }' 1 2 13 15
3606 # Create a (secure) tmp directory for tmp files.
3609 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3610 test -n "$tmp" && test -d "$tmp"
3613 tmp=$TMPDIR/sed$$-$RANDOM
3614 (umask 077 && mkdir $tmp)
3617 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3618 { (exit 1); exit 1; }
3622 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3623 # along with /bin/sed that truncates output.
3624 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3625 test ! -f ${_sed} && break
3626 cat /dev/null > "$tmp/sed.in"
3628 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3629 # Check for GNU sed and select it if it is found.
3630 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3631 lt_cv_path_SED=${_sed}
3635 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3636 mv "$tmp/sed.tmp" "$tmp/sed.in"
3637 cp "$tmp/sed.in" "$tmp/sed.nl"
3638 echo >>"$tmp/sed.nl"
3639 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3640 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3641 # 40000 chars as input seems more than enough
3642 test $_count -gt 10 && break
3643 _count=`expr $_count + 1`
3644 if test $_count -gt $_max; then
3646 lt_cv_path_SED=$_sed
3654 if test "X$SED" != "X"; then
3659 echo "$ac_t""$SED" 1>&6
3661 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3662 echo "configure:3663: checking whether ln -s works" >&5
3663 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3667 if ln -s X conftestdata 2>/dev/null
3670 ac_cv_prog_LN_S="ln -s"
3675 LN_S="$ac_cv_prog_LN_S"
3676 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3677 echo "$ac_t""yes" 1>&6
3679 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3683 echo "configure:3684: checking how to recognise dependent libraries" >&5
3684 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 lt_cv_file_magic_cmd='$MAGIC_CMD'
3688 lt_cv_file_magic_test_file=
3689 lt_cv_deplibs_check_method='unknown'
3690 # Need to set the preceding variable on all platforms that support
3691 # interlibrary dependencies.
3692 # 'none' -- dependencies not supported.
3693 # `unknown' -- same as none, but documents that we really don't know.
3694 # 'pass_all' -- all dependencies passed with no checks.
3695 # 'test_compile' -- check by making test program.
3696 # 'file_magic [[regex]]' -- check by looking for files in library path
3697 # which responds to the $file_magic_cmd with a given egrep regex.
3698 # If you have `file' or equivalent on your system and you're not sure
3699 # whether `pass_all' will *always* work, you probably want this one.
3703 lt_cv_deplibs_check_method=pass_all
3707 lt_cv_deplibs_check_method=pass_all
3711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3712 lt_cv_file_magic_cmd='/usr/bin/file -L'
3713 lt_cv_file_magic_test_file=/shlib/libc.so
3716 cygwin* | mingw* | pw32*)
3717 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3718 lt_cv_file_magic_cmd='$OBJDUMP -f'
3721 darwin* | rhapsody*)
3722 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3723 lt_cv_file_magic_cmd='/usr/bin/file -L'
3725 rhapsody* | darwin1.[012])
3726 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3729 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3735 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3738 # Not sure whether the presence of OpenBSD here was a mistake.
3739 # Let's accept both of them until this is cleared up.
3740 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3741 lt_cv_file_magic_cmd=/usr/bin/file
3742 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3746 lt_cv_deplibs_check_method=pass_all
3751 lt_cv_deplibs_check_method=pass_all
3755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3756 lt_cv_file_magic_cmd=/usr/bin/file
3757 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3760 irix5* | irix6* | nonstopux*)
3762 irix5* | nonstopux*)
3763 # this will be overridden with pass_all, but let us keep it just in case
3764 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3768 *-32|*"-32 ") libmagic=32-bit;;
3769 *-n32|*"-n32 ") libmagic=N32;;
3770 *-64|*"-64 ") libmagic=64-bit;;
3771 *) libmagic=never-match;;
3773 # this will be overridden with pass_all, but let us keep it just in case
3774 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3777 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3778 lt_cv_deplibs_check_method=pass_all
3781 # This must be Linux ELF.
3784 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3785 lt_cv_deplibs_check_method=pass_all ;;
3787 # glibc up to 2.1.1 does not perform some relocations on ARM
3788 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3790 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3794 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3797 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3802 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3803 lt_cv_file_magic_cmd=/usr/bin/file
3804 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3808 lt_cv_file_magic_cmd=/usr/bin/file
3809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3813 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3818 lt_cv_deplibs_check_method=pass_all
3821 osf3* | osf4* | osf5*)
3822 # this will be overridden with pass_all, but let us keep it just in case
3823 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3824 lt_cv_file_magic_test_file=/shlib/libc.so
3825 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3834 lt_cv_file_magic_test_file=/lib/libc.so
3837 sysv5uw[78]* | sysv4*uw2*)
3838 lt_cv_deplibs_check_method=pass_all
3841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3842 case $host_vendor in
3844 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]'
3845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3848 lt_cv_deplibs_check_method=pass_all
3851 lt_cv_file_magic_cmd='/bin/file'
3852 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3855 lt_cv_file_magic_cmd='/bin/file'
3856 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3857 lt_cv_file_magic_test_file=/lib/libc.so
3860 lt_cv_deplibs_check_method=pass_all
3868 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3869 file_magic_cmd=$lt_cv_file_magic_cmd
3870 deplibs_check_method=$lt_cv_deplibs_check_method
3872 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3873 echo "configure:3874: checking for object suffix" >&5
3874 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 echo 'int i = 1;' > conftest.$ac_ext
3879 if { (eval echo configure:3880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 for ac_file in conftest.*; do
3883 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3887 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3892 echo "$ac_t""$ac_cv_objext" 1>&6
3893 OBJEXT=$ac_cv_objext
3894 ac_objext=$ac_cv_objext
3899 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3900 echo "configure:3901: checking for executable suffix" >&5
3901 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3908 echo 'int main () { return 0; }' > conftest.$ac_ext
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3911 for file in conftest.*; do
3913 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3914 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3918 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3921 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3926 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3927 echo "$ac_t""${ac_cv_exeext}" 1>&6
3930 if test $host != $build; then
3931 ac_tool_prefix=${host_alias}-
3939 # Check for command to grab the raw symbol name followed by C symbol from nm.
3940 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3941 echo "configure:3942: checking command to parse $NM output" >&5
3942 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3946 # These are sane defaults that work on at least a few old systems.
3947 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3949 # Character class describing NM global symbol codes.
3950 symcode='[BCDEGRST]'
3952 # Regexp to match symbols that can be accessed directly from C.
3953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3955 # Transform the above into a raw symbol and a C symbol.
3956 symxfrm='\1 \2\3 \3'
3958 # Transform an extracted symbol line into a proper C declaration
3959 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3961 # Transform an extracted symbol line into symbol name and symbol address
3962 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'"
3964 # Define system-specific variables.
3969 cygwin* | mingw* | pw32*)
3970 symcode='[ABCDGISTW]'
3972 hpux*) # Its linker distinguishes data from code symbols
3973 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3974 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'"
3977 symcode='[BCDEGRST]'
3980 symcode='[BCDEGQRST]'
3990 # Handle CRLF in mingw tool chain
3994 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3998 # If we're using GNU nm, then use its standard symbol codes.
3999 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4000 symcode='[ABCDGISTW]'
4003 # Try without a prefix undercore, then with it.
4004 for ac_symprfx in "" "_"; do
4006 # Write the raw and C identifiers.
4007 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4009 # Check to see that the pipe works correctly.
4012 cat > conftest.$ac_ext <<EOF
4017 void nm_test_func(){}
4021 int main(){nm_test_var='a';nm_test_func();return(0);}
4024 if { (eval echo configure:4025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4025 # Now try to grab the symbols.
4027 if { (eval echo configure:4028: \"$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
4028 # Try sorting and uniquifying the output.
4029 if sort "$nlist" | uniq > "$nlist"T; then
4030 mv -f "$nlist"T "$nlist"
4035 # Make sure that we snagged all the symbols we need.
4036 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4037 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4038 cat <<EOF > conftest.$ac_ext
4044 # Now generate the symbol file.
4045 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4047 cat <<EOF >> conftest.$ac_ext
4048 #if defined (__STDC__) && __STDC__
4049 # define lt_ptr void *
4051 # define lt_ptr char *
4055 /* The mapping between symbol names and symbols. */
4060 lt_preloaded_symbols[] =
4063 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4064 cat <<\EOF >> conftest.$ac_ext
4072 # Now try linking the two files.
4073 mv conftest.$ac_objext conftstm.$ac_objext
4075 save_CFLAGS="$CFLAGS"
4076 LIBS="conftstm.$ac_objext"
4077 CFLAGS="$CFLAGS$no_builtin_flag"
4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4082 CFLAGS="$save_CFLAGS"
4084 echo "cannot find nm_test_func in $nlist" >&5
4087 echo "cannot find nm_test_var in $nlist" >&5
4090 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4093 echo "$progname: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 rm -f conftest* conftst*
4098 # Do not use the global_symbol_pipe unless it works.
4099 if test "$pipe_works" = yes; then
4102 lt_cv_sys_global_symbol_pipe=
4108 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4109 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4110 global_symbol_to_cdecl=
4111 global_symbol_to_c_name_address=
4113 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4114 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4116 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4118 echo "$ac_t""failed" 1>&6
4120 echo "$ac_t""ok" 1>&6
4123 for ac_hdr in dlfcn.h
4125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4127 echo "configure:4128: checking for $ac_hdr" >&5
4128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4137 { (eval echo configure:4138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4139 if test -z "$ac_err"; then
4141 eval "ac_cv_header_$ac_safe=yes"
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 eval "ac_cv_header_$ac_safe=no"
4151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4152 echo "$ac_t""yes" 1>&6
4153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4154 cat >> confdefs.h <<EOF
4155 #define $ac_tr_hdr 1
4159 echo "$ac_t""no" 1>&6
4168 # Only perform the check for file, if the check method requires it
4169 case $deplibs_check_method in
4171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4172 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4173 echo "configure:4174: checking for ${ac_tool_prefix}file" >&5
4174 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4185 ac_save_MAGIC_CMD="$MAGIC_CMD"
4186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4187 ac_dummy="/usr/bin:$PATH"
4188 for ac_dir in $ac_dummy; do
4189 test -z "$ac_dir" && ac_dir=.
4190 if test -f $ac_dir/${ac_tool_prefix}file; then
4191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4192 if test -n "$file_magic_test_file"; then
4193 case $deplibs_check_method in
4195 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4198 egrep "$file_magic_regex" > /dev/null; then
4203 *** Warning: the command libtool uses to detect shared libraries,
4204 *** $file_magic_cmd, produces output that libtool cannot recognize.
4205 *** The result is that libtool may fail to recognize shared libraries
4206 *** as such. This will affect the creation of libtool libraries that
4207 *** depend on shared libraries, but programs linked with such libtool
4208 *** libraries will work regardless of this problem. Nevertheless, you
4209 *** may want to report the problem to your system manager and/or to
4210 *** bug-libtool@gnu.org
4220 MAGIC_CMD="$ac_save_MAGIC_CMD"
4225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4226 if test -n "$MAGIC_CMD"; then
4227 echo "$ac_t""$MAGIC_CMD" 1>&6
4229 echo "$ac_t""no" 1>&6
4232 if test -z "$lt_cv_path_MAGIC_CMD"; then
4233 if test -n "$ac_tool_prefix"; then
4234 echo $ac_n "checking for file""... $ac_c" 1>&6
4235 echo "configure:4236: checking for file" >&5
4236 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4247 ac_save_MAGIC_CMD="$MAGIC_CMD"
4248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 ac_dummy="/usr/bin:$PATH"
4250 for ac_dir in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f $ac_dir/file; then
4253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4254 if test -n "$file_magic_test_file"; then
4255 case $deplibs_check_method in
4257 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4260 egrep "$file_magic_regex" > /dev/null; then
4265 *** Warning: the command libtool uses to detect shared libraries,
4266 *** $file_magic_cmd, produces output that libtool cannot recognize.
4267 *** The result is that libtool may fail to recognize shared libraries
4268 *** as such. This will affect the creation of libtool libraries that
4269 *** depend on shared libraries, but programs linked with such libtool
4270 *** libraries will work regardless of this problem. Nevertheless, you
4271 *** may want to report the problem to your system manager and/or to
4272 *** bug-libtool@gnu.org
4282 MAGIC_CMD="$ac_save_MAGIC_CMD"
4287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4288 if test -n "$MAGIC_CMD"; then
4289 echo "$ac_t""$MAGIC_CMD" 1>&6
4291 echo "$ac_t""no" 1>&6
4303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4306 echo "configure:4307: checking for $ac_word" >&5
4307 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 if test -n "$RANLIB"; then
4311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4315 for ac_dir in $ac_dummy; do
4316 test -z "$ac_dir" && ac_dir=.
4317 if test -f $ac_dir/$ac_word; then
4318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4325 RANLIB="$ac_cv_prog_RANLIB"
4326 if test -n "$RANLIB"; then
4327 echo "$ac_t""$RANLIB" 1>&6
4329 echo "$ac_t""no" 1>&6
4333 if test -z "$ac_cv_prog_RANLIB"; then
4334 if test -n "$ac_tool_prefix"; then
4335 # Extract the first word of "ranlib", so it can be a program name with args.
4336 set dummy ranlib; ac_word=$2
4337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4338 echo "configure:4339: checking for $ac_word" >&5
4339 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4340 echo $ac_n "(cached) $ac_c" 1>&6
4342 if test -n "$RANLIB"; then
4343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4347 for ac_dir in $ac_dummy; do
4348 test -z "$ac_dir" && ac_dir=.
4349 if test -f $ac_dir/$ac_word; then
4350 ac_cv_prog_RANLIB="ranlib"
4355 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4358 RANLIB="$ac_cv_prog_RANLIB"
4359 if test -n "$RANLIB"; then
4360 echo "$ac_t""$RANLIB" 1>&6
4362 echo "$ac_t""no" 1>&6
4370 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4371 set dummy ${ac_tool_prefix}strip; ac_word=$2
4372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4373 echo "configure:4374: checking for $ac_word" >&5
4374 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 if test -n "$STRIP"; then
4378 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4382 for ac_dir in $ac_dummy; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4392 STRIP="$ac_cv_prog_STRIP"
4393 if test -n "$STRIP"; then
4394 echo "$ac_t""$STRIP" 1>&6
4396 echo "$ac_t""no" 1>&6
4400 if test -z "$ac_cv_prog_STRIP"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "strip", so it can be a program name with args.
4403 set dummy strip; ac_word=$2
4404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4405 echo "configure:4406: checking for $ac_word" >&5
4406 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4407 echo $ac_n "(cached) $ac_c" 1>&6
4409 if test -n "$STRIP"; then
4410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4414 for ac_dir in $ac_dummy; do
4415 test -z "$ac_dir" && ac_dir=.
4416 if test -f $ac_dir/$ac_word; then
4417 ac_cv_prog_STRIP="strip"
4422 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4425 STRIP="$ac_cv_prog_STRIP"
4426 if test -n "$STRIP"; then
4427 echo "$ac_t""$STRIP" 1>&6
4429 echo "$ac_t""no" 1>&6
4439 enable_win32_dll=yes
4441 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4442 if test "${enable_libtool_lock+set}" = set; then
4443 enableval="$enable_libtool_lock"
4447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4449 # Some flags need to be propagated to the compiler or linker for good
4453 # Find out which ABI we are using.
4454 echo '#line 4455 "configure"' > conftest.$ac_ext
4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456 case `/usr/bin/file conftest.$ac_objext` in
4472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473 SAVE_CFLAGS="$CFLAGS"
4474 CFLAGS="$CFLAGS -belf"
4475 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4476 echo "configure:4477: checking whether the C compiler needs -belf" >&5
4477 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486 cross_compiling=$ac_cv_prog_cc_cross
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4496 if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4498 lt_cv_cc_needs_belf=yes
4500 echo "configure: failed program was:" >&5
4501 cat conftest.$ac_ext >&5
4503 lt_cv_cc_needs_belf=no
4507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4511 cross_compiling=$ac_cv_prog_cc_cross
4515 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4518 CFLAGS="$SAVE_CFLAGS"
4522 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4523 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_word" >&5
4527 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test -n "$DLLTOOL"; then
4531 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4535 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 if test -f $ac_dir/$ac_word; then
4538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4545 DLLTOOL="$ac_cv_prog_DLLTOOL"
4546 if test -n "$DLLTOOL"; then
4547 echo "$ac_t""$DLLTOOL" 1>&6
4549 echo "$ac_t""no" 1>&6
4553 if test -z "$ac_cv_prog_DLLTOOL"; then
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "dlltool", so it can be a program name with args.
4556 set dummy dlltool; ac_word=$2
4557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4558 echo "configure:4559: checking for $ac_word" >&5
4559 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 if test -n "$DLLTOOL"; then
4563 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4567 for ac_dir in $ac_dummy; do
4568 test -z "$ac_dir" && ac_dir=.
4569 if test -f $ac_dir/$ac_word; then
4570 ac_cv_prog_DLLTOOL="dlltool"
4575 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4578 DLLTOOL="$ac_cv_prog_DLLTOOL"
4579 if test -n "$DLLTOOL"; then
4580 echo "$ac_t""$DLLTOOL" 1>&6
4582 echo "$ac_t""no" 1>&6
4590 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}as; ac_word=$2
4592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_word" >&5
4594 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 if test -n "$AS"; then
4598 ac_cv_prog_AS="$AS" # Let the user override the test.
4600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4602 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 if test -f $ac_dir/$ac_word; then
4605 ac_cv_prog_AS="${ac_tool_prefix}as"
4613 if test -n "$AS"; then
4614 echo "$ac_t""$AS" 1>&6
4616 echo "$ac_t""no" 1>&6
4620 if test -z "$ac_cv_prog_AS"; then
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "as", so it can be a program name with args.
4623 set dummy as; ac_word=$2
4624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_word" >&5
4626 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 if test -n "$AS"; then
4630 ac_cv_prog_AS="$AS" # Let the user override the test.
4632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4634 for ac_dir in $ac_dummy; do
4635 test -z "$ac_dir" && ac_dir=.
4636 if test -f $ac_dir/$ac_word; then
4642 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4646 if test -n "$AS"; then
4647 echo "$ac_t""$AS" 1>&6
4649 echo "$ac_t""no" 1>&6
4657 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_word" >&5
4661 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 if test -n "$OBJDUMP"; then
4665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4669 for ac_dir in $ac_dummy; do
4670 test -z "$ac_dir" && ac_dir=.
4671 if test -f $ac_dir/$ac_word; then
4672 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4679 OBJDUMP="$ac_cv_prog_OBJDUMP"
4680 if test -n "$OBJDUMP"; then
4681 echo "$ac_t""$OBJDUMP" 1>&6
4683 echo "$ac_t""no" 1>&6
4687 if test -z "$ac_cv_prog_OBJDUMP"; then
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "objdump", so it can be a program name with args.
4690 set dummy objdump; ac_word=$2
4691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4692 echo "configure:4693: checking for $ac_word" >&5
4693 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 if test -n "$OBJDUMP"; then
4697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4701 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if test -f $ac_dir/$ac_word; then
4704 ac_cv_prog_OBJDUMP="objdump"
4709 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4712 OBJDUMP="$ac_cv_prog_OBJDUMP"
4713 if test -n "$OBJDUMP"; then
4714 echo "$ac_t""$OBJDUMP" 1>&6
4716 echo "$ac_t""no" 1>&6
4725 # recent cygwin and mingw systems supply a stub DllMain which the user
4726 # can override, but on older systems we have to supply one
4727 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4728 echo "configure:4729: checking if libtool should supply DllMain function" >&5
4729 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4737 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 lt_cv_need_dllmain=no
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 lt_cv_need_dllmain=yes
4753 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4756 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4757 # old mingw systems require "-dll" to link a DLL, while more recent ones
4759 SAVE_CFLAGS="$CFLAGS"
4760 CFLAGS="$CFLAGS -mdll"
4761 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4762 echo "configure:4763: checking how to link DLLs" >&5
4763 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4774 if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4776 lt_cv_cc_dll_switch=-mdll
4778 echo "configure: failed program was:" >&5
4779 cat conftest.$ac_ext >&5
4781 lt_cv_cc_dll_switch=-dll
4786 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4787 CFLAGS="$SAVE_CFLAGS" ;;
4788 *-*-cygwin* | *-*-pw32*)
4789 # cygwin systems need to pass --dll to the linker, and not link
4790 # crt.o which will require a WinMain@16 definition.
4791 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4797 # Sed substitution that helps us do robust quoting. It backslashifies
4798 # metacharacters that are still active within double-quoted strings.
4799 Xsed='sed -e s/^X//'
4800 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4813 default_ofile=libtool
4814 can_build_shared=yes
4816 # All known linkers require a `.a' archive for static linking (except M$VC,
4817 # which needs '.lib').
4819 ltmain="$ac_aux_dir/ltmain.sh"
4820 ofile="$default_ofile"
4821 with_gnu_ld="$lt_cv_prog_gnu_ld"
4822 need_locks="$enable_libtool_lock"
4825 old_CFLAGS="$CFLAGS"
4827 # Set sane defaults for various variables
4828 test -z "$AR" && AR=ar
4829 test -z "$AR_FLAGS" && AR_FLAGS=cru
4830 test -z "$AS" && AS=as
4831 test -z "$CC" && CC=cc
4832 test -z "$DLLTOOL" && DLLTOOL=dlltool
4833 test -z "$LD" && LD=ld
4834 test -z "$LN_S" && LN_S="ln -s"
4835 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4836 test -z "$NM" && NM=nm
4837 test -z "$OBJDUMP" && OBJDUMP=objdump
4838 test -z "$RANLIB" && RANLIB=:
4839 test -z "$STRIP" && STRIP=:
4840 test -z "$ac_objext" && ac_objext=o
4842 if test x"$host" != x"$build"; then
4843 ac_tool_prefix=${host_alias}-
4848 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4851 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4856 # AIX sometimes has problems with the GCC collect2 program. For some
4857 # reason, if we set the COLLECT_NAMES environment variable, the problems
4858 # vanish in a puff of smoke.
4859 if test "X${COLLECT_NAMES+set}" != Xset; then
4861 export COLLECT_NAMES
4866 # Determine commands to create old-style static archives.
4867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4868 old_postinstall_cmds='chmod 644 $oldlib'
4869 old_postuninstall_cmds=
4871 if test -n "$RANLIB"; then
4874 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4877 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4880 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4883 # Allow CC to be a program name with arguments.
4887 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4888 echo "configure:4889: checking for objdir" >&5
4889 rm -f .libs 2>/dev/null
4890 mkdir .libs 2>/dev/null
4891 if test -d .libs; then
4894 # MS-DOS does not allow filenames that begin with a dot.
4897 rmdir .libs 2>/dev/null
4898 echo "$ac_t""$objdir" 1>&6
4901 # Check whether --with-pic or --without-pic was given.
4902 if test "${with_pic+set}" = set; then
4909 test -z "$pic_mode" && pic_mode=default
4911 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4912 # in isolation, and that seeing it set (from the cache) indicates that
4913 # the associated values are set (in the cache) correctly too.
4914 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4915 echo "configure:4916: checking for $compiler option to produce PIC" >&5
4916 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4920 lt_cv_prog_cc_shlib=
4922 lt_cv_prog_cc_static=
4923 lt_cv_prog_cc_no_builtin=
4924 lt_cv_prog_cc_can_build_shared=$can_build_shared
4926 if test "$GCC" = yes; then
4927 lt_cv_prog_cc_wl='-Wl,'
4928 lt_cv_prog_cc_static='-static'
4932 # Below there is a dirty hack to force normal static linking with -ldl
4933 # The problem is because libdl dynamically linked with both libc and
4934 # libC (AIX C++ library), which obviously doesn't included in libraries
4935 # list by gcc. This cause undefined symbols with -static flags.
4936 # This hack allows C programs to be linked with "-static -ldl", but
4937 # not sure about C++ programs.
4938 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4941 # FIXME: we need at least 68020 code to build shared libraries, but
4942 # adding the `-m68020' flag to GCC prevents building anything better,
4944 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4946 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4947 # PIC is the default for these OSes.
4949 darwin* | rhapsody*)
4950 # PIC is the default on this platform
4951 # Common symbols not allowed in MH_DYLIB files
4952 lt_cv_prog_cc_pic='-fno-common'
4954 cygwin* | mingw* | pw32* | os2*)
4955 # This hack is so that the source file can tell whether it is being
4956 # built for inclusion in a dll (and should export symbols for example).
4957 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4960 if test -d /usr/nec; then
4961 lt_cv_prog_cc_pic=-Kconform_pic
4965 lt_cv_prog_cc_pic='-fPIC'
4969 # PORTME Check for PIC flags for the system compiler.
4971 aix3* | aix4* | aix5*)
4972 lt_cv_prog_cc_wl='-Wl,'
4973 # All AIX code is PIC.
4974 if test "$host_cpu" = ia64; then
4975 # AIX 5 now supports IA64 processor
4976 lt_cv_prog_cc_static='-Bstatic'
4978 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4982 hpux9* | hpux10* | hpux11*)
4983 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4984 lt_cv_prog_cc_wl='-Wl,'
4985 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4986 lt_cv_prog_cc_pic='+Z'
4989 irix5* | irix6* | nonstopux*)
4990 lt_cv_prog_cc_wl='-Wl,'
4991 lt_cv_prog_cc_static='-non_shared'
4992 # PIC (with -KPIC) is the default.
4995 cygwin* | mingw* | pw32* | os2*)
4996 # This hack is so that the source file can tell whether it is being
4997 # built for inclusion in a dll (and should export symbols for example).
4998 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5002 lt_cv_prog_cc_pic='-KPIC'
5003 lt_cv_prog_cc_static='-Bstatic'
5007 # XPLINK code is PIC by default
5010 osf3* | osf4* | osf5*)
5011 # All OSF/1 code is PIC.
5012 lt_cv_prog_cc_wl='-Wl,'
5013 lt_cv_prog_cc_static='-non_shared'
5017 lt_cv_prog_cc_pic='-Kpic'
5018 lt_cv_prog_cc_static='-dn'
5019 lt_cv_prog_cc_shlib='-belf'
5023 lt_cv_prog_cc_pic='-KPIC'
5024 lt_cv_prog_cc_static='-Bstatic'
5025 lt_cv_prog_cc_wl='-Wl,'
5029 lt_cv_prog_cc_pic='-PIC'
5030 lt_cv_prog_cc_static='-Bstatic'
5031 lt_cv_prog_cc_wl='-Qoption ld '
5034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5035 lt_cv_prog_cc_pic='-KPIC'
5036 lt_cv_prog_cc_static='-Bstatic'
5037 lt_cv_prog_cc_wl='-Wl,'
5041 lt_cv_prog_cc_pic='-pic'
5042 lt_cv_prog_cc_static='-Bstatic'
5046 if test -d /usr/nec ;then
5047 lt_cv_prog_cc_pic='-Kconform_pic'
5048 lt_cv_prog_cc_static='-Bstatic'
5053 lt_cv_prog_cc_can_build_shared=no
5060 if test -z "$lt_cv_prog_cc_pic"; then
5061 echo "$ac_t""none" 1>&6
5063 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5065 # Check to make sure the pic_flag actually works.
5066 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5067 echo "configure:5068: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5068 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 save_CFLAGS="$CFLAGS"
5072 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5081 if { (eval echo configure:5082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084 hpux9* | hpux10* | hpux11*)
5085 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5086 # they create non-PIC objects. So, if there were any warnings, we
5087 # assume that PIC is not supported.
5088 if test -s conftest.err; then
5089 lt_cv_prog_cc_pic_works=no
5091 lt_cv_prog_cc_pic_works=yes
5095 lt_cv_prog_cc_pic_works=yes
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 lt_cv_prog_cc_pic_works=no
5107 CFLAGS="$save_CFLAGS"
5112 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5114 lt_cv_prog_cc_can_build_shared=no
5116 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5119 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5122 # Check for any special shared library compilation flags.
5123 if test -n "$lt_cv_prog_cc_shlib"; then
5124 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5125 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5127 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5128 lt_cv_prog_cc_can_build_shared=no
5132 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5133 echo "configure:5134: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5134 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 lt_cv_prog_cc_static_works=no
5138 save_LDFLAGS="$LDFLAGS"
5139 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 lt_cv_prog_cc_static_works=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5156 LDFLAGS="$save_LDFLAGS"
5161 # Belt *and* braces to stop my trousers falling down:
5162 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5163 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5165 pic_flag="$lt_cv_prog_cc_pic"
5166 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5167 wl="$lt_cv_prog_cc_wl"
5168 link_static_flag="$lt_cv_prog_cc_static"
5169 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5170 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5173 # Check to see if options -o and -c are simultaneously supported by compiler
5174 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5175 echo "configure:5176: checking if $compiler supports -c -o file.$ac_objext" >&5
5176 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5180 $rm -r conftest 2>/dev/null
5183 echo "int some_variable = 0;" > conftest.$ac_ext
5185 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5186 # that will create temporary files in the current directory regardless of
5187 # the output directory. Thus, making CWD read-only will cause this test
5188 # to fail, enabling locking or at least warning the user not to do parallel
5191 save_CFLAGS="$CFLAGS"
5192 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5194 if { (eval echo configure:5195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5195 # The compiler can only warn and ignore the option if not recognized
5196 # So say no if there are warnings
5197 if test -s out/conftest.err; then
5198 lt_cv_compiler_c_o=no
5200 lt_cv_compiler_c_o=yes
5203 # Append any errors to the config.log.
5204 cat out/conftest.err 1>&5
5205 lt_cv_compiler_c_o=no
5207 CFLAGS="$save_CFLAGS"
5213 $rm -r conftest 2>/dev/null
5217 compiler_c_o=$lt_cv_compiler_c_o
5218 echo "$ac_t""$compiler_c_o" 1>&6
5220 if test x"$compiler_c_o" = x"yes"; then
5221 # Check to see if we can write to a .lo
5222 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5223 echo "configure:5224: checking if $compiler supports -c -o file.lo" >&5
5224 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5228 lt_cv_compiler_o_lo=no
5229 save_CFLAGS="$CFLAGS"
5230 CFLAGS="$CFLAGS -c -o conftest.lo"
5231 save_objext="$ac_objext"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 int some_variable = 0;
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 # The compiler can only warn and ignore the option if not recognized
5244 # So say no if there are warnings
5245 if test -s conftest.err; then
5246 lt_cv_compiler_o_lo=no
5248 lt_cv_compiler_o_lo=yes
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5256 ac_objext="$save_objext"
5257 CFLAGS="$save_CFLAGS"
5261 compiler_o_lo=$lt_cv_compiler_o_lo
5262 echo "$ac_t""$compiler_o_lo" 1>&6
5267 # Check to see if we can do hard links to lock some files if needed
5268 hard_links="nottested"
5269 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5270 # do not overwrite the value of need_locks provided by the user
5271 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5272 echo "configure:5273: checking if we can lock with hard links" >&5
5275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5277 ln conftest.a conftest.b 2>&5 || hard_links=no
5278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5279 echo "$ac_t""$hard_links" 1>&6
5280 if test "$hard_links" = no; then
5281 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5288 if test "$GCC" = yes; then
5289 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5290 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5291 echo "configure:5292: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5292 echo "int some_variable = 0;" > conftest.$ac_ext
5293 save_CFLAGS="$CFLAGS"
5294 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5295 compiler_rtti_exceptions=no
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5301 int some_variable = 0;
5304 if { (eval echo configure:5305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5306 # The compiler can only warn and ignore the option if not recognized
5307 # So say no if there are warnings
5308 if test -s conftest.err; then
5309 compiler_rtti_exceptions=no
5311 compiler_rtti_exceptions=yes
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5319 CFLAGS="$save_CFLAGS"
5320 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5322 if test "$compiler_rtti_exceptions" = "yes"; then
5323 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5325 no_builtin_flag=' -fno-builtin'
5329 # See if the linker supports building shared libraries.
5330 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5331 echo "configure:5332: checking whether the linker ($LD) supports shared libraries" >&5
5333 allow_undefined_flag=
5335 need_lib_prefix=unknown
5336 need_version=unknown
5337 # when you set need_version to no, make sure it does not cause -set_version
5338 # flags to be left without arguments
5340 archive_expsym_cmds=
5341 old_archive_from_new_cmds=
5342 old_archive_from_expsyms_cmds=
5343 export_dynamic_flag_spec=
5344 whole_archive_flag_spec=
5345 thread_safe_flag_spec=
5346 hardcode_into_libs=no
5347 hardcode_libdir_flag_spec=
5348 hardcode_libdir_separator=
5351 hardcode_shlibpath_var=unsupported
5353 link_all_deplibs=unknown
5354 always_export_symbols=no
5355 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5356 # include_expsyms should be a list of space-separated symbols to be *always*
5357 # included in the symbol list
5359 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5362 # as well as any symbol that contains `d'.
5363 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5365 # platforms (ab)use it in PIC code, but their linkers get confused if
5366 # the symbol is explicitly referenced. Since portable code cannot
5367 # rely on this symbol name, it's probably fine to never include it in
5368 # preloaded symbol tables.
5369 extract_expsyms_cmds=
5372 cygwin* | mingw* | pw32*)
5373 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5374 # When not using gcc, we currently assume that we are using
5375 # Microsoft Visual C++.
5376 if test "$GCC" != yes; then
5386 if test "$with_gnu_ld" = yes; then
5387 # If archive_cmds runs LD, not CC, wlarc should be empty
5390 # See if GNU ld supports shared libraries.
5392 aix3* | aix4* | aix5*)
5393 # On AIX, the GNU linker is very broken
5394 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5398 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5399 *** to be unable to reliably create shared libraries on AIX.
5400 *** Therefore, libtool is disabling shared libraries support. If you
5401 *** really care for shared libraries, you may want to modify your PATH
5402 *** so that a non-GNU linker is found, and then restart.
5408 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)'
5409 hardcode_libdir_flag_spec='-L$libdir'
5410 hardcode_minus_L=yes
5412 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5413 # that the semantics of dynamic libraries on AmigaOS, at least up
5414 # to version 4, is to share data among multiple programs linked
5415 # with the same dynamic library. Since this doesn't match the
5416 # behavior of shared libraries on other platforms, we can use
5422 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5423 allow_undefined_flag=unsupported
5424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5425 # support --undefined. This deserves some investigation. FIXME
5426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5432 cygwin* | mingw* | pw32*)
5433 # hardcode_libdir_flag_spec is actually meaningless, as there is
5434 # no search path for DLLs.
5435 hardcode_libdir_flag_spec='-L$libdir'
5436 allow_undefined_flag=unsupported
5437 always_export_symbols=yes
5439 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5440 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5441 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5442 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5443 else $CC -o impgen impgen.c ; fi)~
5444 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5446 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5448 # cygwin and mingw dlls have different entry points and sets of symbols
5450 # FIXME: what about values for MSVC?
5451 dll_entry=__cygwin_dll_entry@12
5452 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5456 dll_entry=_DllMainCRTStartup@12
5457 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5461 # mingw and cygwin differ, and it's simplest to just exclude the union
5462 # of the two symbol sets.
5463 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5465 # recent cygwin and mingw systems supply a stub DllMain which the user
5466 # can override, but on older systems we have to supply one (in ltdll.c)
5467 if test "x$lt_cv_need_dllmain" = "xyes"; then
5468 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5469 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~
5470 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5476 # Extract the symbol export list from an `--export-all' def file,
5477 # then regenerate the def file from the symbol export list, so that
5478 # the compiled dll only exports the symbol export list.
5479 # Be careful not to strip the DATA tag left be newer dlltools.
5480 export_symbols_cmds="$ltdll_cmds"'
5481 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5482 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5484 # If the export-symbols file already is a .def file (1st line
5485 # is EXPORTS), use it as is.
5486 # If DATA tags from a recent dlltool are present, honour them!
5487 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5488 cp $export_symbols $output_objdir/$soname-def;
5490 echo EXPORTS > $output_objdir/$soname-def;
5492 cat $export_symbols | while read symbol; do
5495 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5496 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5497 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5499 _lt_hint=`expr 1 + \$_lt_hint`;
5503 $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~
5504 $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~
5505 $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~
5506 $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~
5507 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5512 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5515 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5516 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5521 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5526 *** create shared libraries on Solaris systems. Therefore, libtool
5527 *** is disabling shared libraries support. We urge you to upgrade GNU
5528 *** binutils to release 2.9.1 or newer. Another option is to modify
5529 *** your PATH or compiler configuration so that the native linker is
5530 *** used, and then restart.
5533 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5542 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5545 hardcode_shlibpath_var=no
5549 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5558 if test "$ld_shlibs" = yes; then
5559 runpath_var=LD_RUN_PATH
5560 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5561 export_dynamic_flag_spec='${wl}--export-dynamic'
5563 cygwin* | mingw* | pw32*)
5564 # dlltool doesn't understand --whole-archive et. al.
5565 whole_archive_flag_spec=
5568 # ancient GNU ld didn't support --whole-archive et. al.
5569 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5570 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5572 whole_archive_flag_spec=
5578 # PORTME fill in a description of your system's linker (not GNU ld)
5581 allow_undefined_flag=unsupported
5582 always_export_symbols=yes
5583 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'
5584 # Note: this linker hardcodes the directories in LIBPATH if there
5585 # are no directories specified by -L.
5586 hardcode_minus_L=yes
5587 if test "$GCC" = yes && test -z "$link_static_flag"; then
5588 # Neither direct hardcoding nor static linking is supported with a
5590 hardcode_direct=unsupported
5595 if test "$host_cpu" = ia64; then
5596 # On IA64, the linker does run time linking by default, so we don't
5597 # have to do anything special.
5598 aix_use_runtimelinking=no
5599 exp_sym_flag='-Bexport'
5602 aix_use_runtimelinking=no
5604 # Test if we are trying to use run time linking or normal
5605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5606 # need to do runtime linking.
5607 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5608 for ld_flag in $LDFLAGS; do
5611 aix_use_runtimelinking=yes
5618 exp_sym_flag='-bexport'
5619 no_entry_flag='-bnoentry'
5622 # When large executables or shared objects are built, AIX ld can
5623 # have problems creating the table of contents. If linking a library
5624 # or program results in "error TOC overflow" add -mminimal-toc to
5625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5630 hardcode_libdir_separator=':'
5631 if test "$GCC" = yes; then
5632 case $host_os in aix4.[012]|aix4.[012].*)
5633 collect2name=`${CC} -print-prog-name=collect2`
5634 if test -f "$collect2name" && \
5635 strings "$collect2name" | grep resolve_lib_name >/dev/null
5637 # We have reworked collect2
5640 # We have old collect2
5641 hardcode_direct=unsupported
5642 # It fails to find uninstalled libraries when the uninstalled
5643 # path is not listed in the libpath. Setting hardcode_minus_L
5644 # to unsupported forces relinking
5645 hardcode_minus_L=yes
5646 hardcode_libdir_flag_spec='-L$libdir'
5647 hardcode_libdir_separator=
5651 shared_flag='-shared'
5654 if test "$host_cpu" = ia64; then
5655 shared_flag='${wl}-G'
5657 if test "$aix_use_runtimelinking" = yes; then
5658 shared_flag='${wl}-G'
5660 shared_flag='${wl}-bM:SRE'
5665 # It seems that -bexpall can do strange things, so it is better to
5666 # generate a list of symbols to export.
5667 always_export_symbols=yes
5668 if test "$aix_use_runtimelinking" = yes; then
5669 # Warning - without using the other runtime loading flags (-brtl),
5670 # -berok will link without error, but may produce a broken library.
5671 allow_undefined_flag='-berok'
5672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5673 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"
5675 if test "$host_cpu" = ia64; then
5676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5677 allow_undefined_flag="-z nodefs"
5678 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"
5680 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5681 # Warning - without using the other run time loading flags,
5682 # -berok will link without error, but may produce a broken library.
5683 allow_undefined_flag='${wl}-berok'
5684 # This is a bit strange, but is similar to how AIX traditionally builds
5685 # it's shared libraries.
5686 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'
5692 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)'
5693 hardcode_libdir_flag_spec='-L$libdir'
5694 hardcode_minus_L=yes
5695 # see comment about different semantics on the GNU ld section
5699 cygwin* | mingw* | pw32*)
5700 # When not using gcc, we currently assume that we are using
5701 # Microsoft Visual C++.
5702 # hardcode_libdir_flag_spec is actually meaningless, as there is
5703 # no search path for DLLs.
5704 hardcode_libdir_flag_spec=' '
5705 allow_undefined_flag=unsupported
5706 # Tell ltmain to make .lib files, not .a files.
5708 # FIXME: Setting linknames here is a bad hack.
5709 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5710 # The linker will automatically build a .lib file if we build a DLL.
5711 old_archive_from_new_cmds='true'
5712 # FIXME: Should let the user specify the lib program.
5713 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5714 fix_srcfile_path='`cygpath -w "$srcfile"`'
5717 darwin* | rhapsody*)
5719 rhapsody* | darwin1.[012])
5720 allow_undefined_flag='-undefined suppress'
5723 allow_undefined_flag='-flat_namespace -undefined suppress'
5726 # FIXME: Relying on posixy $() will cause problems for
5727 # cross-compilation, but unfortunately the echo tests do not
5728 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5729 # `"' quotes if we put them in here... so don't!
5730 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)'
5731 # We need to add '_' to the symbols in $export_symbols first
5732 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5734 hardcode_shlibpath_var=no
5735 whole_archive_flag_spec='-all_load $convenience'
5742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5743 # support. Future versions do this automatically, but an explicit c++rt0.o
5744 # does not break anything, and helps significantly (at the cost of a little
5747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5748 hardcode_libdir_flag_spec='-R$libdir'
5750 hardcode_shlibpath_var=no
5753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5757 hardcode_minus_L=yes
5758 hardcode_shlibpath_var=no
5761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5763 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5764 hardcode_libdir_flag_spec='-R$libdir'
5766 hardcode_shlibpath_var=no
5769 hpux9* | hpux10* | hpux11*)
5771 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' ;;
5772 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5774 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5775 hardcode_libdir_separator=:
5777 hardcode_minus_L=yes # Not in the search PATH, but as the default
5778 # location of the library.
5779 export_dynamic_flag_spec='${wl}-E'
5782 irix5* | irix6* | nonstopux*)
5783 if test "$GCC" = yes; then
5784 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'
5785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5787 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'
5788 hardcode_libdir_flag_spec='-rpath $libdir'
5790 hardcode_libdir_separator=:
5791 link_all_deplibs=yes
5795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5798 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5800 hardcode_libdir_flag_spec='-R$libdir'
5802 hardcode_shlibpath_var=no
5806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5809 hardcode_libdir_separator=:
5810 hardcode_shlibpath_var=no
5815 hardcode_shlibpath_var=no
5816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5819 export_dynamic_flag_spec='${wl}-E'
5822 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5824 hardcode_libdir_flag_spec='-R$libdir'
5827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5835 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5836 cp \$linknames \$output_objdir && linknames=''"
5837 export_dynamic_flag_spec="-Wl,DLL"
5841 hardcode_libdir_flag_spec='-L$libdir'
5842 hardcode_minus_L=yes
5843 allow_undefined_flag=unsupported
5844 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'
5845 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5849 if test "$GCC" = yes; then
5850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5851 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'
5853 allow_undefined_flag=' -expect_unresolved \*'
5854 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'
5856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5857 hardcode_libdir_separator=:
5860 osf4* | osf5*) # as osf3* with the addition of -msym flag
5861 if test "$GCC" = yes; then
5862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5863 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'
5864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5866 allow_undefined_flag=' -expect_unresolved \*'
5867 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'
5868 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5869 $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'
5871 #Both c and cxx compiler support -rpath directly
5872 hardcode_libdir_flag_spec='-rpath $libdir'
5874 hardcode_libdir_separator=:
5878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5879 hardcode_shlibpath_var=no
5880 runpath_var=LD_RUN_PATH
5881 hardcode_runpath_var=yes
5882 export_dynamic_flag_spec='${wl}-Bexport'
5886 # gcc --version < 3.0 without binutils cannot create self contained
5887 # shared libraries reliably, requiring libgcc.a to resolve some of
5888 # the object symbols generated in some cases. Libraries that use
5889 # assert need libgcc.a to resolve __eprintf, for example. Linking
5890 # a copy of libgcc.a into every shared library to guarantee resolving
5891 # such symbols causes other problems: According to Tim Van Holder
5892 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5893 # (to the application) exception stack for one thing.
5894 no_undefined_flag=' -z defs'
5895 if test "$GCC" = yes; then
5896 case `$CC --version 2>/dev/null` in
5900 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5901 *** create self contained shared libraries on Solaris systems, without
5902 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5903 *** -no-undefined support, which will at least allow you to build shared
5904 *** libraries. However, you may find that when you link such libraries
5905 *** into an application without using GCC, you have to manually add
5906 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5907 *** upgrade to a newer version of GCC. Another option is to rebuild your
5908 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5915 # $CC -shared without GNU ld will not create a library from C++
5916 # object files and a static libstdc++, better avoid it by now
5917 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5918 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5919 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5920 hardcode_libdir_flag_spec='-R$libdir'
5921 hardcode_shlibpath_var=no
5923 solaris2.[0-5] | solaris2.[0-5].*) ;;
5924 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5925 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5927 link_all_deplibs=yes
5931 if test "x$host_vendor" = xsequent; then
5932 # Use $CC to link under sequent, because it throws in some extra .o
5933 # files that make .init and .fini sections work.
5934 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5936 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5938 hardcode_libdir_flag_spec='-L$libdir'
5940 hardcode_minus_L=yes
5941 hardcode_shlibpath_var=no
5945 case $host_vendor in
5947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5948 hardcode_direct=yes # is this really true???
5951 ## LD is ld it makes a PLAMLIB
5952 ## CC just makes a GrossModule.
5953 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5954 reload_cmds='$CC -r -o $output$reload_objs'
5958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5959 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5962 runpath_var='LD_RUN_PATH'
5963 hardcode_shlibpath_var=no
5967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968 hardcode_shlibpath_var=no
5969 export_dynamic_flag_spec='-Bexport'
5973 no_undefined_flag=' -z text'
5974 # $CC -shared without GNU ld will not create a library from C++
5975 # object files and a static libstdc++, better avoid it by now
5976 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5979 hardcode_libdir_flag_spec=
5980 hardcode_shlibpath_var=no
5981 runpath_var='LD_RUN_PATH'
5985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_libdir_flag_spec='-L$libdir'
5987 hardcode_shlibpath_var=no
5991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5992 hardcode_libdir_flag_spec='-L$libdir'
5993 hardcode_shlibpath_var=no
5997 if test -d /usr/nec; then
5998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5999 hardcode_shlibpath_var=no
6000 runpath_var=LD_RUN_PATH
6001 hardcode_runpath_var=yes
6007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6010 hardcode_shlibpath_var=no
6011 hardcode_runpath_var=yes
6012 runpath_var=LD_RUN_PATH
6015 sysv5uw7* | unixware7*)
6016 no_undefined_flag='${wl}-z ${wl}text'
6017 if test "$GCC" = yes; then
6018 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6022 runpath_var='LD_RUN_PATH'
6023 hardcode_shlibpath_var=no
6031 echo "$ac_t""$ld_shlibs" 1>&6
6032 test "$ld_shlibs" = no && can_build_shared=no
6034 # Check hardcoding attributes.
6035 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6036 echo "configure:6037: checking how to hardcode library paths into programs" >&5
6038 if test -n "$hardcode_libdir_flag_spec" || \
6039 test -n "$runpath_var"; then
6041 # We can hardcode non-existant directories.
6042 if test "$hardcode_direct" != no &&
6043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6044 # have to relink, otherwise we might link with an installed library
6045 # when we should be linking with a yet-to-be-installed one
6046 ## test "$hardcode_shlibpath_var" != no &&
6047 test "$hardcode_minus_L" != no; then
6048 # Linking always hardcodes the temporary library directory.
6049 hardcode_action=relink
6051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6052 hardcode_action=immediate
6055 # We cannot hardcode anything, or else we can only hardcode existing
6057 hardcode_action=unsupported
6059 echo "$ac_t""$hardcode_action" 1>&6
6063 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6064 echo "configure:6065: checking whether stripping libraries is possible" >&5
6065 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6067 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6068 echo "$ac_t""yes" 1>&6
6070 echo "$ac_t""no" 1>&6
6073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6074 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6076 # PORTME Fill in your ld.so characteristics
6077 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6078 echo "configure:6079: checking dynamic linker characteristics" >&5
6080 libname_spec='lib$name'
6087 shlibpath_overrides_runpath=unknown
6089 dynamic_linker="$host_os ld.so"
6090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6096 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6097 shlibpath_var=LIBPATH
6099 # AIX has no versioning support, so we append a major version to the name.
6100 soname_spec='${libname}${release}.so$major'
6107 hardcode_into_libs=yes
6108 if test "$host_cpu" = ia64; then
6109 # AIX 5 supports IA64
6110 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6111 shlibpath_var=LD_LIBRARY_PATH
6113 # With GCC up to 2.95.x, collect2 would create an import file
6114 # for dependence libraries. The import file would start with
6115 # the line `#! .'. This would cause the generated library to
6116 # depend on `.', always an invalid library. This was fixed in
6117 # development snapshots of GCC prior to 3.0.
6119 aix4 | aix4.[01] | aix4.[01].*)
6120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6122 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6129 # AIX (on Power*) has no versioning support, so currently we can
6130 # not hardcode correct soname into executable. Probably we can
6131 # add versioning support to collect2, so additional links can
6132 # be useful in future.
6133 if test "$aix_use_runtimelinking" = yes; then
6134 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6135 # instead of lib<name>.a to let people know that these are not
6136 # typical AIX shared libraries.
6137 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6139 # We preserve .a as extension for shared libraries through AIX4.2
6140 # and later when we are not doing run time linking.
6141 library_names_spec='${libname}${release}.a $libname.a'
6142 soname_spec='${libname}${release}.so$major'
6144 shlibpath_var=LIBPATH
6146 hardcode_into_libs=yes
6150 library_names_spec='$libname.ixlibrary $libname.a'
6151 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6152 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'
6156 library_names_spec='${libname}.so'
6157 dynamic_linker="$host_os ld.so"
6158 shlibpath_var=LIBRARY_PATH
6164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6165 soname_spec='${libname}${release}.so$major'
6166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6167 shlibpath_var=LD_LIBRARY_PATH
6168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6170 export_dynamic_flag_spec=-rdynamic
6171 # the default ld.so.conf also contains /usr/contrib/lib and
6172 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6173 # libtool to hard-code these into programs
6176 cygwin* | mingw* | pw32*)
6177 version_type=windows
6180 case $GCC,$host_os in
6182 library_names_spec='$libname.dll.a'
6183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6184 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6185 dldir=$destdir/`dirname \$dlpath`~
6186 test -d \$dldir || mkdir -p \$dldir~
6187 $install_prog .libs/$dlname \$dldir/$dlname'
6188 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6189 dlpath=$dir/\$dldll~
6193 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6200 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6203 dynamic_linker='Win32 ld.exe'
6204 # FIXME: first we should search . and the directory the executable is in
6208 darwin* | rhapsody*)
6209 dynamic_linker="$host_os dyld"
6213 # FIXME: Relying on posixy $() will cause problems for
6214 # cross-compilation, but unfortunately the echo tests do not
6215 # yet detect zsh echo's removal of \ escapes.
6216 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)'
6217 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6218 shlibpath_overrides_runpath=yes
6219 shlibpath_var=DYLD_LIBRARY_PATH
6227 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6228 version_type=freebsd-$objformat
6229 case $version_type in
6231 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6236 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6240 shlibpath_var=LD_LIBRARY_PATH
6243 shlibpath_overrides_runpath=yes
6246 shlibpath_overrides_runpath=no
6247 hardcode_into_libs=yes
6256 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6257 soname_spec='${libname}${release}.so$major'
6258 shlibpath_var=LD_LIBRARY_PATH
6259 hardcode_into_libs=yes
6262 hpux9* | hpux10* | hpux11*)
6263 # Give a soname corresponding to the major version so that dld.sl refuses to
6264 # link against other versions.
6265 dynamic_linker="$host_os dld.sl"
6269 shlibpath_var=SHLIB_PATH
6270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6271 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6272 soname_spec='${libname}${release}.sl$major'
6273 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6274 postinstall_cmds='chmod 555 $lib'
6277 irix5* | irix6* | nonstopux*)
6279 nonstopux*) version_type=nonstopux ;;
6280 *) version_type=irix ;;
6284 soname_spec='${libname}${release}.so$major'
6285 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6287 irix5* | nonstopux*)
6291 case $LD in # libtool.m4 will add one of these switches to LD
6292 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6293 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6294 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6295 *) libsuff= shlibsuff= libmagic=never-match;;
6299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6300 shlibpath_overrides_runpath=no
6301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6305 # No shared lib support for Linux oldld, aout, or coff.
6306 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6310 # This must be Linux ELF.
6315 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6316 soname_spec='${libname}${release}.so$major'
6317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6318 shlibpath_var=LD_LIBRARY_PATH
6319 shlibpath_overrides_runpath=no
6320 # This implies no fast_install, which is unacceptable.
6321 # Some rework will be needed to allow for fast_install
6322 # before this can be enabled.
6323 hardcode_into_libs=yes
6325 # We used to test for /lib/ld.so.1 and disable shared libraries on
6326 # powerpc, because MkLinux only supported shared libraries with the
6327 # GNU dynamic linker. Since this was broken with cross compilers,
6328 # most powerpc-linux boxes support dynamic linking these days and
6329 # people can always --disable-shared, the test was removed, and we
6330 # assume the GNU/Linux dynamic linker is in use.
6331 dynamic_linker='GNU/Linux ld.so'
6338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6339 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6341 dynamic_linker='NetBSD (a.out) ld.so'
6343 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6344 soname_spec='${libname}${release}.so$major'
6345 dynamic_linker='NetBSD ld.elf_so'
6347 shlibpath_var=LD_LIBRARY_PATH
6348 shlibpath_overrides_runpath=yes
6349 hardcode_into_libs=yes
6354 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6355 shlibpath_var=LD_LIBRARY_PATH
6356 shlibpath_overrides_runpath=yes
6363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6365 openbsd2.[89] | openbsd2.[89].*)
6366 shlibpath_overrides_runpath=no
6369 shlibpath_overrides_runpath=yes
6373 shlibpath_overrides_runpath=yes
6375 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6377 shlibpath_var=LD_LIBRARY_PATH
6383 shlibpath_overrides_runpath=yes
6384 shlibpath_var=LIBPATH
6385 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6386 # the library's exports are in libname.x; this is the file that must
6387 # actually be linked with to use a DLL.
6388 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6392 libname_spec='$name'
6394 library_names_spec='$libname.dll $libname.a'
6395 dynamic_linker='OS/2 ld.exe'
6396 shlibpath_var=LIBPATH
6399 osf3* | osf4* | osf5*)
6402 soname_spec='${libname}${release}.so$major'
6403 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6404 shlibpath_var=LD_LIBRARY_PATH
6405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6407 hardcode_into_libs=yes
6412 soname_spec='${libname}${release}.so$major'
6413 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6414 shlibpath_var=LD_LIBRARY_PATH
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6422 soname_spec='${libname}${release}.so$major'
6423 shlibpath_var=LD_LIBRARY_PATH
6424 shlibpath_overrides_runpath=yes
6425 hardcode_into_libs=yes
6426 # ldd complains unless libraries are executable
6427 postinstall_cmds='chmod +x $lib'
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6433 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6434 shlibpath_var=LD_LIBRARY_PATH
6435 shlibpath_overrides_runpath=yes
6436 if test "$with_gnu_ld" = yes; then
6442 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6444 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6445 soname_spec='${libname}${release}.so$major'
6446 shlibpath_var=LD_LIBRARY_PATH
6447 case $host_vendor in
6449 shlibpath_overrides_runpath=no
6451 export_dynamic_flag_spec='${wl}-Blargedynsym'
6452 runpath_var=LD_RUN_PATH
6460 shlibpath_overrides_runpath=no
6461 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6469 soname_spec='${libname}${release}.so$major'
6470 shlibpath_var=LD_LIBRARY_PATH
6477 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6478 soname_spec='${libname}${release}.so$major'
6479 shlibpath_var=LD_LIBRARY_PATH
6483 if test -d /usr/nec ;then
6485 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6486 soname_spec='$libname.so.$major'
6487 shlibpath_var=LD_LIBRARY_PATH
6495 echo "$ac_t""$dynamic_linker" 1>&6
6496 test "$dynamic_linker" = no && can_build_shared=no
6498 # Report the final consequences.
6499 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6500 echo "configure:6501: checking if libtool supports shared libraries" >&5
6501 echo "$ac_t""$can_build_shared" 1>&6
6503 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6504 echo "configure:6505: checking whether to build shared libraries" >&5
6505 test "$can_build_shared" = "no" && enable_shared=no
6507 # On AIX, shared libraries and static libraries use the same namespace, and
6508 # are all built from PIC.
6511 test "$enable_shared" = yes && enable_static=no
6512 if test -n "$RANLIB"; then
6513 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6514 postinstall_cmds='$RANLIB $lib'
6519 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6520 test "$enable_shared" = yes && enable_static=no
6524 echo "$ac_t""$enable_shared" 1>&6
6526 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6527 echo "configure:6528: checking whether to build static libraries" >&5
6528 # Make sure either enable_shared or enable_static is yes.
6529 test "$enable_shared" = yes || enable_static=yes
6530 echo "$ac_t""$enable_static" 1>&6
6532 if test "$hardcode_action" = relink; then
6533 # Fast installation is not supported
6534 enable_fast_install=no
6535 elif test "$shlibpath_overrides_runpath" = yes ||
6536 test "$enable_shared" = no; then
6537 # Fast installation is not necessary
6538 enable_fast_install=needless
6541 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6542 if test "$GCC" = yes; then
6543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6546 if test "x$enable_dlopen" != xyes; then
6547 enable_dlopen=unknown
6548 enable_dlopen_self=unknown
6549 enable_dlopen_self_static=unknown
6556 lt_cv_dlopen="load_add_on"
6558 lt_cv_dlopen_self=yes
6561 cygwin* | mingw* | pw32*)
6562 lt_cv_dlopen="LoadLibrary"
6567 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6568 echo "configure:6569: checking for dllload" >&5
6569 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 /* System header to define __stub macros and hopefully few prototypes,
6576 which can conflict with char dllload(); below. */
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 /* We use char because int might match the return type of a gcc2
6580 builtin and then its argument prototype would still apply. */
6586 /* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589 #if defined (__stub_dllload) || defined (__stub___dllload)
6597 if { (eval echo configure:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 eval "ac_cv_func_dllload=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6604 eval "ac_cv_func_dllload=no"
6609 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6610 echo "$ac_t""yes" 1>&6
6611 lt_cv_dlopen="dllload"
6613 echo "$ac_t""no" 1>&6
6614 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6615 echo "configure:6616: checking for shl_load" >&5
6616 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623 which can conflict with char shl_load(); below. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6633 /* The GNU C library defines this for functions which it implements
6634 to always fail with ENOSYS. Some functions are actually named
6635 something starting with __ and the normal name is an alias. */
6636 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_func_shl_load=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_func_shl_load=no"
6656 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6658 lt_cv_dlopen="shl_load"
6660 echo "$ac_t""no" 1>&6
6661 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6662 echo "configure:6663: checking for shl_load in -ldld" >&5
6663 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6664 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 ac_save_LIBS="$LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_lib_$ac_lib_var=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_lib_$ac_lib_var=no"
6691 LIBS="$ac_save_LIBS"
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6698 echo "$ac_t""no" 1>&6
6699 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6700 echo "configure:6701: checking for dlopen" >&5
6701 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char dlopen(); below. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6718 /* The GNU C library defines this for functions which it implements
6719 to always fail with ENOSYS. Some functions are actually named
6720 something starting with __ and the normal name is an alias. */
6721 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 eval "ac_cv_func_dlopen=yes"
6733 echo "configure: failed program was:" >&5
6734 cat conftest.$ac_ext >&5
6736 eval "ac_cv_func_dlopen=no"
6741 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6742 echo "$ac_t""yes" 1>&6
6743 lt_cv_dlopen="dlopen"
6745 echo "$ac_t""no" 1>&6
6746 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6747 echo "configure:6748: checking for dlopen in -ldl" >&5
6748 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6
6752 ac_save_LIBS="$LIBS"
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6768 eval "ac_cv_lib_$ac_lib_var=yes"
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 eval "ac_cv_lib_$ac_lib_var=no"
6776 LIBS="$ac_save_LIBS"
6779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6780 echo "$ac_t""yes" 1>&6
6781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6783 echo "$ac_t""no" 1>&6
6784 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6785 echo "configure:6786: checking for dlopen in -lsvld" >&5
6786 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6787 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 ac_save_LIBS="$LIBS"
6792 cat > conftest.$ac_ext <<EOF
6793 #line 6794 "configure"
6794 #include "confdefs.h"
6795 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_lib_$ac_lib_var=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_lib_$ac_lib_var=no"
6814 LIBS="$ac_save_LIBS"
6817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6818 echo "$ac_t""yes" 1>&6
6819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6821 echo "$ac_t""no" 1>&6
6822 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6823 echo "configure:6824: checking for dld_link in -ldld" >&5
6824 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6825 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 ac_save_LIBS="$LIBS"
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_lib_$ac_lib_var=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_lib_$ac_lib_var=no"
6852 LIBS="$ac_save_LIBS"
6855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6859 echo "$ac_t""no" 1>&6
6883 if test "x$lt_cv_dlopen" != xno; then
6889 case $lt_cv_dlopen in
6891 save_CPPFLAGS="$CPPFLAGS"
6892 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6894 save_LDFLAGS="$LDFLAGS"
6895 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6898 LIBS="$lt_cv_dlopen_libs $LIBS"
6900 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6901 echo "configure:6902: checking whether a program can dlopen itself" >&5
6902 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 if test "$cross_compiling" = yes; then :
6906 lt_cv_dlopen_self=cross
6908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6909 lt_status=$lt_dlunknown
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6921 # define LT_DLGLOBAL RTLD_GLOBAL
6924 # define LT_DLGLOBAL DL_GLOBAL
6926 # define LT_DLGLOBAL 0
6930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6931 find out it does not work in some platform. */
6932 #ifndef LT_DLLAZY_OR_NOW
6934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6937 # define LT_DLLAZY_OR_NOW DL_LAZY
6940 # define LT_DLLAZY_OR_NOW RTLD_NOW
6943 # define LT_DLLAZY_OR_NOW DL_NOW
6945 # define LT_DLLAZY_OR_NOW 0
6953 extern "C" void exit (int);
6956 void fnord() { int i=42;}
6959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6960 int status = $lt_dlunknown;
6964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6966 /* dlclose (self); */
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6973 (./conftest; exit; ) 2>/dev/null
6976 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6977 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6978 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6981 # compilation failed
6982 lt_cv_dlopen_self=no
6990 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6992 if test "x$lt_cv_dlopen_self" = xyes; then
6993 LDFLAGS="$LDFLAGS $link_static_flag"
6994 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6995 echo "configure:6996: checking whether a statically linked program can dlopen itself" >&5
6996 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6999 if test "$cross_compiling" = yes; then :
7000 lt_cv_dlopen_self_static=cross
7002 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7003 lt_status=$lt_dlunknown
7004 cat > conftest.$ac_ext <<EOF
7005 #line 7006 "configure"
7006 #include "confdefs.h"
7015 # define LT_DLGLOBAL RTLD_GLOBAL
7018 # define LT_DLGLOBAL DL_GLOBAL
7020 # define LT_DLGLOBAL 0
7024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7025 find out it does not work in some platform. */
7026 #ifndef LT_DLLAZY_OR_NOW
7028 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7031 # define LT_DLLAZY_OR_NOW DL_LAZY
7034 # define LT_DLLAZY_OR_NOW RTLD_NOW
7037 # define LT_DLLAZY_OR_NOW DL_NOW
7039 # define LT_DLLAZY_OR_NOW 0
7047 extern "C" void exit (int);
7050 void fnord() { int i=42;}
7053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7054 int status = $lt_dlunknown;
7058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7059 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7060 /* dlclose (self); */
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7067 (./conftest; exit; ) 2>/dev/null
7070 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7071 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7072 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7075 # compilation failed
7076 lt_cv_dlopen_self_static=no
7084 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7087 CPPFLAGS="$save_CPPFLAGS"
7088 LDFLAGS="$save_LDFLAGS"
7093 case $lt_cv_dlopen_self in
7094 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7095 *) enable_dlopen_self=unknown ;;
7098 case $lt_cv_dlopen_self_static in
7099 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7100 *) enable_dlopen_self_static=unknown ;;
7105 if test "$enable_shared" = yes && test "$GCC" = yes; then
7106 case $archive_cmds in
7108 # FIXME: we may have to deal with multi-command sequences.
7111 # Test whether the compiler implicitly links with -lc since on some
7112 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7113 # to ld, don't add -lc before -lgcc.
7114 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7115 echo "configure:7116: checking whether -lc should be explicitly linked in" >&5
7116 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7120 echo 'static int dummy;' > conftest.$ac_ext
7122 if { (eval echo configure:7123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7125 libobjs=conftest.$ac_objext
7127 wl=$lt_cv_prog_cc_wl
7133 save_allow_undefined_flag=$allow_undefined_flag
7134 allow_undefined_flag=
7135 if { (eval echo configure:7136: \"$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; }
7137 lt_cv_archive_cmds_need_lc=no
7139 lt_cv_archive_cmds_need_lc=yes
7141 allow_undefined_flag=$save_allow_undefined_flag
7143 cat conftest.err 1>&5
7147 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7151 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7153 # The second clause should only fire when bootstrapping the
7154 # libtool distribution, otherwise you forgot to ship ltmain.sh
7155 # with your package, and you will get complaints that there are
7156 # no rules to generate ltmain.sh.
7157 if test -f "$ltmain"; then
7160 # If there is no Makefile yet, we rely on a make rule to execute
7161 # `config.status --recheck' to rerun these tests and create the
7162 # libtool script then.
7163 test -f Makefile && make "$ltmain"
7166 if test -f "$ltmain"; then
7167 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7170 echo creating $ofile
7172 # Now quote all the things that may contain metacharacters while being
7173 # careful not to overquote the AC_SUBSTed values. We take copies of the
7174 # variables and quote the copies for generation of the libtool script.
7175 for var in echo old_CC old_CFLAGS SED \
7176 AR AR_FLAGS CC LD LN_S NM SHELL \
7177 reload_flag reload_cmds wl \
7178 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7179 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7180 library_names_spec soname_spec \
7181 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7182 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7183 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7184 old_striplib striplib file_magic_cmd export_symbols_cmds \
7185 deplibs_check_method allow_undefined_flag no_undefined_flag \
7186 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7187 global_symbol_to_c_name_address \
7188 hardcode_libdir_flag_spec hardcode_libdir_separator \
7189 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7190 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7193 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7194 old_postinstall_cmds | old_postuninstall_cmds | \
7195 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7196 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7197 postinstall_cmds | postuninstall_cmds | \
7198 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7199 # Double-quote double-evaled strings.
7200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7203 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7208 cat <<__EOF__ > "${ofile}T"
7211 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7212 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7213 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7215 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7216 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7218 # This program is free software; you can redistribute it and/or modify
7219 # it under the terms of the GNU General Public License as published by
7220 # the Free Software Foundation; either version 2 of the License, or
7221 # (at your option) any later version.
7223 # This program is distributed in the hope that it will be useful, but
7224 # WITHOUT ANY WARRANTY; without even the implied warranty of
7225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7226 # General Public License for more details.
7228 # You should have received a copy of the GNU General Public License
7229 # along with this program; if not, write to the Free Software
7230 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7232 # As a special exception to the GNU General Public License, if you
7233 # distribute this file as part of a program that contains a
7234 # configuration script generated by Autoconf, you may include it under
7235 # the same distribution terms that you use for the rest of that program.
7237 # A sed that does not truncate output.
7240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7241 Xsed="${SED} -e s/^X//"
7243 # The HP-UX ksh and POSIX shell print the target directory to stdout
7245 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7247 # ### BEGIN LIBTOOL CONFIG
7249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7251 # Shell to use when invoking shell scripts.
7254 # Whether or not to build shared libraries.
7255 build_libtool_libs=$enable_shared
7257 # Whether or not to build static libraries.
7258 build_old_libs=$enable_static
7260 # Whether or not to add -lc for building shared libraries.
7261 build_libtool_need_lc=$need_lc
7263 # Whether or not to optimize for fast installation.
7264 fast_install=$enable_fast_install
7267 host_alias=$host_alias
7270 # An echo program that does not interpret backslashes.
7275 AR_FLAGS=$lt_AR_FLAGS
7277 # The default C compiler.
7280 # Is the compiler the GNU C compiler?
7283 # The linker used to build libraries.
7286 # Whether we need hard or soft links.
7289 # A BSD-compatible nm program.
7292 # A symbol stripping program
7295 # Used to examine libraries when file_magic_cmd begins "file"
7296 MAGIC_CMD=$MAGIC_CMD
7298 # Used on cygwin: DLL creation program.
7301 # Used on cygwin: object dumper.
7304 # Used on cygwin: assembler.
7307 # The name of the directory that contains temporary libtool files.
7310 # How to create reloadable object files.
7311 reload_flag=$lt_reload_flag
7312 reload_cmds=$lt_reload_cmds
7314 # How to pass a linker flag through the compiler.
7317 # Object file suffix (normally "o").
7320 # Old archive suffix (normally "a").
7323 # Executable file suffix (normally "").
7326 # Additional compiler flags for building library objects.
7327 pic_flag=$lt_pic_flag
7330 # Does compiler simultaneously support -c and -o options?
7331 compiler_c_o=$lt_compiler_c_o
7333 # Can we write directly to a .lo ?
7334 compiler_o_lo=$lt_compiler_o_lo
7336 # Must we lock files when doing compilation ?
7337 need_locks=$lt_need_locks
7339 # Do we need the lib prefix for modules?
7340 need_lib_prefix=$need_lib_prefix
7342 # Do we need a version for libraries?
7343 need_version=$need_version
7345 # Whether dlopen is supported.
7346 dlopen_support=$enable_dlopen
7348 # Whether dlopen of programs is supported.
7349 dlopen_self=$enable_dlopen_self
7351 # Whether dlopen of statically linked programs is supported.
7352 dlopen_self_static=$enable_dlopen_self_static
7354 # Compiler flag to prevent dynamic linking.
7355 link_static_flag=$lt_link_static_flag
7357 # Compiler flag to turn off builtin functions.
7358 no_builtin_flag=$lt_no_builtin_flag
7360 # Compiler flag to allow reflexive dlopens.
7361 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7363 # Compiler flag to generate shared objects directly from archives.
7364 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7366 # Compiler flag to generate thread-safe objects.
7367 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7369 # Library versioning type.
7370 version_type=$version_type
7372 # Format of library name prefix.
7373 libname_spec=$lt_libname_spec
7375 # List of archive names. First name is the real one, the rest are links.
7376 # The last name is the one that the linker finds with -lNAME.
7377 library_names_spec=$lt_library_names_spec
7379 # The coded name of the library, if different from the real name.
7380 soname_spec=$lt_soname_spec
7382 # Commands used to build and install an old-style archive.
7384 old_archive_cmds=$lt_old_archive_cmds
7385 old_postinstall_cmds=$lt_old_postinstall_cmds
7386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7388 # Create an old-style archive from a shared archive.
7389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7391 # Create a temporary old-style archive to link instead of a shared archive.
7392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7394 # Commands used to build and install a shared archive.
7395 archive_cmds=$lt_archive_cmds
7396 archive_expsym_cmds=$lt_archive_expsym_cmds
7397 postinstall_cmds=$lt_postinstall_cmds
7398 postuninstall_cmds=$lt_postuninstall_cmds
7400 # Commands to strip libraries.
7401 old_striplib=$lt_old_striplib
7402 striplib=$lt_striplib
7404 # Method to check whether dependent libraries are shared objects.
7405 deplibs_check_method=$lt_deplibs_check_method
7407 # Command to use when deplibs_check_method == file_magic.
7408 file_magic_cmd=$lt_file_magic_cmd
7410 # Flag that allows shared libraries with undefined symbols to be built.
7411 allow_undefined_flag=$lt_allow_undefined_flag
7413 # Flag that forces no undefined symbols.
7414 no_undefined_flag=$lt_no_undefined_flag
7416 # Commands used to finish a libtool library installation in a directory.
7417 finish_cmds=$lt_finish_cmds
7419 # Same as above, but a single script fragment to be evaled but not shown.
7420 finish_eval=$lt_finish_eval
7422 # Take the output of nm and produce a listing of raw symbols and C names.
7423 global_symbol_pipe=$lt_global_symbol_pipe
7425 # Transform the output of nm in a proper C declaration
7426 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7428 # Transform the output of nm in a C name address pair
7429 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7431 # This is the shared library runtime path variable.
7432 runpath_var=$runpath_var
7434 # This is the shared library path variable.
7435 shlibpath_var=$shlibpath_var
7437 # Is shlibpath searched before the hard-coded library search path?
7438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7440 # How to hardcode a shared library path into an executable.
7441 hardcode_action=$hardcode_action
7443 # Whether we should hardcode library paths into libraries.
7444 hardcode_into_libs=$hardcode_into_libs
7446 # Flag to hardcode \$libdir into a binary during linking.
7447 # This must work even if \$libdir does not exist.
7448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7450 # Whether we need a single -rpath flag with a separated argument.
7451 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7453 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7455 hardcode_direct=$hardcode_direct
7457 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7459 hardcode_minus_L=$hardcode_minus_L
7461 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7462 # the resulting binary.
7463 hardcode_shlibpath_var=$hardcode_shlibpath_var
7465 # Variables whose values should be saved in libtool wrapper scripts and
7466 # restored at relink time.
7467 variables_saved_for_relink="$variables_saved_for_relink"
7469 # Whether libtool must link a program against all its dependency libraries.
7470 link_all_deplibs=$link_all_deplibs
7472 # Compile-time system search path for libraries
7473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7475 # Run-time system search path for libraries
7476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7478 # Fix the shell variable \$srcfile for the compiler.
7479 fix_srcfile_path="$fix_srcfile_path"
7481 # Set to yes if exported symbols are required.
7482 always_export_symbols=$always_export_symbols
7484 # The commands to list exported symbols.
7485 export_symbols_cmds=$lt_export_symbols_cmds
7487 # The commands to extract the exported symbol list from a shared archive.
7488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7490 # Symbols that should not be listed in the preloaded symbols.
7491 exclude_expsyms=$lt_exclude_expsyms
7493 # Symbols that must always be exported.
7494 include_expsyms=$lt_include_expsyms
7496 # ### END LIBTOOL CONFIG
7502 cat <<\EOF >> "${ofile}T"
7504 # AIX sometimes has problems with the GCC collect2 program. For some
7505 # reason, if we set the COLLECT_NAMES environment variable, the problems
7506 # vanish in a puff of smoke.
7507 if test "X${COLLECT_NAMES+set}" != Xset; then
7509 export COLLECT_NAMES
7516 cygwin* | mingw* | pw32* | os2*)
7517 cat <<'EOF' >> "${ofile}T"
7518 # This is a source program that is used to create dlls on Windows
7519 # Don't remove nor modify the starting and closing comments
7520 # /* ltdll.c starts here */
7521 # #define WIN32_LEAN_AND_MEAN
7522 # #include <windows.h>
7523 # #undef WIN32_LEAN_AND_MEAN
7524 # #include <stdio.h>
7526 # #ifndef __CYGWIN__
7527 # # ifdef __CYGWIN32__
7528 # # define __CYGWIN__ __CYGWIN32__
7532 # #ifdef __cplusplus
7535 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7536 # #ifdef __cplusplus
7541 # #include <cygwin/cygwin_dll.h>
7542 # DECLARE_CYGWIN_DLL( DllMain );
7544 # HINSTANCE __hDllInstance_base;
7547 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7549 # __hDllInstance_base = hInst;
7552 # /* ltdll.c ends here */
7553 # This is a source program that is used to create import libraries
7554 # on Windows for dlls which lack them. Don't remove nor modify the
7555 # starting and closing comments
7556 # /* impgen.c starts here */
7557 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7559 # This file is part of GNU libtool.
7561 # This program is free software; you can redistribute it and/or modify
7562 # it under the terms of the GNU General Public License as published by
7563 # the Free Software Foundation; either version 2 of the License, or
7564 # (at your option) any later version.
7566 # This program is distributed in the hope that it will be useful,
7567 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7569 # GNU General Public License for more details.
7571 # You should have received a copy of the GNU General Public License
7572 # along with this program; if not, write to the Free Software
7573 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7576 # #include <stdio.h> /* for printf() */
7577 # #include <unistd.h> /* for open(), lseek(), read() */
7578 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7579 # #include <string.h> /* for strdup() */
7581 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7583 # #define O_BINARY 0
7586 # static unsigned int
7587 # pe_get16 (fd, offset)
7591 # unsigned char b[2];
7592 # lseek (fd, offset, SEEK_SET);
7594 # return b[0] + (b[1]<<8);
7597 # static unsigned int
7598 # pe_get32 (fd, offset)
7602 # unsigned char b[4];
7603 # lseek (fd, offset, SEEK_SET);
7605 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7608 # static unsigned int
7612 # unsigned char *b = ptr;
7613 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7622 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7623 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7624 # unsigned long name_rvas, nexp;
7625 # unsigned char *expdata, *erva;
7626 # char *filename, *dll_name;
7628 # filename = argv[1];
7630 # dll = open(filename, O_RDONLY|O_BINARY);
7634 # dll_name = filename;
7636 # for (i=0; filename[i]; i++)
7637 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7638 # dll_name = filename + i +1;
7640 # pe_header_offset = pe_get32 (dll, 0x3c);
7641 # opthdr_ofs = pe_header_offset + 4 + 20;
7642 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7644 # if (num_entries < 1) /* no exports */
7647 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7648 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7649 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7650 # secptr = (pe_header_offset + 4 + 20 +
7651 # pe_get16 (dll, pe_header_offset + 4 + 16));
7654 # for (i = 0; i < nsections; i++)
7657 # unsigned long secptr1 = secptr + 40 * i;
7658 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7659 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7660 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7661 # lseek(dll, secptr1, SEEK_SET);
7662 # read(dll, sname, 8);
7663 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7665 # expptr = fptr + (export_rva - vaddr);
7666 # if (export_rva + export_size > vaddr + vsize)
7667 # export_size = vsize - (export_rva - vaddr);
7672 # expdata = (unsigned char*)malloc(export_size);
7673 # lseek (dll, expptr, SEEK_SET);
7674 # read (dll, expdata, export_size);
7675 # erva = expdata - export_rva;
7677 # nexp = pe_as32 (expdata+24);
7678 # name_rvas = pe_as32 (expdata+32);
7680 # printf ("EXPORTS\n");
7681 # for (i = 0; i<nexp; i++)
7683 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7684 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7689 # /* impgen.c ends here */
7695 # We use sed instead of cat because bash on DJGPP gets confused if
7696 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7697 # text mode, it properly converts lines to CR/LF. This bash problem
7698 # is reportedly fixed, but why not run on old versions too?
7699 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7701 mv -f "${ofile}T" "$ofile" || \
7702 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7710 # This can be used to rebuild libtool when needed
7711 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7713 # Always use our own libtool.
7714 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7716 # Prevent multiple expansion
7720 # test for ln hardlink support
7721 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7722 echo "configure:7723: checking whether ln works" >&5
7723 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 rm -f conftest.src conftest.dst
7727 echo "conftest" > conftest.src
7728 if ln conftest.src conftest.dst 2>/dev/null
7730 ol_cv_prog_LN_H="ln"
7732 ol_cv_prog_LN_H="cp"
7734 rm -f conftest.src conftest.dst
7737 LN_H="$ol_cv_prog_LN_H"
7738 if test "$ol_cv_prog_LN_H" = "ln"; then
7739 echo "$ac_t""yes" 1>&6
7741 echo "$ac_t""no" 1>&6
7744 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7745 echo "configure:7746: checking whether ln -s works" >&5
7746 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6
7750 if ln -s X conftestdata 2>/dev/null
7753 ac_cv_prog_LN_S="ln -s"
7758 LN_S="$ac_cv_prog_LN_S"
7759 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7760 echo "$ac_t""yes" 1>&6
7762 echo "$ac_t""no" 1>&6
7767 if test $ol_enable_perl != no ; then
7768 # Extract the first word of "perl", so it can be a program name with args.
7769 set dummy perl; ac_word=$2
7770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_word" >&5
7772 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7777 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7780 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7785 for ac_dir in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f $ac_dir/$ac_word; then
7788 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7793 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7797 PERLBIN="$ac_cv_path_PERLBIN"
7798 if test -n "$PERLBIN"; then
7799 echo "$ac_t""$PERLBIN" 1>&6
7801 echo "$ac_t""no" 1>&6
7805 if test "no$PERLBIN" = "no" ; then
7806 if test $ol_enable_perl = yes ; then
7807 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7811 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7812 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7814 if test x"$ol_enable_perl" = "xyes" ; then
7815 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7817 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7823 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7824 echo "configure:7825: checking how to run the C preprocessor" >&5
7825 # On Suns, sometimes $CPP names a directory.
7826 if test -n "$CPP" && test -d "$CPP"; then
7829 if test -z "$CPP"; then
7830 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 # This must be in double quotes, not single quotes, because CPP may get
7834 # substituted into the Makefile and "${CC-cc}" will confuse make.
7836 # On the NeXT, cc -E runs the code through the compiler's parser,
7837 # not just through cpp.
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7845 { (eval echo configure:7846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7847 if test -z "$ac_err"; then
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7854 CPP="${CC-cc} -E -traditional-cpp"
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7862 { (eval echo configure:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7864 if test -z "$ac_err"; then
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 CPP="${CC-cc} -nologo -E"
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7879 { (eval echo configure:7880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7881 if test -z "$ac_err"; then
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7895 ac_cv_prog_CPP="$CPP"
7897 CPP="$ac_cv_prog_CPP"
7899 ac_cv_prog_CPP="$CPP"
7901 echo "$ac_t""$CPP" 1>&6
7905 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7906 echo "configure:7907: checking for Cygwin environment" >&5
7907 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7917 #define __CYGWIN__ __CYGWIN32__
7922 if { (eval echo configure:7923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7934 echo "$ac_t""$ac_cv_cygwin" 1>&6
7936 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7937 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7938 echo "configure:7939: checking for mingw32 environment" >&5
7939 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7950 if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7962 echo "$ac_t""$ac_cv_mingw32" 1>&6
7964 test "$ac_cv_mingw32" = yes && MINGW32=yes
7968 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7969 echo "configure:7970: checking for executable suffix" >&5
7970 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7973 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7977 echo 'int main () { return 0; }' > conftest.$ac_ext
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7980 for file in conftest.*; do
7982 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7983 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7987 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7990 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7995 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7996 echo "$ac_t""${ac_cv_exeext}" 1>&6
7999 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8000 echo "configure:8001: checking for object suffix" >&5
8001 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8005 echo 'int i = 1;' > conftest.$ac_ext
8006 if { (eval echo configure:8007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8007 for ac_file in conftest.*; do
8010 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8014 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8019 echo "$ac_t""$ac_cv_objext" 1>&6
8020 OBJEXT=$ac_cv_objext
8021 ac_objext=$ac_cv_objext
8024 cat >> confdefs.h <<EOF
8025 #define EXEEXT "${EXEEXT}"
8029 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8030 echo "configure:8031: checking for be_app in -lbe" >&5
8031 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8032 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8035 ac_save_LIBS="$LIBS"
8036 LIBS="-lbe -lroot -lnet $LIBS"
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* Override any gcc2 internal prototype to avoid an error. */
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8049 if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8051 eval "ac_cv_lib_$ac_lib_var=yes"
8053 echo "configure: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8056 eval "ac_cv_lib_$ac_lib_var=no"
8059 LIBS="$ac_save_LIBS"
8062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8063 echo "$ac_t""yes" 1>&6
8064 LIBS="$LIBS -lbe -lroot -lnet"
8066 echo "$ac_t""no" 1>&6
8074 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8075 echo "configure:8076: checking for ${CC-cc} option to accept ANSI C" >&5
8076 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8079 am_cv_prog_cc_stdc=no
8081 # Don't try gcc -ansi; that turns off useful extensions and
8082 # breaks some systems' header files.
8083 # AIX -qlanglvl=ansi
8084 # Ultrix and OSF/1 -std1
8085 # HP-UX 10.20 and later -Ae
8086 # HP-UX older versions -Aa -D_HPUX_SOURCE
8087 # SVR4 -Xc -D__EXTENSIONS__
8088 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8090 CC="$ac_save_CC $ac_arg"
8091 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8096 #include <sys/types.h>
8097 #include <sys/stat.h>
8098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8099 struct buf { int x; };
8100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8101 static char *e (p, i)
8107 static char *f (char * (*g) (char **, int), char **p, ...)
8112 s = g (p, va_arg (v,int));
8116 int test (int i, double x);
8117 struct s1 {int (*f) (int a);};
8118 struct s2 {int (*f) (double a);};
8119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8129 if { (eval echo configure:8130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8131 am_cv_prog_cc_stdc="$ac_arg"; break
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8142 if test -z "$am_cv_prog_cc_stdc"; then
8143 echo "$ac_t""none needed" 1>&6
8145 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8147 case "x$am_cv_prog_cc_stdc" in
8149 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8152 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8153 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8156 # test for make depend flag
8159 if test -z "${MKDEP}"; then
8161 if test -z "${MKDEP_FLAGS}"; then
8162 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8163 echo "configure:8164: checking for ${OL_MKDEP} depend flag" >&5
8164 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8169 for flag in "-M" "-xM"; do
8170 cat > conftest.c <<EOF
8173 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8174 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8176 if test ! -f conftest."${ac_object}" ; then
8178 OL_MKDEP_FLAGS="$flag"
8187 echo "$ac_t""$ol_cv_mkdep" 1>&6
8190 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8195 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8200 if test "${ol_cv_mkdep}" = no ; then
8201 # this will soon become an error
8202 echo "configure: warning: do not know how to generate dependencies" 1>&2
8205 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8206 echo "configure:8207: checking for afopen in -ls" >&5
8207 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 ac_save_LIBS="$LIBS"
8213 cat > conftest.$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8225 if { (eval echo configure:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8227 eval "ac_cv_lib_$ac_lib_var=yes"
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8232 eval "ac_cv_lib_$ac_lib_var=no"
8235 LIBS="$ac_save_LIBS"
8238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8242 cat >> confdefs.h <<\EOF
8243 #define HAVE_AIX_SECURITY 1
8248 echo "$ac_t""no" 1>&6
8254 ac_cv_func_getopt=no
8255 cat >> confdefs.h <<\EOF
8256 #define BOTH_STRINGS_H 1
8263 if test $ol_enable_modules != no ; then
8264 for ac_hdr in ltdl.h
8266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8268 echo "configure:8269: checking for $ac_hdr" >&5
8269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 cat > conftest.$ac_ext <<EOF
8273 #line 8274 "configure"
8274 #include "confdefs.h"
8277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8278 { (eval echo configure:8279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8280 if test -z "$ac_err"; then
8282 eval "ac_cv_header_$ac_safe=yes"
8285 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 eval "ac_cv_header_$ac_safe=no"
8292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8293 echo "$ac_t""yes" 1>&6
8294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8295 cat >> confdefs.h <<EOF
8296 #define $ac_tr_hdr 1
8300 echo "$ac_t""no" 1>&6
8305 if test $ac_cv_header_ltdl_h = no ; then
8306 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8309 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8310 echo "configure:8311: checking for lt_dlinit in -lltdl" >&5
8311 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8315 ac_save_LIBS="$LIBS"
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 eval "ac_cv_lib_$ac_lib_var=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_lib_$ac_lib_var=no"
8339 LIBS="$ac_save_LIBS"
8342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8346 cat >> confdefs.h <<\EOF
8347 #define HAVE_LIBLTDL 1
8352 echo "$ac_t""no" 1>&6
8356 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8357 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8362 for i in $Backends; do
8363 eval "ol_tmp=\$ol_enable_$i"
8364 if test $ol_tmp = mod ; then
8365 echo "configure: warning: building static $i backend" 1>&2
8366 eval "ol_enable_$i=yes"
8369 for i in $Overlays; do
8370 eval "ol_tmp=\$ol_enable_$i"
8371 if test $ol_tmp = mod ; then
8372 echo "configure: warning: building static $i overlay" 1>&2
8373 eval "ol_enable_$i=yes"
8379 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8380 echo "configure:8381: checking for EBCDIC" >&5
8381 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8390 #include <__ASCII__/generate_error.h>
8394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8395 { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8397 if test -z "$ac_err"; then
8399 ol_cv_cpp_ebcdic=yes
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8410 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8411 if test $ol_cv_cpp_ebcdic = yes ; then
8412 cat >> confdefs.h <<\EOF
8413 #define HAVE_EBCDIC 1
8418 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8419 echo "configure:8420: checking for ANSI C header files" >&5
8420 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8432 { (eval echo configure:8433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8434 if test -z "$ac_err"; then
8436 ol_cv_header_stdc=yes
8439 echo "configure: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8442 ol_cv_header_stdc=no
8446 if test $ol_cv_header_stdc = yes; then
8447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8454 egrep "memchr" >/dev/null 2>&1; then
8458 ol_cv_header_stdc=no
8464 if test $ol_cv_header_stdc = yes; then
8465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8472 egrep "free" >/dev/null 2>&1; then
8476 ol_cv_header_stdc=no
8482 if test $ol_cv_header_stdc = yes; then
8483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8484 if test "$cross_compiling" = yes; then
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8495 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8496 || ('j' <= (c) && (c) <= 'r') \
8497 || ('s' <= (c) && (c) <= 'z'))
8498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8501 int main () { int i; for (i = 0; i < 256; i++)
8502 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8506 if { (eval echo configure:8507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 ol_cv_header_stdc=no
8521 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8522 if test $ol_cv_header_stdc = yes; then
8523 cat >> confdefs.h <<\EOF
8524 #define STDC_HEADERS 1
8528 ac_cv_header_stdc=disable
8531 if test $ol_cv_header_stdc != yes; then
8532 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8536 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8539 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8540 echo "configure:8541: checking for $ac_hdr that defines DIR" >&5
8541 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8547 #include <sys/types.h>
8553 if { (eval echo configure:8554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8555 eval "ac_cv_header_dirent_$ac_safe=yes"
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 eval "ac_cv_header_dirent_$ac_safe=no"
8564 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8565 echo "$ac_t""yes" 1>&6
8566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8567 cat >> confdefs.h <<EOF
8568 #define $ac_tr_hdr 1
8570 ac_header_dirent=$ac_hdr; break
8572 echo "$ac_t""no" 1>&6
8575 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8576 if test $ac_header_dirent = dirent.h; then
8577 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8578 echo "configure:8579: checking for opendir in -ldir" >&5
8579 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8581 echo $ac_n "(cached) $ac_c" 1>&6
8583 ac_save_LIBS="$LIBS"
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8597 if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8599 eval "ac_cv_lib_$ac_lib_var=yes"
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8604 eval "ac_cv_lib_$ac_lib_var=no"
8607 LIBS="$ac_save_LIBS"
8610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8611 echo "$ac_t""yes" 1>&6
8614 echo "$ac_t""no" 1>&6
8618 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8619 echo "configure:8620: checking for opendir in -lx" >&5
8620 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 ac_save_LIBS="$LIBS"
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 /* Override any gcc2 internal prototype to avoid an error. */
8630 /* We use char because int might match the return type of a gcc2
8631 builtin and then its argument prototype would still apply. */
8638 if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8640 eval "ac_cv_lib_$ac_lib_var=yes"
8642 echo "configure: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8645 eval "ac_cv_lib_$ac_lib_var=no"
8648 LIBS="$ac_save_LIBS"
8651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8652 echo "$ac_t""yes" 1>&6
8655 echo "$ac_t""no" 1>&6
8660 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8661 echo "configure:8662: checking for sys/wait.h that is POSIX.1 compatible" >&5
8662 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <sys/types.h>
8669 #include <sys/wait.h>
8671 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8674 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8679 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8682 if { (eval echo configure:8683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8684 ac_cv_header_sys_wait_h=yes
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 ac_cv_header_sys_wait_h=no
8694 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8695 if test $ac_cv_header_sys_wait_h = yes; then
8696 cat >> confdefs.h <<\EOF
8697 #define HAVE_SYS_WAIT_H 1
8702 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8703 echo "configure:8704: checking POSIX termios" >&5
8704 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8705 echo $ac_n "(cached) $ac_c" 1>&6
8707 cat > conftest.$ac_ext <<EOF
8708 #line 8709 "configure"
8709 #include "confdefs.h"
8710 #include <sys/types.h>
8712 #include <termios.h>
8714 /* SunOS 4.0.3 has termios.h but not the library calls. */
8718 if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720 am_cv_sys_posix_termios=yes
8722 echo "configure: failed program was:" >&5
8723 cat conftest.$ac_ext >&5
8725 am_cv_sys_posix_termios=no
8730 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8733 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8734 echo "configure:8735: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8735 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8740 gwinsz_in_termios_h=no
8741 if test $am_cv_sys_posix_termios = yes; then
8742 cat > conftest.$ac_ext <<EOF
8743 #line 8744 "configure"
8744 #include "confdefs.h"
8745 #include <sys/types.h>
8746 # include <termios.h>
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 egrep "yes" >/dev/null 2>&1; then
8755 gwinsz_in_termios_h=yes
8761 if test $gwinsz_in_termios_h = no; then
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 #include <sys/types.h>
8766 # include <sys/ioctl.h>
8772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8773 egrep "yes" >/dev/null 2>&1; then
8775 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8783 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8784 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8785 cat >> confdefs.h <<\EOF
8786 #define GWINSZ_IN_SYS_IOCTL 1
8791 if test $am_cv_sys_posix_termios = yes ; then
8792 cat >> confdefs.h <<\EOF
8793 #define HAVE_POSIX_TERMIOS 1
8849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8851 echo "configure:8852: checking for $ac_hdr" >&5
8852 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8863 if test -z "$ac_err"; then
8865 eval "ac_cv_header_$ac_safe=yes"
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8871 eval "ac_cv_header_$ac_safe=no"
8875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8876 echo "$ac_t""yes" 1>&6
8877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8878 cat >> confdefs.h <<EOF
8879 #define $ac_tr_hdr 1
8883 echo "$ac_t""no" 1>&6
8890 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8891 echo "configure:8892: checking for sigset in -lV3" >&5
8892 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8893 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8896 ac_save_LIBS="$LIBS"
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* Override any gcc2 internal prototype to avoid an error. */
8902 /* We use char because int might match the return type of a gcc2
8903 builtin and then its argument prototype would still apply. */
8910 if { (eval echo configure:8911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8912 eval "ac_cv_lib_$ac_lib_var=yes"
8914 echo "configure: failed program was:" >&5
8915 cat conftest.$ac_ext >&5
8917 eval "ac_cv_lib_$ac_lib_var=no"
8920 LIBS="$ac_save_LIBS"
8923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8924 echo "$ac_t""yes" 1>&6
8925 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8927 cat >> confdefs.h <<EOF
8928 #define $ac_tr_lib 1
8934 echo "$ac_t""no" 1>&6
8938 if test "$ac_cv_header_winsock_h" = yes; then
8939 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8940 echo "configure:8941: checking for winsock" >&5
8941 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
8945 for curlib in ws2_32 wsock32; do
8946 LIBS="$LIBS -l$curlib"
8947 cat > conftest.$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8950 #include <winsock.h>
8955 select(0,NULL,NULL,NULL,NULL);
8957 gethostname(NULL,0);
8961 if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 echo "configure: failed program was:" >&5
8966 cat conftest.$ac_ext >&5
8972 if test $ol_cv_winsock = yes; then
8973 cat >> confdefs.h <<\EOF
8974 #define HAVE_WINSOCK 1
8977 ac_cv_func_socket=yes
8978 ac_cv_func_select=yes
8979 ac_cv_func_closesocket=yes
8980 ac_cv_func_gethostname=yes
8981 if test $curlib = ws2_32; then
8982 ol_cv_winsock=winsock2
8983 cat >> confdefs.h <<\EOF
8984 #define HAVE_WINSOCK2 1
8994 echo "$ac_t""$ol_cv_winsock" 1>&6
8998 echo $ac_n "checking for socket""... $ac_c" 1>&6
8999 echo "configure:9000: checking for socket" >&5
9000 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* System header to define __stub macros and hopefully few prototypes,
9007 which can conflict with char socket(); below. */
9009 /* Override any gcc2 internal prototype to avoid an error. */
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9017 /* The GNU C library defines this for functions which it implements
9018 to always fail with ENOSYS. Some functions are actually named
9019 something starting with __ and the normal name is an alias. */
9020 #if defined (__stub_socket) || defined (__stub___socket)
9028 if { (eval echo configure:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9030 eval "ac_cv_func_socket=yes"
9032 echo "configure: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9035 eval "ac_cv_func_socket=no"
9040 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9041 echo "$ac_t""yes" 1>&6
9044 echo "$ac_t""no" 1>&6
9046 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9047 echo "configure:9048: checking for main in -lsocket" >&5
9048 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9052 ac_save_LIBS="$LIBS"
9053 LIBS="-lsocket $LIBS"
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 eval "ac_cv_lib_$ac_lib_var=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9069 eval "ac_cv_lib_$ac_lib_var=no"
9072 LIBS="$ac_save_LIBS"
9075 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9076 echo "$ac_t""yes" 1>&6
9077 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9078 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9079 cat >> confdefs.h <<EOF
9080 #define $ac_tr_lib 1
9083 LIBS="-lsocket $LIBS"
9086 echo "$ac_t""no" 1>&6
9089 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9090 echo "configure:9091: checking for main in -lnet" >&5
9091 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9093 echo $ac_n "(cached) $ac_c" 1>&6
9095 ac_save_LIBS="$LIBS"
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9107 eval "ac_cv_lib_$ac_lib_var=yes"
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9112 eval "ac_cv_lib_$ac_lib_var=no"
9115 LIBS="$ac_save_LIBS"
9118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9119 echo "$ac_t""yes" 1>&6
9120 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9122 cat >> confdefs.h <<EOF
9123 #define $ac_tr_lib 1
9129 echo "$ac_t""no" 1>&6
9132 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9133 echo "configure:9134: checking for main in -lnsl_s" >&5
9134 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9135 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9138 ac_save_LIBS="$LIBS"
9139 LIBS="-lnsl_s $LIBS"
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 eval "ac_cv_lib_$ac_lib_var=yes"
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 eval "ac_cv_lib_$ac_lib_var=no"
9158 LIBS="$ac_save_LIBS"
9161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9162 echo "$ac_t""yes" 1>&6
9163 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9165 cat >> confdefs.h <<EOF
9166 #define $ac_tr_lib 1
9169 LIBS="-lnsl_s $LIBS"
9172 echo "$ac_t""no" 1>&6
9175 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9176 echo "configure:9177: checking for main in -lnsl" >&5
9177 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9178 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9181 ac_save_LIBS="$LIBS"
9183 cat > conftest.$ac_ext <<EOF
9184 #line 9185 "configure"
9185 #include "confdefs.h"
9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9193 eval "ac_cv_lib_$ac_lib_var=yes"
9195 echo "configure: failed program was:" >&5
9196 cat conftest.$ac_ext >&5
9198 eval "ac_cv_lib_$ac_lib_var=no"
9201 LIBS="$ac_save_LIBS"
9204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9207 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9208 cat >> confdefs.h <<EOF
9209 #define $ac_tr_lib 1
9215 echo "$ac_t""no" 1>&6
9218 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9219 echo "configure:9220: checking for socket in -linet" >&5
9220 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9221 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9222 echo $ac_n "(cached) $ac_c" 1>&6
9224 ac_save_LIBS="$LIBS"
9226 cat > conftest.$ac_ext <<EOF
9227 #line 9228 "configure"
9228 #include "confdefs.h"
9229 /* Override any gcc2 internal prototype to avoid an error. */
9230 /* We use char because int might match the return type of a gcc2
9231 builtin and then its argument prototype would still apply. */
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9240 eval "ac_cv_lib_$ac_lib_var=yes"
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9245 eval "ac_cv_lib_$ac_lib_var=no"
9248 LIBS="$ac_save_LIBS"
9251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9252 echo "$ac_t""yes" 1>&6
9253 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9255 cat >> confdefs.h <<EOF
9256 #define $ac_tr_lib 1
9262 echo "$ac_t""no" 1>&6
9265 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9266 echo "configure:9267: checking for main in -lgen" >&5
9267 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9268 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9271 ac_save_LIBS="$LIBS"
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9283 eval "ac_cv_lib_$ac_lib_var=yes"
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9288 eval "ac_cv_lib_$ac_lib_var=no"
9291 LIBS="$ac_save_LIBS"
9294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9295 echo "$ac_t""yes" 1>&6
9296 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9297 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9298 cat >> confdefs.h <<EOF
9299 #define $ac_tr_lib 1
9305 echo "$ac_t""no" 1>&6
9312 echo $ac_n "checking for select""... $ac_c" 1>&6
9313 echo "configure:9314: checking for select" >&5
9314 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9317 cat > conftest.$ac_ext <<EOF
9318 #line 9319 "configure"
9319 #include "confdefs.h"
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char select(); below. */
9323 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9331 /* The GNU C library defines this for functions which it implements
9332 to always fail with ENOSYS. Some functions are actually named
9333 something starting with __ and the normal name is an alias. */
9334 #if defined (__stub_select) || defined (__stub___select)
9342 if { (eval echo configure:9343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9344 eval "ac_cv_func_select=yes"
9346 echo "configure: failed program was:" >&5
9347 cat conftest.$ac_ext >&5
9349 eval "ac_cv_func_select=no"
9354 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9358 echo "$ac_t""no" 1>&6
9359 { echo "configure: error: select() required." 1>&2; exit 1; }
9363 if test "${ac_cv_header_winsock_h}" != yes; then
9364 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9365 echo "configure:9366: checking types of arguments for select()" >&5
9366 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9369 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9372 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9373 echo $ac_n "(cached) $ac_c" 1>&6
9375 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9376 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9377 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 #ifdef HAVE_SYS_TYPES_H
9382 #include <sys/types.h>
9384 #ifdef HAVE_SYS_TIME_H
9385 #include <sys/time.h>
9387 #ifdef HAVE_SYS_SELECT_H
9388 #include <sys/select.h>
9390 #ifdef HAVE_SYS_SOCKET_H
9391 #include <sys/socket.h>
9393 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);
9398 if { (eval echo configure:9399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9400 ac_not_found=no ; break 3
9402 echo "configure: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9417 if test "$ac_not_found" = yes; then
9418 ac_cv_func_select_arg1=int
9419 ac_cv_func_select_arg234='int *'
9420 ac_cv_func_select_arg5='struct timeval *'
9422 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9423 cat >> confdefs.h <<EOF
9424 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9427 cat >> confdefs.h <<EOF
9428 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9431 cat >> confdefs.h <<EOF
9432 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9439 for ac_hdr in regex.h
9441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9443 echo "configure:9444: checking for $ac_hdr" >&5
9444 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9445 echo $ac_n "(cached) $ac_c" 1>&6
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9453 { (eval echo configure:9454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9455 if test -z "$ac_err"; then
9457 eval "ac_cv_header_$ac_safe=yes"
9460 echo "configure: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9463 eval "ac_cv_header_$ac_safe=no"
9467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9468 echo "$ac_t""yes" 1>&6
9469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9470 cat >> confdefs.h <<EOF
9471 #define $ac_tr_hdr 1
9475 echo "$ac_t""no" 1>&6
9479 if test "$ac_cv_header_regex_h" != yes ; then
9480 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9483 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9484 echo "configure:9485: checking for library containing regfree" >&5
9485 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9486 echo $ac_n "(cached) $ac_c" 1>&6
9488 ac_func_search_save_LIBS="$LIBS"
9489 ac_cv_search_regfree="no"
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 /* Override any gcc2 internal prototype to avoid an error. */
9494 /* We use char because int might match the return type of a gcc2
9495 builtin and then its argument prototype would still apply. */
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9504 ac_cv_search_regfree="none required"
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9510 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9512 cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure"
9514 #include "confdefs.h"
9515 /* Override any gcc2 internal prototype to avoid an error. */
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9524 if { (eval echo configure:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9526 ac_cv_search_regfree="-l$ac_lib"
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9534 LIBS="$ac_func_search_save_LIBS"
9537 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9538 if test "$ac_cv_search_regfree" != "no"; then
9539 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9542 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9546 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9547 echo "configure:9548: checking for compatible POSIX regex" >&5
9548 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 if test "$cross_compiling" = yes; then
9553 ol_cv_c_posix_regex=cross
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #include <sys/types.h>
9561 static char *pattern, *string;
9569 if(regcomp(&re, pattern, 0)) {
9573 string = "ALL MATCH";
9575 rc = regexec(&re, string, 0, (void*)0, 0);
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9584 ol_cv_c_posix_regex=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9589 ol_cv_c_posix_regex=no
9596 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9598 if test "$ol_cv_c_posix_regex" = no ; then
9599 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9604 for ac_hdr in sys/uuid.h
9606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9608 echo "configure:9609: checking for $ac_hdr" >&5
9609 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9612 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure"
9614 #include "confdefs.h"
9617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9618 { (eval echo configure:9619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9620 if test -z "$ac_err"; then
9622 eval "ac_cv_header_$ac_safe=yes"
9625 echo "configure: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9628 eval "ac_cv_header_$ac_safe=no"
9632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9633 echo "$ac_t""yes" 1>&6
9634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9635 cat >> confdefs.h <<EOF
9636 #define $ac_tr_hdr 1
9640 echo "$ac_t""no" 1>&6
9644 if test $ac_cv_header_sys_uuid_h = yes ; then
9647 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9648 echo "configure:9649: checking for library containing uuid_to_str" >&5
9649 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9652 ac_func_search_save_LIBS="$LIBS"
9653 ac_cv_search_uuid_to_str="no"
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9666 if { (eval echo configure:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9668 ac_cv_search_uuid_to_str="none required"
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9674 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9679 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 ac_cv_search_uuid_to_str="-l$ac_lib"
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9698 LIBS="$ac_func_search_save_LIBS"
9701 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9702 if test "$ac_cv_search_uuid_to_str" != "no"; then
9703 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9710 if test have_uuid = yes ; then
9711 cat >> confdefs.h <<\EOF
9712 #define HAVE_UUID_TO_STR 1
9716 test "$ac_cv_search_uuid_to_str" = "none required" || \
9717 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9721 if test $have_uuid = no ; then
9722 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9723 echo "configure:9724: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9725 LIBS="$LIBS -lrpcrt4"
9726 cat > conftest.$ac_ext <<EOF
9727 #line 9728 "configure"
9728 #include "confdefs.h"
9730 int __stdcall UuidCreate(void *);
9731 int __stdcall UuidToStringA(void *,void **);
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9750 if test $need_rpcrt = yes; then
9751 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9754 echo "$ac_t""$need_rpcrt" 1>&6
9758 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9759 echo "configure:9760: checking for res_query" >&5
9760 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9763 cat > conftest.$ac_ext <<EOF
9764 #line 9765 "configure"
9765 #include "confdefs.h"
9766 /* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char res_query(); below. */
9769 /* Override any gcc2 internal prototype to avoid an error. */
9770 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9777 /* The GNU C library defines this for functions which it implements
9778 to always fail with ENOSYS. Some functions are actually named
9779 something starting with __ and the normal name is an alias. */
9780 #if defined (__stub_res_query) || defined (__stub___res_query)
9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9790 eval "ac_cv_func_res_query=yes"
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9795 eval "ac_cv_func_res_query=no"
9800 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9801 echo "$ac_t""yes" 1>&6
9804 echo "$ac_t""no" 1>&6
9807 if test $ac_cv_func_res_query = no ; then
9808 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9809 echo "configure:9810: checking for __res_query" >&5
9810 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char __res_query(); below. */
9819 /* Override any gcc2 internal prototype to avoid an error. */
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9827 /* The GNU C library defines this for functions which it implements
9828 to always fail with ENOSYS. Some functions are actually named
9829 something starting with __ and the normal name is an alias. */
9830 #if defined (__stub___res_query) || defined (__stub_____res_query)
9838 if { (eval echo configure:9839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9840 eval "ac_cv_func___res_query=yes"
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9845 eval "ac_cv_func___res_query=no"
9850 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9851 echo "$ac_t""yes" 1>&6
9854 echo "$ac_t""no" 1>&6
9857 ac_cv_func_res_query=$ac_cv_func___res_query
9860 if test $ac_cv_func_res_query = no ; then
9861 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9862 echo "configure:9863: checking for res_query in -lbind" >&5
9863 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9864 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 ac_save_LIBS="$LIBS"
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9881 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9883 eval "ac_cv_lib_$ac_lib_var=yes"
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9888 eval "ac_cv_lib_$ac_lib_var=no"
9891 LIBS="$ac_save_LIBS"
9894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9895 echo "$ac_t""yes" 1>&6
9896 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9897 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9898 cat >> confdefs.h <<EOF
9899 #define $ac_tr_lib 1
9905 echo "$ac_t""no" 1>&6
9908 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9911 if test $ac_cv_func_res_query = no ; then
9912 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9913 echo "configure:9914: checking for __res_query in -lbind" >&5
9914 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
9918 ac_save_LIBS="$LIBS"
9920 cat > conftest.$ac_ext <<EOF
9921 #line 9922 "configure"
9922 #include "confdefs.h"
9923 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9934 eval "ac_cv_lib_$ac_lib_var=yes"
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9939 eval "ac_cv_lib_$ac_lib_var=no"
9942 LIBS="$ac_save_LIBS"
9945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9946 echo "$ac_t""yes" 1>&6
9947 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9949 cat >> confdefs.h <<EOF
9950 #define $ac_tr_lib 1
9956 echo "$ac_t""no" 1>&6
9959 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9962 if test $ac_cv_func_res_query = no ; then
9963 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9964 echo "configure:9965: checking for res_query in -lresolv" >&5
9965 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9969 ac_save_LIBS="$LIBS"
9970 LIBS="-lresolv $LIBS"
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 /* Override any gcc2 internal prototype to avoid an error. */
9975 /* We use char because int might match the return type of a gcc2
9976 builtin and then its argument prototype would still apply. */
9983 if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9985 eval "ac_cv_lib_$ac_lib_var=yes"
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9990 eval "ac_cv_lib_$ac_lib_var=no"
9993 LIBS="$ac_save_LIBS"
9996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
9998 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9999 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10000 cat >> confdefs.h <<EOF
10001 #define $ac_tr_lib 1
10004 LIBS="-lresolv $LIBS"
10007 echo "$ac_t""no" 1>&6
10010 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10013 if test $ac_cv_func_res_query = no ; then
10014 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10015 echo "configure:10016: checking for __res_query in -lresolv" >&5
10016 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10020 ac_save_LIBS="$LIBS"
10021 LIBS="-lresolv $LIBS"
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10028 char __res_query();
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10036 eval "ac_cv_lib_$ac_lib_var=yes"
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10041 eval "ac_cv_lib_$ac_lib_var=no"
10044 LIBS="$ac_save_LIBS"
10047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
10049 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10051 cat >> confdefs.h <<EOF
10052 #define $ac_tr_lib 1
10055 LIBS="-lresolv $LIBS"
10058 echo "$ac_t""no" 1>&6
10061 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10064 if test "$ac_cv_func_res_query" = yes ; then
10065 cat >> confdefs.h <<\EOF
10066 #define HAVE_RES_QUERY 1
10070 if test $ol_enable_dnssrv != no ; then
10075 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10076 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10079 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10082 echo "configure:10083: checking for $ac_func" >&5
10083 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10086 cat > conftest.$ac_ext <<EOF
10087 #line 10088 "configure"
10088 #include "confdefs.h"
10089 /* System header to define __stub macros and hopefully few prototypes,
10090 which can conflict with char $ac_func(); below. */
10091 #include <assert.h>
10092 /* Override any gcc2 internal prototype to avoid an error. */
10093 /* We use char because int might match the return type of a gcc2
10094 builtin and then its argument prototype would still apply. */
10100 /* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_func_$ac_func=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_func_$ac_func=no"
10123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10126 cat >> confdefs.h <<EOF
10127 #define $ac_tr_func 1
10131 echo "$ac_t""no" 1>&6
10137 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10138 if test $ol_enable_ipv6 = yes ; then
10139 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10141 elif test $ol_enable_ipv6 != no ; then
10142 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10143 echo "configure:10144: checking INET6_ADDRSTRLEN" >&5
10144 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10145 echo $ac_n "(cached) $ac_c" 1>&6
10148 cat > conftest.$ac_ext <<EOF
10149 #line 10150 "configure"
10150 #include "confdefs.h"
10152 # include <netinet/in.h>
10153 # ifdef INET6_ADDRSTRLEN
10154 __has_inet6_addrstrlen__;
10158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10159 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10161 ol_cv_inet6_addrstrlen=yes
10164 ol_cv_inet6_addrstrlen=no
10170 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10173 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10174 echo "configure:10175: checking struct sockaddr_storage" >&5
10175 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10183 #include <sys/types.h>
10184 #include <sys/socket.h>
10188 struct sockaddr_storage ss;
10192 if { (eval echo configure:10193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10194 ol_cv_struct_sockaddr_storage=yes
10196 echo "configure: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10199 ol_cv_struct_sockaddr_storage=no
10204 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10206 if test $ol_cv_inet6_addrstrlen = yes \
10207 -a $ol_cv_struct_sockaddr_storage = yes ; then
10209 elif test $ol_enable_ipv6 = yes \
10210 -a $ol_cv_inet6_addrstrlen = no ; then
10211 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10212 elif test $ol_enable_ipv6 = yes \
10213 -a $ol_cv_struct_sockaddr_storage = no ; then
10214 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10218 if test $ol_enable_local != no ; then
10219 for ac_hdr in sys/un.h
10221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10223 echo "configure:10224: checking for $ac_hdr" >&5
10224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10233 { (eval echo configure:10234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10235 if test -z "$ac_err"; then
10237 eval "ac_cv_header_$ac_safe=yes"
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10243 eval "ac_cv_header_$ac_safe=no"
10247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10248 echo "$ac_t""yes" 1>&6
10249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10250 cat >> confdefs.h <<EOF
10251 #define $ac_tr_hdr 1
10255 echo "$ac_t""no" 1>&6
10260 if test $ol_enable_local = auto ; then
10261 ol_enable_local=$ac_cv_header_sys_un_h
10262 elif test $ac_cv_header_sys_un_h = no ; then
10263 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10271 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10272 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10273 -o $ol_with_kerberos = k425 ; then
10275 for ac_hdr in krb5.h
10277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10279 echo "configure:10280: checking for $ac_hdr" >&5
10280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10289 { (eval echo configure:10290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10291 if test -z "$ac_err"; then
10293 eval "ac_cv_header_$ac_safe=yes"
10296 echo "configure: failed program was:" >&5
10297 cat conftest.$ac_ext >&5
10299 eval "ac_cv_header_$ac_safe=no"
10303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10304 echo "$ac_t""yes" 1>&6
10305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10306 cat >> confdefs.h <<EOF
10307 #define $ac_tr_hdr 1
10311 echo "$ac_t""no" 1>&6
10316 if test $ac_cv_header_krb5_h = yes ; then
10317 for ac_hdr in heim_err.h
10319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10321 echo "configure:10322: checking for $ac_hdr" >&5
10322 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10331 { (eval echo configure:10332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10333 if test -z "$ac_err"; then
10335 eval "ac_cv_header_$ac_safe=yes"
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 eval "ac_cv_header_$ac_safe=no"
10345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10346 echo "$ac_t""yes" 1>&6
10347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10348 cat >> confdefs.h <<EOF
10349 #define $ac_tr_hdr 1
10353 echo "$ac_t""no" 1>&6
10357 if test $ac_cv_header_heim_err_h = yes ; then
10363 if test $krb5_impl = mit; then
10364 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10365 echo "configure:10366: checking for main in -lk5crypto" >&5
10366 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10370 ac_save_LIBS="$LIBS"
10371 LIBS="-lk5crypto $LIBS"
10372 cat > conftest.$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10380 if { (eval echo configure:10381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10382 eval "ac_cv_lib_$ac_lib_var=yes"
10384 echo "configure: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10387 eval "ac_cv_lib_$ac_lib_var=no"
10390 LIBS="$ac_save_LIBS"
10393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10394 echo "$ac_t""yes" 1>&6
10395 krb5crypto=k5crypto
10397 echo "$ac_t""no" 1>&6
10402 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10403 echo "configure:10404: checking for main in -lkrb5" >&5
10404 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10405 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10408 ac_save_LIBS="$LIBS"
10409 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10418 if { (eval echo configure:10419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 eval "ac_cv_lib_$ac_lib_var=yes"
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10425 eval "ac_cv_lib_$ac_lib_var=no"
10428 LIBS="$ac_save_LIBS"
10431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10432 echo "$ac_t""yes" 1>&6
10434 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10436 echo "$ac_t""no" 1>&6
10441 elif test $krb5_impl = heimdal; then
10442 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10443 echo "configure:10444: checking for main in -ldes" >&5
10444 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10445 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10448 ac_save_LIBS="$LIBS"
10450 cat > conftest.$ac_ext <<EOF
10451 #line 10452 "configure"
10452 #include "confdefs.h"
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10460 eval "ac_cv_lib_$ac_lib_var=yes"
10462 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5
10465 eval "ac_cv_lib_$ac_lib_var=no"
10468 LIBS="$ac_save_LIBS"
10471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10472 echo "$ac_t""yes" 1>&6
10475 echo "$ac_t""no" 1>&6
10480 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10481 echo "configure:10482: checking for main in -lkrb5" >&5
10482 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10483 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10486 ac_save_LIBS="$LIBS"
10487 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10488 cat > conftest.$ac_ext <<EOF
10489 #line 10490 "configure"
10490 #include "confdefs.h"
10496 if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10498 eval "ac_cv_lib_$ac_lib_var=yes"
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 eval "ac_cv_lib_$ac_lib_var=no"
10506 LIBS="$ac_save_LIBS"
10509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10510 echo "$ac_t""yes" 1>&6
10512 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10514 echo "$ac_t""no" 1>&6
10519 cat >> confdefs.h <<\EOF
10520 #define HAVE_HEIMDAL_KERBEROS 1
10526 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10529 if test $have_krb5 = yes ; then
10532 cat >> confdefs.h <<\EOF
10533 #define HAVE_KRB5 1
10537 if test $ol_with_kerberos = k5only ; then
10538 ol_with_kerberos=found
10541 elif test $ol_with_kerberos != auto ; then
10542 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10548 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10549 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10551 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10555 echo "configure:10556: checking for $ac_hdr" >&5
10556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10559 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure"
10561 #include "confdefs.h"
10564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10565 { (eval echo configure:10566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10567 if test -z "$ac_err"; then
10569 eval "ac_cv_header_$ac_safe=yes"
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10575 eval "ac_cv_header_$ac_safe=no"
10579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10580 echo "$ac_t""yes" 1>&6
10581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10582 cat >> confdefs.h <<EOF
10583 #define $ac_tr_hdr 1
10587 echo "$ac_t""no" 1>&6
10592 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10593 if test $krb5_impl = mit; then
10594 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10595 echo "configure:10596: checking for main in -lkrb4" >&5
10596 ac_lib_var=`echo krb4'_'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="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $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
10626 KRB4_LIBS="-lkrb4 -ldes425"
10628 echo "$ac_t""no" 1>&6
10633 elif test $krb5_impl = heimdal; then
10634 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10635 echo "configure:10636: checking for main in -lkrb4" >&5
10636 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10637 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10640 ac_save_LIBS="$LIBS"
10641 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10642 cat > conftest.$ac_ext <<EOF
10643 #line 10644 "configure"
10644 #include "confdefs.h"
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_lib_$ac_lib_var=no"
10660 LIBS="$ac_save_LIBS"
10663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10668 echo "$ac_t""no" 1>&6
10675 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10678 if test $have_k425 = yes ; then
10679 ol_with_kerberos=found
10682 cat >> confdefs.h <<\EOF
10683 #define HAVE_KRB425 1
10686 cat >> confdefs.h <<\EOF
10687 #define HAVE_KRB4 1
10691 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10692 echo "configure:10693: checking for des_debug in Kerberos libraries" >&5
10693 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10698 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10703 #include <kerberosIV/krb.h>
10704 #include <kerberosIV/des.h>
10705 extern int des_debug;
10713 if { (eval echo configure:10714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10715 ol_cv_var_des_debug=yes
10717 echo "configure: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10720 ol_cv_var_des_debug=no
10727 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10729 if test $ol_cv_var_des_debug = yes ; then
10730 cat >> confdefs.h <<\EOF
10731 #define HAVE_DES_DEBUG 1
10741 if test $ol_link_krb5 = yes ; then
10742 ol_with_kerberos=found
10745 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10746 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10748 for ac_hdr in krb.h des.h krb-archaeology.h
10750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10752 echo "configure:10753: checking for $ac_hdr" >&5
10753 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10756 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10762 { (eval echo configure:10763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10764 if test -z "$ac_err"; then
10766 eval "ac_cv_header_$ac_safe=yes"
10769 echo "configure: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10772 eval "ac_cv_header_$ac_safe=no"
10776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10779 cat >> confdefs.h <<EOF
10780 #define $ac_tr_hdr 1
10784 echo "$ac_t""no" 1>&6
10789 if test $ac_cv_header_krb_h = yes ; then
10790 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10791 echo "configure:10792: checking for main in -lkrb" >&5
10792 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10793 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10796 ac_save_LIBS="$LIBS"
10797 LIBS="-lkrb -ldes $LIBS"
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 eval "ac_cv_lib_$ac_lib_var=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_lib_$ac_lib_var=no"
10816 LIBS="$ac_save_LIBS"
10819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10820 echo "$ac_t""yes" 1>&6
10823 echo "$ac_t""no" 1>&6
10828 if test $have_k4 = yes ; then
10829 ol_with_kerberos=found
10832 cat >> confdefs.h <<\EOF
10833 #define HAVE_KRB4 1
10837 KRB4_LIBS="-lkrb -ldes"
10839 if test $ac_cv_header_krb_archaeology_h = yes ; then
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_KTH_KERBEROS 1
10849 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10852 elif test $ol_enable_kbind = yes ; then
10853 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10856 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10857 cat >> confdefs.h <<\EOF
10858 #define HAVE_KERBEROS 1
10862 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10863 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10867 if test $ol_with_tls != no ; then
10868 for ac_hdr in openssl/ssl.h ssl.h
10870 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10872 echo "configure:10873: checking for $ac_hdr" >&5
10873 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10882 { (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10884 if test -z "$ac_err"; then
10886 eval "ac_cv_header_$ac_safe=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 eval "ac_cv_header_$ac_safe=no"
10896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10899 cat >> confdefs.h <<EOF
10900 #define $ac_tr_hdr 1
10904 echo "$ac_t""no" 1>&6
10909 if test $ac_cv_header_openssl_ssl_h = yes \
10910 -o $ac_cv_header_ssl_h = yes ; then
10911 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10912 echo "configure:10913: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10913 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10914 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10917 ac_save_LIBS="$LIBS"
10918 LIBS="-lssl -lcrypto $LIBS"
10919 cat > conftest.$ac_ext <<EOF
10920 #line 10921 "configure"
10921 #include "confdefs.h"
10922 /* Override any gcc2 internal prototype to avoid an error. */
10923 /* We use char because int might match the return type of a gcc2
10924 builtin and then its argument prototype would still apply. */
10925 char SSLeay_add_ssl_algorithms();
10928 SSLeay_add_ssl_algorithms()
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10933 eval "ac_cv_lib_$ac_lib_var=yes"
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10938 eval "ac_cv_lib_$ac_lib_var=no"
10941 LIBS="$ac_save_LIBS"
10944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10949 echo "$ac_t""no" 1>&6
10954 if test $have_ssleay = no ; then
10955 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10956 echo "configure:10957: checking for SSL_library_init in -lssl" >&5
10957 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10958 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10961 ac_save_LIBS="$LIBS"
10962 LIBS="-lssl -lcrypto $LIBS"
10963 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure"
10965 #include "confdefs.h"
10966 /* Override any gcc2 internal prototype to avoid an error. */
10967 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */
10969 char SSL_library_init();
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10977 eval "ac_cv_lib_$ac_lib_var=yes"
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10982 eval "ac_cv_lib_$ac_lib_var=no"
10985 LIBS="$ac_save_LIBS"
10988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10989 echo "$ac_t""yes" 1>&6
10993 echo "$ac_t""no" 1>&6
10999 if test $have_ssleay = no ; then
11000 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11001 echo "configure:11002: checking for ssl3_accept in -lssl" >&5
11002 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11003 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11004 echo $ac_n "(cached) $ac_c" 1>&6
11006 ac_save_LIBS="$LIBS"
11007 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11008 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure"
11010 #include "confdefs.h"
11011 /* Override any gcc2 internal prototype to avoid an error. */
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11014 char ssl3_accept();
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11022 eval "ac_cv_lib_$ac_lib_var=yes"
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11027 eval "ac_cv_lib_$ac_lib_var=no"
11030 LIBS="$ac_save_LIBS"
11033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11034 echo "$ac_t""yes" 1>&6
11038 echo "$ac_t""no" 1>&6
11044 if test $have_ssleay = yes ; then
11048 cat >> confdefs.h <<\EOF
11049 #define HAVE_SSLEAY 1
11053 if test $need_rsaref = yes; then
11054 cat >> confdefs.h <<\EOF
11055 #define HAVE_RSAREF 1
11059 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11061 TLS_LIBS="-lssl -lcrypto"
11067 echo "configure: warning: TLS data protection not supported!" 1>&2
11071 if test $ol_link_tls = yes ; then
11072 cat >> confdefs.h <<\EOF
11078 elif test $ol_with_tls = auto ; then
11079 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11080 echo "configure: warning: TLS data protection not supported!" 1>&2
11082 elif test $ol_with_tls != no ; then
11083 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11086 if test $ol_enable_lmpasswd != no; then
11087 if test $ol_link_tls != yes ; then
11088 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11091 cat >> confdefs.h <<\EOF
11092 #define SLAPD_LMHASH 1
11099 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11100 -o $ol_with_threads = nt ; then
11103 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11104 echo "configure:11105: checking for _beginthread" >&5
11105 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11106 echo $ac_n "(cached) $ac_c" 1>&6
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char _beginthread(); below. */
11113 #include <assert.h>
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char _beginthread();
11122 /* The GNU C library defines this for functions which it implements
11123 to always fail with ENOSYS. Some functions are actually named
11124 something starting with __ and the normal name is an alias. */
11125 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11133 if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11135 eval "ac_cv_func__beginthread=yes"
11137 echo "configure: failed program was:" >&5
11138 cat conftest.$ac_ext >&5
11140 eval "ac_cv_func__beginthread=no"
11145 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11146 echo "$ac_t""yes" 1>&6
11149 echo "$ac_t""no" 1>&6
11153 if test $ac_cv_func__beginthread = yes ; then
11154 cat >> confdefs.h <<\EOF
11155 #define HAVE_NT_THREADS 1
11158 ol_cv_nt_threads=yes
11162 if test "$ol_cv_nt_threads" = yes ; then
11164 ol_with_threads=found
11165 ol_with_yielding_select=yes
11167 cat >> confdefs.h <<\EOF
11168 #define HAVE_NT_SERVICE_MANAGER 1
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_NT_EVENT_LOG 1
11177 if test $ol_with_threads = nt ; then
11178 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11182 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11183 -o $ol_with_threads = posix ; then
11185 for ac_hdr in pthread.h
11187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11189 echo "configure:11190: checking for $ac_hdr" >&5
11190 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11191 echo $ac_n "(cached) $ac_c" 1>&6
11193 cat > conftest.$ac_ext <<EOF
11194 #line 11195 "configure"
11195 #include "confdefs.h"
11198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11199 { (eval echo configure:11200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11201 if test -z "$ac_err"; then
11203 eval "ac_cv_header_$ac_safe=yes"
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 eval "ac_cv_header_$ac_safe=no"
11213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11214 echo "$ac_t""yes" 1>&6
11215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11216 cat >> confdefs.h <<EOF
11217 #define $ac_tr_hdr 1
11221 echo "$ac_t""no" 1>&6
11226 if test $ac_cv_header_pthread_h = yes ; then
11227 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11228 echo "configure:11229: checking POSIX thread version" >&5
11229 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11230 echo $ac_n "(cached) $ac_c" 1>&6
11233 cat > conftest.$ac_ext <<EOF
11234 #line 11235 "configure"
11235 #include "confdefs.h"
11237 # include <pthread.h>
11241 int i = PTHREAD_CREATE_JOINABLE;
11245 if { (eval echo configure:11246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11248 cat > conftest.$ac_ext <<EOF
11249 #line 11250 "configure"
11250 #include "confdefs.h"
11251 #include <pthread.h>
11253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254 egrep "pthread_detach" >/dev/null 2>&1; then
11256 ol_cv_pthread_version=10
11259 ol_cv_pthread_version=8
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11272 # include <pthread.h>
11273 # ifdef PTHREAD_CREATE_UNDETACHED
11278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11279 egrep "draft7" >/dev/null 2>&1; then
11281 ol_cv_pthread_version=7
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 #include <pthread.h>
11290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11291 egrep "pthread_attr_init" >/dev/null 2>&1; then
11293 ol_cv_pthread_version=6
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11301 # include <pthread.h>
11302 #ifdef PTHREAD_MUTEX_INITIALIZER
11307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308 egrep "draft5" >/dev/null 2>&1; then
11310 ol_cv_pthread_version=5
11313 ol_cv_pthread_version=4
11328 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11331 if test $ol_cv_pthread_version != 0 ; then
11332 cat >> confdefs.h <<EOF
11333 #define HAVE_PTHREADS $ol_cv_pthread_version
11337 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11340 # consider threads found
11341 ol_with_threads=found
11344 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11345 echo "configure:11346: checking for LinuxThreads pthread.h" >&5
11346 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352 #include <pthread.h>
11354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11355 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11357 ol_cv_header_linux_threads=yes
11360 ol_cv_header_linux_threads=no
11367 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11368 if test $ol_cv_header_linux_threads = yes; then
11369 cat >> confdefs.h <<\EOF
11370 #define HAVE_LINUX_THREADS 1
11376 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11377 echo "configure:11378: checking for GNU Pth pthread.h" >&5
11378 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include <pthread.h>
11385 #ifdef _POSIX_THREAD_IS_GNU_PTH
11390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11391 egrep "__gnu_pth__" >/dev/null 2>&1; then
11393 ol_cv_header_gnu_pth_pthread_h=yes
11396 ol_cv_header_gnu_pth_pthread_h=no
11403 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11406 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11407 for ac_hdr in sched.h
11409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11411 echo "configure:11412: checking for $ac_hdr" >&5
11412 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
11415 cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11421 { (eval echo configure:11422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11423 if test -z "$ac_err"; then
11425 eval "ac_cv_header_$ac_safe=yes"
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11431 eval "ac_cv_header_$ac_safe=no"
11435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11436 echo "$ac_t""yes" 1>&6
11437 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11438 cat >> confdefs.h <<EOF
11439 #define $ac_tr_hdr 1
11443 echo "$ac_t""no" 1>&6
11450 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11451 echo "configure:11452: checking for pthread_create in default libraries" >&5
11452 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11453 echo $ac_n "(cached) $ac_c" 1>&6
11456 if test "$cross_compiling" = yes; then
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 /* pthread test headers */
11461 #include <pthread.h>
11462 #if HAVE_PTHREADS < 7
11466 #define NULL (void*)0
11469 static void *task(p)
11472 return (void *) (p == NULL);
11477 /* pthread test function */
11478 #ifndef PTHREAD_CREATE_DETACHED
11479 #define PTHREAD_CREATE_DETACHED 1
11483 int detach = PTHREAD_CREATE_DETACHED;
11485 #if HAVE_PTHREADS > 4
11486 /* Final pthreads */
11487 pthread_attr_t attr;
11489 status = pthread_attr_init(&attr);
11490 if( status ) return status;
11492 #if HAVE_PTHREADS < 7
11493 status = pthread_attr_setdetachstate(&attr, &detach);
11494 if( status < 0 ) status = errno;
11496 status = pthread_attr_setdetachstate(&attr, detach);
11498 if( status ) return status;
11499 status = pthread_create( &t, &attr, task, NULL );
11500 #if HAVE_PTHREADS < 7
11501 if( status < 0 ) status = errno;
11503 if( status ) return status;
11505 /* Draft 4 pthreads */
11506 status = pthread_create( &t, pthread_attr_default, task, NULL );
11507 if( status ) return errno;
11509 /* give thread a chance to complete */
11510 /* it should remain joinable and hence detachable */
11513 status = pthread_detach( &t );
11514 if( status ) return errno;
11517 #ifdef HAVE_LINUX_THREADS
11518 pthread_kill_other_threads_np();
11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 ol_cv_pthread_create=yes
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11532 ol_cv_pthread_create=no
11536 cat > conftest.$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11539 /* pthread test headers */
11540 #include <pthread.h>
11541 #if HAVE_PTHREADS < 7
11545 #define NULL (void*)0
11548 static void *task(p)
11551 return (void *) (p == NULL);
11555 int main(argc, argv)
11560 /* pthread test function */
11561 #ifndef PTHREAD_CREATE_DETACHED
11562 #define PTHREAD_CREATE_DETACHED 1
11566 int detach = PTHREAD_CREATE_DETACHED;
11568 #if HAVE_PTHREADS > 4
11569 /* Final pthreads */
11570 pthread_attr_t attr;
11572 status = pthread_attr_init(&attr);
11573 if( status ) return status;
11575 #if HAVE_PTHREADS < 7
11576 status = pthread_attr_setdetachstate(&attr, &detach);
11577 if( status < 0 ) status = errno;
11579 status = pthread_attr_setdetachstate(&attr, detach);
11581 if( status ) return status;
11582 status = pthread_create( &t, &attr, task, NULL );
11583 #if HAVE_PTHREADS < 7
11584 if( status < 0 ) status = errno;
11586 if( status ) return status;
11588 /* Draft 4 pthreads */
11589 status = pthread_create( &t, pthread_attr_default, task, NULL );
11590 if( status ) return errno;
11592 /* give thread a chance to complete */
11593 /* it should remain joinable and hence detachable */
11596 status = pthread_detach( &t );
11597 if( status ) return errno;
11600 #ifdef HAVE_LINUX_THREADS
11601 pthread_kill_other_threads_np();
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11611 ol_cv_pthread_create=yes
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11616 ol_cv_pthread_create=no
11623 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11625 if test $ol_cv_pthread_create != no ; then
11626 ol_link_threads=posix
11627 ol_link_pthreads=""
11630 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11631 if test "$ol_link_threads" = no ; then
11633 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11634 echo "configure:11635: checking for pthread link with -kthread" >&5
11635 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11641 LIBS="-kthread $LIBS"
11643 if test "$cross_compiling" = yes; then
11644 cat > conftest.$ac_ext <<EOF
11645 #line 11646 "configure"
11646 #include "confdefs.h"
11647 /* pthread test headers */
11648 #include <pthread.h>
11649 #if HAVE_PTHREADS < 7
11653 #define NULL (void*)0
11656 static void *task(p)
11659 return (void *) (p == NULL);
11664 /* pthread test function */
11665 #ifndef PTHREAD_CREATE_DETACHED
11666 #define PTHREAD_CREATE_DETACHED 1
11670 int detach = PTHREAD_CREATE_DETACHED;
11672 #if HAVE_PTHREADS > 4
11673 /* Final pthreads */
11674 pthread_attr_t attr;
11676 status = pthread_attr_init(&attr);
11677 if( status ) return status;
11679 #if HAVE_PTHREADS < 7
11680 status = pthread_attr_setdetachstate(&attr, &detach);
11681 if( status < 0 ) status = errno;
11683 status = pthread_attr_setdetachstate(&attr, detach);
11685 if( status ) return status;
11686 status = pthread_create( &t, &attr, task, NULL );
11687 #if HAVE_PTHREADS < 7
11688 if( status < 0 ) status = errno;
11690 if( status ) return status;
11692 /* Draft 4 pthreads */
11693 status = pthread_create( &t, pthread_attr_default, task, NULL );
11694 if( status ) return errno;
11696 /* give thread a chance to complete */
11697 /* it should remain joinable and hence detachable */
11700 status = pthread_detach( &t );
11701 if( status ) return errno;
11704 #ifdef HAVE_LINUX_THREADS
11705 pthread_kill_other_threads_np();
11712 if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11714 ol_cv_pthread_kthread=yes
11716 echo "configure: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11719 ol_cv_pthread_kthread=no
11723 cat > conftest.$ac_ext <<EOF
11724 #line 11725 "configure"
11725 #include "confdefs.h"
11726 /* pthread test headers */
11727 #include <pthread.h>
11728 #if HAVE_PTHREADS < 7
11732 #define NULL (void*)0
11735 static void *task(p)
11738 return (void *) (p == NULL);
11742 int main(argc, argv)
11747 /* pthread test function */
11748 #ifndef PTHREAD_CREATE_DETACHED
11749 #define PTHREAD_CREATE_DETACHED 1
11753 int detach = PTHREAD_CREATE_DETACHED;
11755 #if HAVE_PTHREADS > 4
11756 /* Final pthreads */
11757 pthread_attr_t attr;
11759 status = pthread_attr_init(&attr);
11760 if( status ) return status;
11762 #if HAVE_PTHREADS < 7
11763 status = pthread_attr_setdetachstate(&attr, &detach);
11764 if( status < 0 ) status = errno;
11766 status = pthread_attr_setdetachstate(&attr, detach);
11768 if( status ) return status;
11769 status = pthread_create( &t, &attr, task, NULL );
11770 #if HAVE_PTHREADS < 7
11771 if( status < 0 ) status = errno;
11773 if( status ) return status;
11775 /* Draft 4 pthreads */
11776 status = pthread_create( &t, pthread_attr_default, task, NULL );
11777 if( status ) return errno;
11779 /* give thread a chance to complete */
11780 /* it should remain joinable and hence detachable */
11783 status = pthread_detach( &t );
11784 if( status ) return errno;
11787 #ifdef HAVE_LINUX_THREADS
11788 pthread_kill_other_threads_np();
11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11798 ol_cv_pthread_kthread=yes
11800 echo "configure: failed program was:" >&5
11801 cat conftest.$ac_ext >&5
11803 ol_cv_pthread_kthread=no
11814 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11816 if test $ol_cv_pthread_kthread = yes ; then
11817 ol_link_pthreads="-kthread"
11818 ol_link_threads=posix
11822 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11823 if test "$ol_link_threads" = no ; then
11825 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11826 echo "configure:11827: checking for pthread link with -pthread" >&5
11827 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11833 LIBS="-pthread $LIBS"
11835 if test "$cross_compiling" = yes; then
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11839 /* pthread test headers */
11840 #include <pthread.h>
11841 #if HAVE_PTHREADS < 7
11845 #define NULL (void*)0
11848 static void *task(p)
11851 return (void *) (p == NULL);
11856 /* pthread test function */
11857 #ifndef PTHREAD_CREATE_DETACHED
11858 #define PTHREAD_CREATE_DETACHED 1
11862 int detach = PTHREAD_CREATE_DETACHED;
11864 #if HAVE_PTHREADS > 4
11865 /* Final pthreads */
11866 pthread_attr_t attr;
11868 status = pthread_attr_init(&attr);
11869 if( status ) return status;
11871 #if HAVE_PTHREADS < 7
11872 status = pthread_attr_setdetachstate(&attr, &detach);
11873 if( status < 0 ) status = errno;
11875 status = pthread_attr_setdetachstate(&attr, detach);
11877 if( status ) return status;
11878 status = pthread_create( &t, &attr, task, NULL );
11879 #if HAVE_PTHREADS < 7
11880 if( status < 0 ) status = errno;
11882 if( status ) return status;
11884 /* Draft 4 pthreads */
11885 status = pthread_create( &t, pthread_attr_default, task, NULL );
11886 if( status ) return errno;
11888 /* give thread a chance to complete */
11889 /* it should remain joinable and hence detachable */
11892 status = pthread_detach( &t );
11893 if( status ) return errno;
11896 #ifdef HAVE_LINUX_THREADS
11897 pthread_kill_other_threads_np();
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906 ol_cv_pthread_pthread=yes
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11911 ol_cv_pthread_pthread=no
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 /* pthread test headers */
11919 #include <pthread.h>
11920 #if HAVE_PTHREADS < 7
11924 #define NULL (void*)0
11927 static void *task(p)
11930 return (void *) (p == NULL);
11934 int main(argc, argv)
11939 /* pthread test function */
11940 #ifndef PTHREAD_CREATE_DETACHED
11941 #define PTHREAD_CREATE_DETACHED 1
11945 int detach = PTHREAD_CREATE_DETACHED;
11947 #if HAVE_PTHREADS > 4
11948 /* Final pthreads */
11949 pthread_attr_t attr;
11951 status = pthread_attr_init(&attr);
11952 if( status ) return status;
11954 #if HAVE_PTHREADS < 7
11955 status = pthread_attr_setdetachstate(&attr, &detach);
11956 if( status < 0 ) status = errno;
11958 status = pthread_attr_setdetachstate(&attr, detach);
11960 if( status ) return status;
11961 status = pthread_create( &t, &attr, task, NULL );
11962 #if HAVE_PTHREADS < 7
11963 if( status < 0 ) status = errno;
11965 if( status ) return status;
11967 /* Draft 4 pthreads */
11968 status = pthread_create( &t, pthread_attr_default, task, NULL );
11969 if( status ) return errno;
11971 /* give thread a chance to complete */
11972 /* it should remain joinable and hence detachable */
11975 status = pthread_detach( &t );
11976 if( status ) return errno;
11979 #ifdef HAVE_LINUX_THREADS
11980 pthread_kill_other_threads_np();
11988 if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11990 ol_cv_pthread_pthread=yes
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11995 ol_cv_pthread_pthread=no
12006 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12008 if test $ol_cv_pthread_pthread = yes ; then
12009 ol_link_pthreads="-pthread"
12010 ol_link_threads=posix
12014 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12015 if test "$ol_link_threads" = no ; then
12017 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12018 echo "configure:12019: checking for pthread link with -pthreads" >&5
12019 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12025 LIBS="-pthreads $LIBS"
12027 if test "$cross_compiling" = yes; then
12028 cat > conftest.$ac_ext <<EOF
12029 #line 12030 "configure"
12030 #include "confdefs.h"
12031 /* pthread test headers */
12032 #include <pthread.h>
12033 #if HAVE_PTHREADS < 7
12037 #define NULL (void*)0
12040 static void *task(p)
12043 return (void *) (p == NULL);
12048 /* pthread test function */
12049 #ifndef PTHREAD_CREATE_DETACHED
12050 #define PTHREAD_CREATE_DETACHED 1
12054 int detach = PTHREAD_CREATE_DETACHED;
12056 #if HAVE_PTHREADS > 4
12057 /* Final pthreads */
12058 pthread_attr_t attr;
12060 status = pthread_attr_init(&attr);
12061 if( status ) return status;
12063 #if HAVE_PTHREADS < 7
12064 status = pthread_attr_setdetachstate(&attr, &detach);
12065 if( status < 0 ) status = errno;
12067 status = pthread_attr_setdetachstate(&attr, detach);
12069 if( status ) return status;
12070 status = pthread_create( &t, &attr, task, NULL );
12071 #if HAVE_PTHREADS < 7
12072 if( status < 0 ) status = errno;
12074 if( status ) return status;
12076 /* Draft 4 pthreads */
12077 status = pthread_create( &t, pthread_attr_default, task, NULL );
12078 if( status ) return errno;
12080 /* give thread a chance to complete */
12081 /* it should remain joinable and hence detachable */
12084 status = pthread_detach( &t );
12085 if( status ) return errno;
12088 #ifdef HAVE_LINUX_THREADS
12089 pthread_kill_other_threads_np();
12096 if { (eval echo configure:12097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12098 ol_cv_pthread_pthreads=yes
12100 echo "configure: failed program was:" >&5
12101 cat conftest.$ac_ext >&5
12103 ol_cv_pthread_pthreads=no
12107 cat > conftest.$ac_ext <<EOF
12108 #line 12109 "configure"
12109 #include "confdefs.h"
12110 /* pthread test headers */
12111 #include <pthread.h>
12112 #if HAVE_PTHREADS < 7
12116 #define NULL (void*)0
12119 static void *task(p)
12122 return (void *) (p == NULL);
12126 int main(argc, argv)
12131 /* pthread test function */
12132 #ifndef PTHREAD_CREATE_DETACHED
12133 #define PTHREAD_CREATE_DETACHED 1
12137 int detach = PTHREAD_CREATE_DETACHED;
12139 #if HAVE_PTHREADS > 4
12140 /* Final pthreads */
12141 pthread_attr_t attr;
12143 status = pthread_attr_init(&attr);
12144 if( status ) return status;
12146 #if HAVE_PTHREADS < 7
12147 status = pthread_attr_setdetachstate(&attr, &detach);
12148 if( status < 0 ) status = errno;
12150 status = pthread_attr_setdetachstate(&attr, detach);
12152 if( status ) return status;
12153 status = pthread_create( &t, &attr, task, NULL );
12154 #if HAVE_PTHREADS < 7
12155 if( status < 0 ) status = errno;
12157 if( status ) return status;
12159 /* Draft 4 pthreads */
12160 status = pthread_create( &t, pthread_attr_default, task, NULL );
12161 if( status ) return errno;
12163 /* give thread a chance to complete */
12164 /* it should remain joinable and hence detachable */
12167 status = pthread_detach( &t );
12168 if( status ) return errno;
12171 #ifdef HAVE_LINUX_THREADS
12172 pthread_kill_other_threads_np();
12180 if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12182 ol_cv_pthread_pthreads=yes
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12187 ol_cv_pthread_pthreads=no
12198 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12200 if test $ol_cv_pthread_pthreads = yes ; then
12201 ol_link_pthreads="-pthreads"
12202 ol_link_threads=posix
12206 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12207 if test "$ol_link_threads" = no ; then
12209 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12210 echo "configure:12211: checking for pthread link with -mthreads" >&5
12211 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12217 LIBS="-mthreads $LIBS"
12219 if test "$cross_compiling" = yes; then
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12223 /* pthread test headers */
12224 #include <pthread.h>
12225 #if HAVE_PTHREADS < 7
12229 #define NULL (void*)0
12232 static void *task(p)
12235 return (void *) (p == NULL);
12240 /* pthread test function */
12241 #ifndef PTHREAD_CREATE_DETACHED
12242 #define PTHREAD_CREATE_DETACHED 1
12246 int detach = PTHREAD_CREATE_DETACHED;
12248 #if HAVE_PTHREADS > 4
12249 /* Final pthreads */
12250 pthread_attr_t attr;
12252 status = pthread_attr_init(&attr);
12253 if( status ) return status;
12255 #if HAVE_PTHREADS < 7
12256 status = pthread_attr_setdetachstate(&attr, &detach);
12257 if( status < 0 ) status = errno;
12259 status = pthread_attr_setdetachstate(&attr, detach);
12261 if( status ) return status;
12262 status = pthread_create( &t, &attr, task, NULL );
12263 #if HAVE_PTHREADS < 7
12264 if( status < 0 ) status = errno;
12266 if( status ) return status;
12268 /* Draft 4 pthreads */
12269 status = pthread_create( &t, pthread_attr_default, task, NULL );
12270 if( status ) return errno;
12272 /* give thread a chance to complete */
12273 /* it should remain joinable and hence detachable */
12276 status = pthread_detach( &t );
12277 if( status ) return errno;
12280 #ifdef HAVE_LINUX_THREADS
12281 pthread_kill_other_threads_np();
12288 if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12290 ol_cv_pthread_mthreads=yes
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12295 ol_cv_pthread_mthreads=no
12299 cat > conftest.$ac_ext <<EOF
12300 #line 12301 "configure"
12301 #include "confdefs.h"
12302 /* pthread test headers */
12303 #include <pthread.h>
12304 #if HAVE_PTHREADS < 7
12308 #define NULL (void*)0
12311 static void *task(p)
12314 return (void *) (p == NULL);
12318 int main(argc, argv)
12323 /* pthread test function */
12324 #ifndef PTHREAD_CREATE_DETACHED
12325 #define PTHREAD_CREATE_DETACHED 1
12329 int detach = PTHREAD_CREATE_DETACHED;
12331 #if HAVE_PTHREADS > 4
12332 /* Final pthreads */
12333 pthread_attr_t attr;
12335 status = pthread_attr_init(&attr);
12336 if( status ) return status;
12338 #if HAVE_PTHREADS < 7
12339 status = pthread_attr_setdetachstate(&attr, &detach);
12340 if( status < 0 ) status = errno;
12342 status = pthread_attr_setdetachstate(&attr, detach);
12344 if( status ) return status;
12345 status = pthread_create( &t, &attr, task, NULL );
12346 #if HAVE_PTHREADS < 7
12347 if( status < 0 ) status = errno;
12349 if( status ) return status;
12351 /* Draft 4 pthreads */
12352 status = pthread_create( &t, pthread_attr_default, task, NULL );
12353 if( status ) return errno;
12355 /* give thread a chance to complete */
12356 /* it should remain joinable and hence detachable */
12359 status = pthread_detach( &t );
12360 if( status ) return errno;
12363 #ifdef HAVE_LINUX_THREADS
12364 pthread_kill_other_threads_np();
12372 if { (eval echo configure:12373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12374 ol_cv_pthread_mthreads=yes
12376 echo "configure: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12379 ol_cv_pthread_mthreads=no
12390 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12392 if test $ol_cv_pthread_mthreads = yes ; then
12393 ol_link_pthreads="-mthreads"
12394 ol_link_threads=posix
12398 # Pthread try link: -thread (ol_cv_pthread_thread)
12399 if test "$ol_link_threads" = no ; then
12401 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12402 echo "configure:12403: checking for pthread link with -thread" >&5
12403 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12409 LIBS="-thread $LIBS"
12411 if test "$cross_compiling" = yes; then
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 /* pthread test headers */
12416 #include <pthread.h>
12417 #if HAVE_PTHREADS < 7
12421 #define NULL (void*)0
12424 static void *task(p)
12427 return (void *) (p == NULL);
12432 /* pthread test function */
12433 #ifndef PTHREAD_CREATE_DETACHED
12434 #define PTHREAD_CREATE_DETACHED 1
12438 int detach = PTHREAD_CREATE_DETACHED;
12440 #if HAVE_PTHREADS > 4
12441 /* Final pthreads */
12442 pthread_attr_t attr;
12444 status = pthread_attr_init(&attr);
12445 if( status ) return status;
12447 #if HAVE_PTHREADS < 7
12448 status = pthread_attr_setdetachstate(&attr, &detach);
12449 if( status < 0 ) status = errno;
12451 status = pthread_attr_setdetachstate(&attr, detach);
12453 if( status ) return status;
12454 status = pthread_create( &t, &attr, task, NULL );
12455 #if HAVE_PTHREADS < 7
12456 if( status < 0 ) status = errno;
12458 if( status ) return status;
12460 /* Draft 4 pthreads */
12461 status = pthread_create( &t, pthread_attr_default, task, NULL );
12462 if( status ) return errno;
12464 /* give thread a chance to complete */
12465 /* it should remain joinable and hence detachable */
12468 status = pthread_detach( &t );
12469 if( status ) return errno;
12472 #ifdef HAVE_LINUX_THREADS
12473 pthread_kill_other_threads_np();
12480 if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12482 ol_cv_pthread_thread=yes
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12487 ol_cv_pthread_thread=no
12491 cat > conftest.$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12494 /* pthread test headers */
12495 #include <pthread.h>
12496 #if HAVE_PTHREADS < 7
12500 #define NULL (void*)0
12503 static void *task(p)
12506 return (void *) (p == NULL);
12510 int main(argc, argv)
12515 /* pthread test function */
12516 #ifndef PTHREAD_CREATE_DETACHED
12517 #define PTHREAD_CREATE_DETACHED 1
12521 int detach = PTHREAD_CREATE_DETACHED;
12523 #if HAVE_PTHREADS > 4
12524 /* Final pthreads */
12525 pthread_attr_t attr;
12527 status = pthread_attr_init(&attr);
12528 if( status ) return status;
12530 #if HAVE_PTHREADS < 7
12531 status = pthread_attr_setdetachstate(&attr, &detach);
12532 if( status < 0 ) status = errno;
12534 status = pthread_attr_setdetachstate(&attr, detach);
12536 if( status ) return status;
12537 status = pthread_create( &t, &attr, task, NULL );
12538 #if HAVE_PTHREADS < 7
12539 if( status < 0 ) status = errno;
12541 if( status ) return status;
12543 /* Draft 4 pthreads */
12544 status = pthread_create( &t, pthread_attr_default, task, NULL );
12545 if( status ) return errno;
12547 /* give thread a chance to complete */
12548 /* it should remain joinable and hence detachable */
12551 status = pthread_detach( &t );
12552 if( status ) return errno;
12555 #ifdef HAVE_LINUX_THREADS
12556 pthread_kill_other_threads_np();
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12566 ol_cv_pthread_thread=yes
12568 echo "configure: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12571 ol_cv_pthread_thread=no
12582 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12584 if test $ol_cv_pthread_thread = yes ; then
12585 ol_link_pthreads="-thread"
12586 ol_link_threads=posix
12591 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12592 if test "$ol_link_threads" = no ; then
12593 # try -lpthread -lmach -lexc -lc_r
12594 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12595 echo "configure:12596: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12596 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12597 echo $ac_n "(cached) $ac_c" 1>&6
12602 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12604 if test "$cross_compiling" = yes; then
12605 cat > conftest.$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 /* pthread test headers */
12609 #include <pthread.h>
12610 #if HAVE_PTHREADS < 7
12614 #define NULL (void*)0
12617 static void *task(p)
12620 return (void *) (p == NULL);
12625 /* pthread test function */
12626 #ifndef PTHREAD_CREATE_DETACHED
12627 #define PTHREAD_CREATE_DETACHED 1
12631 int detach = PTHREAD_CREATE_DETACHED;
12633 #if HAVE_PTHREADS > 4
12634 /* Final pthreads */
12635 pthread_attr_t attr;
12637 status = pthread_attr_init(&attr);
12638 if( status ) return status;
12640 #if HAVE_PTHREADS < 7
12641 status = pthread_attr_setdetachstate(&attr, &detach);
12642 if( status < 0 ) status = errno;
12644 status = pthread_attr_setdetachstate(&attr, detach);
12646 if( status ) return status;
12647 status = pthread_create( &t, &attr, task, NULL );
12648 #if HAVE_PTHREADS < 7
12649 if( status < 0 ) status = errno;
12651 if( status ) return status;
12653 /* Draft 4 pthreads */
12654 status = pthread_create( &t, pthread_attr_default, task, NULL );
12655 if( status ) return errno;
12657 /* give thread a chance to complete */
12658 /* it should remain joinable and hence detachable */
12661 status = pthread_detach( &t );
12662 if( status ) return errno;
12665 #ifdef HAVE_LINUX_THREADS
12666 pthread_kill_other_threads_np();
12673 if { (eval echo configure:12674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12675 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12680 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12684 cat > conftest.$ac_ext <<EOF
12685 #line 12686 "configure"
12686 #include "confdefs.h"
12687 /* pthread test headers */
12688 #include <pthread.h>
12689 #if HAVE_PTHREADS < 7
12693 #define NULL (void*)0
12696 static void *task(p)
12699 return (void *) (p == NULL);
12703 int main(argc, argv)
12708 /* pthread test function */
12709 #ifndef PTHREAD_CREATE_DETACHED
12710 #define PTHREAD_CREATE_DETACHED 1
12714 int detach = PTHREAD_CREATE_DETACHED;
12716 #if HAVE_PTHREADS > 4
12717 /* Final pthreads */
12718 pthread_attr_t attr;
12720 status = pthread_attr_init(&attr);
12721 if( status ) return status;
12723 #if HAVE_PTHREADS < 7
12724 status = pthread_attr_setdetachstate(&attr, &detach);
12725 if( status < 0 ) status = errno;
12727 status = pthread_attr_setdetachstate(&attr, detach);
12729 if( status ) return status;
12730 status = pthread_create( &t, &attr, task, NULL );
12731 #if HAVE_PTHREADS < 7
12732 if( status < 0 ) status = errno;
12734 if( status ) return status;
12736 /* Draft 4 pthreads */
12737 status = pthread_create( &t, pthread_attr_default, task, NULL );
12738 if( status ) return errno;
12740 /* give thread a chance to complete */
12741 /* it should remain joinable and hence detachable */
12744 status = pthread_detach( &t );
12745 if( status ) return errno;
12748 #ifdef HAVE_LINUX_THREADS
12749 pthread_kill_other_threads_np();
12757 if { (eval echo configure:12758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12759 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12761 echo "configure: failed program was:" >&5
12762 cat conftest.$ac_ext >&5
12764 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12775 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12777 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12778 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12779 ol_link_threads=posix
12783 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12784 if test "$ol_link_threads" = no ; then
12785 # try -lpthread -lmach -lexc
12786 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12787 echo "configure:12788: checking for pthread link with -lpthread -lmach -lexc" >&5
12788 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12789 echo $ac_n "(cached) $ac_c" 1>&6
12794 LIBS="-lpthread -lmach -lexc $LIBS"
12796 if test "$cross_compiling" = yes; then
12797 cat > conftest.$ac_ext <<EOF
12798 #line 12799 "configure"
12799 #include "confdefs.h"
12800 /* pthread test headers */
12801 #include <pthread.h>
12802 #if HAVE_PTHREADS < 7
12806 #define NULL (void*)0
12809 static void *task(p)
12812 return (void *) (p == NULL);
12817 /* pthread test function */
12818 #ifndef PTHREAD_CREATE_DETACHED
12819 #define PTHREAD_CREATE_DETACHED 1
12823 int detach = PTHREAD_CREATE_DETACHED;
12825 #if HAVE_PTHREADS > 4
12826 /* Final pthreads */
12827 pthread_attr_t attr;
12829 status = pthread_attr_init(&attr);
12830 if( status ) return status;
12832 #if HAVE_PTHREADS < 7
12833 status = pthread_attr_setdetachstate(&attr, &detach);
12834 if( status < 0 ) status = errno;
12836 status = pthread_attr_setdetachstate(&attr, detach);
12838 if( status ) return status;
12839 status = pthread_create( &t, &attr, task, NULL );
12840 #if HAVE_PTHREADS < 7
12841 if( status < 0 ) status = errno;
12843 if( status ) return status;
12845 /* Draft 4 pthreads */
12846 status = pthread_create( &t, pthread_attr_default, task, NULL );
12847 if( status ) return errno;
12849 /* give thread a chance to complete */
12850 /* it should remain joinable and hence detachable */
12853 status = pthread_detach( &t );
12854 if( status ) return errno;
12857 #ifdef HAVE_LINUX_THREADS
12858 pthread_kill_other_threads_np();
12865 if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12867 ol_cv_pthread_lpthread_lmach_lexc=yes
12869 echo "configure: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12872 ol_cv_pthread_lpthread_lmach_lexc=no
12876 cat > conftest.$ac_ext <<EOF
12877 #line 12878 "configure"
12878 #include "confdefs.h"
12879 /* pthread test headers */
12880 #include <pthread.h>
12881 #if HAVE_PTHREADS < 7
12885 #define NULL (void*)0
12888 static void *task(p)
12891 return (void *) (p == NULL);
12895 int main(argc, argv)
12900 /* pthread test function */
12901 #ifndef PTHREAD_CREATE_DETACHED
12902 #define PTHREAD_CREATE_DETACHED 1
12906 int detach = PTHREAD_CREATE_DETACHED;
12908 #if HAVE_PTHREADS > 4
12909 /* Final pthreads */
12910 pthread_attr_t attr;
12912 status = pthread_attr_init(&attr);
12913 if( status ) return status;
12915 #if HAVE_PTHREADS < 7
12916 status = pthread_attr_setdetachstate(&attr, &detach);
12917 if( status < 0 ) status = errno;
12919 status = pthread_attr_setdetachstate(&attr, detach);
12921 if( status ) return status;
12922 status = pthread_create( &t, &attr, task, NULL );
12923 #if HAVE_PTHREADS < 7
12924 if( status < 0 ) status = errno;
12926 if( status ) return status;
12928 /* Draft 4 pthreads */
12929 status = pthread_create( &t, pthread_attr_default, task, NULL );
12930 if( status ) return errno;
12932 /* give thread a chance to complete */
12933 /* it should remain joinable and hence detachable */
12936 status = pthread_detach( &t );
12937 if( status ) return errno;
12940 #ifdef HAVE_LINUX_THREADS
12941 pthread_kill_other_threads_np();
12949 if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12951 ol_cv_pthread_lpthread_lmach_lexc=yes
12953 echo "configure: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12956 ol_cv_pthread_lpthread_lmach_lexc=no
12967 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12969 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12970 ol_link_pthreads="-lpthread -lmach -lexc"
12971 ol_link_threads=posix
12976 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12977 if test "$ol_link_threads" = no ; then
12978 # try -lpthread -Wl,-woff,85
12979 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12980 echo "configure:12981: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12981 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12982 echo $ac_n "(cached) $ac_c" 1>&6
12987 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12989 if test "$cross_compiling" = yes; then
12990 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12993 /* pthread test headers */
12994 #include <pthread.h>
12995 #if HAVE_PTHREADS < 7
12999 #define NULL (void*)0
13002 static void *task(p)
13005 return (void *) (p == NULL);
13010 /* pthread test function */
13011 #ifndef PTHREAD_CREATE_DETACHED
13012 #define PTHREAD_CREATE_DETACHED 1
13016 int detach = PTHREAD_CREATE_DETACHED;
13018 #if HAVE_PTHREADS > 4
13019 /* Final pthreads */
13020 pthread_attr_t attr;
13022 status = pthread_attr_init(&attr);
13023 if( status ) return status;
13025 #if HAVE_PTHREADS < 7
13026 status = pthread_attr_setdetachstate(&attr, &detach);
13027 if( status < 0 ) status = errno;
13029 status = pthread_attr_setdetachstate(&attr, detach);
13031 if( status ) return status;
13032 status = pthread_create( &t, &attr, task, NULL );
13033 #if HAVE_PTHREADS < 7
13034 if( status < 0 ) status = errno;
13036 if( status ) return status;
13038 /* Draft 4 pthreads */
13039 status = pthread_create( &t, pthread_attr_default, task, NULL );
13040 if( status ) return errno;
13042 /* give thread a chance to complete */
13043 /* it should remain joinable and hence detachable */
13046 status = pthread_detach( &t );
13047 if( status ) return errno;
13050 #ifdef HAVE_LINUX_THREADS
13051 pthread_kill_other_threads_np();
13058 if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13060 ol_cv_pthread_lib_lpthread_woff=yes
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13065 ol_cv_pthread_lib_lpthread_woff=no
13069 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure"
13071 #include "confdefs.h"
13072 /* pthread test headers */
13073 #include <pthread.h>
13074 #if HAVE_PTHREADS < 7
13078 #define NULL (void*)0
13081 static void *task(p)
13084 return (void *) (p == NULL);
13088 int main(argc, argv)
13093 /* pthread test function */
13094 #ifndef PTHREAD_CREATE_DETACHED
13095 #define PTHREAD_CREATE_DETACHED 1
13099 int detach = PTHREAD_CREATE_DETACHED;
13101 #if HAVE_PTHREADS > 4
13102 /* Final pthreads */
13103 pthread_attr_t attr;
13105 status = pthread_attr_init(&attr);
13106 if( status ) return status;
13108 #if HAVE_PTHREADS < 7
13109 status = pthread_attr_setdetachstate(&attr, &detach);
13110 if( status < 0 ) status = errno;
13112 status = pthread_attr_setdetachstate(&attr, detach);
13114 if( status ) return status;
13115 status = pthread_create( &t, &attr, task, NULL );
13116 #if HAVE_PTHREADS < 7
13117 if( status < 0 ) status = errno;
13119 if( status ) return status;
13121 /* Draft 4 pthreads */
13122 status = pthread_create( &t, pthread_attr_default, task, NULL );
13123 if( status ) return errno;
13125 /* give thread a chance to complete */
13126 /* it should remain joinable and hence detachable */
13129 status = pthread_detach( &t );
13130 if( status ) return errno;
13133 #ifdef HAVE_LINUX_THREADS
13134 pthread_kill_other_threads_np();
13142 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13144 ol_cv_pthread_lib_lpthread_woff=yes
13146 echo "configure: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13149 ol_cv_pthread_lib_lpthread_woff=no
13160 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13162 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13163 ol_link_pthreads="-lpthread -Wl,-woff,85"
13164 ol_link_threads=posix
13169 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13170 if test "$ol_link_threads" = no ; then
13172 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13173 echo "configure:13174: checking for pthread link with -lpthread" >&5
13174 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13180 LIBS="-lpthread $LIBS"
13182 if test "$cross_compiling" = yes; then
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13186 /* pthread test headers */
13187 #include <pthread.h>
13188 #if HAVE_PTHREADS < 7
13192 #define NULL (void*)0
13195 static void *task(p)
13198 return (void *) (p == NULL);
13203 /* pthread test function */
13204 #ifndef PTHREAD_CREATE_DETACHED
13205 #define PTHREAD_CREATE_DETACHED 1
13209 int detach = PTHREAD_CREATE_DETACHED;
13211 #if HAVE_PTHREADS > 4
13212 /* Final pthreads */
13213 pthread_attr_t attr;
13215 status = pthread_attr_init(&attr);
13216 if( status ) return status;
13218 #if HAVE_PTHREADS < 7
13219 status = pthread_attr_setdetachstate(&attr, &detach);
13220 if( status < 0 ) status = errno;
13222 status = pthread_attr_setdetachstate(&attr, detach);
13224 if( status ) return status;
13225 status = pthread_create( &t, &attr, task, NULL );
13226 #if HAVE_PTHREADS < 7
13227 if( status < 0 ) status = errno;
13229 if( status ) return status;
13231 /* Draft 4 pthreads */
13232 status = pthread_create( &t, pthread_attr_default, task, NULL );
13233 if( status ) return errno;
13235 /* give thread a chance to complete */
13236 /* it should remain joinable and hence detachable */
13239 status = pthread_detach( &t );
13240 if( status ) return errno;
13243 #ifdef HAVE_LINUX_THREADS
13244 pthread_kill_other_threads_np();
13251 if { (eval echo configure:13252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13253 ol_cv_pthread_lpthread=yes
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13258 ol_cv_pthread_lpthread=no
13262 cat > conftest.$ac_ext <<EOF
13263 #line 13264 "configure"
13264 #include "confdefs.h"
13265 /* pthread test headers */
13266 #include <pthread.h>
13267 #if HAVE_PTHREADS < 7
13271 #define NULL (void*)0
13274 static void *task(p)
13277 return (void *) (p == NULL);
13281 int main(argc, argv)
13286 /* pthread test function */
13287 #ifndef PTHREAD_CREATE_DETACHED
13288 #define PTHREAD_CREATE_DETACHED 1
13292 int detach = PTHREAD_CREATE_DETACHED;
13294 #if HAVE_PTHREADS > 4
13295 /* Final pthreads */
13296 pthread_attr_t attr;
13298 status = pthread_attr_init(&attr);
13299 if( status ) return status;
13301 #if HAVE_PTHREADS < 7
13302 status = pthread_attr_setdetachstate(&attr, &detach);
13303 if( status < 0 ) status = errno;
13305 status = pthread_attr_setdetachstate(&attr, detach);
13307 if( status ) return status;
13308 status = pthread_create( &t, &attr, task, NULL );
13309 #if HAVE_PTHREADS < 7
13310 if( status < 0 ) status = errno;
13312 if( status ) return status;
13314 /* Draft 4 pthreads */
13315 status = pthread_create( &t, pthread_attr_default, task, NULL );
13316 if( status ) return errno;
13318 /* give thread a chance to complete */
13319 /* it should remain joinable and hence detachable */
13322 status = pthread_detach( &t );
13323 if( status ) return errno;
13326 #ifdef HAVE_LINUX_THREADS
13327 pthread_kill_other_threads_np();
13335 if { (eval echo configure:13336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13337 ol_cv_pthread_lpthread=yes
13339 echo "configure: failed program was:" >&5
13340 cat conftest.$ac_ext >&5
13342 ol_cv_pthread_lpthread=no
13353 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13355 if test $ol_cv_pthread_lpthread = yes ; then
13356 ol_link_pthreads="-lpthread"
13357 ol_link_threads=posix
13361 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13362 if test "$ol_link_threads" = no ; then
13364 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13365 echo "configure:13366: checking for pthread link with -lc_r" >&5
13366 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13374 if test "$cross_compiling" = yes; then
13375 cat > conftest.$ac_ext <<EOF
13376 #line 13377 "configure"
13377 #include "confdefs.h"
13378 /* pthread test headers */
13379 #include <pthread.h>
13380 #if HAVE_PTHREADS < 7
13384 #define NULL (void*)0
13387 static void *task(p)
13390 return (void *) (p == NULL);
13395 /* pthread test function */
13396 #ifndef PTHREAD_CREATE_DETACHED
13397 #define PTHREAD_CREATE_DETACHED 1
13401 int detach = PTHREAD_CREATE_DETACHED;
13403 #if HAVE_PTHREADS > 4
13404 /* Final pthreads */
13405 pthread_attr_t attr;
13407 status = pthread_attr_init(&attr);
13408 if( status ) return status;
13410 #if HAVE_PTHREADS < 7
13411 status = pthread_attr_setdetachstate(&attr, &detach);
13412 if( status < 0 ) status = errno;
13414 status = pthread_attr_setdetachstate(&attr, detach);
13416 if( status ) return status;
13417 status = pthread_create( &t, &attr, task, NULL );
13418 #if HAVE_PTHREADS < 7
13419 if( status < 0 ) status = errno;
13421 if( status ) return status;
13423 /* Draft 4 pthreads */
13424 status = pthread_create( &t, pthread_attr_default, task, NULL );
13425 if( status ) return errno;
13427 /* give thread a chance to complete */
13428 /* it should remain joinable and hence detachable */
13431 status = pthread_detach( &t );
13432 if( status ) return errno;
13435 #ifdef HAVE_LINUX_THREADS
13436 pthread_kill_other_threads_np();
13443 if { (eval echo configure:13444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13445 ol_cv_pthread_lc_r=yes
13447 echo "configure: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13450 ol_cv_pthread_lc_r=no
13454 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure"
13456 #include "confdefs.h"
13457 /* pthread test headers */
13458 #include <pthread.h>
13459 #if HAVE_PTHREADS < 7
13463 #define NULL (void*)0
13466 static void *task(p)
13469 return (void *) (p == NULL);
13473 int main(argc, argv)
13478 /* pthread test function */
13479 #ifndef PTHREAD_CREATE_DETACHED
13480 #define PTHREAD_CREATE_DETACHED 1
13484 int detach = PTHREAD_CREATE_DETACHED;
13486 #if HAVE_PTHREADS > 4
13487 /* Final pthreads */
13488 pthread_attr_t attr;
13490 status = pthread_attr_init(&attr);
13491 if( status ) return status;
13493 #if HAVE_PTHREADS < 7
13494 status = pthread_attr_setdetachstate(&attr, &detach);
13495 if( status < 0 ) status = errno;
13497 status = pthread_attr_setdetachstate(&attr, detach);
13499 if( status ) return status;
13500 status = pthread_create( &t, &attr, task, NULL );
13501 #if HAVE_PTHREADS < 7
13502 if( status < 0 ) status = errno;
13504 if( status ) return status;
13506 /* Draft 4 pthreads */
13507 status = pthread_create( &t, pthread_attr_default, task, NULL );
13508 if( status ) return errno;
13510 /* give thread a chance to complete */
13511 /* it should remain joinable and hence detachable */
13514 status = pthread_detach( &t );
13515 if( status ) return errno;
13518 #ifdef HAVE_LINUX_THREADS
13519 pthread_kill_other_threads_np();
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13529 ol_cv_pthread_lc_r=yes
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13534 ol_cv_pthread_lc_r=no
13545 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13547 if test $ol_cv_pthread_lc_r = yes ; then
13548 ol_link_pthreads="-lc_r"
13549 ol_link_threads=posix
13554 # Pthread try link: -threads (ol_cv_pthread_threads)
13555 if test "$ol_link_threads" = no ; then
13557 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13558 echo "configure:13559: checking for pthread link with -threads" >&5
13559 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13560 echo $ac_n "(cached) $ac_c" 1>&6
13565 LIBS="-threads $LIBS"
13567 if test "$cross_compiling" = yes; then
13568 cat > conftest.$ac_ext <<EOF
13569 #line 13570 "configure"
13570 #include "confdefs.h"
13571 /* pthread test headers */
13572 #include <pthread.h>
13573 #if HAVE_PTHREADS < 7
13577 #define NULL (void*)0
13580 static void *task(p)
13583 return (void *) (p == NULL);
13588 /* pthread test function */
13589 #ifndef PTHREAD_CREATE_DETACHED
13590 #define PTHREAD_CREATE_DETACHED 1
13594 int detach = PTHREAD_CREATE_DETACHED;
13596 #if HAVE_PTHREADS > 4
13597 /* Final pthreads */
13598 pthread_attr_t attr;
13600 status = pthread_attr_init(&attr);
13601 if( status ) return status;
13603 #if HAVE_PTHREADS < 7
13604 status = pthread_attr_setdetachstate(&attr, &detach);
13605 if( status < 0 ) status = errno;
13607 status = pthread_attr_setdetachstate(&attr, detach);
13609 if( status ) return status;
13610 status = pthread_create( &t, &attr, task, NULL );
13611 #if HAVE_PTHREADS < 7
13612 if( status < 0 ) status = errno;
13614 if( status ) return status;
13616 /* Draft 4 pthreads */
13617 status = pthread_create( &t, pthread_attr_default, task, NULL );
13618 if( status ) return errno;
13620 /* give thread a chance to complete */
13621 /* it should remain joinable and hence detachable */
13624 status = pthread_detach( &t );
13625 if( status ) return errno;
13628 #ifdef HAVE_LINUX_THREADS
13629 pthread_kill_other_threads_np();
13636 if { (eval echo configure:13637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13638 ol_cv_pthread_threads=yes
13640 echo "configure: failed program was:" >&5
13641 cat conftest.$ac_ext >&5
13643 ol_cv_pthread_threads=no
13647 cat > conftest.$ac_ext <<EOF
13648 #line 13649 "configure"
13649 #include "confdefs.h"
13650 /* pthread test headers */
13651 #include <pthread.h>
13652 #if HAVE_PTHREADS < 7
13656 #define NULL (void*)0
13659 static void *task(p)
13662 return (void *) (p == NULL);
13666 int main(argc, argv)
13671 /* pthread test function */
13672 #ifndef PTHREAD_CREATE_DETACHED
13673 #define PTHREAD_CREATE_DETACHED 1
13677 int detach = PTHREAD_CREATE_DETACHED;
13679 #if HAVE_PTHREADS > 4
13680 /* Final pthreads */
13681 pthread_attr_t attr;
13683 status = pthread_attr_init(&attr);
13684 if( status ) return status;
13686 #if HAVE_PTHREADS < 7
13687 status = pthread_attr_setdetachstate(&attr, &detach);
13688 if( status < 0 ) status = errno;
13690 status = pthread_attr_setdetachstate(&attr, detach);
13692 if( status ) return status;
13693 status = pthread_create( &t, &attr, task, NULL );
13694 #if HAVE_PTHREADS < 7
13695 if( status < 0 ) status = errno;
13697 if( status ) return status;
13699 /* Draft 4 pthreads */
13700 status = pthread_create( &t, pthread_attr_default, task, NULL );
13701 if( status ) return errno;
13703 /* give thread a chance to complete */
13704 /* it should remain joinable and hence detachable */
13707 status = pthread_detach( &t );
13708 if( status ) return errno;
13711 #ifdef HAVE_LINUX_THREADS
13712 pthread_kill_other_threads_np();
13720 if { (eval echo configure:13721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13722 ol_cv_pthread_threads=yes
13724 echo "configure: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13727 ol_cv_pthread_threads=no
13738 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13740 if test $ol_cv_pthread_threads = yes ; then
13741 ol_link_pthreads="-threads"
13742 ol_link_threads=posix
13747 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13748 if test "$ol_link_threads" = no ; then
13749 # try -lpthreads -lmach -lexc -lc_r
13750 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13751 echo "configure:13752: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13752 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13753 echo $ac_n "(cached) $ac_c" 1>&6
13758 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13760 if test "$cross_compiling" = yes; then
13761 cat > conftest.$ac_ext <<EOF
13762 #line 13763 "configure"
13763 #include "confdefs.h"
13764 /* pthread test headers */
13765 #include <pthread.h>
13766 #if HAVE_PTHREADS < 7
13770 #define NULL (void*)0
13773 static void *task(p)
13776 return (void *) (p == NULL);
13781 /* pthread test function */
13782 #ifndef PTHREAD_CREATE_DETACHED
13783 #define PTHREAD_CREATE_DETACHED 1
13787 int detach = PTHREAD_CREATE_DETACHED;
13789 #if HAVE_PTHREADS > 4
13790 /* Final pthreads */
13791 pthread_attr_t attr;
13793 status = pthread_attr_init(&attr);
13794 if( status ) return status;
13796 #if HAVE_PTHREADS < 7
13797 status = pthread_attr_setdetachstate(&attr, &detach);
13798 if( status < 0 ) status = errno;
13800 status = pthread_attr_setdetachstate(&attr, detach);
13802 if( status ) return status;
13803 status = pthread_create( &t, &attr, task, NULL );
13804 #if HAVE_PTHREADS < 7
13805 if( status < 0 ) status = errno;
13807 if( status ) return status;
13809 /* Draft 4 pthreads */
13810 status = pthread_create( &t, pthread_attr_default, task, NULL );
13811 if( status ) return errno;
13813 /* give thread a chance to complete */
13814 /* it should remain joinable and hence detachable */
13817 status = pthread_detach( &t );
13818 if( status ) return errno;
13821 #ifdef HAVE_LINUX_THREADS
13822 pthread_kill_other_threads_np();
13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13831 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13836 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13840 cat > conftest.$ac_ext <<EOF
13841 #line 13842 "configure"
13842 #include "confdefs.h"
13843 /* pthread test headers */
13844 #include <pthread.h>
13845 #if HAVE_PTHREADS < 7
13849 #define NULL (void*)0
13852 static void *task(p)
13855 return (void *) (p == NULL);
13859 int main(argc, argv)
13864 /* pthread test function */
13865 #ifndef PTHREAD_CREATE_DETACHED
13866 #define PTHREAD_CREATE_DETACHED 1
13870 int detach = PTHREAD_CREATE_DETACHED;
13872 #if HAVE_PTHREADS > 4
13873 /* Final pthreads */
13874 pthread_attr_t attr;
13876 status = pthread_attr_init(&attr);
13877 if( status ) return status;
13879 #if HAVE_PTHREADS < 7
13880 status = pthread_attr_setdetachstate(&attr, &detach);
13881 if( status < 0 ) status = errno;
13883 status = pthread_attr_setdetachstate(&attr, detach);
13885 if( status ) return status;
13886 status = pthread_create( &t, &attr, task, NULL );
13887 #if HAVE_PTHREADS < 7
13888 if( status < 0 ) status = errno;
13890 if( status ) return status;
13892 /* Draft 4 pthreads */
13893 status = pthread_create( &t, pthread_attr_default, task, NULL );
13894 if( status ) return errno;
13896 /* give thread a chance to complete */
13897 /* it should remain joinable and hence detachable */
13900 status = pthread_detach( &t );
13901 if( status ) return errno;
13904 #ifdef HAVE_LINUX_THREADS
13905 pthread_kill_other_threads_np();
13913 if { (eval echo configure:13914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13915 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13917 echo "configure: failed program was:" >&5
13918 cat conftest.$ac_ext >&5
13920 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13931 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13933 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13934 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13935 ol_link_threads=posix
13939 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13940 if test "$ol_link_threads" = no ; then
13941 # try -lpthreads -lmach -lexc
13942 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13943 echo "configure:13944: checking for pthread link with -lpthreads -lmach -lexc" >&5
13944 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13945 echo $ac_n "(cached) $ac_c" 1>&6
13950 LIBS="-lpthreads -lmach -lexc $LIBS"
13952 if test "$cross_compiling" = yes; then
13953 cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956 /* pthread test headers */
13957 #include <pthread.h>
13958 #if HAVE_PTHREADS < 7
13962 #define NULL (void*)0
13965 static void *task(p)
13968 return (void *) (p == NULL);
13973 /* pthread test function */
13974 #ifndef PTHREAD_CREATE_DETACHED
13975 #define PTHREAD_CREATE_DETACHED 1
13979 int detach = PTHREAD_CREATE_DETACHED;
13981 #if HAVE_PTHREADS > 4
13982 /* Final pthreads */
13983 pthread_attr_t attr;
13985 status = pthread_attr_init(&attr);
13986 if( status ) return status;
13988 #if HAVE_PTHREADS < 7
13989 status = pthread_attr_setdetachstate(&attr, &detach);
13990 if( status < 0 ) status = errno;
13992 status = pthread_attr_setdetachstate(&attr, detach);
13994 if( status ) return status;
13995 status = pthread_create( &t, &attr, task, NULL );
13996 #if HAVE_PTHREADS < 7
13997 if( status < 0 ) status = errno;
13999 if( status ) return status;
14001 /* Draft 4 pthreads */
14002 status = pthread_create( &t, pthread_attr_default, task, NULL );
14003 if( status ) return errno;
14005 /* give thread a chance to complete */
14006 /* it should remain joinable and hence detachable */
14009 status = pthread_detach( &t );
14010 if( status ) return errno;
14013 #ifdef HAVE_LINUX_THREADS
14014 pthread_kill_other_threads_np();
14021 if { (eval echo configure:14022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14023 ol_cv_pthread_lpthreads_lmach_lexc=yes
14025 echo "configure: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14028 ol_cv_pthread_lpthreads_lmach_lexc=no
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 /* pthread test headers */
14036 #include <pthread.h>
14037 #if HAVE_PTHREADS < 7
14041 #define NULL (void*)0
14044 static void *task(p)
14047 return (void *) (p == NULL);
14051 int main(argc, argv)
14056 /* pthread test function */
14057 #ifndef PTHREAD_CREATE_DETACHED
14058 #define PTHREAD_CREATE_DETACHED 1
14062 int detach = PTHREAD_CREATE_DETACHED;
14064 #if HAVE_PTHREADS > 4
14065 /* Final pthreads */
14066 pthread_attr_t attr;
14068 status = pthread_attr_init(&attr);
14069 if( status ) return status;
14071 #if HAVE_PTHREADS < 7
14072 status = pthread_attr_setdetachstate(&attr, &detach);
14073 if( status < 0 ) status = errno;
14075 status = pthread_attr_setdetachstate(&attr, detach);
14077 if( status ) return status;
14078 status = pthread_create( &t, &attr, task, NULL );
14079 #if HAVE_PTHREADS < 7
14080 if( status < 0 ) status = errno;
14082 if( status ) return status;
14084 /* Draft 4 pthreads */
14085 status = pthread_create( &t, pthread_attr_default, task, NULL );
14086 if( status ) return errno;
14088 /* give thread a chance to complete */
14089 /* it should remain joinable and hence detachable */
14092 status = pthread_detach( &t );
14093 if( status ) return errno;
14096 #ifdef HAVE_LINUX_THREADS
14097 pthread_kill_other_threads_np();
14105 if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14107 ol_cv_pthread_lpthreads_lmach_lexc=yes
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14112 ol_cv_pthread_lpthreads_lmach_lexc=no
14123 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14125 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14126 ol_link_pthreads="-lpthreads -lmach -lexc"
14127 ol_link_threads=posix
14131 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14132 if test "$ol_link_threads" = no ; then
14133 # try -lpthreads -lexc
14134 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14135 echo "configure:14136: checking for pthread link with -lpthreads -lexc" >&5
14136 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14137 echo $ac_n "(cached) $ac_c" 1>&6
14142 LIBS="-lpthreads -lexc $LIBS"
14144 if test "$cross_compiling" = yes; then
14145 cat > conftest.$ac_ext <<EOF
14146 #line 14147 "configure"
14147 #include "confdefs.h"
14148 /* pthread test headers */
14149 #include <pthread.h>
14150 #if HAVE_PTHREADS < 7
14154 #define NULL (void*)0
14157 static void *task(p)
14160 return (void *) (p == NULL);
14165 /* pthread test function */
14166 #ifndef PTHREAD_CREATE_DETACHED
14167 #define PTHREAD_CREATE_DETACHED 1
14171 int detach = PTHREAD_CREATE_DETACHED;
14173 #if HAVE_PTHREADS > 4
14174 /* Final pthreads */
14175 pthread_attr_t attr;
14177 status = pthread_attr_init(&attr);
14178 if( status ) return status;
14180 #if HAVE_PTHREADS < 7
14181 status = pthread_attr_setdetachstate(&attr, &detach);
14182 if( status < 0 ) status = errno;
14184 status = pthread_attr_setdetachstate(&attr, detach);
14186 if( status ) return status;
14187 status = pthread_create( &t, &attr, task, NULL );
14188 #if HAVE_PTHREADS < 7
14189 if( status < 0 ) status = errno;
14191 if( status ) return status;
14193 /* Draft 4 pthreads */
14194 status = pthread_create( &t, pthread_attr_default, task, NULL );
14195 if( status ) return errno;
14197 /* give thread a chance to complete */
14198 /* it should remain joinable and hence detachable */
14201 status = pthread_detach( &t );
14202 if( status ) return errno;
14205 #ifdef HAVE_LINUX_THREADS
14206 pthread_kill_other_threads_np();
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14215 ol_cv_pthread_lpthreads_lexc=yes
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14220 ol_cv_pthread_lpthreads_lexc=no
14224 cat > conftest.$ac_ext <<EOF
14225 #line 14226 "configure"
14226 #include "confdefs.h"
14227 /* pthread test headers */
14228 #include <pthread.h>
14229 #if HAVE_PTHREADS < 7
14233 #define NULL (void*)0
14236 static void *task(p)
14239 return (void *) (p == NULL);
14243 int main(argc, argv)
14248 /* pthread test function */
14249 #ifndef PTHREAD_CREATE_DETACHED
14250 #define PTHREAD_CREATE_DETACHED 1
14254 int detach = PTHREAD_CREATE_DETACHED;
14256 #if HAVE_PTHREADS > 4
14257 /* Final pthreads */
14258 pthread_attr_t attr;
14260 status = pthread_attr_init(&attr);
14261 if( status ) return status;
14263 #if HAVE_PTHREADS < 7
14264 status = pthread_attr_setdetachstate(&attr, &detach);
14265 if( status < 0 ) status = errno;
14267 status = pthread_attr_setdetachstate(&attr, detach);
14269 if( status ) return status;
14270 status = pthread_create( &t, &attr, task, NULL );
14271 #if HAVE_PTHREADS < 7
14272 if( status < 0 ) status = errno;
14274 if( status ) return status;
14276 /* Draft 4 pthreads */
14277 status = pthread_create( &t, pthread_attr_default, task, NULL );
14278 if( status ) return errno;
14280 /* give thread a chance to complete */
14281 /* it should remain joinable and hence detachable */
14284 status = pthread_detach( &t );
14285 if( status ) return errno;
14288 #ifdef HAVE_LINUX_THREADS
14289 pthread_kill_other_threads_np();
14297 if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14299 ol_cv_pthread_lpthreads_lexc=yes
14301 echo "configure: failed program was:" >&5
14302 cat conftest.$ac_ext >&5
14304 ol_cv_pthread_lpthreads_lexc=no
14315 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14317 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14318 ol_link_pthreads="-lpthreads -lexc"
14319 ol_link_threads=posix
14324 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14325 if test "$ol_link_threads" = no ; then
14327 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14328 echo "configure:14329: checking for pthread link with -lpthreads" >&5
14329 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14330 echo $ac_n "(cached) $ac_c" 1>&6
14335 LIBS="-lpthreads $LIBS"
14337 if test "$cross_compiling" = yes; then
14338 cat > conftest.$ac_ext <<EOF
14339 #line 14340 "configure"
14340 #include "confdefs.h"
14341 /* pthread test headers */
14342 #include <pthread.h>
14343 #if HAVE_PTHREADS < 7
14347 #define NULL (void*)0
14350 static void *task(p)
14353 return (void *) (p == NULL);
14358 /* pthread test function */
14359 #ifndef PTHREAD_CREATE_DETACHED
14360 #define PTHREAD_CREATE_DETACHED 1
14364 int detach = PTHREAD_CREATE_DETACHED;
14366 #if HAVE_PTHREADS > 4
14367 /* Final pthreads */
14368 pthread_attr_t attr;
14370 status = pthread_attr_init(&attr);
14371 if( status ) return status;
14373 #if HAVE_PTHREADS < 7
14374 status = pthread_attr_setdetachstate(&attr, &detach);
14375 if( status < 0 ) status = errno;
14377 status = pthread_attr_setdetachstate(&attr, detach);
14379 if( status ) return status;
14380 status = pthread_create( &t, &attr, task, NULL );
14381 #if HAVE_PTHREADS < 7
14382 if( status < 0 ) status = errno;
14384 if( status ) return status;
14386 /* Draft 4 pthreads */
14387 status = pthread_create( &t, pthread_attr_default, task, NULL );
14388 if( status ) return errno;
14390 /* give thread a chance to complete */
14391 /* it should remain joinable and hence detachable */
14394 status = pthread_detach( &t );
14395 if( status ) return errno;
14398 #ifdef HAVE_LINUX_THREADS
14399 pthread_kill_other_threads_np();
14406 if { (eval echo configure:14407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14408 ol_cv_pthread_lib_lpthreads=yes
14410 echo "configure: failed program was:" >&5
14411 cat conftest.$ac_ext >&5
14413 ol_cv_pthread_lib_lpthreads=no
14417 cat > conftest.$ac_ext <<EOF
14418 #line 14419 "configure"
14419 #include "confdefs.h"
14420 /* pthread test headers */
14421 #include <pthread.h>
14422 #if HAVE_PTHREADS < 7
14426 #define NULL (void*)0
14429 static void *task(p)
14432 return (void *) (p == NULL);
14436 int main(argc, argv)
14441 /* pthread test function */
14442 #ifndef PTHREAD_CREATE_DETACHED
14443 #define PTHREAD_CREATE_DETACHED 1
14447 int detach = PTHREAD_CREATE_DETACHED;
14449 #if HAVE_PTHREADS > 4
14450 /* Final pthreads */
14451 pthread_attr_t attr;
14453 status = pthread_attr_init(&attr);
14454 if( status ) return status;
14456 #if HAVE_PTHREADS < 7
14457 status = pthread_attr_setdetachstate(&attr, &detach);
14458 if( status < 0 ) status = errno;
14460 status = pthread_attr_setdetachstate(&attr, detach);
14462 if( status ) return status;
14463 status = pthread_create( &t, &attr, task, NULL );
14464 #if HAVE_PTHREADS < 7
14465 if( status < 0 ) status = errno;
14467 if( status ) return status;
14469 /* Draft 4 pthreads */
14470 status = pthread_create( &t, pthread_attr_default, task, NULL );
14471 if( status ) return errno;
14473 /* give thread a chance to complete */
14474 /* it should remain joinable and hence detachable */
14477 status = pthread_detach( &t );
14478 if( status ) return errno;
14481 #ifdef HAVE_LINUX_THREADS
14482 pthread_kill_other_threads_np();
14490 if { (eval echo configure:14491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14492 ol_cv_pthread_lib_lpthreads=yes
14494 echo "configure: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14497 ol_cv_pthread_lib_lpthreads=no
14508 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14510 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14511 ol_link_pthreads="-lpthreads"
14512 ol_link_threads=posix
14517 if test $ol_link_threads != no ; then
14518 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14520 save_CPPFLAGS="$CPPFLAGS"
14522 LIBS="$LTHREAD_LIBS $LIBS"
14524 for ac_func in sched_yield pthread_yield thr_yield
14526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14527 echo "configure:14528: checking for $ac_func" >&5
14528 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14531 cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 /* System header to define __stub macros and hopefully few prototypes,
14535 which can conflict with char $ac_func(); below. */
14536 #include <assert.h>
14537 /* Override any gcc2 internal prototype to avoid an error. */
14538 /* We use char because int might match the return type of a gcc2
14539 builtin and then its argument prototype would still apply. */
14545 /* The GNU C library defines this for functions which it implements
14546 to always fail with ENOSYS. Some functions are actually named
14547 something starting with __ and the normal name is an alias. */
14548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 if { (eval echo configure:14557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558 eval "ac_cv_func_$ac_func=yes"
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14563 eval "ac_cv_func_$ac_func=no"
14568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14569 echo "$ac_t""yes" 1>&6
14570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14571 cat >> confdefs.h <<EOF
14572 #define $ac_tr_func 1
14576 echo "$ac_t""no" 1>&6
14581 if test $ac_cv_func_sched_yield = no -a \
14582 $ac_cv_func_pthread_yield = no -a \
14583 $ac_cv_func_thr_yield = no ; then
14584 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14585 echo "configure:14586: checking for sched_yield in -lrt" >&5
14586 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14587 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14590 ac_save_LIBS="$LIBS"
14592 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure"
14594 #include "confdefs.h"
14595 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14598 char sched_yield();
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14606 eval "ac_cv_lib_$ac_lib_var=yes"
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14611 eval "ac_cv_lib_$ac_lib_var=no"
14614 LIBS="$ac_save_LIBS"
14617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14618 echo "$ac_t""yes" 1>&6
14619 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14620 cat >> confdefs.h <<\EOF
14621 #define HAVE_SCHED_YIELD 1
14624 ac_cv_func_sched_yield=yes
14626 echo "$ac_t""no" 1>&6
14627 ac_cv_func_sched_yield=no
14631 if test $ac_cv_func_sched_yield = no -a \
14632 $ac_cv_func_pthread_yield = no -a \
14633 "$ac_cv_func_thr_yield" = no ; then
14634 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14637 for ac_func in pthread_kill pthread_rwlock_destroy
14639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14640 echo "configure:14641: checking for $ac_func" >&5
14641 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
14644 cat > conftest.$ac_ext <<EOF
14645 #line 14646 "configure"
14646 #include "confdefs.h"
14647 /* System header to define __stub macros and hopefully few prototypes,
14648 which can conflict with char $ac_func(); below. */
14649 #include <assert.h>
14650 /* Override any gcc2 internal prototype to avoid an error. */
14651 /* We use char because int might match the return type of a gcc2
14652 builtin and then its argument prototype would still apply. */
14658 /* The GNU C library defines this for functions which it implements
14659 to always fail with ENOSYS. Some functions are actually named
14660 something starting with __ and the normal name is an alias. */
14661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14669 if { (eval echo configure:14670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14671 eval "ac_cv_func_$ac_func=yes"
14673 echo "configure: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14676 eval "ac_cv_func_$ac_func=no"
14681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14682 echo "$ac_t""yes" 1>&6
14683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14684 cat >> confdefs.h <<EOF
14685 #define $ac_tr_func 1
14689 echo "$ac_t""no" 1>&6
14694 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14695 echo "configure:14696: checking for pthread_detach with <pthread.h>" >&5
14696 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14697 echo $ac_n "(cached) $ac_c" 1>&6
14700 cat > conftest.$ac_ext <<EOF
14701 #line 14702 "configure"
14702 #include "confdefs.h"
14704 #include <pthread.h>
14706 #define NULL (void*)0
14710 pthread_detach(NULL);
14713 if { (eval echo configure:14714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14715 ol_cv_func_pthread_detach=yes
14717 echo "configure: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14720 ol_cv_func_pthread_detach=no
14726 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14728 if test $ol_cv_func_pthread_detach = no ; then
14729 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14732 cat >> confdefs.h <<\EOF
14733 #define HAVE_PTHREAD_DETACH 1
14738 pthread_setconcurrency \
14739 pthread_getconcurrency \
14740 thr_setconcurrency \
14741 thr_getconcurrency \
14744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14745 echo "configure:14746: checking for $ac_func" >&5
14746 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14747 echo $ac_n "(cached) $ac_c" 1>&6
14749 cat > conftest.$ac_ext <<EOF
14750 #line 14751 "configure"
14751 #include "confdefs.h"
14752 /* System header to define __stub macros and hopefully few prototypes,
14753 which can conflict with char $ac_func(); below. */
14754 #include <assert.h>
14755 /* Override any gcc2 internal prototype to avoid an error. */
14756 /* We use char because int might match the return type of a gcc2
14757 builtin and then its argument prototype would still apply. */
14763 /* The GNU C library defines this for functions which it implements
14764 to always fail with ENOSYS. Some functions are actually named
14765 something starting with __ and the normal name is an alias. */
14766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14774 if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14776 eval "ac_cv_func_$ac_func=yes"
14778 echo "configure: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14781 eval "ac_cv_func_$ac_func=no"
14786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14787 echo "$ac_t""yes" 1>&6
14788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14789 cat >> confdefs.h <<EOF
14790 #define $ac_tr_func 1
14794 echo "$ac_t""no" 1>&6
14800 for ac_func in pthread_kill_other_threads_np
14802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14803 echo "configure:14804: checking for $ac_func" >&5
14804 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14805 echo $ac_n "(cached) $ac_c" 1>&6
14807 cat > conftest.$ac_ext <<EOF
14808 #line 14809 "configure"
14809 #include "confdefs.h"
14810 /* System header to define __stub macros and hopefully few prototypes,
14811 which can conflict with char $ac_func(); below. */
14812 #include <assert.h>
14813 /* Override any gcc2 internal prototype to avoid an error. */
14814 /* We use char because int might match the return type of a gcc2
14815 builtin and then its argument prototype would still apply. */
14821 /* The GNU C library defines this for functions which it implements
14822 to always fail with ENOSYS. Some functions are actually named
14823 something starting with __ and the normal name is an alias. */
14824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14832 if { (eval echo configure:14833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14834 eval "ac_cv_func_$ac_func=yes"
14836 echo "configure: failed program was:" >&5
14837 cat conftest.$ac_ext >&5
14839 eval "ac_cv_func_$ac_func=no"
14844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14845 echo "$ac_t""yes" 1>&6
14846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14847 cat >> confdefs.h <<EOF
14848 #define $ac_tr_func 1
14852 echo "$ac_t""no" 1>&6
14856 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14857 echo "configure:14858: checking for LinuxThreads implementation" >&5
14858 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14859 echo $ac_n "(cached) $ac_c" 1>&6
14861 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14864 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14869 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14870 echo "configure:14871: checking for LinuxThreads consistency" >&5
14871 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14872 echo $ac_n "(cached) $ac_c" 1>&6
14875 if test $ol_cv_header_linux_threads = yes -a \
14876 $ol_cv_sys_linux_threads = yes; then
14877 ol_cv_linux_threads=yes
14878 elif test $ol_cv_header_linux_threads = no -a \
14879 $ol_cv_sys_linux_threads = no; then
14880 ol_cv_linux_threads=no
14882 ol_cv_linux_threads=error
14887 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14890 if test $ol_cv_linux_threads = error; then
14891 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14894 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14895 echo "configure:14896: checking if pthread_create() works" >&5
14896 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14900 if test "$cross_compiling" = yes; then
14901 ol_cv_pthread_create_works=yes
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 /* pthread test headers */
14907 #include <pthread.h>
14908 #if HAVE_PTHREADS < 7
14912 #define NULL (void*)0
14915 static void *task(p)
14918 return (void *) (p == NULL);
14922 int main(argc, argv)
14927 /* pthread test function */
14928 #ifndef PTHREAD_CREATE_DETACHED
14929 #define PTHREAD_CREATE_DETACHED 1
14933 int detach = PTHREAD_CREATE_DETACHED;
14935 #if HAVE_PTHREADS > 4
14936 /* Final pthreads */
14937 pthread_attr_t attr;
14939 status = pthread_attr_init(&attr);
14940 if( status ) return status;
14942 #if HAVE_PTHREADS < 7
14943 status = pthread_attr_setdetachstate(&attr, &detach);
14944 if( status < 0 ) status = errno;
14946 status = pthread_attr_setdetachstate(&attr, detach);
14948 if( status ) return status;
14949 status = pthread_create( &t, &attr, task, NULL );
14950 #if HAVE_PTHREADS < 7
14951 if( status < 0 ) status = errno;
14953 if( status ) return status;
14955 /* Draft 4 pthreads */
14956 status = pthread_create( &t, pthread_attr_default, task, NULL );
14957 if( status ) return errno;
14959 /* give thread a chance to complete */
14960 /* it should remain joinable and hence detachable */
14963 status = pthread_detach( &t );
14964 if( status ) return errno;
14967 #ifdef HAVE_LINUX_THREADS
14968 pthread_kill_other_threads_np();
14976 if { (eval echo configure:14977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14978 ol_cv_pthread_create_works=yes
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14983 ol_cv_pthread_create_works=no
14990 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14992 if test $ol_cv_pthread_create_works = no ; then
14993 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14996 if test $ol_with_yielding_select = auto ; then
14997 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14998 echo "configure:14999: checking if select yields when using pthreads" >&5
14999 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15000 echo $ac_n "(cached) $ac_c" 1>&6
15003 if test "$cross_compiling" = yes; then
15004 ol_cv_pthread_select_yields=cross
15006 cat > conftest.$ac_ext <<EOF
15007 #line 15008 "configure"
15008 #include "confdefs.h"
15010 #include <sys/types.h>
15011 #include <sys/time.h>
15012 #include <unistd.h>
15013 #include <pthread.h>
15015 #define NULL (void*) 0
15018 static int fildes[2];
15020 static void *task(p)
15032 FD_SET(fildes[0], &rfds);
15034 /* we're not interested in any fds */
15035 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15042 exit(0); /* if we exit here, the select blocked the whole process */
15045 int main(argc, argv)
15051 /* create a pipe to select */
15052 if(pipe(&fildes[0])) {
15057 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15058 (void) pthread_setconcurrency(2);
15060 #ifdef HAVE_THR_SETCONCURRENCY
15061 /* Set Solaris LWP concurrency to 2 */
15062 thr_setconcurrency(2);
15066 #if HAVE_PTHREADS < 6
15067 pthread_create(&t, pthread_attr_default, task, NULL);
15069 pthread_create(&t, NULL, task, NULL);
15072 /* make sure task runs first */
15075 #elif defined( HAVE_SCHED_YIELD )
15077 #elif defined( HAVE_PTHREAD_YIELD )
15084 if { (eval echo configure:15085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15086 ol_cv_pthread_select_yields=no
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15091 ol_cv_pthread_select_yields=yes
15098 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15100 if test $ol_cv_pthread_select_yields = cross ; then
15101 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15104 if test $ol_cv_pthread_select_yields = yes ; then
15105 ol_with_yielding_select=yes
15109 CPPFLAGS="$save_CPPFLAGS"
15112 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15116 if test $ol_with_threads = posix ; then
15117 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15121 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15122 -o $ol_with_threads = mach ; then
15124 for ac_hdr in mach/cthreads.h cthreads.h
15126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15128 echo "configure:15129: checking for $ac_hdr" >&5
15129 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15130 echo $ac_n "(cached) $ac_c" 1>&6
15132 cat > conftest.$ac_ext <<EOF
15133 #line 15134 "configure"
15134 #include "confdefs.h"
15137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15138 { (eval echo configure:15139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15140 if test -z "$ac_err"; then
15142 eval "ac_cv_header_$ac_safe=yes"
15145 echo "configure: failed program was:" >&5
15146 cat conftest.$ac_ext >&5
15148 eval "ac_cv_header_$ac_safe=no"
15152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15153 echo "$ac_t""yes" 1>&6
15154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15155 cat >> confdefs.h <<EOF
15156 #define $ac_tr_hdr 1
15160 echo "$ac_t""no" 1>&6
15164 if test $ac_cv_header_mach_cthreads_h = yes ; then
15165 ol_with_threads=found
15167 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15168 echo "configure:15169: checking for cthread_fork" >&5
15169 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15170 echo $ac_n "(cached) $ac_c" 1>&6
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 /* System header to define __stub macros and hopefully few prototypes,
15176 which can conflict with char cthread_fork(); below. */
15177 #include <assert.h>
15178 /* Override any gcc2 internal prototype to avoid an error. */
15179 /* We use char because int might match the return type of a gcc2
15180 builtin and then its argument prototype would still apply. */
15181 char cthread_fork();
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15197 if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15199 eval "ac_cv_func_cthread_fork=yes"
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15204 eval "ac_cv_func_cthread_fork=no"
15209 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 ol_link_threads=yes
15213 echo "$ac_t""no" 1>&6
15217 if test $ol_link_threads = no ; then
15218 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15219 echo "configure:15220: checking for cthread_fork with -all_load" >&5
15220 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15221 echo $ac_n "(cached) $ac_c" 1>&6
15225 LIBS="-all_load $LIBS"
15226 cat > conftest.$ac_ext <<EOF
15227 #line 15228 "configure"
15228 #include "confdefs.h"
15229 #include <mach/cthreads.h>
15232 cthread_fork((void *)0, (void *)0);
15236 if { (eval echo configure:15237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 ol_cv_cthread_all_load=yes
15240 echo "configure: failed program was:" >&5
15241 cat conftest.$ac_ext >&5
15243 ol_cv_cthread_all_load=no
15250 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15252 if test $ol_cv_cthread_all_load = yes ; then
15253 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15254 ol_link_threads=mach
15255 ol_with_threads=found
15259 elif test $ac_cv_header_cthreads_h = yes ; then
15261 ol_with_threads=found
15264 LIBS="$LIBS -lthreads"
15265 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15266 echo "configure:15267: checking for cthread_fork" >&5
15267 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15268 echo $ac_n "(cached) $ac_c" 1>&6
15270 cat > conftest.$ac_ext <<EOF
15271 #line 15272 "configure"
15272 #include "confdefs.h"
15273 /* System header to define __stub macros and hopefully few prototypes,
15274 which can conflict with char cthread_fork(); below. */
15275 #include <assert.h>
15276 /* Override any gcc2 internal prototype to avoid an error. */
15277 /* We use char because int might match the return type of a gcc2
15278 builtin and then its argument prototype would still apply. */
15279 char cthread_fork();
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15295 if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15297 eval "ac_cv_func_cthread_fork=yes"
15299 echo "configure: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15302 eval "ac_cv_func_cthread_fork=no"
15307 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15308 echo "$ac_t""yes" 1>&6
15309 ol_link_threads=yes
15311 echo "$ac_t""no" 1>&6
15316 if test $ol_link_threads = yes ; then
15317 LTHREAD_LIBS="-lthreads"
15318 ol_link_threads=mach
15319 ol_with_threads=found
15321 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15324 elif test $ol_with_threads = mach ; then
15325 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15328 if test $ol_link_threads = mach ; then
15329 cat >> confdefs.h <<\EOF
15330 #define HAVE_MACH_CTHREADS 1
15333 elif test $ol_with_threads = found ; then
15334 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15338 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15339 -o $ol_with_threads = pth ; then
15341 for ac_hdr in pth.h
15343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15345 echo "configure:15346: checking for $ac_hdr" >&5
15346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15347 echo $ac_n "(cached) $ac_c" 1>&6
15349 cat > conftest.$ac_ext <<EOF
15350 #line 15351 "configure"
15351 #include "confdefs.h"
15354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15355 { (eval echo configure:15356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15357 if test -z "$ac_err"; then
15359 eval "ac_cv_header_$ac_safe=yes"
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15365 eval "ac_cv_header_$ac_safe=no"
15369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15370 echo "$ac_t""yes" 1>&6
15371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15372 cat >> confdefs.h <<EOF
15373 #define $ac_tr_hdr 1
15377 echo "$ac_t""no" 1>&6
15382 if test $ac_cv_header_pth_h = yes ; then
15383 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15384 echo "configure:15385: checking for pth_version in -lpth" >&5
15385 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15387 echo $ac_n "(cached) $ac_c" 1>&6
15389 ac_save_LIBS="$LIBS"
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15397 char pth_version();
15403 if { (eval echo configure:15404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15405 eval "ac_cv_lib_$ac_lib_var=yes"
15407 echo "configure: failed program was:" >&5
15408 cat conftest.$ac_ext >&5
15410 eval "ac_cv_lib_$ac_lib_var=no"
15413 LIBS="$ac_save_LIBS"
15416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15417 echo "$ac_t""yes" 1>&6
15420 echo "$ac_t""no" 1>&6
15425 if test $have_pth = yes ; then
15426 cat >> confdefs.h <<\EOF
15427 #define HAVE_GNU_PTH 1
15430 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15431 ol_link_threads=pth
15432 ol_with_threads=found
15434 if test $ol_with_yielding_select = auto ; then
15435 ol_with_yielding_select=yes
15441 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15442 -o $ol_with_threads = lwp ; then
15444 for ac_hdr in thread.h synch.h
15446 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15447 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15448 echo "configure:15449: checking for $ac_hdr" >&5
15449 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15458 { (eval echo configure:15459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15460 if test -z "$ac_err"; then
15462 eval "ac_cv_header_$ac_safe=yes"
15465 echo "configure: failed program was:" >&5
15466 cat conftest.$ac_ext >&5
15468 eval "ac_cv_header_$ac_safe=no"
15472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15473 echo "$ac_t""yes" 1>&6
15474 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15475 cat >> confdefs.h <<EOF
15476 #define $ac_tr_hdr 1
15480 echo "$ac_t""no" 1>&6
15484 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15485 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15486 echo "configure:15487: checking for thr_create in -lthread" >&5
15487 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15491 ac_save_LIBS="$LIBS"
15492 LIBS="-lthread $LIBS"
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15495 "configure"
15495 #include "confdefs.h"
15496 /* Override any gcc2 internal prototype to avoid an error. */
15497 /* We use char because int might match the return type of a gcc2
15498 builtin and then its argument prototype would still apply. */
15505 if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15507 eval "ac_cv_lib_$ac_lib_var=yes"
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15512 eval "ac_cv_lib_$ac_lib_var=no"
15515 LIBS="$ac_save_LIBS"
15518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15519 echo "$ac_t""yes" 1>&6
15522 echo "$ac_t""no" 1>&6
15527 if test $have_thr = yes ; then
15528 cat >> confdefs.h <<\EOF
15532 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15533 ol_link_threads=thr
15535 if test $ol_with_yielding_select = auto ; then
15536 ol_with_yielding_select=yes
15540 thr_setconcurrency \
15541 thr_getconcurrency \
15544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15545 echo "configure:15546: checking for $ac_func" >&5
15546 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15547 echo $ac_n "(cached) $ac_c" 1>&6
15549 cat > conftest.$ac_ext <<EOF
15550 #line 15551 "configure"
15551 #include "confdefs.h"
15552 /* System header to define __stub macros and hopefully few prototypes,
15553 which can conflict with char $ac_func(); below. */
15554 #include <assert.h>
15555 /* Override any gcc2 internal prototype to avoid an error. */
15556 /* We use char because int might match the return type of a gcc2
15557 builtin and then its argument prototype would still apply. */
15563 /* The GNU C library defines this for functions which it implements
15564 to always fail with ENOSYS. Some functions are actually named
15565 something starting with __ and the normal name is an alias. */
15566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15574 if { (eval echo configure:15575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15576 eval "ac_cv_func_$ac_func=yes"
15578 echo "configure: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15581 eval "ac_cv_func_$ac_func=no"
15586 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15587 echo "$ac_t""yes" 1>&6
15588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15589 cat >> confdefs.h <<EOF
15590 #define $ac_tr_func 1
15594 echo "$ac_t""no" 1>&6
15601 for ac_hdr in lwp/lwp.h
15603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15605 echo "configure:15606: checking for $ac_hdr" >&5
15606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15607 echo $ac_n "(cached) $ac_c" 1>&6
15609 cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15615 { (eval echo configure:15616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15617 if test -z "$ac_err"; then
15619 eval "ac_cv_header_$ac_safe=yes"
15622 echo "configure: failed program was:" >&5
15623 cat conftest.$ac_ext >&5
15625 eval "ac_cv_header_$ac_safe=no"
15629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15630 echo "$ac_t""yes" 1>&6
15631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15632 cat >> confdefs.h <<EOF
15633 #define $ac_tr_hdr 1
15637 echo "$ac_t""no" 1>&6
15641 if test $ac_cv_header_lwp_lwp_h = yes ; then
15642 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15643 echo "configure:15644: checking for lwp_create in -llwp" >&5
15644 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15646 echo $ac_n "(cached) $ac_c" 1>&6
15648 ac_save_LIBS="$LIBS"
15650 cat > conftest.$ac_ext <<EOF
15651 #line 15652 "configure"
15652 #include "confdefs.h"
15653 /* Override any gcc2 internal prototype to avoid an error. */
15654 /* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15662 if { (eval echo configure:15663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15664 eval "ac_cv_lib_$ac_lib_var=yes"
15666 echo "configure: failed program was:" >&5
15667 cat conftest.$ac_ext >&5
15669 eval "ac_cv_lib_$ac_lib_var=no"
15672 LIBS="$ac_save_LIBS"
15675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15676 echo "$ac_t""yes" 1>&6
15679 echo "$ac_t""no" 1>&6
15684 if test $have_lwp = yes ; then
15685 cat >> confdefs.h <<\EOF
15689 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15690 ol_link_threads=lwp
15692 if test $ol_with_yielding_select = auto ; then
15693 ol_with_yielding_select=no
15699 if test $ol_with_yielding_select = yes ; then
15700 cat >> confdefs.h <<\EOF
15701 #define HAVE_YIELDING_SELECT 1
15706 if test $ol_with_threads = manual ; then
15707 ol_link_threads=yes
15709 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15711 for ac_hdr in pthread.h sched.h
15713 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15715 echo "configure:15716: checking for $ac_hdr" >&5
15716 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15717 echo $ac_n "(cached) $ac_c" 1>&6
15719 cat > conftest.$ac_ext <<EOF
15720 #line 15721 "configure"
15721 #include "confdefs.h"
15724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15725 { (eval echo configure:15726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15727 if test -z "$ac_err"; then
15729 eval "ac_cv_header_$ac_safe=yes"
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15735 eval "ac_cv_header_$ac_safe=no"
15739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15740 echo "$ac_t""yes" 1>&6
15741 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15742 cat >> confdefs.h <<EOF
15743 #define $ac_tr_hdr 1
15747 echo "$ac_t""no" 1>&6
15751 for ac_func in sched_yield pthread_yield
15753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15754 echo "configure:15755: checking for $ac_func" >&5
15755 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15756 echo $ac_n "(cached) $ac_c" 1>&6
15758 cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15761 /* System header to define __stub macros and hopefully few prototypes,
15762 which can conflict with char $ac_func(); below. */
15763 #include <assert.h>
15764 /* Override any gcc2 internal prototype to avoid an error. */
15765 /* We use char because int might match the return type of a gcc2
15766 builtin and then its argument prototype would still apply. */
15772 /* The GNU C library defines this for functions which it implements
15773 to always fail with ENOSYS. Some functions are actually named
15774 something starting with __ and the normal name is an alias. */
15775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15783 if { (eval echo configure:15784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15785 eval "ac_cv_func_$ac_func=yes"
15787 echo "configure: failed program was:" >&5
15788 cat conftest.$ac_ext >&5
15790 eval "ac_cv_func_$ac_func=no"
15795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15796 echo "$ac_t""yes" 1>&6
15797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15798 cat >> confdefs.h <<EOF
15799 #define $ac_tr_func 1
15803 echo "$ac_t""no" 1>&6
15808 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15809 echo "configure:15810: checking for LinuxThreads pthread.h" >&5
15810 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15811 echo $ac_n "(cached) $ac_c" 1>&6
15813 cat > conftest.$ac_ext <<EOF
15814 #line 15815 "configure"
15815 #include "confdefs.h"
15816 #include <pthread.h>
15818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15819 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15821 ol_cv_header_linux_threads=yes
15824 ol_cv_header_linux_threads=no
15831 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15832 if test $ol_cv_header_linux_threads = yes; then
15833 cat >> confdefs.h <<\EOF
15834 #define HAVE_LINUX_THREADS 1
15840 for ac_hdr in mach/cthreads.h
15842 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15843 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15844 echo "configure:15845: checking for $ac_hdr" >&5
15845 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15846 echo $ac_n "(cached) $ac_c" 1>&6
15848 cat > conftest.$ac_ext <<EOF
15849 #line 15850 "configure"
15850 #include "confdefs.h"
15853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15854 { (eval echo configure:15855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15856 if test -z "$ac_err"; then
15858 eval "ac_cv_header_$ac_safe=yes"
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15864 eval "ac_cv_header_$ac_safe=no"
15868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15869 echo "$ac_t""yes" 1>&6
15870 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15871 cat >> confdefs.h <<EOF
15872 #define $ac_tr_hdr 1
15876 echo "$ac_t""no" 1>&6
15880 for ac_hdr in lwp/lwp.h
15882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15884 echo "configure:15885: checking for $ac_hdr" >&5
15885 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15886 echo $ac_n "(cached) $ac_c" 1>&6
15888 cat > conftest.$ac_ext <<EOF
15889 #line 15890 "configure"
15890 #include "confdefs.h"
15893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15894 { (eval echo configure:15895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15896 if test -z "$ac_err"; then
15898 eval "ac_cv_header_$ac_safe=yes"
15901 echo "configure: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15904 eval "ac_cv_header_$ac_safe=no"
15908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15909 echo "$ac_t""yes" 1>&6
15910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15911 cat >> confdefs.h <<EOF
15912 #define $ac_tr_hdr 1
15916 echo "$ac_t""no" 1>&6
15920 for ac_hdr in thread.h synch.h
15922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15924 echo "configure:15925: checking for $ac_hdr" >&5
15925 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15926 echo $ac_n "(cached) $ac_c" 1>&6
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15930 "configure"
15930 #include "confdefs.h"
15933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15934 { (eval echo configure:15935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15936 if test -z "$ac_err"; then
15938 eval "ac_cv_header_$ac_safe=yes"
15941 echo "configure: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15944 eval "ac_cv_header_$ac_safe=no"
15948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15949 echo "$ac_t""yes" 1>&6
15950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15951 cat >> confdefs.h <<EOF
15952 #define $ac_tr_hdr 1
15956 echo "$ac_t""no" 1>&6
15962 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15963 cat >> confdefs.h <<\EOF
15964 #define REENTRANT 1
15967 cat >> confdefs.h <<\EOF
15968 #define _REENTRANT 1
15971 cat >> confdefs.h <<\EOF
15972 #define THREAD_SAFE 1
15975 cat >> confdefs.h <<\EOF
15976 #define _THREAD_SAFE 1
15979 cat >> confdefs.h <<\EOF
15980 #define THREADSAFE 1
15983 cat >> confdefs.h <<\EOF
15984 #define _THREADSAFE 1
15987 cat >> confdefs.h <<\EOF
15988 #define _SGI_MP_SOURCE 1
15992 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15993 echo "configure:15994: checking for thread specific errno" >&5
15994 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15995 echo $ac_n "(cached) $ac_c" 1>&6
15998 cat > conftest.$ac_ext <<EOF
15999 #line 16000 "configure"
16000 #include "confdefs.h"
16006 if { (eval echo configure:16007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16008 ol_cv_errno_thread_specific=yes
16010 echo "configure: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16013 ol_cv_errno_thread_specific=no
16019 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16021 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16022 echo "configure:16023: checking for thread specific h_errno" >&5
16023 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16024 echo $ac_n "(cached) $ac_c" 1>&6
16027 cat > conftest.$ac_ext <<EOF
16028 #line 16029 "configure"
16029 #include "confdefs.h"
16035 if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16037 ol_cv_h_errno_thread_specific=yes
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16042 ol_cv_h_errno_thread_specific=no
16048 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16050 if test $ol_cv_errno_thread_specific != yes \
16051 -o $ol_cv_h_errno_thread_specific != yes ; then
16052 LIBS="$LTHREAD_LIBS $LIBS"
16058 if test $ol_link_threads = no ; then
16059 if test $ol_with_threads = yes ; then
16060 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16063 if test $ol_with_threads = auto ; then
16064 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16068 cat >> confdefs.h <<\EOF
16069 #define NO_THREADS 1
16075 if test $ol_link_threads != no ; then
16076 cat >> confdefs.h <<\EOF
16077 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16084 gethostbyname_r gethostbyaddr_r \
16087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16088 echo "configure:16089: checking for $ac_func" >&5
16089 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16090 echo $ac_n "(cached) $ac_c" 1>&6
16092 cat > conftest.$ac_ext <<EOF
16093 #line 16094 "configure"
16094 #include "confdefs.h"
16095 /* System header to define __stub macros and hopefully few prototypes,
16096 which can conflict with char $ac_func(); below. */
16097 #include <assert.h>
16098 /* Override any gcc2 internal prototype to avoid an error. */
16099 /* We use char because int might match the return type of a gcc2
16100 builtin and then its argument prototype would still apply. */
16106 /* The GNU C library defines this for functions which it implements
16107 to always fail with ENOSYS. Some functions are actually named
16108 something starting with __ and the normal name is an alias. */
16109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16117 if { (eval echo configure:16118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16119 eval "ac_cv_func_$ac_func=yes"
16121 echo "configure: failed program was:" >&5
16122 cat conftest.$ac_ext >&5
16124 eval "ac_cv_func_$ac_func=no"
16129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16130 echo "$ac_t""yes" 1>&6
16131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16132 cat >> confdefs.h <<EOF
16133 #define $ac_tr_func 1
16137 echo "$ac_t""no" 1>&6
16142 if test "$ac_cv_func_ctime_r" = no ; then
16143 ol_cv_func_ctime_r_nargs=0
16145 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16146 echo "configure:16147: checking number of arguments of ctime_r" >&5
16147 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16150 cat > conftest.$ac_ext <<EOF
16151 #line 16152 "configure"
16152 #include "confdefs.h"
16155 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16158 if { (eval echo configure:16159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160 ol_cv_func_ctime_r_nargs3=yes
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16165 ol_cv_func_ctime_r_nargs3=no
16169 cat > conftest.$ac_ext <<EOF
16170 #line 16171 "configure"
16171 #include "confdefs.h"
16174 time_t ti; char *buffer; ctime_r(&ti,buffer);
16177 if { (eval echo configure:16178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16179 ol_cv_func_ctime_r_nargs2=yes
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16184 ol_cv_func_ctime_r_nargs2=no
16188 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16189 $ol_cv_func_ctime_r_nargs2 = no ; then
16191 ol_cv_func_ctime_r_nargs=3
16193 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16194 $ol_cv_func_ctime_r_nargs2 = yes ; then
16196 ol_cv_func_ctime_r_nargs=2
16199 ol_cv_func_ctime_r_nargs=0
16204 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16206 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16207 cat >> confdefs.h <<EOF
16208 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16215 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16216 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16217 echo "configure:16218: checking number of arguments of gethostbyname_r" >&5
16218 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16219 echo $ac_n "(cached) $ac_c" 1>&6
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16223 "configure"
16223 #include "confdefs.h"
16224 #include <sys/types.h>
16225 #include <sys/socket.h>
16226 #include <netinet/in.h>
16228 #define BUFSIZE (sizeof(struct hostent)+10)
16230 struct hostent hent; char buffer[BUFSIZE];
16231 int bufsize=BUFSIZE;int h_errno;
16232 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16233 buffer, bufsize, &h_errno);
16236 if { (eval echo configure:16237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16238 ol_cv_func_gethostbyname_r_nargs5=yes
16240 echo "configure: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16243 ol_cv_func_gethostbyname_r_nargs5=no
16247 cat > conftest.$ac_ext <<EOF
16248 #line 16249 "configure"
16249 #include "confdefs.h"
16250 #include <sys/types.h>
16251 #include <sys/socket.h>
16252 #include <netinet/in.h>
16254 #define BUFSIZE (sizeof(struct hostent)+10)
16256 struct hostent hent;struct hostent *rhent;
16257 char buffer[BUFSIZE];
16258 int bufsize=BUFSIZE;int h_errno;
16259 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16263 if { (eval echo configure:16264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16265 ol_cv_func_gethostbyname_r_nargs6=yes
16267 echo "configure: failed program was:" >&5
16268 cat conftest.$ac_ext >&5
16270 ol_cv_func_gethostbyname_r_nargs6=no
16274 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16275 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16277 ol_cv_func_gethostbyname_r_nargs=5
16279 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16280 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16282 ol_cv_func_gethostbyname_r_nargs=6
16285 ol_cv_func_gethostbyname_r_nargs=0
16290 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16291 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16292 cat >> confdefs.h <<EOF
16293 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16299 ol_cv_func_gethostbyname_r_nargs=0
16302 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16303 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16304 echo "configure:16305: checking number of arguments of gethostbyaddr_r" >&5
16305 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16306 echo $ac_n "(cached) $ac_c" 1>&6
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 #include <sys/types.h>
16312 #include <sys/socket.h>
16313 #include <netinet/in.h>
16315 #define BUFSIZE (sizeof(struct hostent)+10)
16317 struct hostent hent; char buffer[BUFSIZE];
16318 struct in_addr add;
16319 size_t alen=sizeof(struct in_addr);
16320 int bufsize=BUFSIZE;int h_errno;
16321 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16322 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16325 if { (eval echo configure:16326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16327 ol_cv_func_gethostbyaddr_r_nargs7=yes
16329 echo "configure: failed program was:" >&5
16330 cat conftest.$ac_ext >&5
16332 ol_cv_func_gethostbyaddr_r_nargs7=no
16336 cat > conftest.$ac_ext <<EOF
16337 #line 16338 "configure"
16338 #include "confdefs.h"
16339 #include <sys/types.h>
16340 #include <sys/socket.h>
16341 #include <netinet/in.h>
16343 #define BUFSIZE (sizeof(struct hostent)+10)
16345 struct hostent hent;
16346 struct hostent *rhent; char buffer[BUFSIZE];
16347 struct in_addr add;
16348 size_t alen=sizeof(struct in_addr);
16349 int bufsize=BUFSIZE;int h_errno;
16350 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16351 alen, AF_INET, &hent, buffer, bufsize,
16355 if { (eval echo configure:16356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16357 ol_cv_func_gethostbyaddr_r_nargs8=yes
16359 echo "configure: failed program was:" >&5
16360 cat conftest.$ac_ext >&5
16362 ol_cv_func_gethostbyaddr_r_nargs8=no
16366 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16367 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16369 ol_cv_func_gethostbyaddr_r_nargs=7
16371 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16372 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16374 ol_cv_func_gethostbyaddr_r_nargs=8
16377 ol_cv_func_gethostbyaddr_r_nargs=0
16382 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16383 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16384 cat >> confdefs.h <<EOF
16385 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16391 ol_cv_func_gethostbyaddr_r_nargs=0
16396 if test $ol_with_ldbm_api = auto \
16397 -o $ol_with_ldbm_api = berkeley \
16398 -o $ol_with_ldbm_api = bcompat ; then
16400 if test $ol_with_ldbm_api = bcompat; then \
16401 for ac_hdr in db_185.h db.h
16403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16405 echo "configure:16406: checking for $ac_hdr" >&5
16406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16407 echo $ac_n "(cached) $ac_c" 1>&6
16409 cat > conftest.$ac_ext <<EOF
16410 #line 16411 "configure"
16411 #include "confdefs.h"
16414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16415 { (eval echo configure:16416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16417 if test -z "$ac_err"; then
16419 eval "ac_cv_header_$ac_safe=yes"
16422 echo "configure: failed program was:" >&5
16423 cat conftest.$ac_ext >&5
16425 eval "ac_cv_header_$ac_safe=no"
16429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16430 echo "$ac_t""yes" 1>&6
16431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16432 cat >> confdefs.h <<EOF
16433 #define $ac_tr_hdr 1
16437 echo "$ac_t""no" 1>&6
16441 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16442 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16443 echo "configure:16444: checking if Berkeley DB header compatibility" >&5
16444 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16445 echo $ac_n "(cached) $ac_c" 1>&6
16448 cat > conftest.$ac_ext <<EOF
16449 #line 16450 "configure"
16450 #include "confdefs.h"
16453 # include <db_185.h>
16458 /* this check could be improved */
16459 #ifndef DB_VERSION_MAJOR
16460 # define DB_VERSION_MAJOR 1
16463 #if DB_VERSION_MAJOR == 1
16468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16469 egrep "__db_version_1" >/dev/null 2>&1; then
16471 ol_cv_header_db1=yes
16474 ol_cv_header_db1=no
16480 echo "$ac_t""$ol_cv_header_db1" 1>&6
16482 if test $ol_cv_header_db1 = yes ; then
16484 if test $ol_cv_lib_db = no ; then
16485 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16486 echo "configure:16487: checking for Berkeley DB link (default)" >&5
16487 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16488 echo $ac_n "(cached) $ac_c" 1>&6
16493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16495 cat > conftest.$ac_ext <<EOF
16496 #line 16497 "configure"
16497 #include "confdefs.h"
16499 #ifdef HAVE_DB_185_H
16500 # include <db_185.h>
16505 #ifndef DB_VERSION_MAJOR
16506 # define DB_VERSION_MAJOR 1
16510 #define NULL ((void*)0)
16515 #if DB_VERSION_MAJOR > 1
16518 int major, minor, patch;
16520 version = db_version( &major, &minor, &patch );
16522 if( major != DB_VERSION_MAJOR ||
16523 minor < DB_VERSION_MINOR )
16525 printf("Berkeley DB version mismatch\n"
16526 "\texpected: %s\n\tgot: %s\n",
16527 DB_VERSION_STRING, version);
16533 #if DB_VERSION_MAJOR > 2
16534 db_env_create( NULL, 0 );
16535 #elif DB_VERSION_MAJOR > 1
16536 db_appexit( NULL );
16538 (void) dbopen( NULL, 0, 0, 0, NULL);
16543 if { (eval echo configure:16544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16547 echo "configure: failed program was:" >&5
16548 cat conftest.$ac_ext >&5
16558 echo "$ac_t""$ol_cv_db_none" 1>&6
16560 if test $ol_cv_db_none = yes ; then
16565 if test $ol_cv_lib_db = no ; then
16566 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16567 echo "configure:16568: checking for Berkeley DB link (-ldb42)" >&5
16568 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16569 echo $ac_n "(cached) $ac_c" 1>&6
16574 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16576 cat > conftest.$ac_ext <<EOF
16577 #line 16578 "configure"
16578 #include "confdefs.h"
16580 #ifdef HAVE_DB_185_H
16581 # include <db_185.h>
16586 #ifndef DB_VERSION_MAJOR
16587 # define DB_VERSION_MAJOR 1
16591 #define NULL ((void*)0)
16596 #if DB_VERSION_MAJOR > 1
16599 int major, minor, patch;
16601 version = db_version( &major, &minor, &patch );
16603 if( major != DB_VERSION_MAJOR ||
16604 minor < DB_VERSION_MINOR )
16606 printf("Berkeley DB version mismatch\n"
16607 "\texpected: %s\n\tgot: %s\n",
16608 DB_VERSION_STRING, version);
16614 #if DB_VERSION_MAJOR > 2
16615 db_env_create( NULL, 0 );
16616 #elif DB_VERSION_MAJOR > 1
16617 db_appexit( NULL );
16619 (void) dbopen( NULL, 0, 0, 0, NULL);
16624 if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16639 echo "$ac_t""$ol_cv_db_db42" 1>&6
16641 if test $ol_cv_db_db42 = yes ; then
16642 ol_cv_lib_db=-ldb42
16646 if test $ol_cv_lib_db = no ; then
16647 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16648 echo "configure:16649: checking for Berkeley DB link (-ldb-42)" >&5
16649 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16650 echo $ac_n "(cached) $ac_c" 1>&6
16655 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16657 cat > conftest.$ac_ext <<EOF
16658 #line 16659 "configure"
16659 #include "confdefs.h"
16661 #ifdef HAVE_DB_185_H
16662 # include <db_185.h>
16667 #ifndef DB_VERSION_MAJOR
16668 # define DB_VERSION_MAJOR 1
16672 #define NULL ((void*)0)
16677 #if DB_VERSION_MAJOR > 1
16680 int major, minor, patch;
16682 version = db_version( &major, &minor, &patch );
16684 if( major != DB_VERSION_MAJOR ||
16685 minor < DB_VERSION_MINOR )
16687 printf("Berkeley DB version mismatch\n"
16688 "\texpected: %s\n\tgot: %s\n",
16689 DB_VERSION_STRING, version);
16695 #if DB_VERSION_MAJOR > 2
16696 db_env_create( NULL, 0 );
16697 #elif DB_VERSION_MAJOR > 1
16698 db_appexit( NULL );
16700 (void) dbopen( NULL, 0, 0, 0, NULL);
16705 if { (eval echo configure:16706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16709 echo "configure: failed program was:" >&5
16710 cat conftest.$ac_ext >&5
16720 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16722 if test $ol_cv_db_db_42 = yes ; then
16723 ol_cv_lib_db=-ldb-42
16727 if test $ol_cv_lib_db = no ; then
16728 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16729 echo "configure:16730: checking for Berkeley DB link (-ldb-4.2)" >&5
16730 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16731 echo $ac_n "(cached) $ac_c" 1>&6
16736 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16738 cat > conftest.$ac_ext <<EOF
16739 #line 16740 "configure"
16740 #include "confdefs.h"
16742 #ifdef HAVE_DB_185_H
16743 # include <db_185.h>
16748 #ifndef DB_VERSION_MAJOR
16749 # define DB_VERSION_MAJOR 1
16753 #define NULL ((void*)0)
16758 #if DB_VERSION_MAJOR > 1
16761 int major, minor, patch;
16763 version = db_version( &major, &minor, &patch );
16765 if( major != DB_VERSION_MAJOR ||
16766 minor < DB_VERSION_MINOR )
16768 printf("Berkeley DB version mismatch\n"
16769 "\texpected: %s\n\tgot: %s\n",
16770 DB_VERSION_STRING, version);
16776 #if DB_VERSION_MAJOR > 2
16777 db_env_create( NULL, 0 );
16778 #elif DB_VERSION_MAJOR > 1
16779 db_appexit( NULL );
16781 (void) dbopen( NULL, 0, 0, 0, NULL);
16786 if { (eval echo configure:16787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16788 ol_cv_db_db_4_dot_2=yes
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16793 ol_cv_db_db_4_dot_2=no
16801 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16803 if test $ol_cv_db_db_4_dot_2 = yes ; then
16804 ol_cv_lib_db=-ldb-4.2
16808 if test $ol_cv_lib_db = no ; then
16809 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16810 echo "configure:16811: checking for Berkeley DB link (-ldb-4-2)" >&5
16811 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16817 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16819 cat > conftest.$ac_ext <<EOF
16820 #line 16821 "configure"
16821 #include "confdefs.h"
16823 #ifdef HAVE_DB_185_H
16824 # include <db_185.h>
16829 #ifndef DB_VERSION_MAJOR
16830 # define DB_VERSION_MAJOR 1
16834 #define NULL ((void*)0)
16839 #if DB_VERSION_MAJOR > 1
16842 int major, minor, patch;
16844 version = db_version( &major, &minor, &patch );
16846 if( major != DB_VERSION_MAJOR ||
16847 minor < DB_VERSION_MINOR )
16849 printf("Berkeley DB version mismatch\n"
16850 "\texpected: %s\n\tgot: %s\n",
16851 DB_VERSION_STRING, version);
16857 #if DB_VERSION_MAJOR > 2
16858 db_env_create( NULL, 0 );
16859 #elif DB_VERSION_MAJOR > 1
16860 db_appexit( NULL );
16862 (void) dbopen( NULL, 0, 0, 0, NULL);
16867 if { (eval echo configure:16868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16869 ol_cv_db_db_4_2=yes
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16882 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16884 if test $ol_cv_db_db_4_2 = yes ; then
16885 ol_cv_lib_db=-ldb-4-2
16889 if test $ol_cv_lib_db = no ; then
16890 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16891 echo "configure:16892: checking for Berkeley DB link (-ldb-4)" >&5
16892 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16893 echo $ac_n "(cached) $ac_c" 1>&6
16898 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16900 cat > conftest.$ac_ext <<EOF
16901 #line 16902 "configure"
16902 #include "confdefs.h"
16904 #ifdef HAVE_DB_185_H
16905 # include <db_185.h>
16910 #ifndef DB_VERSION_MAJOR
16911 # define DB_VERSION_MAJOR 1
16915 #define NULL ((void*)0)
16920 #if DB_VERSION_MAJOR > 1
16923 int major, minor, patch;
16925 version = db_version( &major, &minor, &patch );
16927 if( major != DB_VERSION_MAJOR ||
16928 minor < DB_VERSION_MINOR )
16930 printf("Berkeley DB version mismatch\n"
16931 "\texpected: %s\n\tgot: %s\n",
16932 DB_VERSION_STRING, version);
16938 #if DB_VERSION_MAJOR > 2
16939 db_env_create( NULL, 0 );
16940 #elif DB_VERSION_MAJOR > 1
16941 db_appexit( NULL );
16943 (void) dbopen( NULL, 0, 0, 0, NULL);
16948 if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16952 echo "configure: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16963 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16965 if test $ol_cv_db_db_4 = yes ; then
16966 ol_cv_lib_db=-ldb-4
16970 if test $ol_cv_lib_db = no ; then
16971 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16972 echo "configure:16973: checking for Berkeley DB link (-ldb4)" >&5
16973 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16974 echo $ac_n "(cached) $ac_c" 1>&6
16979 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16983 "configure"
16983 #include "confdefs.h"
16985 #ifdef HAVE_DB_185_H
16986 # include <db_185.h>
16991 #ifndef DB_VERSION_MAJOR
16992 # define DB_VERSION_MAJOR 1
16996 #define NULL ((void*)0)
17001 #if DB_VERSION_MAJOR > 1
17004 int major, minor, patch;
17006 version = db_version( &major, &minor, &patch );
17008 if( major != DB_VERSION_MAJOR ||
17009 minor < DB_VERSION_MINOR )
17011 printf("Berkeley DB version mismatch\n"
17012 "\texpected: %s\n\tgot: %s\n",
17013 DB_VERSION_STRING, version);
17019 #if DB_VERSION_MAJOR > 2
17020 db_env_create( NULL, 0 );
17021 #elif DB_VERSION_MAJOR > 1
17022 db_appexit( NULL );
17024 (void) dbopen( NULL, 0, 0, 0, NULL);
17029 if { (eval echo configure:17030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17033 echo "configure: failed program was:" >&5
17034 cat conftest.$ac_ext >&5
17044 echo "$ac_t""$ol_cv_db_db4" 1>&6
17046 if test $ol_cv_db_db4 = yes ; then
17051 if test $ol_cv_lib_db = no ; then
17052 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17053 echo "configure:17054: checking for Berkeley DB link (-ldb)" >&5
17054 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17055 echo $ac_n "(cached) $ac_c" 1>&6
17060 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17062 cat > conftest.$ac_ext <<EOF
17063 #line 17064 "configure"
17064 #include "confdefs.h"
17066 #ifdef HAVE_DB_185_H
17067 # include <db_185.h>
17072 #ifndef DB_VERSION_MAJOR
17073 # define DB_VERSION_MAJOR 1
17077 #define NULL ((void*)0)
17082 #if DB_VERSION_MAJOR > 1
17085 int major, minor, patch;
17087 version = db_version( &major, &minor, &patch );
17089 if( major != DB_VERSION_MAJOR ||
17090 minor < DB_VERSION_MINOR )
17092 printf("Berkeley DB version mismatch\n"
17093 "\texpected: %s\n\tgot: %s\n",
17094 DB_VERSION_STRING, version);
17100 #if DB_VERSION_MAJOR > 2
17101 db_env_create( NULL, 0 );
17102 #elif DB_VERSION_MAJOR > 1
17103 db_appexit( NULL );
17105 (void) dbopen( NULL, 0, 0, 0, NULL);
17110 if { (eval echo configure:17111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17114 echo "configure: failed program was:" >&5
17115 cat conftest.$ac_ext >&5
17125 echo "$ac_t""$ol_cv_db_db" 1>&6
17127 if test $ol_cv_db_db = yes ; then
17132 if test $ol_cv_lib_db = no ; then
17133 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17134 echo "configure:17135: checking for Berkeley DB link (-ldb41)" >&5
17135 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17136 echo $ac_n "(cached) $ac_c" 1>&6
17141 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17143 cat > conftest.$ac_ext <<EOF
17144 #line 17145 "configure"
17145 #include "confdefs.h"
17147 #ifdef HAVE_DB_185_H
17148 # include <db_185.h>
17153 #ifndef DB_VERSION_MAJOR
17154 # define DB_VERSION_MAJOR 1
17158 #define NULL ((void*)0)
17163 #if DB_VERSION_MAJOR > 1
17166 int major, minor, patch;
17168 version = db_version( &major, &minor, &patch );
17170 if( major != DB_VERSION_MAJOR ||
17171 minor < DB_VERSION_MINOR )
17173 printf("Berkeley DB version mismatch\n"
17174 "\texpected: %s\n\tgot: %s\n",
17175 DB_VERSION_STRING, version);
17181 #if DB_VERSION_MAJOR > 2
17182 db_env_create( NULL, 0 );
17183 #elif DB_VERSION_MAJOR > 1
17184 db_appexit( NULL );
17186 (void) dbopen( NULL, 0, 0, 0, NULL);
17191 if { (eval echo configure:17192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17195 echo "configure: failed program was:" >&5
17196 cat conftest.$ac_ext >&5
17206 echo "$ac_t""$ol_cv_db_db41" 1>&6
17208 if test $ol_cv_db_db41 = yes ; then
17209 ol_cv_lib_db=-ldb41
17213 if test $ol_cv_lib_db = no ; then
17214 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17215 echo "configure:17216: checking for Berkeley DB link (-ldb-41)" >&5
17216 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
17222 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17224 cat > conftest.$ac_ext <<EOF
17225 #line 17226 "configure"
17226 #include "confdefs.h"
17228 #ifdef HAVE_DB_185_H
17229 # include <db_185.h>
17234 #ifndef DB_VERSION_MAJOR
17235 # define DB_VERSION_MAJOR 1
17239 #define NULL ((void*)0)
17244 #if DB_VERSION_MAJOR > 1
17247 int major, minor, patch;
17249 version = db_version( &major, &minor, &patch );
17251 if( major != DB_VERSION_MAJOR ||
17252 minor < DB_VERSION_MINOR )
17254 printf("Berkeley DB version mismatch\n"
17255 "\texpected: %s\n\tgot: %s\n",
17256 DB_VERSION_STRING, version);
17262 #if DB_VERSION_MAJOR > 2
17263 db_env_create( NULL, 0 );
17264 #elif DB_VERSION_MAJOR > 1
17265 db_appexit( NULL );
17267 (void) dbopen( NULL, 0, 0, 0, NULL);
17272 if { (eval echo configure:17273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17276 echo "configure: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17287 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17289 if test $ol_cv_db_db_41 = yes ; then
17290 ol_cv_lib_db=-ldb-41
17294 if test $ol_cv_lib_db = no ; then
17295 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17296 echo "configure:17297: checking for Berkeley DB link (-ldb-4.1)" >&5
17297 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17298 echo $ac_n "(cached) $ac_c" 1>&6
17303 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17305 cat > conftest.$ac_ext <<EOF
17306 #line 17307 "configure"
17307 #include "confdefs.h"
17309 #ifdef HAVE_DB_185_H
17310 # include <db_185.h>
17315 #ifndef DB_VERSION_MAJOR
17316 # define DB_VERSION_MAJOR 1
17320 #define NULL ((void*)0)
17325 #if DB_VERSION_MAJOR > 1
17328 int major, minor, patch;
17330 version = db_version( &major, &minor, &patch );
17332 if( major != DB_VERSION_MAJOR ||
17333 minor < DB_VERSION_MINOR )
17335 printf("Berkeley DB version mismatch\n"
17336 "\texpected: %s\n\tgot: %s\n",
17337 DB_VERSION_STRING, version);
17343 #if DB_VERSION_MAJOR > 2
17344 db_env_create( NULL, 0 );
17345 #elif DB_VERSION_MAJOR > 1
17346 db_appexit( NULL );
17348 (void) dbopen( NULL, 0, 0, 0, NULL);
17353 if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17355 ol_cv_db_db_4_dot_1=yes
17357 echo "configure: failed program was:" >&5
17358 cat conftest.$ac_ext >&5
17360 ol_cv_db_db_4_dot_1=no
17368 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17370 if test $ol_cv_db_db_4_dot_1 = yes ; then
17371 ol_cv_lib_db=-ldb-4.1
17375 if test $ol_cv_lib_db = no ; then
17376 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17377 echo "configure:17378: checking for Berkeley DB link (-ldb-4-1)" >&5
17378 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17379 echo $ac_n "(cached) $ac_c" 1>&6
17384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17386 cat > conftest.$ac_ext <<EOF
17387 #line 17388 "configure"
17388 #include "confdefs.h"
17390 #ifdef HAVE_DB_185_H
17391 # include <db_185.h>
17396 #ifndef DB_VERSION_MAJOR
17397 # define DB_VERSION_MAJOR 1
17401 #define NULL ((void*)0)
17406 #if DB_VERSION_MAJOR > 1
17409 int major, minor, patch;
17411 version = db_version( &major, &minor, &patch );
17413 if( major != DB_VERSION_MAJOR ||
17414 minor < DB_VERSION_MINOR )
17416 printf("Berkeley DB version mismatch\n"
17417 "\texpected: %s\n\tgot: %s\n",
17418 DB_VERSION_STRING, version);
17424 #if DB_VERSION_MAJOR > 2
17425 db_env_create( NULL, 0 );
17426 #elif DB_VERSION_MAJOR > 1
17427 db_appexit( NULL );
17429 (void) dbopen( NULL, 0, 0, 0, NULL);
17434 if { (eval echo configure:17435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17436 ol_cv_db_db_4_1=yes
17438 echo "configure: failed program was:" >&5
17439 cat conftest.$ac_ext >&5
17449 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17451 if test $ol_cv_db_db_4_1 = yes ; then
17452 ol_cv_lib_db=-ldb-4-1
17456 if test $ol_cv_lib_db = no ; then
17457 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17458 echo "configure:17459: checking for Berkeley DB link (-ldb3)" >&5
17459 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17460 echo $ac_n "(cached) $ac_c" 1>&6
17465 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17467 cat > conftest.$ac_ext <<EOF
17468 #line 17469 "configure"
17469 #include "confdefs.h"
17471 #ifdef HAVE_DB_185_H
17472 # include <db_185.h>
17477 #ifndef DB_VERSION_MAJOR
17478 # define DB_VERSION_MAJOR 1
17482 #define NULL ((void*)0)
17487 #if DB_VERSION_MAJOR > 1
17490 int major, minor, patch;
17492 version = db_version( &major, &minor, &patch );
17494 if( major != DB_VERSION_MAJOR ||
17495 minor < DB_VERSION_MINOR )
17497 printf("Berkeley DB version mismatch\n"
17498 "\texpected: %s\n\tgot: %s\n",
17499 DB_VERSION_STRING, version);
17505 #if DB_VERSION_MAJOR > 2
17506 db_env_create( NULL, 0 );
17507 #elif DB_VERSION_MAJOR > 1
17508 db_appexit( NULL );
17510 (void) dbopen( NULL, 0, 0, 0, NULL);
17515 if { (eval echo configure:17516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17519 echo "configure: failed program was:" >&5
17520 cat conftest.$ac_ext >&5
17530 echo "$ac_t""$ol_cv_db_db3" 1>&6
17532 if test $ol_cv_db_db3 = yes ; then
17537 if test $ol_cv_lib_db = no ; then
17538 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17539 echo "configure:17540: checking for Berkeley DB link (-ldb-3)" >&5
17540 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17541 echo $ac_n "(cached) $ac_c" 1>&6
17546 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17548 cat > conftest.$ac_ext <<EOF
17549 #line 17550 "configure"
17550 #include "confdefs.h"
17552 #ifdef HAVE_DB_185_H
17553 # include <db_185.h>
17558 #ifndef DB_VERSION_MAJOR
17559 # define DB_VERSION_MAJOR 1
17563 #define NULL ((void*)0)
17568 #if DB_VERSION_MAJOR > 1
17571 int major, minor, patch;
17573 version = db_version( &major, &minor, &patch );
17575 if( major != DB_VERSION_MAJOR ||
17576 minor < DB_VERSION_MINOR )
17578 printf("Berkeley DB version mismatch\n"
17579 "\texpected: %s\n\tgot: %s\n",
17580 DB_VERSION_STRING, version);
17586 #if DB_VERSION_MAJOR > 2
17587 db_env_create( NULL, 0 );
17588 #elif DB_VERSION_MAJOR > 1
17589 db_appexit( NULL );
17591 (void) dbopen( NULL, 0, 0, 0, NULL);
17596 if { (eval echo configure:17597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17600 echo "configure: failed program was:" >&5
17601 cat conftest.$ac_ext >&5
17611 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17613 if test $ol_cv_db_db_3 = yes ; then
17614 ol_cv_lib_db=-ldb-3
17618 if test $ol_cv_lib_db = no ; then
17619 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17620 echo "configure:17621: checking for Berkeley DB link (-ldb2)" >&5
17621 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17622 echo $ac_n "(cached) $ac_c" 1>&6
17627 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17629 cat > conftest.$ac_ext <<EOF
17630 #line 17631 "configure"
17631 #include "confdefs.h"
17633 #ifdef HAVE_DB_185_H
17634 # include <db_185.h>
17639 #ifndef DB_VERSION_MAJOR
17640 # define DB_VERSION_MAJOR 1
17644 #define NULL ((void*)0)
17649 #if DB_VERSION_MAJOR > 1
17652 int major, minor, patch;
17654 version = db_version( &major, &minor, &patch );
17656 if( major != DB_VERSION_MAJOR ||
17657 minor < DB_VERSION_MINOR )
17659 printf("Berkeley DB version mismatch\n"
17660 "\texpected: %s\n\tgot: %s\n",
17661 DB_VERSION_STRING, version);
17667 #if DB_VERSION_MAJOR > 2
17668 db_env_create( NULL, 0 );
17669 #elif DB_VERSION_MAJOR > 1
17670 db_appexit( NULL );
17672 (void) dbopen( NULL, 0, 0, 0, NULL);
17677 if { (eval echo configure:17678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17681 echo "configure: failed program was:" >&5
17682 cat conftest.$ac_ext >&5
17692 echo "$ac_t""$ol_cv_db_db2" 1>&6
17694 if test $ol_cv_db_db2 = yes ; then
17699 if test $ol_cv_lib_db = no ; then
17700 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17701 echo "configure:17702: checking for Berkeley DB link (-ldb-2)" >&5
17702 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17703 echo $ac_n "(cached) $ac_c" 1>&6
17708 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17710 cat > conftest.$ac_ext <<EOF
17711 #line 17712 "configure"
17712 #include "confdefs.h"
17714 #ifdef HAVE_DB_185_H
17715 # include <db_185.h>
17720 #ifndef DB_VERSION_MAJOR
17721 # define DB_VERSION_MAJOR 1
17725 #define NULL ((void*)0)
17730 #if DB_VERSION_MAJOR > 1
17733 int major, minor, patch;
17735 version = db_version( &major, &minor, &patch );
17737 if( major != DB_VERSION_MAJOR ||
17738 minor < DB_VERSION_MINOR )
17740 printf("Berkeley DB version mismatch\n"
17741 "\texpected: %s\n\tgot: %s\n",
17742 DB_VERSION_STRING, version);
17748 #if DB_VERSION_MAJOR > 2
17749 db_env_create( NULL, 0 );
17750 #elif DB_VERSION_MAJOR > 1
17751 db_appexit( NULL );
17753 (void) dbopen( NULL, 0, 0, 0, NULL);
17758 if { (eval echo configure:17759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17762 echo "configure: failed program was:" >&5
17763 cat conftest.$ac_ext >&5
17773 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17775 if test $ol_cv_db_db_2 = yes ; then
17776 ol_cv_lib_db=-ldb-2
17780 if test $ol_cv_lib_db = no ; then
17781 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17782 echo "configure:17783: checking for Berkeley DB link (-ldb1)" >&5
17783 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17784 echo $ac_n "(cached) $ac_c" 1>&6
17789 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17791 cat > conftest.$ac_ext <<EOF
17792 #line 17793 "configure"
17793 #include "confdefs.h"
17795 #ifdef HAVE_DB_185_H
17796 # include <db_185.h>
17801 #ifndef DB_VERSION_MAJOR
17802 # define DB_VERSION_MAJOR 1
17806 #define NULL ((void*)0)
17811 #if DB_VERSION_MAJOR > 1
17814 int major, minor, patch;
17816 version = db_version( &major, &minor, &patch );
17818 if( major != DB_VERSION_MAJOR ||
17819 minor < DB_VERSION_MINOR )
17821 printf("Berkeley DB version mismatch\n"
17822 "\texpected: %s\n\tgot: %s\n",
17823 DB_VERSION_STRING, version);
17829 #if DB_VERSION_MAJOR > 2
17830 db_env_create( NULL, 0 );
17831 #elif DB_VERSION_MAJOR > 1
17832 db_appexit( NULL );
17834 (void) dbopen( NULL, 0, 0, 0, NULL);
17839 if { (eval echo configure:17840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17843 echo "configure: failed program was:" >&5
17844 cat conftest.$ac_ext >&5
17854 echo "$ac_t""$ol_cv_db_db1" 1>&6
17856 if test $ol_cv_db_db1 = yes ; then
17861 if test $ol_cv_lib_db = no ; then
17862 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17863 echo "configure:17864: checking for Berkeley DB link (-ldb-1)" >&5
17864 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17865 echo $ac_n "(cached) $ac_c" 1>&6
17870 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17872 cat > conftest.$ac_ext <<EOF
17873 #line 17874 "configure"
17874 #include "confdefs.h"
17876 #ifdef HAVE_DB_185_H
17877 # include <db_185.h>
17882 #ifndef DB_VERSION_MAJOR
17883 # define DB_VERSION_MAJOR 1
17887 #define NULL ((void*)0)
17892 #if DB_VERSION_MAJOR > 1
17895 int major, minor, patch;
17897 version = db_version( &major, &minor, &patch );
17899 if( major != DB_VERSION_MAJOR ||
17900 minor < DB_VERSION_MINOR )
17902 printf("Berkeley DB version mismatch\n"
17903 "\texpected: %s\n\tgot: %s\n",
17904 DB_VERSION_STRING, version);
17910 #if DB_VERSION_MAJOR > 2
17911 db_env_create( NULL, 0 );
17912 #elif DB_VERSION_MAJOR > 1
17913 db_appexit( NULL );
17915 (void) dbopen( NULL, 0, 0, 0, NULL);
17920 if { (eval echo configure:17921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17924 echo "configure: failed program was:" >&5
17925 cat conftest.$ac_ext >&5
17935 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17937 if test $ol_cv_db_db_1 = yes ; then
17938 ol_cv_lib_db=-ldb-1
17943 if test "$ol_cv_lib_db" != no ; then
17944 ol_cv_berkeley_db=yes
17950 ol_cv_berkeley_db=no
17953 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17954 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17955 echo "configure:17956: checking for $ac_hdr" >&5
17956 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17957 echo $ac_n "(cached) $ac_c" 1>&6
17959 cat > conftest.$ac_ext <<EOF
17960 #line 17961 "configure"
17961 #include "confdefs.h"
17964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17965 { (eval echo configure:17966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17967 if test -z "$ac_err"; then
17969 eval "ac_cv_header_$ac_safe=yes"
17972 echo "configure: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17975 eval "ac_cv_header_$ac_safe=no"
17979 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17980 echo "$ac_t""yes" 1>&6
17981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17982 cat >> confdefs.h <<EOF
17983 #define $ac_tr_hdr 1
17987 echo "$ac_t""no" 1>&6
17991 if test $ac_cv_header_db_h = yes; then
17993 if test $ol_cv_lib_db = no ; then
17994 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17995 echo "configure:17996: checking for Berkeley DB link (default)" >&5
17996 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17997 echo $ac_n "(cached) $ac_c" 1>&6
18002 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18004 cat > conftest.$ac_ext <<EOF
18005 #line 18006 "configure"
18006 #include "confdefs.h"
18008 #ifdef HAVE_DB_185_H
18009 # include <db_185.h>
18014 #ifndef DB_VERSION_MAJOR
18015 # define DB_VERSION_MAJOR 1
18019 #define NULL ((void*)0)
18024 #if DB_VERSION_MAJOR > 1
18027 int major, minor, patch;
18029 version = db_version( &major, &minor, &patch );
18031 if( major != DB_VERSION_MAJOR ||
18032 minor < DB_VERSION_MINOR )
18034 printf("Berkeley DB version mismatch\n"
18035 "\texpected: %s\n\tgot: %s\n",
18036 DB_VERSION_STRING, version);
18042 #if DB_VERSION_MAJOR > 2
18043 db_env_create( NULL, 0 );
18044 #elif DB_VERSION_MAJOR > 1
18045 db_appexit( NULL );
18047 (void) dbopen( NULL, 0, 0, 0, NULL);
18052 if { (eval echo configure:18053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18056 echo "configure: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18067 echo "$ac_t""$ol_cv_db_none" 1>&6
18069 if test $ol_cv_db_none = yes ; then
18074 if test $ol_cv_lib_db = no ; then
18075 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18076 echo "configure:18077: checking for Berkeley DB link (-ldb42)" >&5
18077 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18078 echo $ac_n "(cached) $ac_c" 1>&6
18083 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18087 "configure"
18087 #include "confdefs.h"
18089 #ifdef HAVE_DB_185_H
18090 # include <db_185.h>
18095 #ifndef DB_VERSION_MAJOR
18096 # define DB_VERSION_MAJOR 1
18100 #define NULL ((void*)0)
18105 #if DB_VERSION_MAJOR > 1
18108 int major, minor, patch;
18110 version = db_version( &major, &minor, &patch );
18112 if( major != DB_VERSION_MAJOR ||
18113 minor < DB_VERSION_MINOR )
18115 printf("Berkeley DB version mismatch\n"
18116 "\texpected: %s\n\tgot: %s\n",
18117 DB_VERSION_STRING, version);
18123 #if DB_VERSION_MAJOR > 2
18124 db_env_create( NULL, 0 );
18125 #elif DB_VERSION_MAJOR > 1
18126 db_appexit( NULL );
18128 (void) dbopen( NULL, 0, 0, 0, NULL);
18133 if { (eval echo configure:18134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18137 echo "configure: failed program was:" >&5
18138 cat conftest.$ac_ext >&5
18148 echo "$ac_t""$ol_cv_db_db42" 1>&6
18150 if test $ol_cv_db_db42 = yes ; then
18151 ol_cv_lib_db=-ldb42
18155 if test $ol_cv_lib_db = no ; then
18156 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18157 echo "configure:18158: checking for Berkeley DB link (-ldb-42)" >&5
18158 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18159 echo $ac_n "(cached) $ac_c" 1>&6
18164 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18170 #ifdef HAVE_DB_185_H
18171 # include <db_185.h>
18176 #ifndef DB_VERSION_MAJOR
18177 # define DB_VERSION_MAJOR 1
18181 #define NULL ((void*)0)
18186 #if DB_VERSION_MAJOR > 1
18189 int major, minor, patch;
18191 version = db_version( &major, &minor, &patch );
18193 if( major != DB_VERSION_MAJOR ||
18194 minor < DB_VERSION_MINOR )
18196 printf("Berkeley DB version mismatch\n"
18197 "\texpected: %s\n\tgot: %s\n",
18198 DB_VERSION_STRING, version);
18204 #if DB_VERSION_MAJOR > 2
18205 db_env_create( NULL, 0 );
18206 #elif DB_VERSION_MAJOR > 1
18207 db_appexit( NULL );
18209 (void) dbopen( NULL, 0, 0, 0, NULL);
18214 if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18229 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18231 if test $ol_cv_db_db_42 = yes ; then
18232 ol_cv_lib_db=-ldb-42
18236 if test $ol_cv_lib_db = no ; then
18237 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18238 echo "configure:18239: checking for Berkeley DB link (-ldb-4.2)" >&5
18239 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18240 echo $ac_n "(cached) $ac_c" 1>&6
18245 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18247 cat > conftest.$ac_ext <<EOF
18248 #line 18249 "configure"
18249 #include "confdefs.h"
18251 #ifdef HAVE_DB_185_H
18252 # include <db_185.h>
18257 #ifndef DB_VERSION_MAJOR
18258 # define DB_VERSION_MAJOR 1
18262 #define NULL ((void*)0)
18267 #if DB_VERSION_MAJOR > 1
18270 int major, minor, patch;
18272 version = db_version( &major, &minor, &patch );
18274 if( major != DB_VERSION_MAJOR ||
18275 minor < DB_VERSION_MINOR )
18277 printf("Berkeley DB version mismatch\n"
18278 "\texpected: %s\n\tgot: %s\n",
18279 DB_VERSION_STRING, version);
18285 #if DB_VERSION_MAJOR > 2
18286 db_env_create( NULL, 0 );
18287 #elif DB_VERSION_MAJOR > 1
18288 db_appexit( NULL );
18290 (void) dbopen( NULL, 0, 0, 0, NULL);
18295 if { (eval echo configure:18296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18297 ol_cv_db_db_4_dot_2=yes
18299 echo "configure: failed program was:" >&5
18300 cat conftest.$ac_ext >&5
18302 ol_cv_db_db_4_dot_2=no
18310 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18312 if test $ol_cv_db_db_4_dot_2 = yes ; then
18313 ol_cv_lib_db=-ldb-4.2
18317 if test $ol_cv_lib_db = no ; then
18318 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18319 echo "configure:18320: checking for Berkeley DB link (-ldb-4-2)" >&5
18320 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18321 echo $ac_n "(cached) $ac_c" 1>&6
18326 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18328 cat > conftest.$ac_ext <<EOF
18329 #line 18330 "configure"
18330 #include "confdefs.h"
18332 #ifdef HAVE_DB_185_H
18333 # include <db_185.h>
18338 #ifndef DB_VERSION_MAJOR
18339 # define DB_VERSION_MAJOR 1
18343 #define NULL ((void*)0)
18348 #if DB_VERSION_MAJOR > 1
18351 int major, minor, patch;
18353 version = db_version( &major, &minor, &patch );
18355 if( major != DB_VERSION_MAJOR ||
18356 minor < DB_VERSION_MINOR )
18358 printf("Berkeley DB version mismatch\n"
18359 "\texpected: %s\n\tgot: %s\n",
18360 DB_VERSION_STRING, version);
18366 #if DB_VERSION_MAJOR > 2
18367 db_env_create( NULL, 0 );
18368 #elif DB_VERSION_MAJOR > 1
18369 db_appexit( NULL );
18371 (void) dbopen( NULL, 0, 0, 0, NULL);
18376 if { (eval echo configure:18377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18378 ol_cv_db_db_4_2=yes
18380 echo "configure: failed program was:" >&5
18381 cat conftest.$ac_ext >&5
18391 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18393 if test $ol_cv_db_db_4_2 = yes ; then
18394 ol_cv_lib_db=-ldb-4-2
18398 if test $ol_cv_lib_db = no ; then
18399 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18400 echo "configure:18401: checking for Berkeley DB link (-ldb-4)" >&5
18401 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18402 echo $ac_n "(cached) $ac_c" 1>&6
18407 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18409 cat > conftest.$ac_ext <<EOF
18410 #line 18411 "configure"
18411 #include "confdefs.h"
18413 #ifdef HAVE_DB_185_H
18414 # include <db_185.h>
18419 #ifndef DB_VERSION_MAJOR
18420 # define DB_VERSION_MAJOR 1
18424 #define NULL ((void*)0)
18429 #if DB_VERSION_MAJOR > 1
18432 int major, minor, patch;
18434 version = db_version( &major, &minor, &patch );
18436 if( major != DB_VERSION_MAJOR ||
18437 minor < DB_VERSION_MINOR )
18439 printf("Berkeley DB version mismatch\n"
18440 "\texpected: %s\n\tgot: %s\n",
18441 DB_VERSION_STRING, version);
18447 #if DB_VERSION_MAJOR > 2
18448 db_env_create( NULL, 0 );
18449 #elif DB_VERSION_MAJOR > 1
18450 db_appexit( NULL );
18452 (void) dbopen( NULL, 0, 0, 0, NULL);
18457 if { (eval echo configure:18458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18461 echo "configure: failed program was:" >&5
18462 cat conftest.$ac_ext >&5
18472 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18474 if test $ol_cv_db_db_4 = yes ; then
18475 ol_cv_lib_db=-ldb-4
18479 if test $ol_cv_lib_db = no ; then
18480 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18481 echo "configure:18482: checking for Berkeley DB link (-ldb4)" >&5
18482 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18483 echo $ac_n "(cached) $ac_c" 1>&6
18488 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18490 cat > conftest.$ac_ext <<EOF
18491 #line 18492 "configure"
18492 #include "confdefs.h"
18494 #ifdef HAVE_DB_185_H
18495 # include <db_185.h>
18500 #ifndef DB_VERSION_MAJOR
18501 # define DB_VERSION_MAJOR 1
18505 #define NULL ((void*)0)
18510 #if DB_VERSION_MAJOR > 1
18513 int major, minor, patch;
18515 version = db_version( &major, &minor, &patch );
18517 if( major != DB_VERSION_MAJOR ||
18518 minor < DB_VERSION_MINOR )
18520 printf("Berkeley DB version mismatch\n"
18521 "\texpected: %s\n\tgot: %s\n",
18522 DB_VERSION_STRING, version);
18528 #if DB_VERSION_MAJOR > 2
18529 db_env_create( NULL, 0 );
18530 #elif DB_VERSION_MAJOR > 1
18531 db_appexit( NULL );
18533 (void) dbopen( NULL, 0, 0, 0, NULL);
18538 if { (eval echo configure:18539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18542 echo "configure: failed program was:" >&5
18543 cat conftest.$ac_ext >&5
18553 echo "$ac_t""$ol_cv_db_db4" 1>&6
18555 if test $ol_cv_db_db4 = yes ; then
18560 if test $ol_cv_lib_db = no ; then
18561 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18562 echo "configure:18563: checking for Berkeley DB link (-ldb)" >&5
18563 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18564 echo $ac_n "(cached) $ac_c" 1>&6
18569 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18571 cat > conftest.$ac_ext <<EOF
18572 #line 18573 "configure"
18573 #include "confdefs.h"
18575 #ifdef HAVE_DB_185_H
18576 # include <db_185.h>
18581 #ifndef DB_VERSION_MAJOR
18582 # define DB_VERSION_MAJOR 1
18586 #define NULL ((void*)0)
18591 #if DB_VERSION_MAJOR > 1
18594 int major, minor, patch;
18596 version = db_version( &major, &minor, &patch );
18598 if( major != DB_VERSION_MAJOR ||
18599 minor < DB_VERSION_MINOR )
18601 printf("Berkeley DB version mismatch\n"
18602 "\texpected: %s\n\tgot: %s\n",
18603 DB_VERSION_STRING, version);
18609 #if DB_VERSION_MAJOR > 2
18610 db_env_create( NULL, 0 );
18611 #elif DB_VERSION_MAJOR > 1
18612 db_appexit( NULL );
18614 (void) dbopen( NULL, 0, 0, 0, NULL);
18619 if { (eval echo configure:18620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18623 echo "configure: failed program was:" >&5
18624 cat conftest.$ac_ext >&5
18634 echo "$ac_t""$ol_cv_db_db" 1>&6
18636 if test $ol_cv_db_db = yes ; then
18641 if test $ol_cv_lib_db = no ; then
18642 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18643 echo "configure:18644: checking for Berkeley DB link (-ldb41)" >&5
18644 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18645 echo $ac_n "(cached) $ac_c" 1>&6
18650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18652 cat > conftest.$ac_ext <<EOF
18653 #line 18654 "configure"
18654 #include "confdefs.h"
18656 #ifdef HAVE_DB_185_H
18657 # include <db_185.h>
18662 #ifndef DB_VERSION_MAJOR
18663 # define DB_VERSION_MAJOR 1
18667 #define NULL ((void*)0)
18672 #if DB_VERSION_MAJOR > 1
18675 int major, minor, patch;
18677 version = db_version( &major, &minor, &patch );
18679 if( major != DB_VERSION_MAJOR ||
18680 minor < DB_VERSION_MINOR )
18682 printf("Berkeley DB version mismatch\n"
18683 "\texpected: %s\n\tgot: %s\n",
18684 DB_VERSION_STRING, version);
18690 #if DB_VERSION_MAJOR > 2
18691 db_env_create( NULL, 0 );
18692 #elif DB_VERSION_MAJOR > 1
18693 db_appexit( NULL );
18695 (void) dbopen( NULL, 0, 0, 0, NULL);
18700 if { (eval echo configure:18701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18704 echo "configure: failed program was:" >&5
18705 cat conftest.$ac_ext >&5
18715 echo "$ac_t""$ol_cv_db_db41" 1>&6
18717 if test $ol_cv_db_db41 = yes ; then
18718 ol_cv_lib_db=-ldb41
18722 if test $ol_cv_lib_db = no ; then
18723 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18724 echo "configure:18725: checking for Berkeley DB link (-ldb-41)" >&5
18725 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18726 echo $ac_n "(cached) $ac_c" 1>&6
18731 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18733 cat > conftest.$ac_ext <<EOF
18734 #line 18735 "configure"
18735 #include "confdefs.h"
18737 #ifdef HAVE_DB_185_H
18738 # include <db_185.h>
18743 #ifndef DB_VERSION_MAJOR
18744 # define DB_VERSION_MAJOR 1
18748 #define NULL ((void*)0)
18753 #if DB_VERSION_MAJOR > 1
18756 int major, minor, patch;
18758 version = db_version( &major, &minor, &patch );
18760 if( major != DB_VERSION_MAJOR ||
18761 minor < DB_VERSION_MINOR )
18763 printf("Berkeley DB version mismatch\n"
18764 "\texpected: %s\n\tgot: %s\n",
18765 DB_VERSION_STRING, version);
18771 #if DB_VERSION_MAJOR > 2
18772 db_env_create( NULL, 0 );
18773 #elif DB_VERSION_MAJOR > 1
18774 db_appexit( NULL );
18776 (void) dbopen( NULL, 0, 0, 0, NULL);
18781 if { (eval echo configure:18782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18785 echo "configure: failed program was:" >&5
18786 cat conftest.$ac_ext >&5
18796 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18798 if test $ol_cv_db_db_41 = yes ; then
18799 ol_cv_lib_db=-ldb-41
18803 if test $ol_cv_lib_db = no ; then
18804 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18805 echo "configure:18806: checking for Berkeley DB link (-ldb-4.1)" >&5
18806 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18807 echo $ac_n "(cached) $ac_c" 1>&6
18812 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18814 cat > conftest.$ac_ext <<EOF
18815 #line 18816 "configure"
18816 #include "confdefs.h"
18818 #ifdef HAVE_DB_185_H
18819 # include <db_185.h>
18824 #ifndef DB_VERSION_MAJOR
18825 # define DB_VERSION_MAJOR 1
18829 #define NULL ((void*)0)
18834 #if DB_VERSION_MAJOR > 1
18837 int major, minor, patch;
18839 version = db_version( &major, &minor, &patch );
18841 if( major != DB_VERSION_MAJOR ||
18842 minor < DB_VERSION_MINOR )
18844 printf("Berkeley DB version mismatch\n"
18845 "\texpected: %s\n\tgot: %s\n",
18846 DB_VERSION_STRING, version);
18852 #if DB_VERSION_MAJOR > 2
18853 db_env_create( NULL, 0 );
18854 #elif DB_VERSION_MAJOR > 1
18855 db_appexit( NULL );
18857 (void) dbopen( NULL, 0, 0, 0, NULL);
18862 if { (eval echo configure:18863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18864 ol_cv_db_db_4_dot_1=yes
18866 echo "configure: failed program was:" >&5
18867 cat conftest.$ac_ext >&5
18869 ol_cv_db_db_4_dot_1=no
18877 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18879 if test $ol_cv_db_db_4_dot_1 = yes ; then
18880 ol_cv_lib_db=-ldb-4.1
18884 if test $ol_cv_lib_db = no ; then
18885 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18886 echo "configure:18887: checking for Berkeley DB link (-ldb-4-1)" >&5
18887 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18888 echo $ac_n "(cached) $ac_c" 1>&6
18893 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18895 cat > conftest.$ac_ext <<EOF
18896 #line 18897 "configure"
18897 #include "confdefs.h"
18899 #ifdef HAVE_DB_185_H
18900 # include <db_185.h>
18905 #ifndef DB_VERSION_MAJOR
18906 # define DB_VERSION_MAJOR 1
18910 #define NULL ((void*)0)
18915 #if DB_VERSION_MAJOR > 1
18918 int major, minor, patch;
18920 version = db_version( &major, &minor, &patch );
18922 if( major != DB_VERSION_MAJOR ||
18923 minor < DB_VERSION_MINOR )
18925 printf("Berkeley DB version mismatch\n"
18926 "\texpected: %s\n\tgot: %s\n",
18927 DB_VERSION_STRING, version);
18933 #if DB_VERSION_MAJOR > 2
18934 db_env_create( NULL, 0 );
18935 #elif DB_VERSION_MAJOR > 1
18936 db_appexit( NULL );
18938 (void) dbopen( NULL, 0, 0, 0, NULL);
18943 if { (eval echo configure:18944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18945 ol_cv_db_db_4_1=yes
18947 echo "configure: failed program was:" >&5
18948 cat conftest.$ac_ext >&5
18958 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18960 if test $ol_cv_db_db_4_1 = yes ; then
18961 ol_cv_lib_db=-ldb-4-1
18965 if test $ol_cv_lib_db = no ; then
18966 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18967 echo "configure:18968: checking for Berkeley DB link (-ldb3)" >&5
18968 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18969 echo $ac_n "(cached) $ac_c" 1>&6
18974 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18976 cat > conftest.$ac_ext <<EOF
18977 #line 18978 "configure"
18978 #include "confdefs.h"
18980 #ifdef HAVE_DB_185_H
18981 # include <db_185.h>
18986 #ifndef DB_VERSION_MAJOR
18987 # define DB_VERSION_MAJOR 1
18991 #define NULL ((void*)0)
18996 #if DB_VERSION_MAJOR > 1
18999 int major, minor, patch;
19001 version = db_version( &major, &minor, &patch );
19003 if( major != DB_VERSION_MAJOR ||
19004 minor < DB_VERSION_MINOR )
19006 printf("Berkeley DB version mismatch\n"
19007 "\texpected: %s\n\tgot: %s\n",
19008 DB_VERSION_STRING, version);
19014 #if DB_VERSION_MAJOR > 2
19015 db_env_create( NULL, 0 );
19016 #elif DB_VERSION_MAJOR > 1
19017 db_appexit( NULL );
19019 (void) dbopen( NULL, 0, 0, 0, NULL);
19024 if { (eval echo configure:19025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19028 echo "configure: failed program was:" >&5
19029 cat conftest.$ac_ext >&5
19039 echo "$ac_t""$ol_cv_db_db3" 1>&6
19041 if test $ol_cv_db_db3 = yes ; then
19046 if test $ol_cv_lib_db = no ; then
19047 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19048 echo "configure:19049: checking for Berkeley DB link (-ldb-3)" >&5
19049 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19050 echo $ac_n "(cached) $ac_c" 1>&6
19055 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19057 cat > conftest.$ac_ext <<EOF
19058 #line 19059 "configure"
19059 #include "confdefs.h"
19061 #ifdef HAVE_DB_185_H
19062 # include <db_185.h>
19067 #ifndef DB_VERSION_MAJOR
19068 # define DB_VERSION_MAJOR 1
19072 #define NULL ((void*)0)
19077 #if DB_VERSION_MAJOR > 1
19080 int major, minor, patch;
19082 version = db_version( &major, &minor, &patch );
19084 if( major != DB_VERSION_MAJOR ||
19085 minor < DB_VERSION_MINOR )
19087 printf("Berkeley DB version mismatch\n"
19088 "\texpected: %s\n\tgot: %s\n",
19089 DB_VERSION_STRING, version);
19095 #if DB_VERSION_MAJOR > 2
19096 db_env_create( NULL, 0 );
19097 #elif DB_VERSION_MAJOR > 1
19098 db_appexit( NULL );
19100 (void) dbopen( NULL, 0, 0, 0, NULL);
19105 if { (eval echo configure:19106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19109 echo "configure: failed program was:" >&5
19110 cat conftest.$ac_ext >&5
19120 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19122 if test $ol_cv_db_db_3 = yes ; then
19123 ol_cv_lib_db=-ldb-3
19127 if test $ol_cv_lib_db = no ; then
19128 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19129 echo "configure:19130: checking for Berkeley DB link (-ldb2)" >&5
19130 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19131 echo $ac_n "(cached) $ac_c" 1>&6
19136 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19138 cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19142 #ifdef HAVE_DB_185_H
19143 # include <db_185.h>
19148 #ifndef DB_VERSION_MAJOR
19149 # define DB_VERSION_MAJOR 1
19153 #define NULL ((void*)0)
19158 #if DB_VERSION_MAJOR > 1
19161 int major, minor, patch;
19163 version = db_version( &major, &minor, &patch );
19165 if( major != DB_VERSION_MAJOR ||
19166 minor < DB_VERSION_MINOR )
19168 printf("Berkeley DB version mismatch\n"
19169 "\texpected: %s\n\tgot: %s\n",
19170 DB_VERSION_STRING, version);
19176 #if DB_VERSION_MAJOR > 2
19177 db_env_create( NULL, 0 );
19178 #elif DB_VERSION_MAJOR > 1
19179 db_appexit( NULL );
19181 (void) dbopen( NULL, 0, 0, 0, NULL);
19186 if { (eval echo configure:19187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19190 echo "configure: failed program was:" >&5
19191 cat conftest.$ac_ext >&5
19201 echo "$ac_t""$ol_cv_db_db2" 1>&6
19203 if test $ol_cv_db_db2 = yes ; then
19208 if test $ol_cv_lib_db = no ; then
19209 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19210 echo "configure:19211: checking for Berkeley DB link (-ldb-2)" >&5
19211 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19212 echo $ac_n "(cached) $ac_c" 1>&6
19217 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19219 cat > conftest.$ac_ext <<EOF
19220 #line 19221 "configure"
19221 #include "confdefs.h"
19223 #ifdef HAVE_DB_185_H
19224 # include <db_185.h>
19229 #ifndef DB_VERSION_MAJOR
19230 # define DB_VERSION_MAJOR 1
19234 #define NULL ((void*)0)
19239 #if DB_VERSION_MAJOR > 1
19242 int major, minor, patch;
19244 version = db_version( &major, &minor, &patch );
19246 if( major != DB_VERSION_MAJOR ||
19247 minor < DB_VERSION_MINOR )
19249 printf("Berkeley DB version mismatch\n"
19250 "\texpected: %s\n\tgot: %s\n",
19251 DB_VERSION_STRING, version);
19257 #if DB_VERSION_MAJOR > 2
19258 db_env_create( NULL, 0 );
19259 #elif DB_VERSION_MAJOR > 1
19260 db_appexit( NULL );
19262 (void) dbopen( NULL, 0, 0, 0, NULL);
19267 if { (eval echo configure:19268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19271 echo "configure: failed program was:" >&5
19272 cat conftest.$ac_ext >&5
19282 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19284 if test $ol_cv_db_db_2 = yes ; then
19285 ol_cv_lib_db=-ldb-2
19289 if test $ol_cv_lib_db = no ; then
19290 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19291 echo "configure:19292: checking for Berkeley DB link (-ldb1)" >&5
19292 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19293 echo $ac_n "(cached) $ac_c" 1>&6
19298 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19300 cat > conftest.$ac_ext <<EOF
19301 #line 19302 "configure"
19302 #include "confdefs.h"
19304 #ifdef HAVE_DB_185_H
19305 # include <db_185.h>
19310 #ifndef DB_VERSION_MAJOR
19311 # define DB_VERSION_MAJOR 1
19315 #define NULL ((void*)0)
19320 #if DB_VERSION_MAJOR > 1
19323 int major, minor, patch;
19325 version = db_version( &major, &minor, &patch );
19327 if( major != DB_VERSION_MAJOR ||
19328 minor < DB_VERSION_MINOR )
19330 printf("Berkeley DB version mismatch\n"
19331 "\texpected: %s\n\tgot: %s\n",
19332 DB_VERSION_STRING, version);
19338 #if DB_VERSION_MAJOR > 2
19339 db_env_create( NULL, 0 );
19340 #elif DB_VERSION_MAJOR > 1
19341 db_appexit( NULL );
19343 (void) dbopen( NULL, 0, 0, 0, NULL);
19348 if { (eval echo configure:19349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19352 echo "configure: failed program was:" >&5
19353 cat conftest.$ac_ext >&5
19363 echo "$ac_t""$ol_cv_db_db1" 1>&6
19365 if test $ol_cv_db_db1 = yes ; then
19370 if test $ol_cv_lib_db = no ; then
19371 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19372 echo "configure:19373: checking for Berkeley DB link (-ldb-1)" >&5
19373 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19374 echo $ac_n "(cached) $ac_c" 1>&6
19379 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19381 cat > conftest.$ac_ext <<EOF
19382 #line 19383 "configure"
19383 #include "confdefs.h"
19385 #ifdef HAVE_DB_185_H
19386 # include <db_185.h>
19391 #ifndef DB_VERSION_MAJOR
19392 # define DB_VERSION_MAJOR 1
19396 #define NULL ((void*)0)
19401 #if DB_VERSION_MAJOR > 1
19404 int major, minor, patch;
19406 version = db_version( &major, &minor, &patch );
19408 if( major != DB_VERSION_MAJOR ||
19409 minor < DB_VERSION_MINOR )
19411 printf("Berkeley DB version mismatch\n"
19412 "\texpected: %s\n\tgot: %s\n",
19413 DB_VERSION_STRING, version);
19419 #if DB_VERSION_MAJOR > 2
19420 db_env_create( NULL, 0 );
19421 #elif DB_VERSION_MAJOR > 1
19422 db_appexit( NULL );
19424 (void) dbopen( NULL, 0, 0, 0, NULL);
19429 if { (eval echo configure:19430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19433 echo "configure: failed program was:" >&5
19434 cat conftest.$ac_ext >&5
19444 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19446 if test $ol_cv_db_db_1 = yes ; then
19447 ol_cv_lib_db=-ldb-1
19452 if test "$ol_cv_lib_db" != no ; then
19453 ol_cv_berkeley_db=yes
19454 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19455 echo "configure:19456: checking for Berkeley DB thread support" >&5
19456 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19457 echo $ac_n "(cached) $ac_c" 1>&6
19461 LIBS="$LTHREAD_LIBS $LIBS"
19462 if test $ol_cv_lib_db != yes ; then
19463 LIBS="$ol_cv_lib_db $LIBS"
19466 if test "$cross_compiling" = yes; then
19467 ol_cv_berkeley_db_thread=cross
19469 cat > conftest.$ac_ext <<EOF
19470 #line 19471 "configure"
19471 #include "confdefs.h"
19473 #ifdef HAVE_DB_185_H
19479 #define NULL ((void *)0)
19484 u_int32_t flags = DB_CREATE |
19490 #if DB_VERSION_MAJOR > 2
19491 DB_ENV *env = NULL;
19493 rc = db_env_create( &env, 0 );
19495 flags |= DB_INIT_MPOOL;
19496 #ifdef DB_MPOOL_PRIVATE
19497 flags |= DB_MPOOL_PRIVATE;
19501 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19505 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19506 rc = env->open( env, NULL, flags, 0 );
19508 rc = env->open( env, NULL, NULL, flags, 0 );
19512 rc = env->close( env, 0 );
19516 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19522 memset( &env, '\0', sizeof(env) );
19524 rc = db_appinit( NULL, NULL, &env, flags );
19527 db_appexit( &env );
19530 unlink("__db_mpool.share");
19531 unlink("__db_lock.share");
19537 if { (eval echo configure:19538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19539 ol_cv_berkeley_db_thread=yes
19541 echo "configure: failed program was:" >&5
19542 cat conftest.$ac_ext >&5
19544 ol_cv_berkeley_db_thread=no
19554 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19556 if test $ol_cv_berkeley_db_thread != no ; then
19557 cat >> confdefs.h <<\EOF
19558 #define HAVE_BERKELEY_DB_THREAD 1
19568 if test $ol_cv_berkeley_db != no ; then
19569 cat >> confdefs.h <<\EOF
19570 #define HAVE_BERKELEY_DB 1
19574 ol_link_ldbm=berkeley
19575 ol_with_ldbm_api=berkeley
19577 if test $ol_with_ldbm_type = hash ; then
19578 cat >> confdefs.h <<\EOF
19579 #define LDBM_USE_DBHASH 1
19583 cat >> confdefs.h <<\EOF
19584 #define LDBM_USE_DBBTREE 1
19589 if test $ol_cv_lib_db != yes ; then
19590 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19595 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
19596 if test $ol_link_ldbm != berkeley ; then
19597 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
19599 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19600 echo "configure:19601: checking Berkeley DB version for BDB backend" >&5
19601 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19602 echo $ac_n "(cached) $ac_c" 1>&6
19605 cat > conftest.$ac_ext <<EOF
19606 #line 19607 "configure"
19607 #include "confdefs.h"
19611 /* this check could be improved */
19612 #ifndef DB_VERSION_MAJOR
19613 # define DB_VERSION_MAJOR 1
19615 #ifndef DB_VERSION_MINOR
19616 # define DB_VERSION_MINOR 0
19619 /* require 4.2 or later */
19620 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19621 __db_version_compat
19625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19626 egrep "__db_version_compat" >/dev/null 2>&1; then
19628 ol_cv_bdb_compat=yes
19631 ol_cv_bdb_compat=no
19637 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19640 if test $ol_cv_bdb_compat != yes ; then
19641 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19646 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19647 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19648 ol_with_ldbm_api=none
19651 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19652 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19653 echo "configure:19654: checking for MDBM library" >&5
19654 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19655 echo $ac_n "(cached) $ac_c" 1>&6
19658 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19659 echo "configure:19660: checking for mdbm_set_chain" >&5
19660 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19661 echo $ac_n "(cached) $ac_c" 1>&6
19663 cat > conftest.$ac_ext <<EOF
19664 #line 19665 "configure"
19665 #include "confdefs.h"
19666 /* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char mdbm_set_chain(); below. */
19668 #include <assert.h>
19669 /* Override any gcc2 internal prototype to avoid an error. */
19670 /* We use char because int might match the return type of a gcc2
19671 builtin and then its argument prototype would still apply. */
19672 char mdbm_set_chain();
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19683 f = mdbm_set_chain;
19688 if { (eval echo configure:19689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19690 eval "ac_cv_func_mdbm_set_chain=yes"
19692 echo "configure: failed program was:" >&5
19693 cat conftest.$ac_ext >&5
19695 eval "ac_cv_func_mdbm_set_chain=no"
19700 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19701 echo "$ac_t""yes" 1>&6
19704 echo "$ac_t""no" 1>&6
19706 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19707 echo "configure:19708: checking for mdbm_set_chain in -lmdbm" >&5
19708 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19710 echo $ac_n "(cached) $ac_c" 1>&6
19712 ac_save_LIBS="$LIBS"
19713 LIBS="-lmdbm $LIBS"
19714 cat > conftest.$ac_ext <<EOF
19715 #line 19716 "configure"
19716 #include "confdefs.h"
19717 /* Override any gcc2 internal prototype to avoid an error. */
19718 /* We use char because int might match the return type of a gcc2
19719 builtin and then its argument prototype would still apply. */
19720 char mdbm_set_chain();
19726 if { (eval echo configure:19727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19728 eval "ac_cv_lib_$ac_lib_var=yes"
19730 echo "configure: failed program was:" >&5
19731 cat conftest.$ac_ext >&5
19733 eval "ac_cv_lib_$ac_lib_var=no"
19736 LIBS="$ac_save_LIBS"
19739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19740 echo "$ac_t""yes" 1>&6
19741 ol_cv_lib_mdbm=-lmdbm
19743 echo "$ac_t""no" 1>&6
19754 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19757 for ac_hdr in mdbm.h
19759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19761 echo "configure:19762: checking for $ac_hdr" >&5
19762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19763 echo $ac_n "(cached) $ac_c" 1>&6
19765 cat > conftest.$ac_ext <<EOF
19766 #line 19767 "configure"
19767 #include "confdefs.h"
19770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19771 { (eval echo configure:19772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19773 if test -z "$ac_err"; then
19775 eval "ac_cv_header_$ac_safe=yes"
19778 echo "configure: failed program was:" >&5
19779 cat conftest.$ac_ext >&5
19781 eval "ac_cv_header_$ac_safe=no"
19785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19786 echo "$ac_t""yes" 1>&6
19787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19788 cat >> confdefs.h <<EOF
19789 #define $ac_tr_hdr 1
19793 echo "$ac_t""no" 1>&6
19797 echo $ac_n "checking for db""... $ac_c" 1>&6
19798 echo "configure:19799: checking for db" >&5
19799 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19800 echo $ac_n "(cached) $ac_c" 1>&6
19803 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19811 echo "$ac_t""$ol_cv_mdbm" 1>&6
19812 if test $ol_cv_mdbm = yes ; then
19813 cat >> confdefs.h <<\EOF
19814 #define HAVE_MDBM 1
19820 if test $ol_cv_mdbm = yes ; then
19822 ol_with_ldbm_api=mdbm
19823 if test $ol_cv_lib_mdbm != yes ; then
19824 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19829 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19830 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19831 echo "configure:19832: checking for GDBM library" >&5
19832 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19833 echo $ac_n "(cached) $ac_c" 1>&6
19836 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19837 echo "configure:19838: checking for gdbm_open" >&5
19838 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19839 echo $ac_n "(cached) $ac_c" 1>&6
19841 cat > conftest.$ac_ext <<EOF
19842 #line 19843 "configure"
19843 #include "confdefs.h"
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char gdbm_open(); below. */
19846 #include <assert.h>
19847 /* Override any gcc2 internal prototype to avoid an error. */
19848 /* We use char because int might match the return type of a gcc2
19849 builtin and then its argument prototype would still apply. */
19855 /* The GNU C library defines this for functions which it implements
19856 to always fail with ENOSYS. Some functions are actually named
19857 something starting with __ and the normal name is an alias. */
19858 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19866 if { (eval echo configure:19867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19868 eval "ac_cv_func_gdbm_open=yes"
19870 echo "configure: failed program was:" >&5
19871 cat conftest.$ac_ext >&5
19873 eval "ac_cv_func_gdbm_open=no"
19878 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19879 echo "$ac_t""yes" 1>&6
19882 echo "$ac_t""no" 1>&6
19884 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19885 echo "configure:19886: checking for gdbm_open in -lgdbm" >&5
19886 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19888 echo $ac_n "(cached) $ac_c" 1>&6
19890 ac_save_LIBS="$LIBS"
19891 LIBS="-lgdbm $LIBS"
19892 cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 /* Override any gcc2 internal prototype to avoid an error. */
19896 /* We use char because int might match the return type of a gcc2
19897 builtin and then its argument prototype would still apply. */
19904 if { (eval echo configure:19905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19906 eval "ac_cv_lib_$ac_lib_var=yes"
19908 echo "configure: failed program was:" >&5
19909 cat conftest.$ac_ext >&5
19911 eval "ac_cv_lib_$ac_lib_var=no"
19914 LIBS="$ac_save_LIBS"
19917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19918 echo "$ac_t""yes" 1>&6
19919 ol_cv_lib_gdbm=-lgdbm
19921 echo "$ac_t""no" 1>&6
19932 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19935 for ac_hdr in gdbm.h
19937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19939 echo "configure:19940: checking for $ac_hdr" >&5
19940 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19941 echo $ac_n "(cached) $ac_c" 1>&6
19943 cat > conftest.$ac_ext <<EOF
19944 #line 19945 "configure"
19945 #include "confdefs.h"
19948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19949 { (eval echo configure:19950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19951 if test -z "$ac_err"; then
19953 eval "ac_cv_header_$ac_safe=yes"
19956 echo "configure: failed program was:" >&5
19957 cat conftest.$ac_ext >&5
19959 eval "ac_cv_header_$ac_safe=no"
19963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19964 echo "$ac_t""yes" 1>&6
19965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19966 cat >> confdefs.h <<EOF
19967 #define $ac_tr_hdr 1
19971 echo "$ac_t""no" 1>&6
19975 echo $ac_n "checking for db""... $ac_c" 1>&6
19976 echo "configure:19977: checking for db" >&5
19977 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19978 echo $ac_n "(cached) $ac_c" 1>&6
19981 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19989 echo "$ac_t""$ol_cv_gdbm" 1>&6
19990 if test $ol_cv_gdbm = yes ; then
19991 cat >> confdefs.h <<\EOF
19992 #define HAVE_GDBM 1
19998 if test $ol_cv_gdbm = yes ; then
20000 ol_with_ldbm_api=gdbm
20002 if test $ol_cv_lib_gdbm != yes ; then
20003 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20008 if test $ol_with_ldbm_api = ndbm ; then
20009 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20010 echo "configure:20011: checking for NDBM library" >&5
20011 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20012 echo $ac_n "(cached) $ac_c" 1>&6
20015 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20016 echo "configure:20017: checking for dbm_open" >&5
20017 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20018 echo $ac_n "(cached) $ac_c" 1>&6
20020 cat > conftest.$ac_ext <<EOF
20021 #line 20022 "configure"
20022 #include "confdefs.h"
20023 /* System header to define __stub macros and hopefully few prototypes,
20024 which can conflict with char dbm_open(); below. */
20025 #include <assert.h>
20026 /* Override any gcc2 internal prototype to avoid an error. */
20027 /* We use char because int might match the return type of a gcc2
20028 builtin and then its argument prototype would still apply. */
20034 /* The GNU C library defines this for functions which it implements
20035 to always fail with ENOSYS. Some functions are actually named
20036 something starting with __ and the normal name is an alias. */
20037 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20045 if { (eval echo configure:20046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20047 eval "ac_cv_func_dbm_open=yes"
20049 echo "configure: failed program was:" >&5
20050 cat conftest.$ac_ext >&5
20052 eval "ac_cv_func_dbm_open=no"
20057 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20058 echo "$ac_t""yes" 1>&6
20061 echo "$ac_t""no" 1>&6
20063 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20064 echo "configure:20065: checking for dbm_open in -lndbm" >&5
20065 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20067 echo $ac_n "(cached) $ac_c" 1>&6
20069 ac_save_LIBS="$LIBS"
20070 LIBS="-lndbm $LIBS"
20071 cat > conftest.$ac_ext <<EOF
20072 #line 20073 "configure"
20073 #include "confdefs.h"
20074 /* Override any gcc2 internal prototype to avoid an error. */
20075 /* We use char because int might match the return type of a gcc2
20076 builtin and then its argument prototype would still apply. */
20083 if { (eval echo configure:20084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20085 eval "ac_cv_lib_$ac_lib_var=yes"
20087 echo "configure: failed program was:" >&5
20088 cat conftest.$ac_ext >&5
20090 eval "ac_cv_lib_$ac_lib_var=no"
20093 LIBS="$ac_save_LIBS"
20096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20097 echo "$ac_t""yes" 1>&6
20098 ol_cv_lib_ndbm=-lndbm
20100 echo "$ac_t""no" 1>&6
20102 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20103 echo "configure:20104: checking for dbm_open in -ldbm" >&5
20104 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20105 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20106 echo $ac_n "(cached) $ac_c" 1>&6
20108 ac_save_LIBS="$LIBS"
20110 cat > conftest.$ac_ext <<EOF
20111 #line 20112 "configure"
20112 #include "confdefs.h"
20113 /* Override any gcc2 internal prototype to avoid an error. */
20114 /* We use char because int might match the return type of a gcc2
20115 builtin and then its argument prototype would still apply. */
20122 if { (eval echo configure:20123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20124 eval "ac_cv_lib_$ac_lib_var=yes"
20126 echo "configure: failed program was:" >&5
20127 cat conftest.$ac_ext >&5
20129 eval "ac_cv_lib_$ac_lib_var=no"
20132 LIBS="$ac_save_LIBS"
20135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20136 echo "$ac_t""yes" 1>&6
20137 ol_cv_lib_ndbm=-ldbm
20139 echo "$ac_t""no" 1>&6
20152 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20155 for ac_hdr in ndbm.h
20157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20159 echo "configure:20160: checking for $ac_hdr" >&5
20160 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20161 echo $ac_n "(cached) $ac_c" 1>&6
20163 cat > conftest.$ac_ext <<EOF
20164 #line 20165 "configure"
20165 #include "confdefs.h"
20168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20169 { (eval echo configure:20170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20171 if test -z "$ac_err"; then
20173 eval "ac_cv_header_$ac_safe=yes"
20176 echo "configure: failed program was:" >&5
20177 cat conftest.$ac_ext >&5
20179 eval "ac_cv_header_$ac_safe=no"
20183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20184 echo "$ac_t""yes" 1>&6
20185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20186 cat >> confdefs.h <<EOF
20187 #define $ac_tr_hdr 1
20191 echo "$ac_t""no" 1>&6
20195 echo $ac_n "checking for db""... $ac_c" 1>&6
20196 echo "configure:20197: checking for db" >&5
20197 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20198 echo $ac_n "(cached) $ac_c" 1>&6
20201 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20209 echo "$ac_t""$ol_cv_ndbm" 1>&6
20210 if test $ol_cv_ndbm = yes ; then
20211 cat >> confdefs.h <<\EOF
20212 #define HAVE_NDBM 1
20218 if test $ol_cv_ndbm = yes ; then
20220 ol_with_ldbm_api=ndbm
20222 if test $ol_cv_lib_ndbm != yes ; then
20223 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20228 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20229 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
20232 if test $ol_enable_bdb = yes -o \
20233 $ol_enable_hdb = yes -o \
20234 $ol_enable_ldbm = yes ; then
20235 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
20239 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20240 BUILD_LIBS_DYNAMIC=shared
20241 cat >> confdefs.h <<\EOF
20242 #define LDAP_LIBS_DYNAMIC 1
20247 BUILD_LIBS_DYNAMIC=static
20251 if test $ol_enable_wrappers != no ; then
20252 for ac_hdr in tcpd.h
20254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20256 echo "configure:20257: checking for $ac_hdr" >&5
20257 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20258 echo $ac_n "(cached) $ac_c" 1>&6
20260 cat > conftest.$ac_ext <<EOF
20261 #line 20262 "configure"
20262 #include "confdefs.h"
20265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20266 { (eval echo configure:20267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20268 if test -z "$ac_err"; then
20270 eval "ac_cv_header_$ac_safe=yes"
20273 echo "configure: failed program was:" >&5
20274 cat conftest.$ac_ext >&5
20276 eval "ac_cv_header_$ac_safe=no"
20280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20283 cat >> confdefs.h <<EOF
20284 #define $ac_tr_hdr 1
20287 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20288 echo "configure:20289: checking for TCP wrappers library" >&5
20290 LIBS="$LIBS -lwrap"
20291 cat > conftest.$ac_ext <<EOF
20292 #line 20293 "configure"
20293 #include "confdefs.h"
20296 int allow_severity = 0;
20297 int deny_severity = 0;
20299 struct request_info *req;
20307 if { (eval echo configure:20308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20309 echo "$ac_t""-lwrap" 1>&6
20313 echo "configure: failed program was:" >&5
20314 cat conftest.$ac_ext >&5
20318 cat > conftest.$ac_ext <<EOF
20319 #line 20320 "configure"
20320 #include "confdefs.h"
20323 int allow_severity = 0;
20324 int deny_severity = 0;
20326 struct request_info *req;
20334 if { (eval echo configure:20335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20336 echo "$ac_t""-lwrap -lnsl" 1>&6
20338 LIBS="$save_LIBS -lnsl"
20340 echo "configure: failed program was:" >&5
20341 cat conftest.$ac_ext >&5
20344 echo "$ac_t""no" 1>&6
20352 echo "$ac_t""no" 1>&6
20358 if test $have_wrappers = yes ; then
20359 cat >> confdefs.h <<\EOF
20360 #define HAVE_TCPD 1
20364 elif test $ol_enable_wrappers = yes ; then
20365 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20367 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20372 if test $ol_enable_syslog != no ; then
20373 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20374 echo "configure:20375: checking for openlog" >&5
20375 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20376 echo $ac_n "(cached) $ac_c" 1>&6
20378 cat > conftest.$ac_ext <<EOF
20379 #line 20380 "configure"
20380 #include "confdefs.h"
20381 /* System header to define __stub macros and hopefully few prototypes,
20382 which can conflict with char openlog(); below. */
20383 #include <assert.h>
20384 /* Override any gcc2 internal prototype to avoid an error. */
20385 /* We use char because int might match the return type of a gcc2
20386 builtin and then its argument prototype would still apply. */
20392 /* The GNU C library defines this for functions which it implements
20393 to always fail with ENOSYS. Some functions are actually named
20394 something starting with __ and the normal name is an alias. */
20395 #if defined (__stub_openlog) || defined (__stub___openlog)
20403 if { (eval echo configure:20404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20405 eval "ac_cv_func_openlog=yes"
20407 echo "configure: failed program was:" >&5
20408 cat conftest.$ac_ext >&5
20410 eval "ac_cv_func_openlog=no"
20415 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20416 echo "$ac_t""yes" 1>&6
20419 echo "$ac_t""no" 1>&6
20422 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20423 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20425 ol_enable_syslog=$ac_cv_func_openlog
20430 if test $ol_enable_sql != no ; then
20431 for ac_hdr in sql.h sqlext.h
20433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20435 echo "configure:20436: checking for $ac_hdr" >&5
20436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20437 echo $ac_n "(cached) $ac_c" 1>&6
20439 cat > conftest.$ac_ext <<EOF
20440 #line 20441 "configure"
20441 #include "confdefs.h"
20444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20445 { (eval echo configure:20446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20447 if test -z "$ac_err"; then
20449 eval "ac_cv_header_$ac_safe=yes"
20452 echo "configure: failed program was:" >&5
20453 cat conftest.$ac_ext >&5
20455 eval "ac_cv_header_$ac_safe=no"
20459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20460 echo "$ac_t""yes" 1>&6
20461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20462 cat >> confdefs.h <<EOF
20463 #define $ac_tr_hdr 1
20467 echo "$ac_t""no" 1>&6
20468 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20474 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20475 echo "configure:20476: checking for SQLDriverConnect in -liodbc" >&5
20476 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20477 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20478 echo $ac_n "(cached) $ac_c" 1>&6
20480 ac_save_LIBS="$LIBS"
20481 LIBS="-liodbc $LIBS"
20482 cat > conftest.$ac_ext <<EOF
20483 #line 20484 "configure"
20484 #include "confdefs.h"
20485 /* Override any gcc2 internal prototype to avoid an error. */
20486 /* We use char because int might match the return type of a gcc2
20487 builtin and then its argument prototype would still apply. */
20488 char SQLDriverConnect();
20494 if { (eval echo configure:20495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20496 eval "ac_cv_lib_$ac_lib_var=yes"
20498 echo "configure: failed program was:" >&5
20499 cat conftest.$ac_ext >&5
20501 eval "ac_cv_lib_$ac_lib_var=no"
20504 LIBS="$ac_save_LIBS"
20507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20508 echo "$ac_t""yes" 1>&6
20511 echo "$ac_t""no" 1>&6
20515 if test $have_iodbc = yes ; then
20516 ol_link_sql="-liodbc"
20518 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20519 echo "configure:20520: checking for SQLDriverConnect in -lodbc" >&5
20520 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20522 echo $ac_n "(cached) $ac_c" 1>&6
20524 ac_save_LIBS="$LIBS"
20525 LIBS="-lodbc $LIBS"
20526 cat > conftest.$ac_ext <<EOF
20527 #line 20528 "configure"
20528 #include "confdefs.h"
20529 /* Override any gcc2 internal prototype to avoid an error. */
20530 /* We use char because int might match the return type of a gcc2
20531 builtin and then its argument prototype would still apply. */
20532 char SQLDriverConnect();
20538 if { (eval echo configure:20539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20540 eval "ac_cv_lib_$ac_lib_var=yes"
20542 echo "configure: failed program was:" >&5
20543 cat conftest.$ac_ext >&5
20545 eval "ac_cv_lib_$ac_lib_var=no"
20548 LIBS="$ac_save_LIBS"
20551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20552 echo "$ac_t""yes" 1>&6
20555 echo "$ac_t""no" 1>&6
20559 if test $have_odbc = yes ; then
20560 ol_link_sql="-lodbc"
20564 if test $ol_link_sql != no ; then
20565 SLAPD_SQL_LIBS="$ol_link_sql"
20567 elif test $ol_enable_sql != auto ; then
20568 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20574 if test $ol_with_cyrus_sasl != no ; then
20575 for ac_hdr in sasl/sasl.h sasl.h
20577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20579 echo "configure:20580: checking for $ac_hdr" >&5
20580 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20581 echo $ac_n "(cached) $ac_c" 1>&6
20583 cat > conftest.$ac_ext <<EOF
20584 #line 20585 "configure"
20585 #include "confdefs.h"
20588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20589 { (eval echo configure:20590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20591 if test -z "$ac_err"; then
20593 eval "ac_cv_header_$ac_safe=yes"
20596 echo "configure: failed program was:" >&5
20597 cat conftest.$ac_ext >&5
20599 eval "ac_cv_header_$ac_safe=no"
20603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20604 echo "$ac_t""yes" 1>&6
20605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20606 cat >> confdefs.h <<EOF
20607 #define $ac_tr_hdr 1
20611 echo "$ac_t""no" 1>&6
20616 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20617 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20618 echo "configure:20619: checking for sasl_client_init in -lsasl2" >&5
20619 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20620 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20621 echo $ac_n "(cached) $ac_c" 1>&6
20623 ac_save_LIBS="$LIBS"
20624 LIBS="-lsasl2 $LIBS"
20625 cat > conftest.$ac_ext <<EOF
20626 #line 20627 "configure"
20627 #include "confdefs.h"
20628 /* Override any gcc2 internal prototype to avoid an error. */
20629 /* We use char because int might match the return type of a gcc2
20630 builtin and then its argument prototype would still apply. */
20631 char sasl_client_init();
20637 if { (eval echo configure:20638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20639 eval "ac_cv_lib_$ac_lib_var=yes"
20641 echo "configure: failed program was:" >&5
20642 cat conftest.$ac_ext >&5
20644 eval "ac_cv_lib_$ac_lib_var=no"
20647 LIBS="$ac_save_LIBS"
20650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20651 echo "$ac_t""yes" 1>&6
20652 ol_link_sasl="-lsasl2"
20654 echo "$ac_t""no" 1>&6
20655 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20656 echo "configure:20657: checking for sasl_client_init in -lsasl" >&5
20657 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20659 echo $ac_n "(cached) $ac_c" 1>&6
20661 ac_save_LIBS="$LIBS"
20662 LIBS="-lsasl $LIBS"
20663 cat > conftest.$ac_ext <<EOF
20664 #line 20665 "configure"
20665 #include "confdefs.h"
20666 /* Override any gcc2 internal prototype to avoid an error. */
20667 /* We use char because int might match the return type of a gcc2
20668 builtin and then its argument prototype would still apply. */
20669 char sasl_client_init();
20675 if { (eval echo configure:20676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20677 eval "ac_cv_lib_$ac_lib_var=yes"
20679 echo "configure: failed program was:" >&5
20680 cat conftest.$ac_ext >&5
20682 eval "ac_cv_lib_$ac_lib_var=no"
20685 LIBS="$ac_save_LIBS"
20688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20689 echo "$ac_t""yes" 1>&6
20690 ol_link_sasl="-lsasl"
20692 echo "$ac_t""no" 1>&6
20699 if test $ol_link_sasl = no ; then
20700 if test $ol_with_cyrus_sasl != auto ; then
20701 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20703 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20704 echo "configure: warning: SASL authentication not supported!" 1>&2
20705 if test $ol_link_tls = no ; then
20706 echo "configure: warning: Strong authentication not supported!" 1>&2
20710 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20711 echo "configure:20712: checking Cyrus SASL library version" >&5
20712 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20713 echo $ac_n "(cached) $ac_c" 1>&6
20716 cat > conftest.$ac_ext <<EOF
20717 #line 20718 "configure"
20718 #include "confdefs.h"
20720 #ifdef HAVE_SASL_SASL_H
20721 #include <sasl/sasl.h>
20726 /* Require 2.1.15+ */
20727 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20728 char *__sasl_compat = "2.2+ or better okay (we guess)";
20729 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20730 && SASL_VERSION_STEP >=15
20731 char *__sasl_compat = "2.1.15+ or better okay";
20735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20736 egrep "__sasl_compat" >/dev/null 2>&1; then
20738 ol_cv_sasl_compat=yes
20741 ol_cv_sasl_compat=no
20747 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20749 if test $ol_cv_sasl_compat = no ; then
20751 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20754 cat >> confdefs.h <<\EOF
20755 #define HAVE_CYRUS_SASL 1
20758 SASL_LIBS="$ol_link_sasl"
20759 if test $ol_enable_spasswd != no ; then
20760 ol_link_spasswd=yes
20763 ac_save_LIBS="$LIBS"
20764 LIBS="$LIBS $ol_link_sasl"
20765 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20766 echo "configure:20767: checking for sasl_version" >&5
20767 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20768 echo $ac_n "(cached) $ac_c" 1>&6
20770 cat > conftest.$ac_ext <<EOF
20771 #line 20772 "configure"
20772 #include "confdefs.h"
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char sasl_version(); below. */
20775 #include <assert.h>
20776 /* Override any gcc2 internal prototype to avoid an error. */
20777 /* We use char because int might match the return type of a gcc2
20778 builtin and then its argument prototype would still apply. */
20779 char sasl_version();
20784 /* The GNU C library defines this for functions which it implements
20785 to always fail with ENOSYS. Some functions are actually named
20786 something starting with __ and the normal name is an alias. */
20787 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20795 if { (eval echo configure:20796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20797 eval "ac_cv_func_sasl_version=yes"
20799 echo "configure: failed program was:" >&5
20800 cat conftest.$ac_ext >&5
20802 eval "ac_cv_func_sasl_version=no"
20807 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20808 echo "$ac_t""yes" 1>&6
20809 cat >> confdefs.h <<\EOF
20810 #define HAVE_SASL_VERSION 1
20814 echo "$ac_t""no" 1>&6
20817 LIBS="$ac_save_LIBS"
20821 echo "configure: warning: SASL authentication not supported!" 1>&2
20822 if test $ol_link_tls = no ; then
20823 echo "configure: warning: Strong authentication not supported!" 1>&2
20827 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20829 if test -r /dev/urandom ; then
20830 dev="/dev/urandom";
20831 elif test -r /idev/urandom ; then
20832 dev="/idev/urandom";
20833 elif test -r /dev/srandom ; then
20834 dev="/dev/srandom";
20835 elif test -r /dev/random ; then
20837 elif test -r /idev/random ; then
20838 dev="/idev/random";
20841 if test $dev != no ; then
20842 cat >> confdefs.h <<EOF
20843 #define URANDOM_DEVICE "$dev"
20850 if test $ol_with_fetch != no ; then
20852 LIBS="-lfetch -lcom_err $LIBS"
20853 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20854 echo "configure:20855: checking fetch(3) library" >&5
20855 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20856 echo $ac_n "(cached) $ac_c" 1>&6
20859 cat > conftest.$ac_ext <<EOF
20860 #line 20861 "configure"
20861 #include "confdefs.h"
20863 #include <sys/param.h>
20867 struct url *u = fetchParseURL("file:///");
20870 if { (eval echo configure:20871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20872 ol_cv_lib_fetch=yes
20874 echo "configure: failed program was:" >&5
20875 cat conftest.$ac_ext >&5
20882 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20884 if test $ol_cv_lib_fetch != no ; then
20885 ol_link_fetch="-lfetch -lcom_err"
20886 cat >> confdefs.h <<\EOF
20887 #define HAVE_FETCH 1
20893 if test $ol_cv_lib_fetch != no ; then
20894 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20895 ol_link_fetch=freebsd
20897 elif test $ol_with_fetch != auto ; then
20898 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20902 if test $ol_enable_crypt != no ; then
20904 LIBS="$TLS_LIBS $LIBS"
20906 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20907 echo "configure:20908: checking for crypt" >&5
20908 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20909 echo $ac_n "(cached) $ac_c" 1>&6
20911 cat > conftest.$ac_ext <<EOF
20912 #line 20913 "configure"
20913 #include "confdefs.h"
20914 /* System header to define __stub macros and hopefully few prototypes,
20915 which can conflict with char crypt(); below. */
20916 #include <assert.h>
20917 /* Override any gcc2 internal prototype to avoid an error. */
20918 /* We use char because int might match the return type of a gcc2
20919 builtin and then its argument prototype would still apply. */
20925 /* The GNU C library defines this for functions which it implements
20926 to always fail with ENOSYS. Some functions are actually named
20927 something starting with __ and the normal name is an alias. */
20928 #if defined (__stub_crypt) || defined (__stub___crypt)
20936 if { (eval echo configure:20937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20938 eval "ac_cv_func_crypt=yes"
20940 echo "configure: failed program was:" >&5
20941 cat conftest.$ac_ext >&5
20943 eval "ac_cv_func_crypt=no"
20948 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20949 echo "$ac_t""yes" 1>&6
20952 echo "$ac_t""no" 1>&6
20955 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20956 echo "configure:20957: checking for crypt in -lcrypt" >&5
20957 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20958 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
20961 ac_save_LIBS="$LIBS"
20962 LIBS="-lcrypt $LIBS"
20963 cat > conftest.$ac_ext <<EOF
20964 #line 20965 "configure"
20965 #include "confdefs.h"
20966 /* Override any gcc2 internal prototype to avoid an error. */
20967 /* We use char because int might match the return type of a gcc2
20968 builtin and then its argument prototype would still apply. */
20975 if { (eval echo configure:20976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20977 eval "ac_cv_lib_$ac_lib_var=yes"
20979 echo "configure: failed program was:" >&5
20980 cat conftest.$ac_ext >&5
20982 eval "ac_cv_lib_$ac_lib_var=no"
20985 LIBS="$ac_save_LIBS"
20988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20989 echo "$ac_t""yes" 1>&6
20990 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20993 echo "$ac_t""no" 1>&6
21002 if test $have_crypt = yes ; then
21003 cat >> confdefs.h <<\EOF
21004 #define HAVE_CRYPT 1
21008 echo "configure: warning: could not find crypt" 1>&2
21009 if test $ol_enable_crypt = yes ; then
21010 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21013 echo "configure: warning: disabling crypt support" 1>&2
21018 if test $ol_enable_proctitle != no ; then
21019 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21020 echo "configure:21021: checking for setproctitle" >&5
21021 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21022 echo $ac_n "(cached) $ac_c" 1>&6
21024 cat > conftest.$ac_ext <<EOF
21025 #line 21026 "configure"
21026 #include "confdefs.h"
21027 /* System header to define __stub macros and hopefully few prototypes,
21028 which can conflict with char setproctitle(); below. */
21029 #include <assert.h>
21030 /* Override any gcc2 internal prototype to avoid an error. */
21031 /* We use char because int might match the return type of a gcc2
21032 builtin and then its argument prototype would still apply. */
21033 char setproctitle();
21038 /* The GNU C library defines this for functions which it implements
21039 to always fail with ENOSYS. Some functions are actually named
21040 something starting with __ and the normal name is an alias. */
21041 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21049 if { (eval echo configure:21050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21051 eval "ac_cv_func_setproctitle=yes"
21053 echo "configure: failed program was:" >&5
21054 cat conftest.$ac_ext >&5
21056 eval "ac_cv_func_setproctitle=no"
21061 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21062 echo "$ac_t""yes" 1>&6
21063 have_setproctitle=yes
21065 echo "$ac_t""no" 1>&6
21067 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21068 echo "configure:21069: checking for setproctitle in -lutil" >&5
21069 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21071 echo $ac_n "(cached) $ac_c" 1>&6
21073 ac_save_LIBS="$LIBS"
21074 LIBS="-lutil $LIBS"
21075 cat > conftest.$ac_ext <<EOF
21076 #line 21077 "configure"
21077 #include "confdefs.h"
21078 /* Override any gcc2 internal prototype to avoid an error. */
21079 /* We use char because int might match the return type of a gcc2
21080 builtin and then its argument prototype would still apply. */
21081 char setproctitle();
21087 if { (eval echo configure:21088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21089 eval "ac_cv_lib_$ac_lib_var=yes"
21091 echo "configure: failed program was:" >&5
21092 cat conftest.$ac_ext >&5
21094 eval "ac_cv_lib_$ac_lib_var=no"
21097 LIBS="$ac_save_LIBS"
21100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21101 echo "$ac_t""yes" 1>&6
21102 have_setproctitle=yes
21103 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21105 echo "$ac_t""no" 1>&6
21106 have_setproctitle=no
21107 LIBOBJS="$LIBOBJS setproctitle.o"
21108 LIBSRCS="$LIBSRCS setproctitle.c"
21114 if test $have_setproctitle = yes ; then
21115 cat >> confdefs.h <<\EOF
21116 #define HAVE_SETPROCTITLE 1
21122 if test $ol_enable_slp != no ; then
21123 for ac_hdr in slp.h
21125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21127 echo "configure:21128: checking for $ac_hdr" >&5
21128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21129 echo $ac_n "(cached) $ac_c" 1>&6
21131 cat > conftest.$ac_ext <<EOF
21132 #line 21133 "configure"
21133 #include "confdefs.h"
21136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21137 { (eval echo configure:21138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21139 if test -z "$ac_err"; then
21141 eval "ac_cv_header_$ac_safe=yes"
21144 echo "configure: failed program was:" >&5
21145 cat conftest.$ac_ext >&5
21147 eval "ac_cv_header_$ac_safe=no"
21151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21152 echo "$ac_t""yes" 1>&6
21153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21154 cat >> confdefs.h <<EOF
21155 #define $ac_tr_hdr 1
21159 echo "$ac_t""no" 1>&6
21164 if test $ac_cv_header_slp_h = yes ; then
21165 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21166 echo "configure:21167: checking for SLPOpen in -lslp" >&5
21167 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21169 echo $ac_n "(cached) $ac_c" 1>&6
21171 ac_save_LIBS="$LIBS"
21173 cat > conftest.$ac_ext <<EOF
21174 #line 21175 "configure"
21175 #include "confdefs.h"
21176 /* Override any gcc2 internal prototype to avoid an error. */
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21185 if { (eval echo configure:21186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21187 eval "ac_cv_lib_$ac_lib_var=yes"
21189 echo "configure: failed program was:" >&5
21190 cat conftest.$ac_ext >&5
21192 eval "ac_cv_lib_$ac_lib_var=no"
21195 LIBS="$ac_save_LIBS"
21198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21199 echo "$ac_t""yes" 1>&6
21202 echo "$ac_t""no" 1>&6
21206 if test $have_slp = yes ; then
21207 cat >> confdefs.h <<\EOF
21211 SLAPD_SLP_LIBS=-lslp
21214 elif test $ol_enable_slp = yes ; then
21215 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21220 echo $ac_n "checking long long""... $ac_c" 1>&6
21221 echo "configure:21222: checking long long" >&5
21222 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21223 echo $ac_n "(cached) $ac_c" 1>&6
21226 cat > conftest.$ac_ext <<EOF
21227 #line 21228 "configure"
21228 #include "confdefs.h"
21234 if { (eval echo configure:21235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21236 ol_cv_type_long_long=yes
21238 echo "configure: failed program was:" >&5
21239 cat conftest.$ac_ext >&5
21241 ol_cv_type_long_long=no
21246 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21247 if test $ol_cv_type_long_long = yes; then
21248 cat >> confdefs.h <<\EOF
21249 #define HAVE_LONG_LONG 1
21254 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21255 echo "configure:21256: checking for ANSI C header files" >&5
21256 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21257 echo $ac_n "(cached) $ac_c" 1>&6
21259 cat > conftest.$ac_ext <<EOF
21260 #line 21261 "configure"
21261 #include "confdefs.h"
21262 #include <stdlib.h>
21263 #include <stdarg.h>
21264 #include <string.h>
21267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21268 { (eval echo configure:21269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21270 if test -z "$ac_err"; then
21272 ac_cv_header_stdc=yes
21275 echo "configure: failed program was:" >&5
21276 cat conftest.$ac_ext >&5
21278 ac_cv_header_stdc=no
21282 if test $ac_cv_header_stdc = yes; then
21283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21284 cat > conftest.$ac_ext <<EOF
21285 #line 21286 "configure"
21286 #include "confdefs.h"
21287 #include <string.h>
21289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21290 egrep "memchr" >/dev/null 2>&1; then
21294 ac_cv_header_stdc=no
21300 if test $ac_cv_header_stdc = yes; then
21301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21302 cat > conftest.$ac_ext <<EOF
21303 #line 21304 "configure"
21304 #include "confdefs.h"
21305 #include <stdlib.h>
21307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21308 egrep "free" >/dev/null 2>&1; then
21312 ac_cv_header_stdc=no
21318 if test $ac_cv_header_stdc = yes; then
21319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21320 if test "$cross_compiling" = yes; then
21323 cat > conftest.$ac_ext <<EOF
21324 #line 21325 "configure"
21325 #include "confdefs.h"
21327 #if ((' ' & 0x0FF) == 0x020)
21328 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21329 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21331 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21332 || ('j' <= (c) && (c) <= 'r') \
21333 || ('s' <= (c) && (c) <= 'z'))
21334 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21337 int main () { int i; for (i = 0; i < 256; i++)
21338 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21342 if { (eval echo configure:21343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21346 echo "configure: failed program was:" >&5
21347 cat conftest.$ac_ext >&5
21349 ac_cv_header_stdc=no
21357 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21358 if test $ac_cv_header_stdc = yes; then
21359 cat >> confdefs.h <<\EOF
21360 #define STDC_HEADERS 1
21365 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21366 echo "configure:21367: checking for mode_t" >&5
21367 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21368 echo $ac_n "(cached) $ac_c" 1>&6
21370 cat > conftest.$ac_ext <<EOF
21371 #line 21372 "configure"
21372 #include "confdefs.h"
21373 #include <sys/types.h>
21375 #include <stdlib.h>
21376 #include <stddef.h>
21380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21381 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21383 eval "ac_cv_type_mode_t=yes"
21386 eval "ac_cv_type_mode_t=no"
21391 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21392 echo "$ac_t""yes" 1>&6
21394 echo "$ac_t""no" 1>&6
21395 cat >> confdefs.h <<EOF
21401 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21402 echo "configure:21403: checking for off_t" >&5
21403 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21404 echo $ac_n "(cached) $ac_c" 1>&6
21406 cat > conftest.$ac_ext <<EOF
21407 #line 21408 "configure"
21408 #include "confdefs.h"
21409 #include <sys/types.h>
21411 #include <stdlib.h>
21412 #include <stddef.h>
21416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21417 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21419 eval "ac_cv_type_off_t=yes"
21422 eval "ac_cv_type_off_t=no"
21427 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21428 echo "$ac_t""yes" 1>&6
21430 echo "$ac_t""no" 1>&6
21431 cat >> confdefs.h <<EOF
21437 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21438 echo "configure:21439: checking for pid_t" >&5
21439 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21440 echo $ac_n "(cached) $ac_c" 1>&6
21442 cat > conftest.$ac_ext <<EOF
21443 #line 21444 "configure"
21444 #include "confdefs.h"
21445 #include <sys/types.h>
21447 #include <stdlib.h>
21448 #include <stddef.h>
21452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21453 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21455 eval "ac_cv_type_pid_t=yes"
21458 eval "ac_cv_type_pid_t=no"
21463 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21464 echo "$ac_t""yes" 1>&6
21466 echo "$ac_t""no" 1>&6
21467 cat >> confdefs.h <<EOF
21473 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21474 echo "configure:21475: checking for ptrdiff_t" >&5
21475 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21478 cat > conftest.$ac_ext <<EOF
21479 #line 21480 "configure"
21480 #include "confdefs.h"
21481 #include <stddef.h>
21486 if { (eval echo configure:21487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21488 am_cv_type_ptrdiff_t=yes
21490 echo "configure: failed program was:" >&5
21491 cat conftest.$ac_ext >&5
21493 am_cv_type_ptrdiff_t=no
21498 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21499 if test $am_cv_type_ptrdiff_t = yes; then
21500 cat >> confdefs.h <<\EOF
21501 #define HAVE_PTRDIFF_T 1
21506 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21507 echo "configure:21508: checking return type of signal handlers" >&5
21508 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21509 echo $ac_n "(cached) $ac_c" 1>&6
21511 cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21514 #include <sys/types.h>
21515 #include <signal.h>
21520 extern "C" void (*signal (int, void (*)(int)))(int);
21522 void (*signal ()) ();
21529 if { (eval echo configure:21530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21531 ac_cv_type_signal=void
21533 echo "configure: failed program was:" >&5
21534 cat conftest.$ac_ext >&5
21536 ac_cv_type_signal=int
21541 echo "$ac_t""$ac_cv_type_signal" 1>&6
21542 cat >> confdefs.h <<EOF
21543 #define RETSIGTYPE $ac_cv_type_signal
21547 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21548 echo "configure:21549: checking for size_t" >&5
21549 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21550 echo $ac_n "(cached) $ac_c" 1>&6
21552 cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21555 #include <sys/types.h>
21557 #include <stdlib.h>
21558 #include <stddef.h>
21562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21563 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21565 eval "ac_cv_type_size_t=yes"
21568 eval "ac_cv_type_size_t=no"
21573 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21574 echo "$ac_t""yes" 1>&6
21576 echo "$ac_t""no" 1>&6
21577 cat >> confdefs.h <<EOF
21578 #define size_t unsigned
21584 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21585 echo "configure:21586: checking for ssize_t" >&5
21586 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21587 echo $ac_n "(cached) $ac_c" 1>&6
21589 cat > conftest.$ac_ext <<EOF
21590 #line 21591 "configure"
21591 #include "confdefs.h"
21592 #include <sys/types.h>
21594 #include <stdlib.h>
21595 #include <stddef.h>
21599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21600 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21602 eval "ac_cv_type_ssize_t=yes"
21605 eval "ac_cv_type_ssize_t=no"
21610 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21611 echo "$ac_t""yes" 1>&6
21613 echo "$ac_t""no" 1>&6
21614 cat >> confdefs.h <<EOF
21615 #define ssize_t signed int
21620 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21621 echo "configure:21622: checking for caddr_t" >&5
21622 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21623 echo $ac_n "(cached) $ac_c" 1>&6
21625 cat > conftest.$ac_ext <<EOF
21626 #line 21627 "configure"
21627 #include "confdefs.h"
21628 #include <sys/types.h>
21630 #include <stdlib.h>
21631 #include <stddef.h>
21635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21636 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21638 eval "ac_cv_type_caddr_t=yes"
21641 eval "ac_cv_type_caddr_t=no"
21646 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21647 echo "$ac_t""yes" 1>&6
21649 echo "$ac_t""no" 1>&6
21650 cat >> confdefs.h <<EOF
21651 #define caddr_t char *
21657 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21658 echo "configure:21659: checking for socklen_t" >&5
21659 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21660 echo $ac_n "(cached) $ac_c" 1>&6
21662 cat > conftest.$ac_ext <<EOF
21663 #line 21664 "configure"
21664 #include "confdefs.h"
21666 #ifdef HAVE_SYS_TYPES_H
21667 #include <sys/types.h>
21669 #ifdef HAVE_SYS_SOCKET_H
21670 #include <sys/socket.h>
21677 if { (eval echo configure:21678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21679 ol_cv_type_socklen_t=yes
21681 echo "configure: failed program was:" >&5
21682 cat conftest.$ac_ext >&5
21684 ol_cv_type_socklen_t=no
21689 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21690 if test $ol_cv_type_socklen_t = no; then
21691 cat >> confdefs.h <<\EOF
21692 #define socklen_t int
21697 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21698 echo "configure:21699: checking for member st_blksize in aggregate type struct stat" >&5
21699 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21700 echo $ac_n "(cached) $ac_c" 1>&6
21702 cat > conftest.$ac_ext <<EOF
21703 #line 21704 "configure"
21704 #include "confdefs.h"
21705 #include <sys/types.h>
21706 #include <sys/stat.h>
21708 struct stat foo; foo.st_blksize;
21711 if { (eval echo configure:21712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21713 ac_cv_c_struct_member_st_blksize=yes
21715 echo "configure: failed program was:" >&5
21716 cat conftest.$ac_ext >&5
21718 ac_cv_c_struct_member_st_blksize=no
21723 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21724 st_blksize="$ac_cv_c_struct_member_st_blksize"
21725 if test $ac_cv_c_struct_member_st_blksize = yes; then
21726 cat >> confdefs.h <<\EOF
21727 #define HAVE_ST_BLKSIZE 1
21732 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21733 echo "configure:21734: checking whether time.h and sys/time.h may both be included" >&5
21734 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21735 echo $ac_n "(cached) $ac_c" 1>&6
21737 cat > conftest.$ac_ext <<EOF
21738 #line 21739 "configure"
21739 #include "confdefs.h"
21740 #include <sys/types.h>
21741 #include <sys/time.h>
21747 if { (eval echo configure:21748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21749 ac_cv_header_time=yes
21751 echo "configure: failed program was:" >&5
21752 cat conftest.$ac_ext >&5
21754 ac_cv_header_time=no
21759 echo "$ac_t""$ac_cv_header_time" 1>&6
21760 if test $ac_cv_header_time = yes; then
21761 cat >> confdefs.h <<\EOF
21762 #define TIME_WITH_SYS_TIME 1
21767 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21768 echo "configure:21769: checking whether struct tm is in sys/time.h or time.h" >&5
21769 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21770 echo $ac_n "(cached) $ac_c" 1>&6
21772 cat > conftest.$ac_ext <<EOF
21773 #line 21774 "configure"
21774 #include "confdefs.h"
21775 #include <sys/types.h>
21778 struct tm *tp; tp->tm_sec;
21781 if { (eval echo configure:21782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21783 ac_cv_struct_tm=time.h
21785 echo "configure: failed program was:" >&5
21786 cat conftest.$ac_ext >&5
21788 ac_cv_struct_tm=sys/time.h
21793 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21794 if test $ac_cv_struct_tm = sys/time.h; then
21795 cat >> confdefs.h <<\EOF
21796 #define TM_IN_SYS_TIME 1
21801 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21802 echo "configure:21803: checking for uid_t in sys/types.h" >&5
21803 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21804 echo $ac_n "(cached) $ac_c" 1>&6
21806 cat > conftest.$ac_ext <<EOF
21807 #line 21808 "configure"
21808 #include "confdefs.h"
21809 #include <sys/types.h>
21811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21812 egrep "uid_t" >/dev/null 2>&1; then
21814 ac_cv_type_uid_t=yes
21817 ac_cv_type_uid_t=no
21823 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21824 if test $ac_cv_type_uid_t = no; then
21825 cat >> confdefs.h <<\EOF
21829 cat >> confdefs.h <<\EOF
21835 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21836 echo "configure:21837: checking for sig_atomic_t" >&5
21837 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21838 echo $ac_n "(cached) $ac_c" 1>&6
21840 cat > conftest.$ac_ext <<EOF
21841 #line 21842 "configure"
21842 #include "confdefs.h"
21843 #include <signal.h>
21845 sig_atomic_t atomic;
21848 if { (eval echo configure:21849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21850 ol_cv_type_sig_atomic_t=yes
21852 echo "configure: failed program was:" >&5
21853 cat conftest.$ac_ext >&5
21855 ol_cv_type_sig_atomic_t=no
21860 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21861 if test $ol_cv_type_sig_atomic_t = no; then
21862 cat >> confdefs.h <<\EOF
21863 #define sig_atomic_t int
21870 # test for pw_gecos in struct passwd
21871 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21872 echo "configure:21873: checking struct passwd for pw_gecos" >&5
21873 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21874 echo $ac_n "(cached) $ac_c" 1>&6
21877 cat > conftest.$ac_ext <<EOF
21878 #line 21879 "configure"
21879 #include "confdefs.h"
21884 pwd.pw_gecos = pwd.pw_name;
21888 if { (eval echo configure:21889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21890 ol_cv_struct_passwd_pw_gecos=yes
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21895 ol_cv_struct_passwd_pw_gecos=no
21900 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21901 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21902 cat >> confdefs.h <<\EOF
21903 #define HAVE_PW_GECOS 1
21908 # test for pw_passwd in struct passwd
21909 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21910 echo "configure:21911: checking struct passwd for pw_passwd" >&5
21911 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21912 echo $ac_n "(cached) $ac_c" 1>&6
21915 cat > conftest.$ac_ext <<EOF
21916 #line 21917 "configure"
21917 #include "confdefs.h"
21922 pwd.pw_passwd = pwd.pw_name;
21926 if { (eval echo configure:21927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21928 ol_cv_struct_passwd_pw_passwd=yes
21930 echo "configure: failed program was:" >&5
21931 cat conftest.$ac_ext >&5
21933 ol_cv_struct_passwd_pw_passwd=no
21938 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21939 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21940 cat >> confdefs.h <<\EOF
21941 #define HAVE_PW_PASSWD 1
21947 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21948 echo "configure:21949: checking if toupper() requires islower()" >&5
21949 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21950 echo $ac_n "(cached) $ac_c" 1>&6
21953 if test "$cross_compiling" = yes; then
21954 ol_cv_c_upper_lower=safe
21956 cat > conftest.$ac_ext <<EOF
21957 #line 21958 "configure"
21958 #include "confdefs.h"
21963 if ('C' == toupper('C'))
21969 if { (eval echo configure:21970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21971 ol_cv_c_upper_lower=no
21973 echo "configure: failed program was:" >&5
21974 cat conftest.$ac_ext >&5
21976 ol_cv_c_upper_lower=yes
21983 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21984 if test $ol_cv_c_upper_lower != no ; then
21985 cat >> confdefs.h <<\EOF
21986 #define C_UPPER_LOWER 1
21991 echo $ac_n "checking for working const""... $ac_c" 1>&6
21992 echo "configure:21993: checking for working const" >&5
21993 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21994 echo $ac_n "(cached) $ac_c" 1>&6
21996 cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
22002 /* Ultrix mips cc rejects this. */
22003 typedef int charset[2]; const charset x;
22004 /* SunOS 4.1.1 cc rejects this. */
22005 char const *const *ccp;
22007 /* NEC SVR4.0.2 mips cc rejects this. */
22008 struct point {int x, y;};
22009 static struct point const zero = {0,0};
22010 /* AIX XL C 1.02.0.0 rejects this.
22011 It does not let you subtract one const X* pointer from another in an arm
22012 of an if-expression whose if-part is not a constant expression */
22013 const char *g = "string";
22014 ccp = &g + (g ? g-g : 0);
22015 /* HPUX 7.0 cc rejects these. */
22018 ccp = (char const *const *) p;
22019 { /* SCO 3.2v4 cc rejects this. */
22021 char const *s = 0 ? (char *) 0 : (char const *) 0;
22025 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22026 int x[] = {25, 17};
22027 const int *foo = &x[0];
22030 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22031 typedef const int *iptr;
22035 { /* AIX XL C 1.02.0.0 rejects this saying
22036 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22037 struct s { int j; const int *ap[3]; };
22038 struct s *b; b->j = 5;
22040 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22041 const int foo = 10;
22046 if { (eval echo configure:22047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22050 echo "configure: failed program was:" >&5
22051 cat conftest.$ac_ext >&5
22058 echo "$ac_t""$ac_cv_c_const" 1>&6
22059 if test $ac_cv_c_const = no; then
22060 cat >> confdefs.h <<\EOF
22066 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22067 echo "configure:22068: checking if compiler understands volatile" >&5
22068 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22069 echo $ac_n "(cached) $ac_c" 1>&6
22071 cat > conftest.$ac_ext <<EOF
22072 #line 22073 "configure"
22073 #include "confdefs.h"
22076 volatile int a; int * volatile b = x ? &y : &z;
22077 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22081 if { (eval echo configure:22082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22083 ol_cv_c_volatile=yes
22085 echo "configure: failed program was:" >&5
22086 cat conftest.$ac_ext >&5
22088 ol_cv_c_volatile=no
22093 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22094 if test $ol_cv_c_volatile = yes; then
22097 cat >> confdefs.h <<\EOF
22104 if test $cross_compiling = yes ; then
22105 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22106 cat >> confdefs.h <<\EOF
22107 #define CROSS_COMPILING 1
22111 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22112 echo "configure:22113: checking whether byte ordering is bigendian" >&5
22113 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22114 echo $ac_n "(cached) $ac_c" 1>&6
22116 ac_cv_c_bigendian=unknown
22117 # See if sys/param.h defines the BYTE_ORDER macro.
22118 cat > conftest.$ac_ext <<EOF
22119 #line 22120 "configure"
22120 #include "confdefs.h"
22121 #include <sys/types.h>
22122 #include <sys/param.h>
22125 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22126 bogus endian macros
22130 if { (eval echo configure:22131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22132 # It does; now see whether it defined to BIG_ENDIAN or not.
22133 cat > conftest.$ac_ext <<EOF
22134 #line 22135 "configure"
22135 #include "confdefs.h"
22136 #include <sys/types.h>
22137 #include <sys/param.h>
22140 #if BYTE_ORDER != BIG_ENDIAN
22145 if { (eval echo configure:22146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22147 ac_cv_c_bigendian=yes
22149 echo "configure: failed program was:" >&5
22150 cat conftest.$ac_ext >&5
22152 ac_cv_c_bigendian=no
22156 echo "configure: failed program was:" >&5
22157 cat conftest.$ac_ext >&5
22160 if test $ac_cv_c_bigendian = unknown; then
22161 if test "$cross_compiling" = yes; then
22162 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22164 cat > conftest.$ac_ext <<EOF
22165 #line 22166 "configure"
22166 #include "confdefs.h"
22168 /* Are we little or big endian? From Harbison&Steele. */
22172 char c[sizeof (long)];
22175 exit (u.c[sizeof (long) - 1] == 1);
22178 if { (eval echo configure:22179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22180 ac_cv_c_bigendian=no
22182 echo "configure: failed program was:" >&5
22183 cat conftest.$ac_ext >&5
22185 ac_cv_c_bigendian=yes
22193 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22194 if test $ac_cv_c_bigendian = yes; then
22195 cat >> confdefs.h <<\EOF
22196 #define WORDS_BIGENDIAN 1
22203 echo $ac_n "checking size of short""... $ac_c" 1>&6
22204 echo "configure:22205: checking size of short" >&5
22205 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22206 echo $ac_n "(cached) $ac_c" 1>&6
22208 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22209 cat > conftest.$ac_ext <<EOF
22210 #line 22211 "configure"
22211 #include "confdefs.h"
22212 #include "confdefs.h"
22213 #include <stdlib.h>
22214 #include <sys/types.h>
22218 switch (0) case 0: case (sizeof (short) == $ac_size):;
22221 if { (eval echo configure:22222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22223 ac_cv_sizeof_short=$ac_size
22225 echo "configure: failed program was:" >&5
22226 cat conftest.$ac_ext >&5
22229 if test x$ac_cv_sizeof_short != x ; then break; fi
22234 if test x$ac_cv_sizeof_short = x ; then
22235 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22237 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22238 cat >> confdefs.h <<EOF
22239 #define SIZEOF_SHORT $ac_cv_sizeof_short
22243 echo $ac_n "checking size of int""... $ac_c" 1>&6
22244 echo "configure:22245: checking size of int" >&5
22245 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22246 echo $ac_n "(cached) $ac_c" 1>&6
22248 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22249 cat > conftest.$ac_ext <<EOF
22250 #line 22251 "configure"
22251 #include "confdefs.h"
22252 #include "confdefs.h"
22253 #include <stdlib.h>
22254 #include <sys/types.h>
22258 switch (0) case 0: case (sizeof (int) == $ac_size):;
22261 if { (eval echo configure:22262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22263 ac_cv_sizeof_int=$ac_size
22265 echo "configure: failed program was:" >&5
22266 cat conftest.$ac_ext >&5
22269 if test x$ac_cv_sizeof_int != x ; then break; fi
22274 if test x$ac_cv_sizeof_int = x ; then
22275 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22277 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22278 cat >> confdefs.h <<EOF
22279 #define SIZEOF_INT $ac_cv_sizeof_int
22283 echo $ac_n "checking size of long""... $ac_c" 1>&6
22284 echo "configure:22285: checking size of long" >&5
22285 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22286 echo $ac_n "(cached) $ac_c" 1>&6
22288 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22289 cat > conftest.$ac_ext <<EOF
22290 #line 22291 "configure"
22291 #include "confdefs.h"
22292 #include "confdefs.h"
22293 #include <stdlib.h>
22294 #include <sys/types.h>
22298 switch (0) case 0: case (sizeof (long) == $ac_size):;
22301 if { (eval echo configure:22302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22303 ac_cv_sizeof_long=$ac_size
22305 echo "configure: failed program was:" >&5
22306 cat conftest.$ac_ext >&5
22309 if test x$ac_cv_sizeof_long != x ; then break; fi
22314 if test x$ac_cv_sizeof_long = x ; then
22315 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22317 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22318 cat >> confdefs.h <<EOF
22319 #define SIZEOF_LONG $ac_cv_sizeof_long
22323 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22324 echo "configure:22325: checking size of wchar_t" >&5
22325 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22326 echo $ac_n "(cached) $ac_c" 1>&6
22328 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22329 cat > conftest.$ac_ext <<EOF
22330 #line 22331 "configure"
22331 #include "confdefs.h"
22332 #include "confdefs.h"
22333 #include <stdlib.h>
22334 #include <sys/types.h>
22338 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22341 if { (eval echo configure:22342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22343 ac_cv_sizeof_wchar_t=$ac_size
22345 echo "configure: failed program was:" >&5
22346 cat conftest.$ac_ext >&5
22349 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22354 if test x$ac_cv_sizeof_wchar_t = x ; then
22355 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22357 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22358 cat >> confdefs.h <<EOF
22359 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22364 if test "$ac_cv_sizeof_int" -lt 4 ; then
22365 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22367 cat >> confdefs.h <<\EOF
22368 #define LBER_INT_T long
22372 cat >> confdefs.h <<\EOF
22373 #define LBER_INT_T int
22378 cat >> confdefs.h <<\EOF
22379 #define LBER_LEN_T long
22382 cat >> confdefs.h <<\EOF
22383 #define LBER_SOCKET_T int
22386 cat >> confdefs.h <<\EOF
22387 #define LBER_TAG_T long
22391 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22392 echo "configure:22393: checking for 8-bit clean memcmp" >&5
22393 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22394 echo $ac_n "(cached) $ac_c" 1>&6
22396 if test "$cross_compiling" = yes; then
22397 ac_cv_func_memcmp_clean=no
22399 cat > conftest.$ac_ext <<EOF
22400 #line 22401 "configure"
22401 #include "confdefs.h"
22405 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22406 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22410 if { (eval echo configure:22411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22412 ac_cv_func_memcmp_clean=yes
22414 echo "configure: failed program was:" >&5
22415 cat conftest.$ac_ext >&5
22417 ac_cv_func_memcmp_clean=no
22424 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22425 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22427 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22428 echo "configure:22429: checking for strftime" >&5
22429 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22430 echo $ac_n "(cached) $ac_c" 1>&6
22432 cat > conftest.$ac_ext <<EOF
22433 #line 22434 "configure"
22434 #include "confdefs.h"
22435 /* System header to define __stub macros and hopefully few prototypes,
22436 which can conflict with char strftime(); below. */
22437 #include <assert.h>
22438 /* Override any gcc2 internal prototype to avoid an error. */
22439 /* We use char because int might match the return type of a gcc2
22440 builtin and then its argument prototype would still apply. */
22446 /* The GNU C library defines this for functions which it implements
22447 to always fail with ENOSYS. Some functions are actually named
22448 something starting with __ and the normal name is an alias. */
22449 #if defined (__stub_strftime) || defined (__stub___strftime)
22457 if { (eval echo configure:22458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22459 eval "ac_cv_func_strftime=yes"
22461 echo "configure: failed program was:" >&5
22462 cat conftest.$ac_ext >&5
22464 eval "ac_cv_func_strftime=no"
22469 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22470 echo "$ac_t""yes" 1>&6
22471 cat >> confdefs.h <<\EOF
22472 #define HAVE_STRFTIME 1
22476 echo "$ac_t""no" 1>&6
22477 # strftime is in -lintl on SCO UNIX.
22478 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22479 echo "configure:22480: checking for strftime in -lintl" >&5
22480 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22482 echo $ac_n "(cached) $ac_c" 1>&6
22484 ac_save_LIBS="$LIBS"
22485 LIBS="-lintl $LIBS"
22486 cat > conftest.$ac_ext <<EOF
22487 #line 22488 "configure"
22488 #include "confdefs.h"
22489 /* Override any gcc2 internal prototype to avoid an error. */
22490 /* We use char because int might match the return type of a gcc2
22491 builtin and then its argument prototype would still apply. */
22498 if { (eval echo configure:22499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22500 eval "ac_cv_lib_$ac_lib_var=yes"
22502 echo "configure: failed program was:" >&5
22503 cat conftest.$ac_ext >&5
22505 eval "ac_cv_lib_$ac_lib_var=no"
22508 LIBS="$ac_save_LIBS"
22511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22512 echo "$ac_t""yes" 1>&6
22513 cat >> confdefs.h <<\EOF
22514 #define HAVE_STRFTIME 1
22517 LIBS="-lintl $LIBS"
22519 echo "$ac_t""no" 1>&6
22525 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22526 echo "configure:22527: checking for inet_aton()" >&5
22527 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22528 echo $ac_n "(cached) $ac_c" 1>&6
22530 cat > conftest.$ac_ext <<EOF
22531 #line 22532 "configure"
22532 #include "confdefs.h"
22534 #ifdef HAVE_SYS_TYPES_H
22535 # include <sys/types.h>
22537 #ifdef HAVE_SYS_SOCKET_H
22538 # include <sys/socket.h>
22539 # ifdef HAVE_SYS_SELECT_H
22540 # include <sys/select.h>
22542 # include <netinet/in.h>
22543 # ifdef HAVE_ARPA_INET_H
22544 # include <arpa/inet.h>
22550 int rc = inet_aton( "255.255.255.255", &in );
22553 if { (eval echo configure:22554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22555 ol_cv_func_inet_aton=yes
22557 echo "configure: failed program was:" >&5
22558 cat conftest.$ac_ext >&5
22560 ol_cv_func_inet_aton=no
22565 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22566 if test $ol_cv_func_inet_aton != no; then
22567 cat >> confdefs.h <<\EOF
22568 #define HAVE_INET_ATON 1
22574 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22575 echo "configure:22576: checking for _spawnlp" >&5
22576 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22577 echo $ac_n "(cached) $ac_c" 1>&6
22579 cat > conftest.$ac_ext <<EOF
22580 #line 22581 "configure"
22581 #include "confdefs.h"
22582 /* System header to define __stub macros and hopefully few prototypes,
22583 which can conflict with char _spawnlp(); below. */
22584 #include <assert.h>
22585 /* Override any gcc2 internal prototype to avoid an error. */
22586 /* We use char because int might match the return type of a gcc2
22587 builtin and then its argument prototype would still apply. */
22593 /* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22604 if { (eval echo configure:22605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22606 eval "ac_cv_func__spawnlp=yes"
22608 echo "configure: failed program was:" >&5
22609 cat conftest.$ac_ext >&5
22611 eval "ac_cv_func__spawnlp=no"
22616 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22617 echo "$ac_t""yes" 1>&6
22618 cat >> confdefs.h <<\EOF
22619 #define HAVE_SPAWNLP 1
22623 echo "$ac_t""no" 1>&6
22627 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22628 echo "configure:22629: checking for _snprintf" >&5
22629 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22630 echo $ac_n "(cached) $ac_c" 1>&6
22632 cat > conftest.$ac_ext <<EOF
22633 #line 22634 "configure"
22634 #include "confdefs.h"
22635 /* System header to define __stub macros and hopefully few prototypes,
22636 which can conflict with char _snprintf(); below. */
22637 #include <assert.h>
22638 /* Override any gcc2 internal prototype to avoid an error. */
22639 /* We use char because int might match the return type of a gcc2
22640 builtin and then its argument prototype would still apply. */
22646 /* The GNU C library defines this for functions which it implements
22647 to always fail with ENOSYS. Some functions are actually named
22648 something starting with __ and the normal name is an alias. */
22649 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22657 if { (eval echo configure:22658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22659 eval "ac_cv_func__snprintf=yes"
22661 echo "configure: failed program was:" >&5
22662 cat conftest.$ac_ext >&5
22664 eval "ac_cv_func__snprintf=no"
22669 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22670 echo "$ac_t""yes" 1>&6
22671 ac_cv_func_snprintf=yes
22672 cat >> confdefs.h <<\EOF
22673 #define snprintf _snprintf
22678 echo "$ac_t""no" 1>&6
22682 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22683 echo "configure:22684: checking for _vsnprintf" >&5
22684 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22685 echo $ac_n "(cached) $ac_c" 1>&6
22687 cat > conftest.$ac_ext <<EOF
22688 #line 22689 "configure"
22689 #include "confdefs.h"
22690 /* System header to define __stub macros and hopefully few prototypes,
22691 which can conflict with char _vsnprintf(); below. */
22692 #include <assert.h>
22693 /* Override any gcc2 internal prototype to avoid an error. */
22694 /* We use char because int might match the return type of a gcc2
22695 builtin and then its argument prototype would still apply. */
22701 /* The GNU C library defines this for functions which it implements
22702 to always fail with ENOSYS. Some functions are actually named
22703 something starting with __ and the normal name is an alias. */
22704 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22712 if { (eval echo configure:22713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22714 eval "ac_cv_func__vsnprintf=yes"
22716 echo "configure: failed program was:" >&5
22717 cat conftest.$ac_ext >&5
22719 eval "ac_cv_func__vsnprintf=no"
22724 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22725 echo "$ac_t""yes" 1>&6
22726 ac_cv_func_vsnprintf=yes
22727 cat >> confdefs.h <<\EOF
22728 #define vsnprintf _vsnprintf
22733 echo "$ac_t""no" 1>&6
22737 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22738 echo "configure:22739: checking for vprintf" >&5
22739 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22740 echo $ac_n "(cached) $ac_c" 1>&6
22742 cat > conftest.$ac_ext <<EOF
22743 #line 22744 "configure"
22744 #include "confdefs.h"
22745 /* System header to define __stub macros and hopefully few prototypes,
22746 which can conflict with char vprintf(); below. */
22747 #include <assert.h>
22748 /* Override any gcc2 internal prototype to avoid an error. */
22749 /* We use char because int might match the return type of a gcc2
22750 builtin and then its argument prototype would still apply. */
22756 /* The GNU C library defines this for functions which it implements
22757 to always fail with ENOSYS. Some functions are actually named
22758 something starting with __ and the normal name is an alias. */
22759 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22767 if { (eval echo configure:22768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22769 eval "ac_cv_func_vprintf=yes"
22771 echo "configure: failed program was:" >&5
22772 cat conftest.$ac_ext >&5
22774 eval "ac_cv_func_vprintf=no"
22779 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22780 echo "$ac_t""yes" 1>&6
22781 cat >> confdefs.h <<\EOF
22782 #define HAVE_VPRINTF 1
22786 echo "$ac_t""no" 1>&6
22789 if test "$ac_cv_func_vprintf" != yes; then
22790 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22791 echo "configure:22792: checking for _doprnt" >&5
22792 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22793 echo $ac_n "(cached) $ac_c" 1>&6
22795 cat > conftest.$ac_ext <<EOF
22796 #line 22797 "configure"
22797 #include "confdefs.h"
22798 /* System header to define __stub macros and hopefully few prototypes,
22799 which can conflict with char _doprnt(); below. */
22800 #include <assert.h>
22801 /* Override any gcc2 internal prototype to avoid an error. */
22802 /* We use char because int might match the return type of a gcc2
22803 builtin and then its argument prototype would still apply. */
22809 /* The GNU C library defines this for functions which it implements
22810 to always fail with ENOSYS. Some functions are actually named
22811 something starting with __ and the normal name is an alias. */
22812 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22820 if { (eval echo configure:22821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22822 eval "ac_cv_func__doprnt=yes"
22824 echo "configure: failed program was:" >&5
22825 cat conftest.$ac_ext >&5
22827 eval "ac_cv_func__doprnt=no"
22832 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22833 echo "$ac_t""yes" 1>&6
22834 cat >> confdefs.h <<\EOF
22835 #define HAVE_DOPRNT 1
22839 echo "$ac_t""no" 1>&6
22845 if test $ac_cv_func_vprintf = yes ; then
22846 for ac_func in snprintf vsnprintf
22848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22849 echo "configure:22850: checking for $ac_func" >&5
22850 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22851 echo $ac_n "(cached) $ac_c" 1>&6
22853 cat > conftest.$ac_ext <<EOF
22854 #line 22855 "configure"
22855 #include "confdefs.h"
22856 /* System header to define __stub macros and hopefully few prototypes,
22857 which can conflict with char $ac_func(); below. */
22858 #include <assert.h>
22859 /* Override any gcc2 internal prototype to avoid an error. */
22860 /* We use char because int might match the return type of a gcc2
22861 builtin and then its argument prototype would still apply. */
22867 /* The GNU C library defines this for functions which it implements
22868 to always fail with ENOSYS. Some functions are actually named
22869 something starting with __ and the normal name is an alias. */
22870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22878 if { (eval echo configure:22879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22880 eval "ac_cv_func_$ac_func=yes"
22882 echo "configure: failed program was:" >&5
22883 cat conftest.$ac_ext >&5
22885 eval "ac_cv_func_$ac_func=no"
22890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22891 echo "$ac_t""yes" 1>&6
22892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22893 cat >> confdefs.h <<EOF
22894 #define $ac_tr_func 1
22898 echo "$ac_t""no" 1>&6
22963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22964 echo "configure:22965: checking for $ac_func" >&5
22965 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22966 echo $ac_n "(cached) $ac_c" 1>&6
22968 cat > conftest.$ac_ext <<EOF
22969 #line 22970 "configure"
22970 #include "confdefs.h"
22971 /* System header to define __stub macros and hopefully few prototypes,
22972 which can conflict with char $ac_func(); below. */
22973 #include <assert.h>
22974 /* Override any gcc2 internal prototype to avoid an error. */
22975 /* We use char because int might match the return type of a gcc2
22976 builtin and then its argument prototype would still apply. */
22982 /* The GNU C library defines this for functions which it implements
22983 to always fail with ENOSYS. Some functions are actually named
22984 something starting with __ and the normal name is an alias. */
22985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22993 if { (eval echo configure:22994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22995 eval "ac_cv_func_$ac_func=yes"
22997 echo "configure: failed program was:" >&5
22998 cat conftest.$ac_ext >&5
23000 eval "ac_cv_func_$ac_func=no"
23005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23006 echo "$ac_t""yes" 1>&6
23007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23008 cat >> confdefs.h <<EOF
23009 #define $ac_tr_func 1
23013 echo "$ac_t""no" 1>&6
23018 for ac_func in getopt getpeereid
23020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23021 echo "configure:23022: checking for $ac_func" >&5
23022 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23023 echo $ac_n "(cached) $ac_c" 1>&6
23025 cat > conftest.$ac_ext <<EOF
23026 #line 23027 "configure"
23027 #include "confdefs.h"
23028 /* System header to define __stub macros and hopefully few prototypes,
23029 which can conflict with char $ac_func(); below. */
23030 #include <assert.h>
23031 /* Override any gcc2 internal prototype to avoid an error. */
23032 /* We use char because int might match the return type of a gcc2
23033 builtin and then its argument prototype would still apply. */
23039 /* The GNU C library defines this for functions which it implements
23040 to always fail with ENOSYS. Some functions are actually named
23041 something starting with __ and the normal name is an alias. */
23042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23050 if { (eval echo configure:23051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23052 eval "ac_cv_func_$ac_func=yes"
23054 echo "configure: failed program was:" >&5
23055 cat conftest.$ac_ext >&5
23057 eval "ac_cv_func_$ac_func=no"
23062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23063 echo "$ac_t""yes" 1>&6
23064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23065 cat >> confdefs.h <<EOF
23066 #define $ac_tr_func 1
23070 echo "$ac_t""no" 1>&6
23071 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23077 if test "$ac_cv_func_getopt" != yes; then
23078 LIBSRCS="$LIBSRCS getopt.c"
23080 if test "$ac_cv_func_getpeereid" != yes; then
23081 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23082 echo "configure:23083: checking for msg_accrights in msghdr" >&5
23083 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23084 echo $ac_n "(cached) $ac_c" 1>&6
23086 cat > conftest.$ac_ext <<EOF
23087 #line 23088 "configure"
23088 #include "confdefs.h"
23089 #include <sys/socket.h>
23091 struct msghdr m; m.msg_accrightslen=0
23094 if { (eval echo configure:23095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23096 ol_cv_msghdr_msg_accrights=yes
23098 echo "configure: failed program was:" >&5
23099 cat conftest.$ac_ext >&5
23101 ol_cv_msghdr_msg_accrights=no
23107 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23108 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23109 cat >> confdefs.h <<\EOF
23110 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23115 LIBSRCS="$LIBSRCS getpeereid.c"
23117 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23118 if test "$ac_cv_func_snprintf" != yes; then
23119 cat >> confdefs.h <<\EOF
23120 #define snprintf ber_pvt_snprintf
23124 if test "$ac_cv_func_vsnprintf" != yes; then
23125 cat >> confdefs.h <<\EOF
23126 #define vsnprintf ber_pvt_vsnprintf
23132 # Check Configuration
23133 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23134 echo "configure:23135: checking declaration of sys_errlist" >&5
23135 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23136 echo $ac_n "(cached) $ac_c" 1>&6
23139 cat > conftest.$ac_ext <<EOF
23140 #line 23141 "configure"
23141 #include "confdefs.h"
23144 #include <sys/types.h>
23147 #include <stdlib.h>
23150 char *c = (char *) *sys_errlist
23153 if { (eval echo configure:23154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23155 ol_cv_dcl_sys_errlist=yes
23156 ol_cv_have_sys_errlist=yes
23158 echo "configure: failed program was:" >&5
23159 cat conftest.$ac_ext >&5
23161 ol_cv_dcl_sys_errlist=no
23166 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23168 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23169 if test $ol_cv_dcl_sys_errlist = no ; then
23170 cat >> confdefs.h <<\EOF
23171 #define DECL_SYS_ERRLIST 1
23175 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23176 echo "configure:23177: checking existence of sys_errlist" >&5
23177 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23178 echo $ac_n "(cached) $ac_c" 1>&6
23181 cat > conftest.$ac_ext <<EOF
23182 #line 23183 "configure"
23183 #include "confdefs.h"
23186 char *c = (char *) *sys_errlist
23189 if { (eval echo configure:23190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23191 ol_cv_have_sys_errlist=yes
23193 echo "configure: failed program was:" >&5
23194 cat conftest.$ac_ext >&5
23196 ol_cv_have_sys_errlist=no
23201 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23203 if test $ol_cv_have_sys_errlist = yes ; then
23204 cat >> confdefs.h <<\EOF
23205 #define HAVE_SYS_ERRLIST 1
23212 if test "$ol_enable_slapi" != no ; then
23213 for ac_hdr in ltdl.h
23215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23217 echo "configure:23218: checking for $ac_hdr" >&5
23218 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23219 echo $ac_n "(cached) $ac_c" 1>&6
23221 cat > conftest.$ac_ext <<EOF
23222 #line 23223 "configure"
23223 #include "confdefs.h"
23226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23227 { (eval echo configure:23228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23229 if test -z "$ac_err"; then
23231 eval "ac_cv_header_$ac_safe=yes"
23234 echo "configure: failed program was:" >&5
23235 cat conftest.$ac_ext >&5
23237 eval "ac_cv_header_$ac_safe=no"
23241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23242 echo "$ac_t""yes" 1>&6
23243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23244 cat >> confdefs.h <<EOF
23245 #define $ac_tr_hdr 1
23249 echo "$ac_t""no" 1>&6
23254 if test $ac_cv_header_ltdl_h != yes ; then
23255 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23257 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23258 echo "configure:23259: checking for lt_dlinit in -lltdl" >&5
23259 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23261 echo $ac_n "(cached) $ac_c" 1>&6
23263 ac_save_LIBS="$LIBS"
23264 LIBS="-lltdl $LIBS"
23265 cat > conftest.$ac_ext <<EOF
23266 #line 23267 "configure"
23267 #include "confdefs.h"
23268 /* Override any gcc2 internal prototype to avoid an error. */
23269 /* We use char because int might match the return type of a gcc2
23270 builtin and then its argument prototype would still apply. */
23277 if { (eval echo configure:23278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23279 eval "ac_cv_lib_$ac_lib_var=yes"
23281 echo "configure: failed program was:" >&5
23282 cat conftest.$ac_ext >&5
23284 eval "ac_cv_lib_$ac_lib_var=no"
23287 LIBS="$ac_save_LIBS"
23290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23291 echo "$ac_t""yes" 1>&6
23294 LIBSLAPI=libslapi.a
23295 LIBSLAPITOOLS=../libslapi.a
23296 cat >> confdefs.h <<\EOF
23297 #define HAVE_LIBLTDL 1
23302 echo "$ac_t""no" 1>&6
23303 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23307 cat >> confdefs.h <<\EOF
23308 #define LDAP_SLAPI 1
23313 if test "$ol_enable_debug" != no ; then
23314 cat >> confdefs.h <<\EOF
23315 #define LDAP_DEBUG 1
23319 if test "$ol_enable_syslog" = yes ; then
23320 cat >> confdefs.h <<\EOF
23321 #define LDAP_SYSLOG 1
23325 if test "$ol_link_kbind" != no ; then
23326 cat >> confdefs.h <<\EOF
23327 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23331 if test "$ol_enable_proctitle" != no ; then
23332 cat >> confdefs.h <<\EOF
23333 #define LDAP_PROCTITLE 1
23337 if test "$ol_enable_referrals" != no ; then
23338 cat >> confdefs.h <<\EOF
23339 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23343 if test "$ol_enable_local" != no; then
23344 cat >> confdefs.h <<\EOF
23345 #define LDAP_PF_LOCAL 1
23349 if test "$ol_link_ipv6" != no; then
23350 cat >> confdefs.h <<\EOF
23351 #define LDAP_PF_INET6 1
23355 if test "$ol_enable_cleartext" != no ; then
23356 cat >> confdefs.h <<\EOF
23357 #define SLAPD_CLEARTEXT 1
23361 if test "$ol_enable_crypt" != no ; then
23362 cat >> confdefs.h <<\EOF
23363 #define SLAPD_CRYPT 1
23367 if test "$ol_link_spasswd" != no ; then
23368 cat >> confdefs.h <<\EOF
23369 #define SLAPD_SPASSWD 1
23373 if test "$ol_enable_multimaster" != no ; then
23374 cat >> confdefs.h <<\EOF
23375 #define SLAPD_MULTIMASTER 1
23379 if test "$ol_enable_rlookups" != no ; then
23380 cat >> confdefs.h <<\EOF
23381 #define SLAPD_RLOOKUPS 1
23385 if test "$ol_enable_aci" != no ; then
23386 cat >> confdefs.h <<\EOF
23387 #define SLAPD_ACI_ENABLED 1
23392 if test "$ol_link_modules" != no ; then
23393 cat >> confdefs.h <<\EOF
23394 #define SLAPD_MODULES 1
23398 SLAPD_MODULES_LDFLAGS="-dlopen self"
23401 cat >> confdefs.h <<\EOF
23402 #define SLAPD_MOD_STATIC 1
23405 cat >> confdefs.h <<\EOF
23406 #define SLAPD_MOD_DYNAMIC 2
23410 if test "$ol_enable_bdb" != no ; then
23412 BUILD_BDB=$ol_enable_bdb
23413 if test "$ol_enable_bdb" = mod ; then
23414 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23415 MFLAG=SLAPD_MOD_DYNAMIC
23417 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23418 MFLAG=SLAPD_MOD_STATIC
23420 cat >> confdefs.h <<EOF
23421 #define SLAPD_BDB $MFLAG
23426 if test "$ol_enable_dnssrv" != no ; then
23428 BUILD_DNSSRV=$ol_enable_dnssrv
23429 if test "$ol_enable_dnssrv" = mod ; then
23430 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23431 MFLAG=SLAPD_MOD_DYNAMIC
23433 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23434 MFLAG=SLAPD_MOD_STATIC
23436 cat >> confdefs.h <<EOF
23437 #define SLAPD_DNSSRV $MFLAG
23442 if test "$ol_enable_hdb" != no ; then
23444 BUILD_HDB=$ol_enable_hdb
23445 if test "$ol_enable_hdb" = mod ; then
23446 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23447 MFLAG=SLAPD_MOD_DYNAMIC
23449 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23450 MFLAG=SLAPD_MOD_STATIC
23452 cat >> confdefs.h <<EOF
23453 #define SLAPD_HDB $MFLAG
23458 if test "$ol_enable_ldap" != no ; then
23460 BUILD_LDAP=$ol_enable_ldap
23461 if test "$ol_enable_ldap" = mod ; then
23462 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23463 MFLAG=SLAPD_MOD_DYNAMIC
23465 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23466 MFLAG=SLAPD_MOD_STATIC
23468 cat >> confdefs.h <<EOF
23469 #define SLAPD_LDAP $MFLAG
23474 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23476 BUILD_LDBM=$ol_enable_ldbm
23477 if test "$ol_enable_ldbm" = mod ; then
23478 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23479 MFLAG=SLAPD_MOD_DYNAMIC
23481 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23482 MFLAG=SLAPD_MOD_STATIC
23484 cat >> confdefs.h <<EOF
23485 #define SLAPD_LDBM $MFLAG
23490 if test "$ol_enable_meta" != no ; then
23492 BUILD_META=$ol_enable_meta
23494 if test "$ol_enable_meta" = mod ; then
23495 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23496 MFLAG=SLAPD_MOD_DYNAMIC
23498 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23499 MFLAG=SLAPD_MOD_STATIC
23501 cat >> confdefs.h <<EOF
23502 #define SLAPD_META $MFLAG
23507 if test "$ol_enable_monitor" != no ; then
23509 BUILD_MONITOR=$ol_enable_monitor
23510 if test "$ol_enable_monitor" = mod ; then
23511 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23512 MFLAG=SLAPD_MOD_DYNAMIC
23514 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23515 MFLAG=SLAPD_MOD_STATIC
23517 cat >> confdefs.h <<EOF
23518 #define SLAPD_MONITOR $MFLAG
23523 if test "$ol_enable_null" != no ; then
23525 BUILD_NULL=$ol_enable_null
23526 if test "$ol_enable_null" = mod ; then
23527 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23528 MFLAG=SLAPD_MOD_DYNAMIC
23530 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23531 MFLAG=SLAPD_MOD_STATIC
23533 cat >> confdefs.h <<EOF
23534 #define SLAPD_NULL $MFLAG
23539 if test "$ol_enable_passwd" != no ; then
23541 BUILD_PASSWD=$ol_enable_passwd
23542 if test "$ol_enable_passwd" = mod ; then
23543 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23544 MFLAG=SLAPD_MOD_DYNAMIC
23546 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23547 MFLAG=SLAPD_MOD_STATIC
23549 cat >> confdefs.h <<EOF
23550 #define SLAPD_PASSWD $MFLAG
23555 if test "$ol_link_perl" != no ; then
23557 BUILD_PERL=$ol_enable_perl
23558 if test "$ol_enable_perl" = mod ; then
23559 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23560 MFLAG=SLAPD_MOD_DYNAMIC
23562 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23563 MFLAG=SLAPD_MOD_STATIC
23565 cat >> confdefs.h <<EOF
23566 #define SLAPD_PERL $MFLAG
23571 if test "$ol_enable_relay" != no ; then
23573 BUILD_RELAY=$ol_enable_relay
23574 if test "$ol_enable_relay" = mod ; then
23575 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23576 MFLAG=SLAPD_MOD_DYNAMIC
23578 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23579 MFLAG=SLAPD_MOD_STATIC
23581 cat >> confdefs.h <<EOF
23582 #define SLAPD_RELAY $MFLAG
23587 if test "$ol_enable_shell" != no ; then
23588 if test "$ol_link_thread" != no ; then
23589 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23592 BUILD_SHELL=$ol_enable_shell
23593 if test "$ol_enable_shell" = mod ; then
23594 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23595 MFLAG=SLAPD_MOD_DYNAMIC
23597 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23598 MFLAG=SLAPD_MOD_STATIC
23600 cat >> confdefs.h <<EOF
23601 #define SLAPD_SHELL $MFLAG
23606 if test "$ol_link_sql" != no ; then
23608 BUILD_SQL=$ol_enable_sql
23609 if test "$ol_enable_sql" = mod; then
23610 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23611 MFLAG=SLAPD_MOD_DYNAMIC
23613 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23614 MFLAG=SLAPD_MOD_STATIC
23616 cat >> confdefs.h <<EOF
23617 #define SLAPD_SQL $MFLAG
23622 if test "$ol_enable_chain" != no ; then
23623 BUILD_CHAIN=$ol_enable_chain
23624 if test "$ol_enable_chain" = mod ; then
23625 MFLAG=SLAPD_MOD_DYNAMIC
23626 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23628 MFLAG=SLAPD_MOD_STATIC
23630 cat >> confdefs.h <<EOF
23631 #define SLAPD_OVER_CHAIN $MFLAG
23636 if test "$ol_enable_denyop" != no ; then
23637 BUILD_DENYOP=$ol_enable_denyop
23638 if test "$ol_enable_denyop" = mod ; then
23639 MFLAG=SLAPD_MOD_DYNAMIC
23640 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23642 MFLAG=SLAPD_MOD_STATIC
23644 cat >> confdefs.h <<EOF
23645 #define SLAPD_OVER_DENYOP $MFLAG
23650 if test "$ol_enable_dyngroup" != no ; then
23651 BUILD_DYNGROUP=$ol_enable_dyngroup
23652 if test "$ol_enable_dyngroup" = mod ; then
23653 MFLAG=SLAPD_MOD_DYNAMIC
23654 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23656 MFLAG=SLAPD_MOD_STATIC
23658 cat >> confdefs.h <<EOF
23659 #define SLAPD_OVER_DYNGROUP $MFLAG
23664 if test "$ol_enable_lastmod" != no ; then
23665 BUILD_LASTMOD=$ol_enable_lastmod
23666 if test "$ol_enable_lastmod" = mod ; then
23667 MFLAG=SLAPD_MOD_DYNAMIC
23668 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
23670 MFLAG=SLAPD_MOD_STATIC
23672 cat >> confdefs.h <<EOF
23673 #define SLAPD_OVER_LASTMOD $MFLAG
23678 if test "$ol_enable_ppolicy" != no ; then
23679 BUILD_PPOLICY=$ol_enable_ppolicy
23680 if test "$ol_enable_ppolicy" = mod ; then
23681 MFLAG=SLAPD_MOD_DYNAMIC
23682 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23684 MFLAG=SLAPD_MOD_STATIC
23686 cat >> confdefs.h <<EOF
23687 #define SLAPD_OVER_PPOLICY $MFLAG
23692 if test "$ol_enable_proxycache" != no ; then
23693 BUILD_PROXYCACHE=$ol_enable_proxycache
23694 if test "$ol_enable_proxycache" = mod ; then
23695 MFLAG=SLAPD_MOD_DYNAMIC
23696 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23698 MFLAG=SLAPD_MOD_STATIC
23700 cat >> confdefs.h <<EOF
23701 #define SLAPD_OVER_PROXYCACHE $MFLAG
23706 if test "$ol_enable_refint" != no ; then
23707 BUILD_REFINT=$ol_enable_refint
23708 if test "$ol_enable_refint" = mod ; then
23709 MFLAG=SLAPD_MOD_DYNAMIC
23710 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
23712 MFLAG=SLAPD_MOD_STATIC
23714 cat >> confdefs.h <<EOF
23715 #define SLAPD_OVER_REFINT $MFLAG
23720 if test "$ol_enable_rwm" != no ; then
23722 BUILD_RWM=$ol_enable_rwm
23723 if test "$ol_enable_rwm" = mod ; then
23724 MFLAG=SLAPD_MOD_DYNAMIC
23725 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23727 MFLAG=SLAPD_MOD_STATIC
23729 cat >> confdefs.h <<EOF
23730 #define SLAPD_OVER_RWM $MFLAG
23735 if test "$ol_enable_unique" != no ; then
23736 BUILD_UNIQUE=$ol_enable_unique
23737 if test "$ol_enable_unique" = mod ; then
23738 MFLAG=SLAPD_MOD_DYNAMIC
23739 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
23741 MFLAG=SLAPD_MOD_STATIC
23743 cat >> confdefs.h <<EOF
23744 #define SLAPD_OVER_UNIQUE $MFLAG
23749 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23750 $BUILD_SLAPD = yes ; then
23754 if test "$ol_enable_rewrite" != no ; then
23755 cat >> confdefs.h <<\EOF
23756 #define ENABLE_REWRITE 1
23762 if test "$ol_enable_slapi" != no ; then
23763 cat >> confdefs.h <<\EOF
23764 #define ENABLE_SLAPI 1
23768 SLAPD_SLAPI_DEPEND=libslapi.a
23773 if test "$ac_cv_mingw32" = yes ; then
23775 SLAPD_MODULES_LDFLAGS=
23780 if test -z "$SLAPD_STATIC_BACKENDS"; then
23781 SLAPD_NO_STATIC='#'
23854 # Check whether --with-xxinstall or --without-xxinstall was given.
23855 if test "${with_xxinstall+set}" = set; then
23856 withval="$with_xxinstall"
23864 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23867 # Let make expand exec_prefix.
23868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23870 # Any assignment to VPATH causes Sun make to only execute
23871 # the first set of double-colon rules, so remove it if not needed.
23872 # If there is a colon in the path, we need to keep it.
23873 if test "x$srcdir" = x.; then
23874 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23877 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23879 DEFS=-DHAVE_CONFIG_H
23881 # Without the "./", some shells look in PATH for config.status.
23882 : ${CONFIG_STATUS=./config.status}
23884 echo creating $CONFIG_STATUS
23885 rm -f $CONFIG_STATUS
23886 cat > $CONFIG_STATUS <<EOF
23888 # Generated automatically by configure.
23889 # Run this file to recreate the current configuration.
23890 # This directory was configured as follows,
23891 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23893 # $0 $ac_configure_args
23895 # Compiler output produced by configure, useful for debugging
23896 # configure, is in ./config.log if it exists.
23898 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23901 case "\$ac_option" in
23902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23903 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23904 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23905 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23906 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23908 -help | --help | --hel | --he | --h)
23909 echo "\$ac_cs_usage"; exit 0 ;;
23910 *) echo "\$ac_cs_usage"; exit 1 ;;
23914 ac_given_srcdir=$srcdir
23915 ac_given_INSTALL="$INSTALL"
23917 trap 'rm -fr `echo "\
23918 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23919 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23920 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23921 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23922 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23923 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23924 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23925 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23926 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23927 include/Makefile:build/top.mk:include/Makefile.in \
23928 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23929 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23930 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23931 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23932 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23933 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23934 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23935 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23936 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23937 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23938 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23939 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23940 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23941 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23942 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23943 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23944 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23945 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23946 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23947 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
23948 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23949 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23950 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23951 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23952 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23953 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23954 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23956 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23957 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23959 cat >> $CONFIG_STATUS <<EOF
23961 # Protect against being on the right side of a sed subst in config.status.
23962 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23963 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23967 s%@CFLAGS@%$CFLAGS%g
23968 s%@CPPFLAGS@%$CPPFLAGS%g
23969 s%@CXXFLAGS@%$CXXFLAGS%g
23970 s%@FFLAGS@%$FFLAGS%g
23972 s%@LDFLAGS@%$LDFLAGS%g
23974 s%@exec_prefix@%$exec_prefix%g
23975 s%@prefix@%$prefix%g
23976 s%@program_transform_name@%$program_transform_name%g
23977 s%@bindir@%$bindir%g
23978 s%@sbindir@%$sbindir%g
23979 s%@libexecdir@%$libexecdir%g
23980 s%@datadir@%$datadir%g
23981 s%@sysconfdir@%$sysconfdir%g
23982 s%@sharedstatedir@%$sharedstatedir%g
23983 s%@localstatedir@%$localstatedir%g
23984 s%@libdir@%$libdir%g
23985 s%@includedir@%$includedir%g
23986 s%@oldincludedir@%$oldincludedir%g
23987 s%@infodir@%$infodir%g
23988 s%@mandir@%$mandir%g
23990 s%@host_alias@%$host_alias%g
23991 s%@host_cpu@%$host_cpu%g
23992 s%@host_vendor@%$host_vendor%g
23993 s%@host_os@%$host_os%g
23994 s%@target@%$target%g
23995 s%@target_alias@%$target_alias%g
23996 s%@target_cpu@%$target_cpu%g
23997 s%@target_vendor@%$target_vendor%g
23998 s%@target_os@%$target_os%g
24000 s%@build_alias@%$build_alias%g
24001 s%@build_cpu@%$build_cpu%g
24002 s%@build_vendor@%$build_vendor%g
24003 s%@build_os@%$build_os%g
24004 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24005 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24006 s%@INSTALL_DATA@%$INSTALL_DATA%g
24007 s%@PACKAGE@%$PACKAGE%g
24008 s%@VERSION@%$VERSION%g
24009 s%@ACLOCAL@%$ACLOCAL%g
24010 s%@AUTOCONF@%$AUTOCONF%g
24011 s%@AUTOMAKE@%$AUTOMAKE%g
24012 s%@AUTOHEADER@%$AUTOHEADER%g
24013 s%@MAKEINFO@%$MAKEINFO%g
24014 s%@install_sh@%$install_sh%g
24017 s%@AMTARFLAGS@%$AMTARFLAGS%g
24018 s%@SET_MAKE@%$SET_MAKE%g
24019 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24020 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24021 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24022 s%@top_builddir@%$top_builddir%g
24023 s%@ldap_subdir@%$ldap_subdir%g
24027 s%@OBJEXT@%$OBJEXT%g
24028 s%@EXEEXT@%$EXEEXT%g
24030 s%@RANLIB@%$RANLIB%g
24032 s%@DLLTOOL@%$DLLTOOL%g
24034 s%@OBJDUMP@%$OBJDUMP%g
24036 s%@LIBTOOL@%$LIBTOOL%g
24038 s%@PERLBIN@%$PERLBIN%g
24039 s%@OL_MKDEP@%$OL_MKDEP%g
24040 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24041 s%@LTSTATIC@%$LTSTATIC%g
24042 s%@LIBOBJS@%$LIBOBJS%g
24043 s%@LIBSRCS@%$LIBSRCS%g
24045 s%@WITH_TLS@%$WITH_TLS%g
24046 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24047 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24048 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24049 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24050 s%@BUILD_BDB@%$BUILD_BDB%g
24051 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24052 s%@BUILD_HDB@%$BUILD_HDB%g
24053 s%@BUILD_LDAP@%$BUILD_LDAP%g
24054 s%@BUILD_LDBM@%$BUILD_LDBM%g
24055 s%@BUILD_META@%$BUILD_META%g
24056 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24057 s%@BUILD_NULL@%$BUILD_NULL%g
24058 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24059 s%@BUILD_RELAY@%$BUILD_RELAY%g
24060 s%@BUILD_PERL@%$BUILD_PERL%g
24061 s%@BUILD_SHELL@%$BUILD_SHELL%g
24062 s%@BUILD_SQL@%$BUILD_SQL%g
24063 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24064 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24065 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24066 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
24067 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24068 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24069 s%@BUILD_REFINT@%$BUILD_REFINT%g
24070 s%@BUILD_RWM@%$BUILD_RWM%g
24071 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
24072 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24073 s%@LDAP_LIBS@%$LDAP_LIBS%g
24074 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24075 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24076 s%@LDBM_LIBS@%$LDBM_LIBS%g
24077 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24078 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24079 s%@WRAP_LIBS@%$WRAP_LIBS%g
24080 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24081 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24082 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24083 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24084 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24085 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24086 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24087 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24088 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24089 s%@KRB4_LIBS@%$KRB4_LIBS%g
24090 s%@KRB5_LIBS@%$KRB5_LIBS%g
24091 s%@SASL_LIBS@%$SASL_LIBS%g
24092 s%@TLS_LIBS@%$TLS_LIBS%g
24093 s%@MODULES_LIBS@%$MODULES_LIBS%g
24094 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24095 s%@LIBSLAPI@%$LIBSLAPI%g
24096 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24097 s%@AUTH_LIBS@%$AUTH_LIBS%g
24098 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24099 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24100 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24101 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24106 cat >> $CONFIG_STATUS <<\EOF
24108 # Split the substitutions into bite-sized pieces for seds with
24109 # small command number limits, like on Digital OSF/1 and HP-UX.
24110 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24111 ac_file=1 # Number of current file.
24112 ac_beg=1 # First line for current file.
24113 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24116 while $ac_more_lines; do
24117 if test $ac_beg -gt 1; then
24118 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24120 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24122 if test ! -s conftest.s$ac_file; then
24123 ac_more_lines=false
24124 rm -f conftest.s$ac_file
24126 if test -z "$ac_sed_cmds"; then
24127 ac_sed_cmds="sed -f conftest.s$ac_file"
24129 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24131 ac_file=`expr $ac_file + 1`
24133 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24136 if test -z "$ac_sed_cmds"; then
24141 cat >> $CONFIG_STATUS <<EOF
24143 CONFIG_FILES=\${CONFIG_FILES-"\
24144 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24145 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24146 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24147 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24148 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24149 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24150 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24151 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24152 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24153 include/Makefile:build/top.mk:include/Makefile.in \
24154 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24155 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24156 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24157 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24158 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24159 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24160 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24161 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24162 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24163 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24164 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24165 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24166 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24167 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24168 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24169 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24170 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24171 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24172 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24173 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24174 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24175 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24176 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24177 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24178 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24179 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24180 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24182 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24185 cat >> $CONFIG_STATUS <<\EOF
24186 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24187 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24189 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24190 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24191 *) ac_file_in="${ac_file}.in" ;;
24194 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24196 # Remove last slash and all that follows it. Not all systems have dirname.
24197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24199 # The file is in a subdirectory.
24200 test ! -d "$ac_dir" && mkdir "$ac_dir"
24201 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24202 # A "../" for each directory in $ac_dir_suffix.
24203 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24205 ac_dir_suffix= ac_dots=
24208 case "$ac_given_srcdir" in
24210 if test -z "$ac_dots"; then top_srcdir=.
24211 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24212 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24213 *) # Relative path.
24214 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24215 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24218 case "$ac_given_INSTALL" in
24219 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24220 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24223 echo creating "$ac_file"
24225 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24227 *[Mm]akefile*) ac_comsub="1i\\
24228 # $configure_input" ;;
24232 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24234 s%@configure_input@%$configure_input%g
24235 s%@srcdir@%$srcdir%g
24236 s%@top_srcdir@%$top_srcdir%g
24237 s%@INSTALL@%$INSTALL%g
24238 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24243 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24245 # ac_d sets the value in "#define NAME VALUE" lines.
24246 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24247 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24250 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24251 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24252 ac_uB='\([ ]\)%\1#\2define\3'
24255 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24256 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24257 ac_eB='$%\1#\2define\3'
24261 if test "${CONFIG_HEADERS+set}" != set; then
24263 cat >> $CONFIG_STATUS <<EOF
24264 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24266 cat >> $CONFIG_STATUS <<\EOF
24268 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24269 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24271 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24272 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24273 *) ac_file_in="${ac_file}.in" ;;
24276 echo creating $ac_file
24278 rm -f conftest.frag conftest.in conftest.out
24279 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24280 cat $ac_file_inputs > conftest.in
24284 # Transform confdefs.h into a sed script conftest.vals that substitutes
24285 # the proper values into config.h.in to produce config.h. And first:
24286 # Protect against being on the right side of a sed subst in config.status.
24287 # Protect against being in an unquoted here document in config.status.
24288 rm -f conftest.vals
24289 cat > conftest.hdr <<\EOF
24292 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24296 sed -n -f conftest.hdr confdefs.h > conftest.vals
24299 # This sed command replaces #undef with comments. This is necessary, for
24300 # example, in the case of _POSIX_SOURCE, which is predefined and required
24301 # on some systems where configure will not decide to define it.
24302 cat >> conftest.vals <<\EOF
24303 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24306 # Break up conftest.vals because some shells have a limit on
24307 # the size of here documents, and old seds have small limits too.
24309 rm -f conftest.tail
24312 ac_lines=`grep -c . conftest.vals`
24313 # grep -c gives empty output for an empty file on some AIX systems.
24314 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24315 # Write a limited-size here document to conftest.frag.
24316 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24317 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24319 sed -f conftest.frag conftest.in > conftest.out
24321 mv conftest.out conftest.in
24322 ' >> $CONFIG_STATUS
24323 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24324 rm -f conftest.vals
24325 mv conftest.tail conftest.vals
24327 rm -f conftest.vals
24329 cat >> $CONFIG_STATUS <<\EOF
24330 rm -f conftest.frag conftest.h
24331 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24332 cat conftest.in >> conftest.h
24334 if cmp -s $ac_file conftest.h 2>/dev/null; then
24335 echo "$ac_file is unchanged"
24338 # Remove last slash and all that follows it. Not all systems have dirname.
24339 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24340 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24341 # The file is in a subdirectory.
24342 test ! -d "$ac_dir" && mkdir "$ac_dir"
24345 mv conftest.h $ac_file
24350 cat >> $CONFIG_STATUS <<EOF
24353 cat >> $CONFIG_STATUS <<\EOF
24357 echo Please run \"make depend\" to build dependencies
24361 chmod +x $CONFIG_STATUS
24362 rm -fr confdefs* $ac_clean_files
24363 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1