3 # from OpenLDAP: pkg/ldap/configure.in,v 1.511 2004/01/17 00:38:14 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 --enable-x-compile enable cross compiling [no]"
50 --with-cyrus-sasl with Cyrus SASL support [auto]"
52 --with-fetch with fetch(3) URL support [auto]"
54 --with-threads with threads [auto]"
56 --with-tls with TLS/SSL support [auto]"
58 --with-yielding-select with implicitly yielding select [auto]"
61 SLAPD (Standalone LDAP Daemon) Options:"
63 --enable-slapd enable building slapd [yes]"
65 --enable-aci enable per-object ACIs (experimental) [no]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [no]"
71 --enable-lmpasswd enable LAN Manager passwords [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
79 --enable-rlookups enable reverse lookups of client hostnames [no]"
81 --enable-slapi enable SLAPI support (experimental) [no]"
83 --enable-slp enable SLPv2 support [no]"
85 --enable-wrappers enable tcp wrapper support [no]"
87 --enable-bdb enable Berkeley DB backend [yes]"
89 --with-bdb-module module type static|dynamic [static]"
91 --enable-dnssrv enable dnssrv backend [no]"
93 --with-dnssrv-module module type static|dynamic [static]"
95 --enable-hdb enable Hierarchical DB backend [no]"
97 --with-hdb-module module type static|dynamic [static]"
99 --enable-ldap enable ldap backend [no]"
101 --with-ldap-module module type static|dynamic [static]"
103 --enable-ldbm enable ldbm backend [no]"
105 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
107 --with-ldbm-module module type static|dynamic [static]"
109 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
111 --enable-meta enable metadirectory backend [no]"
113 --with-meta-module module type static|dynamic [static]"
115 --enable-monitor enable monitor backend [yes]"
117 --with-monitor-module module type static|dynamic [static]"
119 --enable-null enable null backend [no]"
121 --with-null-module module type static|dynamic [static]"
123 --enable-passwd enable passwd backend [no]"
125 --with-passwd-module module type static|dynamic [static]"
127 --enable-perl enable perl backend [no]"
129 --with-perl-module module type static|dynamic [static]"
131 --enable-shell enable shell backend [no]"
133 --with-shell-module module type static|dynamic [static]"
135 --enable-sql enable sql backend [no]"
137 --with-sql-module module type static|dynamic [static]"
140 SLAPD Overlay Options:"
142 --with-dyngroup Dynamic Group overlay no|yes|mod [no]"
144 --with-proxycache Proxy Cache overlay no|yes|mod [no]"
146 --with-rwm Rewrite/Remap overlay no|yes|mod [no]"
149 SLURPD (Replication Daemon) Options:"
151 --enable-slurpd enable building slurpd [auto]"
154 Library Generation & Linking Options"
156 --enable-static[=PKGS] build static libraries [default=yes]"
158 --enable-shared[=PKGS] build shared libraries [default=yes]"
160 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
162 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
164 # Find the correct PATH separator. Usually this is `:', but
165 # DJGPP uses `;' like DOS.
166 if test "X${PATH_SEPARATOR+set}" != Xset; then
167 UNAME=${UNAME-`uname 2>/dev/null`}
169 *-DOS) lt_cv_sys_path_separator=';' ;;
170 *) lt_cv_sys_path_separator=':' ;;
172 PATH_SEPARATOR=$lt_cv_sys_path_separator
176 # Check that we are running under the correct shell.
177 SHELL=${CONFIG_SHELL-/bin/sh}
181 # Remove one level of quotation (which was required for Make).
182 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
187 if test "X$1" = X--no-reexec; then
188 # Discard the --no-reexec flag, and continue.
190 elif test "X$1" = X--fallback-echo; then
191 # Avoid inline document here, it may be left over
193 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
194 # Yippee, $echo works!
197 # Restart under the correct shell.
198 exec $SHELL "$0" --no-reexec ${1+"$@"}
201 if test "X$1" = X--fallback-echo; then
202 # used as fallback echo
210 # The HP-UX ksh and POSIX shell print the target directory to stdout
212 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
214 if test -z "$ECHO"; then
215 if test "X${echo_test_string+set}" != Xset; then
216 # find a string as large as possible, as long as the shell can cope with it
217 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
218 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
219 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
220 echo_test_string="`eval $cmd`" &&
221 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
228 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
229 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
230 test "X$echo_testing_string" = "X$echo_test_string"; then
233 # The Solaris, AIX, and Digital Unix default echo programs unquote
234 # backslashes. This makes it impossible to quote backslashes using
235 # echo "$something" | sed 's/\\/\\\\/g'
237 # So, first we look for a working echo in the user's PATH.
239 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
240 for dir in $PATH /usr/ucb; do
241 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
242 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
243 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
244 test "X$echo_testing_string" = "X$echo_test_string"; then
251 if test "X$echo" = Xecho; then
252 # We didn't find a better echo, so look for alternatives.
253 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
254 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
255 test "X$echo_testing_string" = "X$echo_test_string"; then
256 # This shell has a builtin print -r that does the trick.
258 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
259 test "X$CONFIG_SHELL" != X/bin/ksh; then
260 # If we have ksh, try running configure again with it.
261 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
262 export ORIGINAL_CONFIG_SHELL
263 CONFIG_SHELL=/bin/ksh
265 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
269 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
270 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
274 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
275 test "X$echo_testing_string" = 'X\t' &&
276 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
277 test "X$echo_testing_string" = "X$echo_test_string"; then
278 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
280 SHELL="$CONFIG_SHELL"
282 echo="$CONFIG_SHELL $0 --fallback-echo"
283 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
284 test "X$echo_testing_string" = 'X\t' &&
285 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
286 test "X$echo_testing_string" = "X$echo_test_string"; then
287 echo="$CONFIG_SHELL $0 --fallback-echo"
289 # maybe with a smaller string...
292 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
293 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
300 if test "$prev" != 'sed 50q "$0"'; then
301 echo_test_string=`eval $prev`
302 export echo_test_string
303 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
305 # Oops. We lost completely, so just stick with echo.
314 # Copy echo and quote the copy suitably for passing to libtool from
315 # the Makefile, instead of quoting the original, which is used later.
317 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
318 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
323 --disable-libtool-lock avoid locking (might break parallel builds)"
325 --with-pic try to use only PIC/non-PIC objects [default=use both]"
328 See INSTALL file for further details."
330 # Initialize some variables set by options.
331 # The variables have the same names as the options, with
332 # dashes changed to underlines.
334 cache_file=./config.cache
343 program_transform_name=s,x,x,
351 bindir='${exec_prefix}/bin'
352 sbindir='${exec_prefix}/sbin'
353 libexecdir='${exec_prefix}/libexec'
354 datadir='${prefix}/share'
355 sysconfdir='${prefix}/etc'
356 sharedstatedir='${prefix}/com'
357 localstatedir='${prefix}/var'
358 libdir='${exec_prefix}/lib'
359 includedir='${prefix}/include'
360 oldincludedir='/usr/include'
361 infodir='${prefix}/info'
362 mandir='${prefix}/man'
364 # Initialize some other variables.
367 SHELL=${CONFIG_SHELL-/bin/sh}
368 # Maximum number of lines to put in a shell here document.
375 # If the previous option needs an argument, assign it.
376 if test -n "$ac_prev"; then
377 eval "$ac_prev=\$ac_option"
383 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
387 # Accept the important Cygnus configure options, so we can diagnose typos.
391 -bindir | --bindir | --bindi | --bind | --bin | --bi)
393 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
394 bindir="$ac_optarg" ;;
396 -build | --build | --buil | --bui | --bu)
398 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
399 build="$ac_optarg" ;;
401 -cache-file | --cache-file | --cache-fil | --cache-fi \
402 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
403 ac_prev=cache_file ;;
404 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
405 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
406 cache_file="$ac_optarg" ;;
408 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
410 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
412 datadir="$ac_optarg" ;;
414 -disable-* | --disable-*)
415 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
420 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
421 eval "enable_${ac_feature}=no" ;;
423 -enable-* | --enable-*)
424 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
429 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
434 eval "enable_${ac_feature}='$ac_optarg'" ;;
436 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
437 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
438 | --exec | --exe | --ex)
439 ac_prev=exec_prefix ;;
440 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
441 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
442 | --exec=* | --exe=* | --ex=*)
443 exec_prefix="$ac_optarg" ;;
445 -gas | --gas | --ga | --g)
446 # Obsolete; use --with-gas.
449 -help | --help | --hel | --he)
450 # Omit some internal or obsolete options to make the list less imposing.
451 # This message is too long to be a string in the A/UX 3.1 sh.
453 Usage: configure [options] [host]
454 Options: [defaults in brackets after descriptions]
456 --cache-file=FILE cache test results in FILE
457 --help print this message
458 --no-create do not create output files
459 --quiet, --silent do not print \`checking...' messages
460 --version print the version of autoconf that created configure
461 Directory and file names:
462 --prefix=PREFIX install architecture-independent files in PREFIX
464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
466 --bindir=DIR user executables in DIR [EPREFIX/bin]
467 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
468 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
469 --datadir=DIR read-only architecture-independent data in DIR
471 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
472 --sharedstatedir=DIR modifiable architecture-independent data in DIR
474 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
475 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
476 --includedir=DIR C header files in DIR [PREFIX/include]
477 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
478 --infodir=DIR info documentation in DIR [PREFIX/info]
479 --mandir=DIR man documentation in DIR [PREFIX/man]
480 --srcdir=DIR find the sources in DIR [configure dir or ..]
481 --program-prefix=PREFIX prepend PREFIX to installed program names
482 --program-suffix=SUFFIX append SUFFIX to installed program names
483 --program-transform-name=PROGRAM
484 run sed PROGRAM on installed program names
488 --build=BUILD configure for building on BUILD [BUILD=HOST]
489 --host=HOST configure for HOST [guessed]
490 --target=TARGET configure for TARGET [TARGET=HOST]
491 Features and packages:
492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
496 --x-includes=DIR X include files are in DIR
497 --x-libraries=DIR X library files are in DIR
499 if test -n "$ac_help"; then
500 echo "--enable and --with options recognized:$ac_help"
504 -host | --host | --hos | --ho)
506 -host=* | --host=* | --hos=* | --ho=*)
509 -includedir | --includedir | --includedi | --included | --include \
510 | --includ | --inclu | --incl | --inc)
511 ac_prev=includedir ;;
512 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
513 | --includ=* | --inclu=* | --incl=* | --inc=*)
514 includedir="$ac_optarg" ;;
516 -infodir | --infodir | --infodi | --infod | --info | --inf)
518 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
519 infodir="$ac_optarg" ;;
521 -libdir | --libdir | --libdi | --libd)
523 -libdir=* | --libdir=* | --libdi=* | --libd=*)
524 libdir="$ac_optarg" ;;
526 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
527 | --libexe | --libex | --libe)
528 ac_prev=libexecdir ;;
529 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
530 | --libexe=* | --libex=* | --libe=*)
531 libexecdir="$ac_optarg" ;;
533 -localstatedir | --localstatedir | --localstatedi | --localstated \
534 | --localstate | --localstat | --localsta | --localst \
535 | --locals | --local | --loca | --loc | --lo)
536 ac_prev=localstatedir ;;
537 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
538 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
539 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
540 localstatedir="$ac_optarg" ;;
542 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
544 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
545 mandir="$ac_optarg" ;;
548 # Obsolete; use --without-fp.
551 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
556 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
559 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
560 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
561 | --oldin | --oldi | --old | --ol | --o)
562 ac_prev=oldincludedir ;;
563 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
564 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
565 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
566 oldincludedir="$ac_optarg" ;;
568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
571 prefix="$ac_optarg" ;;
573 -program-prefix | --program-prefix | --program-prefi | --program-pref \
574 | --program-pre | --program-pr | --program-p)
575 ac_prev=program_prefix ;;
576 -program-prefix=* | --program-prefix=* | --program-prefi=* \
577 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
578 program_prefix="$ac_optarg" ;;
580 -program-suffix | --program-suffix | --program-suffi | --program-suff \
581 | --program-suf | --program-su | --program-s)
582 ac_prev=program_suffix ;;
583 -program-suffix=* | --program-suffix=* | --program-suffi=* \
584 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
585 program_suffix="$ac_optarg" ;;
587 -program-transform-name | --program-transform-name \
588 | --program-transform-nam | --program-transform-na \
589 | --program-transform-n | --program-transform- \
590 | --program-transform | --program-transfor \
591 | --program-transfo | --program-transf \
592 | --program-trans | --program-tran \
593 | --progr-tra | --program-tr | --program-t)
594 ac_prev=program_transform_name ;;
595 -program-transform-name=* | --program-transform-name=* \
596 | --program-transform-nam=* | --program-transform-na=* \
597 | --program-transform-n=* | --program-transform-=* \
598 | --program-transform=* | --program-transfor=* \
599 | --program-transfo=* | --program-transf=* \
600 | --program-trans=* | --program-tran=* \
601 | --progr-tra=* | --program-tr=* | --program-t=*)
602 program_transform_name="$ac_optarg" ;;
604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
605 | -silent | --silent | --silen | --sile | --sil)
608 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
610 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
612 sbindir="$ac_optarg" ;;
614 -sharedstatedir | --sharedstatedir | --sharedstatedi \
615 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
616 | --sharedst | --shareds | --shared | --share | --shar \
618 ac_prev=sharedstatedir ;;
619 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
620 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
621 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
623 sharedstatedir="$ac_optarg" ;;
625 -site | --site | --sit)
627 -site=* | --site=* | --sit=*)
630 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
632 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
633 srcdir="$ac_optarg" ;;
635 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
636 | --syscon | --sysco | --sysc | --sys | --sy)
637 ac_prev=sysconfdir ;;
638 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
639 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
640 sysconfdir="$ac_optarg" ;;
642 -target | --target | --targe | --targ | --tar | --ta | --t)
644 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
645 target="$ac_optarg" ;;
647 -v | -verbose | --verbose | --verbos | --verbo | --verb)
650 -version | --version | --versio | --versi | --vers)
651 echo "configure generated by autoconf version 2.13.1"
655 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
656 # Reject names that are not valid shell variable names.
657 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
658 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
660 ac_package=`echo $ac_package| sed 's/-/_/g'`
665 eval "with_${ac_package}='$ac_optarg'" ;;
667 -without-* | --without-*)
668 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
669 # Reject names that are not valid shell variable names.
670 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
671 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
673 ac_package=`echo $ac_package| sed 's/-/_/g'`
674 eval "with_${ac_package}=no" ;;
677 # Obsolete; use --with-x.
680 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
681 | --x-incl | --x-inc | --x-in | --x-i)
682 ac_prev=x_includes ;;
683 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
684 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
685 x_includes="$ac_optarg" ;;
687 -x-libraries | --x-libraries | --x-librarie | --x-librari \
688 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
689 ac_prev=x_libraries ;;
690 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
691 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
692 x_libraries="$ac_optarg" ;;
694 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
698 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
699 echo "configure: warning: $ac_option: invalid host type" 1>&2
701 if test "x$nonopt" != xNONE; then
702 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
710 if test -n "$ac_prev"; then
711 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
714 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
716 # File descriptor usage:
719 # 2 errors and warnings
720 # 3 some systems may open it to /dev/tty
721 # 4 used on the Kubota Titan
722 # 6 checking for... messages and results
723 # 5 compiler messages saved in config.log
724 if test "$silent" = yes; then
732 This file contains any messages produced by compilers while
733 running configure, to aid debugging if configure makes a mistake.
736 # Strip out --no-create and --no-recursion so they do not pile up.
737 # Also quote any args containing shell metacharacters.
742 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
743 | --no-cr | --no-c) ;;
744 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
745 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
746 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
747 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
748 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
753 # Only set these to C if already set. These must not be set unconditionally
754 # because not all systems understand e.g. LANG=C (notably SCO).
755 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
756 # Non-C LC_CTYPE values break the ctype check.
757 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
758 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
759 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
760 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
763 rm -rf conftest* confdefs.h
764 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
767 # A filename unique to this package, relative to the directory that
768 # configure is in, which we can look for to find out if srcdir is correct.
769 ac_unique_file=build/version.sh
771 # Find the source files, if location was not specified.
772 if test -z "$srcdir"; then
773 ac_srcdir_defaulted=yes
774 # Try the directory containing this script, then its parent.
776 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
777 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
779 if test ! -r $srcdir/$ac_unique_file; then
783 ac_srcdir_defaulted=no
785 if test ! -r $srcdir/$ac_unique_file; then
786 if test "$ac_srcdir_defaulted" = yes; then
787 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
789 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
792 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
794 # Prefer explicitly selected file to automatically selected ones.
795 if test -z "$CONFIG_SITE"; then
796 if test "x$prefix" != xNONE; then
797 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
799 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
802 for ac_site_file in $CONFIG_SITE; do
803 if test -r "$ac_site_file"; then
804 echo "loading site script $ac_site_file"
811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
812 ac_cpp='$CPP $CPPFLAGS'
813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
815 cross_compiling=$ac_cv_prog_cc_cross
819 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
820 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
821 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
828 ac_n= ac_c='\c' ac_t=
832 # set unset (borrowed from autoconf 2.49c)
833 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
839 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
842 for ac_dir in build $srcdir/build; do
843 if test -f $ac_dir/install-sh; then
845 ac_install_sh="$ac_aux_dir/install-sh -c"
847 elif test -f $ac_dir/install.sh; then
849 ac_install_sh="$ac_aux_dir/install.sh -c"
851 elif test -f $ac_dir/shtool; then
853 ac_install_sh="$ac_aux_dir/shtool install -c"
857 if test -z "$ac_aux_dir"; then
858 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
860 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
861 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
862 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
864 eval `$ac_aux_dir/version.sh`
865 if test -z "$OL_STRING"; then
866 { echo "configure: error: could not determine version" 1>&2; exit 1; }
869 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
870 ac_cv_shtool="$ac_aux_dir/shtool"
872 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
875 SHTOOL="$ac_cv_shtool"
877 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
878 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
881 if test -d $ac_aux_dir/CVS; then
882 OPENLDAP_CVS="(from CVS sources) "
885 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 echo "configure:890: checking host system type" >&5
890 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
892 # Make sure we can run config.sub.
893 if $ac_config_sub sun4 >/dev/null 2>&1; then :
894 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
897 ac_cv_host_alias=$host
898 case "$ac_cv_host_alias" in
902 if ac_cv_host_alias=`$ac_config_guess`; then :
903 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
905 *) ac_cv_host_alias=$nonopt ;;
909 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
910 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
914 echo $ac_n "(cached) $ac_c" 1>&6
917 echo "$ac_t""$ac_cv_host" 1>&6
920 host_alias=$ac_cv_host_alias
921 host_cpu=$ac_cv_host_cpu
922 host_vendor=$ac_cv_host_vendor
923 host_os=$ac_cv_host_os
929 echo $ac_n "checking target system type""... $ac_c" 1>&6
930 echo "configure:931: checking target system type" >&5
931 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
933 # Make sure we can run config.sub.
934 if $ac_config_sub sun4 >/dev/null 2>&1; then :
935 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
938 ac_cv_target_alias=$target
939 case "$ac_cv_target_alias" in
943 ac_cv_target_alias=$host_alias ;;
945 *) ac_cv_target_alias=$nonopt ;;
949 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
950 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo $ac_n "(cached) $ac_c" 1>&6
957 echo "$ac_t""$ac_cv_target" 1>&6
960 target_alias=$ac_cv_target_alias
961 target_cpu=$ac_cv_target_cpu
962 target_vendor=$ac_cv_target_vendor
963 target_os=$ac_cv_target_os
969 echo $ac_n "checking build system type""... $ac_c" 1>&6
970 echo "configure:971: checking build system type" >&5
971 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
973 # Make sure we can run config.sub.
974 if $ac_config_sub sun4 >/dev/null 2>&1; then :
975 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
978 ac_cv_build_alias=$build
979 case "$ac_cv_build_alias" in
983 ac_cv_build_alias=$host_alias ;;
985 *) ac_cv_build_alias=$nonopt ;;
989 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
990 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo $ac_n "(cached) $ac_c" 1>&6
997 echo "$ac_t""$ac_cv_build" 1>&6
1000 build_alias=$ac_cv_build_alias
1001 build_cpu=$ac_cv_build_cpu
1002 build_vendor=$ac_cv_build_vendor
1003 build_os=$ac_cv_build_os
1009 # Do some error checking and defaulting for the host and target type.
1011 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1014 # 1. You are not allowed to specify --host, --target, and nonopt at the
1016 # 2. Host defaults to nonopt.
1017 # 3. If nonopt is not specified, then host defaults to the current host,
1018 # as determined by config.guess.
1019 # 4. Target and build default to nonopt.
1020 # 5. If nonopt is not specified, then target and build default to host.
1022 # The aliases save the names the user supplied, while $host etc.
1023 # will get canonicalized.
1024 case $host---$target---$nonopt in
1025 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1026 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1029 test "$host_alias" != "$target_alias" &&
1030 test "$program_prefix$program_suffix$program_transform_name" = \
1032 program_prefix=${target_alias}-
1035 # Find a good install program. We prefer a C program (faster),
1036 # so one script is as good as another. But avoid the broken or
1037 # incompatible versions:
1038 # SysV /etc/install, /usr/sbin/install
1039 # SunOS /usr/etc/install
1040 # IRIX /sbin/install
1042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1045 # ./install, which can be erroneously created by make from ./install.sh.
1046 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1047 echo "configure:1048: checking for a BSD compatible install" >&5
1048 if test -z "$INSTALL"; then
1049 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1053 for ac_dir in $PATH; do
1054 # Account for people who put trailing slashes in PATH elements.
1056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1058 # OSF1 and SCO ODT 3.0 have their own names for install.
1059 # Don't use installbsd from OSF since it installs stuff as root
1061 for ac_prog in ginstall scoinst install; do
1062 if test -f $ac_dir/$ac_prog; then
1063 if test $ac_prog = install &&
1064 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1065 # AIX install. It has an incompatible calling convention.
1067 elif test $ac_prog = install &&
1068 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1069 # program-specific install script used by HP pwplus--don't use.
1072 ac_cv_path_install="$ac_dir/$ac_prog -c"
1083 if test "${ac_cv_path_install+set}" = set; then
1084 INSTALL="$ac_cv_path_install"
1086 # As a last resort, use the slow shell script. We don't cache a
1087 # path for INSTALL within a source directory, because that will
1088 # break other packages using the cache if that directory is
1089 # removed, or if the path is relative.
1090 INSTALL="$ac_install_sh"
1093 echo "$ac_t""$INSTALL" 1>&6
1095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1096 # It thinks the first close brace ends the variable substitution.
1097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1103 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether build environment is sane" >&5
1107 echo timestamp > conftestfile
1108 # Do `set' in a subshell so we don't clobber the current shell's
1109 # arguments. Must try -L first in case configure is actually a
1110 # symlink; some systems play weird games with the mod time of symlinks
1111 # (eg FreeBSD returns the mod time of the symlink's containing
1114 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1115 if test "$*" = "X"; then
1117 set X `ls -t $srcdir/configure conftestfile`
1119 if test "$*" != "X $srcdir/configure conftestfile" \
1120 && test "$*" != "X conftestfile $srcdir/configure"; then
1122 # If neither matched, then we have a broken ls. This can happen
1123 # if, for instance, CONFIG_SHELL is bash and it inherits a
1124 # broken ls alias from the environment. This has actually
1125 # happened. Such a system could not be considered "sane".
1126 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1127 alias in your environment" 1>&2; exit 1; }
1130 test "$2" = conftestfile
1136 { echo "configure: error: newly created file is older than distributed files!
1137 Check your system clock" 1>&2; exit 1; }
1140 echo "$ac_t""yes" 1>&6
1141 if test "$program_transform_name" = s,x,x,; then
1142 program_transform_name=
1144 # Double any \ or $. echo might interpret backslashes.
1145 cat <<\EOF_SED > conftestsed
1146 s,\\,\\\\,g; s,\$,$$,g
1148 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1151 test "$program_prefix" != NONE &&
1152 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1153 # Use a double $ so make ignores it.
1154 test "$program_suffix" != NONE &&
1155 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1157 # sed with no file args requires a program.
1158 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1160 for ac_prog in mawk gawk nawk awk
1162 # Extract the first word of "$ac_prog", so it can be a program name with args.
1163 set dummy $ac_prog; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$AWK"; then
1170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_AWK="$ac_prog"
1184 AWK="$ac_cv_prog_AWK"
1185 if test -n "$AWK"; then
1186 echo "$ac_t""$AWK" 1>&6
1188 echo "$ac_t""no" 1>&6
1191 test -n "$AWK" && break
1194 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ${MAKE-make} sets \${MAKE}" >&5
1196 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1197 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftestmake <<\EOF
1202 @echo 'ac_maketemp="${MAKE}"'
1204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1205 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1206 if test -n "$ac_maketemp"; then
1207 eval ac_cv_prog_make_${ac_make}_set=yes
1209 eval ac_cv_prog_make_${ac_make}_set=no
1213 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1217 echo "$ac_t""no" 1>&6
1218 SET_MAKE="MAKE=${MAKE-make}"
1227 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1228 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1233 missing_dir=`cd $ac_aux_dir && pwd`
1234 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working aclocal" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 ACLOCAL="$missing_dir/missing aclocal"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working autoconf" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOCONF="$missing_dir/missing autoconf"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working automake" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (automake --version) < /dev/null > /dev/null 2>&1; then
1267 echo "$ac_t""found" 1>&6
1269 AUTOMAKE="$missing_dir/missing automake"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working autoheader" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1279 AUTOHEADER=autoheader
1280 echo "$ac_t""found" 1>&6
1282 AUTOHEADER="$missing_dir/missing autoheader"
1283 echo "$ac_t""missing" 1>&6
1286 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1287 echo "configure:1288: checking for working makeinfo" >&5
1288 # Run test in a subshell; some versions of sh will print an error if
1289 # an executable is not found, even if stderr is redirected.
1290 # Redirect stdin to placate older versions of autoconf. Sigh.
1291 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1293 echo "$ac_t""found" 1>&6
1295 MAKEINFO="$missing_dir/missing makeinfo"
1296 echo "$ac_t""missing" 1>&6
1299 install_sh="$missing_dir/install-sh"
1300 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1302 for ac_prog in gnutar gtar tar
1304 # Extract the first word of "$ac_prog", so it can be a program name with args.
1305 set dummy $ac_prog; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$AMTAR"; then
1312 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_AMTAR="$ac_prog"
1326 AMTAR="$ac_cv_prog_AMTAR"
1327 if test -n "$AMTAR"; then
1328 echo "$ac_t""$AMTAR" 1>&6
1330 echo "$ac_t""no" 1>&6
1333 test -n "$AMTAR" && break
1338 if test -n "$AMTAR"; then
1339 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1344 cat >> confdefs.h <<EOF
1345 #define OPENLDAP_PACKAGE "$PACKAGE"
1348 cat >> confdefs.h <<EOF
1349 #define OPENLDAP_VERSION "$VERSION"
1353 cat >> confdefs.h <<EOF
1354 #define LDAP_VENDOR_VERSION $OL_API_INC
1357 cat >> confdefs.h <<EOF
1358 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1361 cat >> confdefs.h <<EOF
1362 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1365 cat >> confdefs.h <<EOF
1366 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1370 OPENLDAP_LIBVERSION=$OL_API_LIB
1372 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1376 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1377 echo "configure:1378: checking configure arguments" >&5
1382 ldap_subdir="/openldap"
1384 # Check whether --with-subdir or --without-subdir was given.
1385 if test "${with_subdir+set}" = set; then
1386 withval="$with_subdir"
1393 ldap_subdir="$withval"
1396 ldap_subdir="/$withval"
1403 # OpenLDAP --enable-debug
1404 # Check whether --enable-debug or --disable-debug was given.
1405 if test "${enable_debug+set}" = set; then
1406 enableval="$enable_debug"
1409 for ol_val in auto yes no ; do
1410 if test "$enableval" = "$ol_val" ; then
1414 if test "$ol_arg" = "invalid" ; then
1415 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1417 ol_enable_debug="$ol_arg"
1420 ol_enable_debug="yes"
1422 # end --enable-debug
1423 # OpenLDAP --enable-dynamic
1424 # Check whether --enable-dynamic or --disable-dynamic was given.
1425 if test "${enable_dynamic+set}" = set; then
1426 enableval="$enable_dynamic"
1429 for ol_val in auto yes no ; do
1430 if test "$enableval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1437 ol_enable_dynamic="$ol_arg"
1440 ol_enable_dynamic="no"
1442 # end --enable-dynamic
1443 # OpenLDAP --enable-syslog
1444 # Check whether --enable-syslog or --disable-syslog was given.
1445 if test "${enable_syslog+set}" = set; then
1446 enableval="$enable_syslog"
1449 for ol_val in auto yes no ; do
1450 if test "$enableval" = "$ol_val" ; then
1454 if test "$ol_arg" = "invalid" ; then
1455 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1457 ol_enable_syslog="$ol_arg"
1460 ol_enable_syslog="auto"
1462 # end --enable-syslog
1463 # OpenLDAP --enable-proctitle
1464 # Check whether --enable-proctitle or --disable-proctitle was given.
1465 if test "${enable_proctitle+set}" = set; then
1466 enableval="$enable_proctitle"
1469 for ol_val in auto yes no ; do
1470 if test "$enableval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1477 ol_enable_proctitle="$ol_arg"
1480 ol_enable_proctitle="yes"
1482 # end --enable-proctitle
1483 ol_enable_referrals=${ol_enable_referrals-no}
1484 ol_enable_kbind=${ol_enable_kbind-no}
1485 # OpenLDAP --enable-ipv6
1486 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1487 if test "${enable_ipv6+set}" = set; then
1488 enableval="$enable_ipv6"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1499 ol_enable_ipv6="$ol_arg"
1502 ol_enable_ipv6="auto"
1505 # OpenLDAP --enable-local
1506 # Check whether --enable-local or --disable-local was given.
1507 if test "${enable_local+set}" = set; then
1508 enableval="$enable_local"
1511 for ol_val in auto yes no ; do
1512 if test "$enableval" = "$ol_val" ; then
1516 if test "$ol_arg" = "invalid" ; then
1517 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1519 ol_enable_local="$ol_arg"
1522 ol_enable_local="auto"
1524 # end --enable-local
1525 # OpenLDAP --enable-x_compile
1526 # Check whether --enable-x_compile or --disable-x_compile was given.
1527 if test "${enable_x_compile+set}" = set; then
1528 enableval="$enable_x_compile"
1531 for ol_val in yes no ; do
1532 if test "$enableval" = "$ol_val" ; then
1536 if test "$ol_arg" = "invalid" ; then
1537 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1539 ol_enable_x_compile="$ol_arg"
1542 ol_enable_x_compile="no"
1544 # end --enable-x_compile
1547 # OpenLDAP --with-cyrus_sasl
1548 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1549 if test "${with_cyrus_sasl+set}" = set; then
1550 withval="$with_cyrus_sasl"
1553 for ol_val in auto yes no ; do
1554 if test "$withval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1561 ol_with_cyrus_sasl="$ol_arg"
1564 ol_with_cyrus_sasl="auto"
1566 # end --with-cyrus_sasl
1568 # OpenLDAP --with-fetch
1569 # Check whether --with-fetch or --without-fetch was given.
1570 if test "${with_fetch+set}" = set; then
1571 withval="$with_fetch"
1574 for ol_val in auto yes no ; do
1575 if test "$withval" = "$ol_val" ; then
1579 if test "$ol_arg" = "invalid" ; then
1580 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1582 ol_with_fetch="$ol_arg"
1585 ol_with_fetch="auto"
1589 ol_with_kerberos=${ol_with_kerberos-auto}
1590 # OpenLDAP --with-threads
1591 # Check whether --with-threads or --without-threads was given.
1592 if test "${with_threads+set}" = set; then
1593 withval="$with_threads"
1596 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1597 if test "$withval" = "$ol_val" ; then
1601 if test "$ol_arg" = "invalid" ; then
1602 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1604 ol_with_threads="$ol_arg"
1607 ol_with_threads="auto"
1609 # end --with-threads
1611 # OpenLDAP --with-tls
1612 # Check whether --with-tls or --without-tls was given.
1613 if test "${with_tls+set}" = set; then
1617 for ol_val in auto ssleay openssl yes no ; do
1618 if test "$withval" = "$ol_val" ; then
1622 if test "$ol_arg" = "invalid" ; then
1623 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1625 ol_with_tls="$ol_arg"
1632 # OpenLDAP --with-yielding_select
1633 # Check whether --with-yielding_select or --without-yielding_select was given.
1634 if test "${with_yielding_select+set}" = set; then
1635 withval="$with_yielding_select"
1638 for ol_val in auto yes no manual ; do
1639 if test "$withval" = "$ol_val" ; then
1643 if test "$ol_arg" = "invalid" ; then
1644 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1646 ol_with_yielding_select="$ol_arg"
1649 ol_with_yielding_select="auto"
1651 # end --with-yielding_select
1655 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1656 if test "${with_xxslapdoptions+set}" = set; then
1657 withval="$with_xxslapdoptions"
1661 # OpenLDAP --enable-slapd
1662 # Check whether --enable-slapd or --disable-slapd was given.
1663 if test "${enable_slapd+set}" = set; then
1664 enableval="$enable_slapd"
1667 for ol_val in auto yes no ; do
1668 if test "$enableval" = "$ol_val" ; then
1672 if test "$ol_arg" = "invalid" ; then
1673 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1675 ol_enable_slapd="$ol_arg"
1678 ol_enable_slapd="yes"
1680 # end --enable-slapd
1681 # OpenLDAP --enable-aci
1682 # Check whether --enable-aci or --disable-aci was given.
1683 if test "${enable_aci+set}" = set; then
1684 enableval="$enable_aci"
1687 for ol_val in auto yes no ; do
1688 if test "$enableval" = "$ol_val" ; then
1692 if test "$ol_arg" = "invalid" ; then
1693 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1695 ol_enable_aci="$ol_arg"
1701 # OpenLDAP --enable-cleartext
1702 # Check whether --enable-cleartext or --disable-cleartext was given.
1703 if test "${enable_cleartext+set}" = set; then
1704 enableval="$enable_cleartext"
1707 for ol_val in auto yes no ; do
1708 if test "$enableval" = "$ol_val" ; then
1712 if test "$ol_arg" = "invalid" ; then
1713 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1715 ol_enable_cleartext="$ol_arg"
1718 ol_enable_cleartext="yes"
1720 # end --enable-cleartext
1721 # OpenLDAP --enable-crypt
1722 # Check whether --enable-crypt or --disable-crypt was given.
1723 if test "${enable_crypt+set}" = set; then
1724 enableval="$enable_crypt"
1727 for ol_val in auto yes no ; do
1728 if test "$enableval" = "$ol_val" ; then
1732 if test "$ol_arg" = "invalid" ; then
1733 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1735 ol_enable_crypt="$ol_arg"
1738 ol_enable_crypt="no"
1740 # end --enable-crypt
1741 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1742 # OpenLDAP --enable-lmpasswd
1743 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1744 if test "${enable_lmpasswd+set}" = set; then
1745 enableval="$enable_lmpasswd"
1748 for ol_val in auto yes no ; do
1749 if test "$enableval" = "$ol_val" ; then
1753 if test "$ol_arg" = "invalid" ; then
1754 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1756 ol_enable_lmpasswd="$ol_arg"
1759 ol_enable_lmpasswd="no"
1761 # end --enable-lmpasswd
1762 # OpenLDAP --enable-spasswd
1763 # Check whether --enable-spasswd or --disable-spasswd was given.
1764 if test "${enable_spasswd+set}" = set; then
1765 enableval="$enable_spasswd"
1768 for ol_val in auto yes no ; do
1769 if test "$enableval" = "$ol_val" ; then
1773 if test "$ol_arg" = "invalid" ; then
1774 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1776 ol_enable_spasswd="$ol_arg"
1779 ol_enable_spasswd="no"
1781 # end --enable-spasswd
1782 # OpenLDAP --enable-modules
1783 # Check whether --enable-modules or --disable-modules was given.
1784 if test "${enable_modules+set}" = set; then
1785 enableval="$enable_modules"
1788 for ol_val in auto yes no ; do
1789 if test "$enableval" = "$ol_val" ; then
1793 if test "$ol_arg" = "invalid" ; then
1794 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1796 ol_enable_modules="$ol_arg"
1799 ol_enable_modules="no"
1801 # end --enable-modules
1802 ol_enable_multimaster=${ol_enable_multimaster-no}
1803 # OpenLDAP --enable-rewrite
1804 # Check whether --enable-rewrite or --disable-rewrite was given.
1805 if test "${enable_rewrite+set}" = set; then
1806 enableval="$enable_rewrite"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1817 ol_enable_rewrite="$ol_arg"
1820 ol_enable_rewrite="no"
1822 # end --enable-rewrite
1823 # OpenLDAP --enable-rlookups
1824 # Check whether --enable-rlookups or --disable-rlookups was given.
1825 if test "${enable_rlookups+set}" = set; then
1826 enableval="$enable_rlookups"
1829 for ol_val in auto yes no ; do
1830 if test "$enableval" = "$ol_val" ; then
1834 if test "$ol_arg" = "invalid" ; then
1835 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1837 ol_enable_rlookups="$ol_arg"
1840 ol_enable_rlookups="no"
1842 # end --enable-rlookups
1843 # OpenLDAP --enable-slapi
1844 # Check whether --enable-slapi or --disable-slapi was given.
1845 if test "${enable_slapi+set}" = set; then
1846 enableval="$enable_slapi"
1849 for ol_val in auto yes no ; do
1850 if test "$enableval" = "$ol_val" ; then
1854 if test "$ol_arg" = "invalid" ; then
1855 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1857 ol_enable_slapi="$ol_arg"
1860 ol_enable_slapi="no"
1862 # end --enable-slapi
1863 # OpenLDAP --enable-slp
1864 # Check whether --enable-slp or --disable-slp was given.
1865 if test "${enable_slp+set}" = set; then
1866 enableval="$enable_slp"
1869 for ol_val in auto yes no ; do
1870 if test "$enableval" = "$ol_val" ; then
1874 if test "$ol_arg" = "invalid" ; then
1875 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1877 ol_enable_slp="$ol_arg"
1883 # OpenLDAP --enable-wrappers
1884 # Check whether --enable-wrappers or --disable-wrappers was given.
1885 if test "${enable_wrappers+set}" = set; then
1886 enableval="$enable_wrappers"
1889 for ol_val in auto yes no ; do
1890 if test "$enableval" = "$ol_val" ; then
1894 if test "$ol_arg" = "invalid" ; then
1895 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1897 ol_enable_wrappers="$ol_arg"
1900 ol_enable_wrappers="no"
1902 # end --enable-wrappers
1905 # OpenLDAP --enable-bdb
1906 # Check whether --enable-bdb or --disable-bdb was given.
1907 if test "${enable_bdb+set}" = set; then
1908 enableval="$enable_bdb"
1911 for ol_val in auto yes no ; do
1912 if test "$enableval" = "$ol_val" ; then
1916 if test "$ol_arg" = "invalid" ; then
1917 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1919 ol_enable_bdb="$ol_arg"
1925 # OpenLDAP --with-bdb_module
1926 # Check whether --with-bdb_module or --without-bdb_module was given.
1927 if test "${with_bdb_module+set}" = set; then
1928 withval="$with_bdb_module"
1931 for ol_val in static dynamic ; do
1932 if test "$withval" = "$ol_val" ; then
1936 if test "$ol_arg" = "invalid" ; then
1937 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1939 ol_with_bdb_module="$ol_arg"
1942 ol_with_bdb_module="static"
1944 # end --with-bdb_module
1946 # OpenLDAP --enable-dnssrv
1947 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1948 if test "${enable_dnssrv+set}" = set; then
1949 enableval="$enable_dnssrv"
1952 for ol_val in auto yes no ; do
1953 if test "$enableval" = "$ol_val" ; then
1957 if test "$ol_arg" = "invalid" ; then
1958 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1960 ol_enable_dnssrv="$ol_arg"
1963 ol_enable_dnssrv="no"
1965 # end --enable-dnssrv
1966 # OpenLDAP --with-dnssrv_module
1967 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1968 if test "${with_dnssrv_module+set}" = set; then
1969 withval="$with_dnssrv_module"
1972 for ol_val in static dynamic ; do
1973 if test "$withval" = "$ol_val" ; then
1977 if test "$ol_arg" = "invalid" ; then
1978 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1980 ol_with_dnssrv_module="$ol_arg"
1983 ol_with_dnssrv_module="static"
1985 # end --with-dnssrv_module
1987 # OpenLDAP --enable-hdb
1988 # Check whether --enable-hdb or --disable-hdb was given.
1989 if test "${enable_hdb+set}" = set; then
1990 enableval="$enable_hdb"
1993 for ol_val in auto yes no ; do
1994 if test "$enableval" = "$ol_val" ; then
1998 if test "$ol_arg" = "invalid" ; then
1999 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
2001 ol_enable_hdb="$ol_arg"
2007 # OpenLDAP --with-hdb_module
2008 # Check whether --with-hdb_module or --without-hdb_module was given.
2009 if test "${with_hdb_module+set}" = set; then
2010 withval="$with_hdb_module"
2013 for ol_val in static dynamic ; do
2014 if test "$withval" = "$ol_val" ; then
2018 if test "$ol_arg" = "invalid" ; then
2019 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2021 ol_with_hdb_module="$ol_arg"
2024 ol_with_hdb_module="static"
2026 # end --with-hdb_module
2028 # OpenLDAP --enable-ldap
2029 # Check whether --enable-ldap or --disable-ldap was given.
2030 if test "${enable_ldap+set}" = set; then
2031 enableval="$enable_ldap"
2034 for ol_val in auto yes no ; do
2035 if test "$enableval" = "$ol_val" ; then
2039 if test "$ol_arg" = "invalid" ; then
2040 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2042 ol_enable_ldap="$ol_arg"
2048 # OpenLDAP --with-ldap_module
2049 # Check whether --with-ldap_module or --without-ldap_module was given.
2050 if test "${with_ldap_module+set}" = set; then
2051 withval="$with_ldap_module"
2054 for ol_val in static dynamic ; do
2055 if test "$withval" = "$ol_val" ; then
2059 if test "$ol_arg" = "invalid" ; then
2060 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2062 ol_with_ldap_module="$ol_arg"
2065 ol_with_ldap_module="static"
2067 # end --with-ldap_module
2069 # OpenLDAP --enable-ldbm
2070 # Check whether --enable-ldbm or --disable-ldbm was given.
2071 if test "${enable_ldbm+set}" = set; then
2072 enableval="$enable_ldbm"
2075 for ol_val in auto yes no ; do
2076 if test "$enableval" = "$ol_val" ; then
2080 if test "$ol_arg" = "invalid" ; then
2081 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2083 ol_enable_ldbm="$ol_arg"
2089 # OpenLDAP --with-ldbm_api
2090 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2091 if test "${with_ldbm_api+set}" = set; then
2092 withval="$with_ldbm_api"
2095 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2096 if test "$withval" = "$ol_val" ; then
2100 if test "$ol_arg" = "invalid" ; then
2101 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2103 ol_with_ldbm_api="$ol_arg"
2106 ol_with_ldbm_api="auto"
2108 # end --with-ldbm_api
2110 # OpenLDAP --with-ldbm_module
2111 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2112 if test "${with_ldbm_module+set}" = set; then
2113 withval="$with_ldbm_module"
2116 for ol_val in static dynamic ; do
2117 if test "$withval" = "$ol_val" ; then
2121 if test "$ol_arg" = "invalid" ; then
2122 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2124 ol_with_ldbm_module="$ol_arg"
2127 ol_with_ldbm_module="static"
2129 # end --with-ldbm_module
2131 # OpenLDAP --with-ldbm_type
2132 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2133 if test "${with_ldbm_type+set}" = set; then
2134 withval="$with_ldbm_type"
2137 for ol_val in auto btree hash ; do
2138 if test "$withval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2145 ol_with_ldbm_type="$ol_arg"
2148 ol_with_ldbm_type="auto"
2150 # end --with-ldbm_type
2152 # OpenLDAP --enable-meta
2153 # Check whether --enable-meta or --disable-meta was given.
2154 if test "${enable_meta+set}" = set; then
2155 enableval="$enable_meta"
2158 for ol_val in auto yes no ; do
2159 if test "$enableval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2166 ol_enable_meta="$ol_arg"
2172 # OpenLDAP --with-meta_module
2173 # Check whether --with-meta_module or --without-meta_module was given.
2174 if test "${with_meta_module+set}" = set; then
2175 withval="$with_meta_module"
2178 for ol_val in static dynamic ; do
2179 if test "$withval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2186 ol_with_meta_module="$ol_arg"
2189 ol_with_meta_module="static"
2191 # end --with-meta_module
2193 # OpenLDAP --enable-monitor
2194 # Check whether --enable-monitor or --disable-monitor was given.
2195 if test "${enable_monitor+set}" = set; then
2196 enableval="$enable_monitor"
2199 for ol_val in auto yes no ; do
2200 if test "$enableval" = "$ol_val" ; then
2204 if test "$ol_arg" = "invalid" ; then
2205 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2207 ol_enable_monitor="$ol_arg"
2210 ol_enable_monitor="yes"
2212 # end --enable-monitor
2213 # OpenLDAP --with-monitor_module
2214 # Check whether --with-monitor_module or --without-monitor_module was given.
2215 if test "${with_monitor_module+set}" = set; then
2216 withval="$with_monitor_module"
2219 for ol_val in static dynamic ; do
2220 if test "$withval" = "$ol_val" ; then
2224 if test "$ol_arg" = "invalid" ; then
2225 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2227 ol_with_monitor_module="$ol_arg"
2230 ol_with_monitor_module="static"
2232 # end --with-monitor_module
2234 # OpenLDAP --enable-null
2235 # Check whether --enable-null or --disable-null was given.
2236 if test "${enable_null+set}" = set; then
2237 enableval="$enable_null"
2240 for ol_val in auto yes no ; do
2241 if test "$enableval" = "$ol_val" ; then
2245 if test "$ol_arg" = "invalid" ; then
2246 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2248 ol_enable_null="$ol_arg"
2254 # OpenLDAP --with-null_module
2255 # Check whether --with-null_module or --without-null_module was given.
2256 if test "${with_null_module+set}" = set; then
2257 withval="$with_null_module"
2260 for ol_val in static dynamic ; do
2261 if test "$withval" = "$ol_val" ; then
2265 if test "$ol_arg" = "invalid" ; then
2266 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2268 ol_with_null_module="$ol_arg"
2271 ol_with_null_module="static"
2273 # end --with-null_module
2275 # OpenLDAP --enable-passwd
2276 # Check whether --enable-passwd or --disable-passwd was given.
2277 if test "${enable_passwd+set}" = set; then
2278 enableval="$enable_passwd"
2281 for ol_val in auto yes no ; do
2282 if test "$enableval" = "$ol_val" ; then
2286 if test "$ol_arg" = "invalid" ; then
2287 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2289 ol_enable_passwd="$ol_arg"
2292 ol_enable_passwd="no"
2294 # end --enable-passwd
2295 # OpenLDAP --with-passwd_module
2296 # Check whether --with-passwd_module or --without-passwd_module was given.
2297 if test "${with_passwd_module+set}" = set; then
2298 withval="$with_passwd_module"
2301 for ol_val in static dynamic ; do
2302 if test "$withval" = "$ol_val" ; then
2306 if test "$ol_arg" = "invalid" ; then
2307 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2309 ol_with_passwd_module="$ol_arg"
2312 ol_with_passwd_module="static"
2314 # end --with-passwd_module
2316 # OpenLDAP --enable-perl
2317 # Check whether --enable-perl or --disable-perl was given.
2318 if test "${enable_perl+set}" = set; then
2319 enableval="$enable_perl"
2322 for ol_val in auto yes no ; do
2323 if test "$enableval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2330 ol_enable_perl="$ol_arg"
2336 # OpenLDAP --with-perl_module
2337 # Check whether --with-perl_module or --without-perl_module was given.
2338 if test "${with_perl_module+set}" = set; then
2339 withval="$with_perl_module"
2342 for ol_val in static dynamic ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2350 ol_with_perl_module="$ol_arg"
2353 ol_with_perl_module="static"
2355 # end --with-perl_module
2357 # OpenLDAP --enable-shell
2358 # Check whether --enable-shell or --disable-shell was given.
2359 if test "${enable_shell+set}" = set; then
2360 enableval="$enable_shell"
2363 for ol_val in auto yes no ; do
2364 if test "$enableval" = "$ol_val" ; then
2368 if test "$ol_arg" = "invalid" ; then
2369 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2371 ol_enable_shell="$ol_arg"
2374 ol_enable_shell="no"
2376 # end --enable-shell
2377 # OpenLDAP --with-shell_module
2378 # Check whether --with-shell_module or --without-shell_module was given.
2379 if test "${with_shell_module+set}" = set; then
2380 withval="$with_shell_module"
2383 for ol_val in static dynamic ; do
2384 if test "$withval" = "$ol_val" ; then
2388 if test "$ol_arg" = "invalid" ; then
2389 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2391 ol_with_shell_module="$ol_arg"
2394 ol_with_shell_module="static"
2396 # end --with-shell_module
2398 # OpenLDAP --enable-sql
2399 # Check whether --enable-sql or --disable-sql was given.
2400 if test "${enable_sql+set}" = set; then
2401 enableval="$enable_sql"
2404 for ol_val in auto yes no ; do
2405 if test "$enableval" = "$ol_val" ; then
2409 if test "$ol_arg" = "invalid" ; then
2410 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2412 ol_enable_sql="$ol_arg"
2418 # OpenLDAP --with-sql_module
2419 # Check whether --with-sql_module or --without-sql_module was given.
2420 if test "${with_sql_module+set}" = set; then
2421 withval="$with_sql_module"
2424 for ol_val in static dynamic ; do
2425 if test "$withval" = "$ol_val" ; then
2429 if test "$ol_arg" = "invalid" ; then
2430 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2432 ol_with_sql_module="$ol_arg"
2435 ol_with_sql_module="static"
2437 # end --with-sql_module
2440 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2441 if test "${with_xxslapoverlays+set}" = set; then
2442 withval="$with_xxslapoverlays"
2446 # OpenLDAP --with-dyngroup
2447 # Check whether --with-dyngroup or --without-dyngroup was given.
2448 if test "${with_dyngroup+set}" = set; then
2449 withval="$with_dyngroup"
2452 for ol_val in no yes mod ; do
2453 if test "$withval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2460 ol_with_dyngroup="$ol_arg"
2463 ol_with_dyngroup="no"
2465 # end --with-dyngroup
2467 # OpenLDAP --with-proxycache
2468 # Check whether --with-proxycache or --without-proxycache was given.
2469 if test "${with_proxycache+set}" = set; then
2470 withval="$with_proxycache"
2473 for ol_val in no yes mod ; do
2474 if test "$withval" = "$ol_val" ; then
2478 if test "$ol_arg" = "invalid" ; then
2479 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2481 ol_with_proxycache="$ol_arg"
2484 ol_with_proxycache="no"
2486 # end --with-proxycache
2488 # OpenLDAP --with-rwm
2489 # Check whether --with-rwm or --without-rwm was given.
2490 if test "${with_rwm+set}" = set; then
2494 for ol_val in no yes mod ; do
2495 if test "$withval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { echo "configure: error: bad value $withval for --with-rwm" 1>&2; exit 1; }
2502 ol_with_rwm="$ol_arg"
2510 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2511 if test "${with_xxslurpdoptions+set}" = set; then
2512 withval="$with_xxslurpdoptions"
2516 # OpenLDAP --enable-slurpd
2517 # Check whether --enable-slurpd or --disable-slurpd was given.
2518 if test "${enable_slurpd+set}" = set; then
2519 enableval="$enable_slurpd"
2522 for ol_val in auto yes no ; do
2523 if test "$enableval" = "$ol_val" ; then
2527 if test "$ol_arg" = "invalid" ; then
2528 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2530 ol_enable_slurpd="$ol_arg"
2533 ol_enable_slurpd="auto"
2535 # end --enable-slurpd
2537 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2538 if test "${with_xxliboptions+set}" = set; then
2539 withval="$with_xxliboptions"
2543 # Check whether --enable-static or --disable-static was given.
2544 if test "${enable_static+set}" = set; then
2545 enableval="$enable_static"
2546 p=${PACKAGE-default}
2548 yes) enable_static=yes ;;
2549 no) enable_static=no ;;
2552 # Look at the argument we got. We use all the common list separators.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2554 for pkg in $enableval; do
2555 if test "X$pkg" = "X$p"; then
2566 # Check whether --enable-shared or --disable-shared was given.
2567 if test "${enable_shared+set}" = set; then
2568 enableval="$enable_shared"
2569 p=${PACKAGE-default}
2571 yes) enable_shared=yes ;;
2572 no) enable_shared=no ;;
2575 # Look at the argument we got. We use all the common list separators.
2576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2577 for pkg in $enableval; do
2578 if test "X$pkg" = "X$p"; then
2592 if test $ol_enable_slapd = no ; then
2593 if test $ol_enable_slapi = yes ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2596 if test $ol_enable_bdb = yes ; then
2597 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2599 if test $ol_enable_dnssrv = yes ; then
2600 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2602 if test $ol_enable_hdb = yes ; then
2603 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2605 if test $ol_enable_ldap = yes ; then
2606 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2608 if test $ol_enable_ldbm = yes ; then
2609 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2611 if test $ol_enable_meta = yes ; then
2612 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2614 if test $ol_enable_monitor = yes ; then
2615 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2617 if test $ol_enable_null = yes ; then
2618 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2620 if test $ol_enable_passwd = yes ; then
2621 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2623 if test $ol_enable_perl = yes ; then
2624 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2626 if test $ol_enable_shell = yes ; then
2627 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2629 if test $ol_enable_sql = yes ; then
2630 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2632 if test $ol_enable_modules = yes ; then
2633 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2635 if test $ol_enable_multimaster = yes ; then
2636 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2638 if test $ol_enable_wrappers = yes ; then
2639 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2641 if test $ol_enable_rlookups = yes ; then
2642 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2644 if test $ol_enable_aci = yes ; then
2645 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2647 if test $ol_with_ldbm_api != auto ; then
2648 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2650 if test $ol_with_ldbm_type != auto ; then
2651 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2653 if test $ol_with_bdb_module != static ; then
2654 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2656 if test $ol_with_dnssrv_module != static ; then
2657 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2659 if test $ol_with_hdb_module != static ; then
2660 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2662 if test $ol_with_ldap_module != static ; then
2663 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2665 if test $ol_with_ldbm_module != static ; then
2666 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2668 if test $ol_with_meta_module != static ; then
2669 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2671 if test $ol_with_monitor_module != static ; then
2672 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2674 if test $ol_with_null_module != static ; then
2675 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2677 if test $ol_with_passwd_module != static ; then
2678 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2680 if test $ol_with_perl_module != static ; then
2681 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2683 if test $ol_with_shell_module != static ; then
2684 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2686 if test $ol_with_sql_module != static ; then
2687 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2689 if test $ol_enable_slurpd = yes ; then
2690 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2692 if test $ol_enable_rewrite = yes ; then
2693 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2695 if test $ol_with_dyngroup != no ; then
2696 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2698 if test $ol_with_proxycache != no ; then
2699 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2701 if test $ol_with_rwm != no ; then
2702 echo "configure: warning: slapd disabled, ignoring --with-rwm argument" 1>&2
2705 # force settings to no
2713 ol_enable_monitor=no
2720 ol_enable_modules=no
2721 ol_enable_multimaster=no
2722 ol_enable_rlookups=no
2724 ol_enable_wrappers=no
2727 ol_with_ldbm_type=no
2729 ol_with_bdb_module=static
2730 ol_with_dnssrv_module=static
2731 ol_with_hdb_module=static
2732 ol_with_ldap_module=static
2733 ol_with_ldbm_module=static
2734 ol_with_meta_module=static
2735 ol_with_monitor_module=static
2736 ol_with_null_module=static
2737 ol_with_passwd_module=static
2738 ol_with_perl_module=static
2739 ol_with_shell_module=static
2740 ol_with_sql_module=static
2744 ol_enable_rewrite=no
2747 ol_with_proxycache=no
2750 elif test $ol_enable_ldbm = no ; then
2752 if test $ol_with_ldbm_api != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2756 if test $ol_with_ldbm_type != auto ; then
2757 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2760 if test $ol_with_ldbm_module != static ; then
2761 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2764 if test $ol_enable_modules != yes -a \
2765 $ol_enable_bdb = no -a \
2766 $ol_enable_dnssrv = no -a \
2767 $ol_enable_hdb = no -a \
2768 $ol_enable_ldap = no -a \
2769 $ol_enable_meta = no -a \
2770 $ol_enable_monitor = no -a \
2771 $ol_enable_null = no -a \
2772 $ol_enable_passwd = no -a \
2773 $ol_enable_perl = no -a \
2774 $ol_enable_shell = no -a \
2775 $ol_enable_sql = no ; then
2777 if test $ol_enable_slapd = yes ; then
2778 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2780 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2786 ol_with_ldbm_type=no
2787 ol_with_ldbm_module=static
2789 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2790 ol_with_ldbm_api=berkeley
2794 if test $ol_with_ldbm_api = gdbm -a \
2795 $ol_with_ldbm_type = btree ; then
2796 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2798 if test $ol_with_ldbm_api = mdbm -a \
2799 $ol_with_ldbm_type = btree ; then
2800 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2802 if test $ol_with_ldbm_api = ndbm -a \
2803 $ol_with_ldbm_type = btree ; then
2804 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2807 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2808 if test $ol_with_ldbm_api = auto ; then
2809 ol_with_ldbm_api=berkeley
2810 elif test $ol_with_ldbm_api != berkeley ; then
2811 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2814 elif test $ol_enable_bdb = auto ; then
2815 if test $ol_with_ldbm_api != berkeley \
2816 -o $ol_with_ldbm_api != auto ; then
2817 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2823 if test $ol_enable_slurpd = yes ; then
2824 if test $ol_with_threads = no ; then
2825 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2829 if test $ol_enable_lmpasswd = yes ; then
2830 if test $ol_with_tls = no ; then
2831 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2835 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2836 if test $ol_with_kerberos = no ; then
2837 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2838 elif test $ol_with_kerberos = auto ; then
2839 ol_with_kerberos=yes
2842 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2843 if test $ol_with_kerberos = auto ; then
2845 elif test $ol_with_kerberos != no ; then
2846 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2851 if test $ol_enable_spasswd = yes ; then
2852 if test $ol_with_cyrus_sasl = no ; then
2853 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2855 ol_with_cyrus_sasl=yes
2858 echo "$ac_t""done" 1>&6
2889 BUILD_BDB_DYNAMIC=static
2890 BUILD_DNSSRV_DYNAMIC=static
2891 BUILD_HDB_DYNAMIC=static
2892 BUILD_LDAP_DYNAMIC=static
2893 BUILD_LDBM_DYNAMIC=static
2894 BUILD_META_DYNAMIC=static
2895 BUILD_MONITOR_DYNAMIC=static
2896 BUILD_NULL_DYNAMIC=static
2897 BUILD_PASSWD_DYNAMIC=static
2898 BUILD_PERL_DYNAMIC=static
2899 BUILD_SHELL_DYNAMIC=static
2900 BUILD_SQL_DYNAMIC=static
2906 SLAPD_DYNAMIC_OVERLAYS=
2908 SLAPD_MODULES_LDFLAGS=
2909 SLAPD_MODULES_CPPFLAGS=
2911 SLAPD_STATIC_BACKENDS=
2912 SLAPD_DYNAMIC_BACKENDS=
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2947 echo "configure:2948: checking for a BSD compatible install" >&5
2948 if test -z "$INSTALL"; then
2949 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2953 for ac_dir in $PATH; do
2954 # Account for people who put trailing slashes in PATH elements.
2956 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog in ginstall scoinst install; do
2962 if test -f $ac_dir/$ac_prog; then
2963 if test $ac_prog = install &&
2964 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 ac_cv_path_install="$ac_dir/$ac_prog -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL="$ac_cv_path_install"
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL="$ac_install_sh"
2993 echo "$ac_t""$INSTALL" 1>&6
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_MKVERSION 1
3013 *-*-aix*) if test -z "$CC" ; then
3014 case "$ol_with_threads" in
3015 auto | yes | posix) ol_aix_threads=yes ;;
3021 if test $ol_aix_threads = yes ; then
3022 if test -z "${CC}" ; then
3023 for ac_prog in cc_r xlc_r cc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CC="$ac_prog"
3048 if test -n "$CC"; then
3049 echo "$ac_t""$CC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CC" && break
3058 if test "$CC" = cc ; then
3059 if test $ol_with_threads != auto ; then
3060 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3062 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3068 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3069 ol_with_threads=posix
3070 ol_cv_pthread_create=yes
3074 if test -z "${CC}"; then
3075 for ac_prog in cc gcc
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_CC="$ac_prog"
3100 if test -n "$CC"; then
3101 echo "$ac_t""$CC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$CC" && break
3108 test -n "$CC" || CC="missing"
3111 if test "${CC}" = "missing" ; then
3112 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3116 if test -z "${AR}"; then
3117 for ac_prog in ar gar
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test -n "$AR"; then
3127 ac_cv_prog_AR="$AR" # Let the user override the test.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_AR="$ac_prog"
3142 if test -n "$AR"; then
3143 echo "$ac_t""$AR" 1>&6
3145 echo "$ac_t""no" 1>&6
3148 test -n "$AR" && break
3150 test -n "$AR" || AR="missing"
3153 if test "${AR}" = "missing" ; then
3154 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3160 # Find the correct PATH separator. Usually this is `:', but
3161 # DJGPP uses `;' like DOS.
3162 if test "X${PATH_SEPARATOR+set}" != Xset; then
3163 UNAME=${UNAME-`uname 2>/dev/null`}
3165 *-DOS) lt_cv_sys_path_separator=';' ;;
3166 *) lt_cv_sys_path_separator=':' ;;
3168 PATH_SEPARATOR=$lt_cv_sys_path_separator
3171 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3172 echo "configure:3173: checking for Cygwin environment" >&5
3173 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3183 #define __CYGWIN__ __CYGWIN32__
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_cygwin" 1>&6
3202 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3203 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for mingw32 environment" >&5
3205 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3228 echo "$ac_t""$ac_cv_mingw32" 1>&6
3230 test "$ac_cv_mingw32" = yes && MINGW32=yes
3231 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3232 echo "configure:3233: checking for EMX OS/2 environment" >&5
3233 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3256 echo "$ac_t""$ac_cv_emxos2" 1>&6
3258 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3260 echo "configure:3261: checking how to run the C preprocessor" >&5
3261 # On Suns, sometimes $CPP names a directory.
3262 if test -n "$CPP" && test -d "$CPP"; then
3265 if test -z "$CPP"; then
3266 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 # This must be in double quotes, not single quotes, because CPP may get
3270 # substituted into the Makefile and "${CC-cc}" will confuse make.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 CPP="${CC-cc} -E -traditional-cpp"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3298 { (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3300 if test -z "$ac_err"; then
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 CPP="${CC-cc} -nologo -E"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3331 ac_cv_prog_CPP="$CPP"
3333 CPP="$ac_cv_prog_CPP"
3335 ac_cv_prog_CPP="$CPP"
3337 echo "$ac_t""$CPP" 1>&6
3339 # Check whether --enable-fast-install or --disable-fast-install was given.
3340 if test "${enable_fast_install+set}" = set; then
3341 enableval="$enable_fast_install"
3342 p=${PACKAGE-default}
3344 yes) enable_fast_install=yes ;;
3345 no) enable_fast_install=no ;;
3347 enable_fast_install=no
3348 # Look at the argument we got. We use all the common list separators.
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3350 for pkg in $enableval; do
3351 if test "X$pkg" = "X$p"; then
3352 enable_fast_install=yes
3359 enable_fast_install=yes
3362 # Extract the first word of "gcc", so it can be a program name with args.
3363 set dummy gcc; ac_word=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3385 if test -n "$CC"; then
3386 echo "$ac_t""$CC" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3405 for ac_dir in $ac_dummy; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3421 if test $# -gt 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 set dummy "$ac_dir/$ac_word" "$@"
3434 if test -n "$CC"; then
3435 echo "$ac_t""$CC" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 if test -z "$CC"; then
3441 case "`uname -s`" in
3442 *win32* | *WIN32* | *CYGWIN*)
3443 # Extract the first word of "cl", so it can be a program name with args.
3444 set dummy cl; ac_word=$2
3445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_word" >&5
3447 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3466 if test -n "$CC"; then
3467 echo "$ac_t""$CC" 1>&6
3469 echo "$ac_t""no" 1>&6
3474 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3477 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3478 echo "configure:3479: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3485 cross_compiling=$ac_cv_prog_cc_cross
3487 cat > conftest.$ac_ext << EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 ac_cv_prog_cc_works=yes
3496 # If we can't run a trivial program, we are probably using a cross compiler.
3497 if (./conftest; exit) 2>/dev/null; then
3498 ac_cv_prog_cc_cross=no
3500 ac_cv_prog_cc_cross=yes
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 ac_cv_prog_cc_works=no
3509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3513 cross_compiling=$ac_cv_prog_cc_cross
3515 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3516 if test $ac_cv_prog_cc_works = no; then
3517 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3519 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3520 echo "configure:3521: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3521 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3522 cross_compiling=$ac_cv_prog_cc_cross
3524 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether we are using GNU C" >&5
3526 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.c <<EOF
3534 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3541 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3543 if test $ac_cv_prog_gcc = yes; then
3549 ac_test_CFLAGS="${CFLAGS+set}"
3550 ac_save_CFLAGS="$CFLAGS"
3552 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether ${CC-cc} accepts -g" >&5
3554 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 echo 'void f(){}' > conftest.c
3558 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3567 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3568 if test "$ac_test_CFLAGS" = set; then
3569 CFLAGS="$ac_save_CFLAGS"
3570 elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3577 if test "$GCC" = yes; then
3584 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3585 if test "${with_gnu_ld+set}" = set; then
3586 withval="$with_gnu_ld"
3587 test "$withval" = no || with_gnu_ld=yes
3593 if test "$GCC" = yes; then
3594 # Check if gcc -print-prog-name=ld gives a path.
3595 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ld used by GCC" >&5
3599 # gcc leaves a trailing carriage return which upsets mingw
3600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3605 # Accept absolute paths.
3606 [\\/]* | [A-Za-z]:[\\/]*)
3607 re_direlt='/[^/][^/]*/\.\./'
3608 # Canonicalize the path of ld
3609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3613 test -z "$LD" && LD="$ac_prog"
3616 # If it fails, then pretend we aren't using GCC.
3620 # If it is relative, then search for the first ld in PATH.
3624 elif test "$with_gnu_ld" = yes; then
3625 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3626 echo "configure:3627: checking for GNU ld" >&5
3628 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3629 echo "configure:3630: checking for non-GNU ld" >&5
3631 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test -z "$LD"; then
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636 for ac_dir in $PATH; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639 lt_cv_path_LD="$ac_dir/$ac_prog"
3640 # Check to see if the program is GNU ld. I'd rather use --version,
3641 # but apparently some GNU ld's only accept -v.
3642 # Break only if it was the GNU/non-GNU ld that we prefer.
3643 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644 test "$with_gnu_ld" != no && break
3646 test "$with_gnu_ld" != yes && break
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3657 if test -n "$LD"; then
3658 echo "$ac_t""$LD" 1>&6
3660 echo "$ac_t""no" 1>&6
3662 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3664 echo "configure:3665: checking if the linker ($LD) is GNU ld" >&5
3665 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3670 lt_cv_prog_gnu_ld=yes
3672 lt_cv_prog_gnu_ld=no
3676 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3677 with_gnu_ld=$lt_cv_prog_gnu_ld
3680 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $LD option to reload object files" >&5
3682 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 lt_cv_ld_reload_flag='-r'
3688 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3689 reload_flag=$lt_cv_ld_reload_flag
3690 test -n "$reload_flag" && reload_flag=" $reload_flag"
3692 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3693 echo "configure:3694: checking for BSD-compatible nm" >&5
3694 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test -n "$NM"; then
3698 # Let the user override the test.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3702 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3703 test -z "$ac_dir" && ac_dir=.
3704 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3705 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3706 # Check to see if the nm accepts a BSD-compat flag.
3707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3708 # nm: unknown option "B" ignored
3709 # Tru64's nm complains that /dev/null is an invalid object file
3710 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3711 lt_cv_path_NM="$tmp_nm -B"
3713 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3714 lt_cv_path_NM="$tmp_nm -p"
3717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3718 continue # so that we can try to find one that supports BSD flags
3723 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3728 echo "$ac_t""$NM" 1>&6
3730 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3731 echo "configure:3732: checking for a sed that does not truncate output" >&5
3732 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 # Loop through the user's path and test for sed and gsed.
3736 # Then use that list of sed's as ones to test for truncation.
3737 as_executable_p="test -f"
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3746 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3752 # Create a temporary directory, and hook for its removal unless debugging.
3755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3756 trap '{ (exit 1); exit 1; }' 1 2 13 15
3759 # Create a (secure) tmp directory for tmp files.
3762 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3763 test -n "$tmp" && test -d "$tmp"
3766 tmp=$TMPDIR/sed$$-$RANDOM
3767 (umask 077 && mkdir $tmp)
3770 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3771 { (exit 1); exit 1; }
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f ${_sed} && break
3779 cat /dev/null > "$tmp/sed.in"
3781 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3782 # Check for GNU sed and select it if it is found.
3783 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3784 lt_cv_path_SED=${_sed}
3788 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3789 mv "$tmp/sed.tmp" "$tmp/sed.in"
3790 cp "$tmp/sed.in" "$tmp/sed.nl"
3791 echo >>"$tmp/sed.nl"
3792 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3793 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3794 # 40000 chars as input seems more than enough
3795 test $_count -gt 10 && break
3796 _count=`expr $_count + 1`
3797 if test $_count -gt $_max; then
3799 lt_cv_path_SED=$_sed
3807 if test "X$SED" != "X"; then
3812 echo "$ac_t""$SED" 1>&6
3814 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3815 echo "configure:3816: checking whether ln -s works" >&5
3816 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3820 if ln -s X conftestdata 2>/dev/null
3823 ac_cv_prog_LN_S="ln -s"
3828 LN_S="$ac_cv_prog_LN_S"
3829 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3830 echo "$ac_t""yes" 1>&6
3832 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3836 echo "configure:3837: checking how to recognise dependent libraries" >&5
3837 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 lt_cv_file_magic_cmd='$MAGIC_CMD'
3841 lt_cv_file_magic_test_file=
3842 lt_cv_deplibs_check_method='unknown'
3843 # Need to set the preceding variable on all platforms that support
3844 # interlibrary dependencies.
3845 # 'none' -- dependencies not supported.
3846 # `unknown' -- same as none, but documents that we really don't know.
3847 # 'pass_all' -- all dependencies passed with no checks.
3848 # 'test_compile' -- check by making test program.
3849 # 'file_magic [[regex]]' -- check by looking for files in library path
3850 # which responds to the $file_magic_cmd with a given egrep regex.
3851 # If you have `file' or equivalent on your system and you're not sure
3852 # whether `pass_all' will *always* work, you probably want this one.
3856 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3865 lt_cv_file_magic_cmd='/usr/bin/file -L'
3866 lt_cv_file_magic_test_file=/shlib/libc.so
3869 cygwin* | mingw* | pw32*)
3870 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3871 lt_cv_file_magic_cmd='$OBJDUMP -f'
3874 darwin* | rhapsody*)
3875 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3876 lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 rhapsody* | darwin1.[012])
3879 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3882 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3891 # Not sure whether the presence of OpenBSD here was a mistake.
3892 # Let's accept both of them until this is cleared up.
3893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3894 lt_cv_file_magic_cmd=/usr/bin/file
3895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3899 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_deplibs_check_method=pass_all
3908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3913 irix5* | irix6* | nonstopux*)
3915 irix5* | nonstopux*)
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3921 *-32|*"-32 ") libmagic=32-bit;;
3922 *-n32|*"-n32 ") libmagic=N32;;
3923 *-64|*"-64 ") libmagic=64-bit;;
3924 *) libmagic=never-match;;
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3930 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931 lt_cv_deplibs_check_method=pass_all
3934 # This must be Linux ELF.
3937 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3938 lt_cv_deplibs_check_method=pass_all ;;
3940 # glibc up to 2.1.1 does not perform some relocations on ARM
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3943 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3961 lt_cv_file_magic_cmd=/usr/bin/file
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3966 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3971 lt_cv_deplibs_check_method=pass_all
3974 osf3* | osf4* | osf5*)
3975 # this will be overridden with pass_all, but let us keep it just in case
3976 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3977 lt_cv_file_magic_test_file=/shlib/libc.so
3978 lt_cv_deplibs_check_method=pass_all
3982 lt_cv_deplibs_check_method=pass_all
3986 lt_cv_deplibs_check_method=pass_all
3987 lt_cv_file_magic_test_file=/lib/libc.so
3990 sysv5uw[78]* | sysv4*uw2*)
3991 lt_cv_deplibs_check_method=pass_all
3994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3995 case $host_vendor in
3997 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]'
3998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4001 lt_cv_deplibs_check_method=pass_all
4004 lt_cv_file_magic_cmd='/bin/file'
4005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4008 lt_cv_file_magic_cmd='/bin/file'
4009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4010 lt_cv_file_magic_test_file=/lib/libc.so
4013 lt_cv_deplibs_check_method=pass_all
4021 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4022 file_magic_cmd=$lt_cv_file_magic_cmd
4023 deplibs_check_method=$lt_cv_deplibs_check_method
4025 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4026 echo "configure:4027: checking for object suffix" >&5
4027 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4031 echo 'int i = 1;' > conftest.$ac_ext
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 for ac_file in conftest.*; do
4036 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4040 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4045 echo "$ac_t""$ac_cv_objext" 1>&6
4046 OBJEXT=$ac_cv_objext
4047 ac_objext=$ac_cv_objext
4052 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4053 echo "configure:4054: checking for executable suffix" >&5
4054 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4057 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4061 echo 'int main () { return 0; }' > conftest.$ac_ext
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4064 for file in conftest.*; do
4066 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4067 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4071 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4074 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4079 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4080 echo "$ac_t""${ac_cv_exeext}" 1>&6
4083 if test $host != $build; then
4084 ac_tool_prefix=${host_alias}-
4092 # Check for command to grab the raw symbol name followed by C symbol from nm.
4093 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4094 echo "configure:4095: checking command to parse $NM output" >&5
4095 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4099 # These are sane defaults that work on at least a few old systems.
4100 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4102 # Character class describing NM global symbol codes.
4103 symcode='[BCDEGRST]'
4105 # Regexp to match symbols that can be accessed directly from C.
4106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4108 # Transform the above into a raw symbol and a C symbol.
4109 symxfrm='\1 \2\3 \3'
4111 # Transform an extracted symbol line into a proper C declaration
4112 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4114 # Transform an extracted symbol line into symbol name and symbol address
4115 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'"
4117 # Define system-specific variables.
4122 cygwin* | mingw* | pw32*)
4123 symcode='[ABCDGISTW]'
4125 hpux*) # Its linker distinguishes data from code symbols
4126 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4127 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'"
4130 symcode='[BCDEGRST]'
4133 symcode='[BCDEGQRST]'
4143 # Handle CRLF in mingw tool chain
4147 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4151 # If we're using GNU nm, then use its standard symbol codes.
4152 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4153 symcode='[ABCDGISTW]'
4156 # Try without a prefix undercore, then with it.
4157 for ac_symprfx in "" "_"; do
4159 # Write the raw and C identifiers.
4160 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4162 # Check to see that the pipe works correctly.
4165 cat > conftest.$ac_ext <<EOF
4170 void nm_test_func(){}
4174 int main(){nm_test_var='a';nm_test_func();return(0);}
4177 if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4178 # Now try to grab the symbols.
4180 if { (eval echo configure:4181: \"$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
4181 # Try sorting and uniquifying the output.
4182 if sort "$nlist" | uniq > "$nlist"T; then
4183 mv -f "$nlist"T "$nlist"
4188 # Make sure that we snagged all the symbols we need.
4189 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4190 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4191 cat <<EOF > conftest.$ac_ext
4197 # Now generate the symbol file.
4198 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4200 cat <<EOF >> conftest.$ac_ext
4201 #if defined (__STDC__) && __STDC__
4202 # define lt_ptr void *
4204 # define lt_ptr char *
4208 /* The mapping between symbol names and symbols. */
4213 lt_preloaded_symbols[] =
4216 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4217 cat <<\EOF >> conftest.$ac_ext
4225 # Now try linking the two files.
4226 mv conftest.$ac_objext conftstm.$ac_objext
4228 save_CFLAGS="$CFLAGS"
4229 LIBS="conftstm.$ac_objext"
4230 CFLAGS="$CFLAGS$no_builtin_flag"
4231 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4235 CFLAGS="$save_CFLAGS"
4237 echo "cannot find nm_test_func in $nlist" >&5
4240 echo "cannot find nm_test_var in $nlist" >&5
4243 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4246 echo "$progname: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 rm -f conftest* conftst*
4251 # Do not use the global_symbol_pipe unless it works.
4252 if test "$pipe_works" = yes; then
4255 lt_cv_sys_global_symbol_pipe=
4261 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4262 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4263 global_symbol_to_cdecl=
4264 global_symbol_to_c_name_address=
4266 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4267 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4269 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4271 echo "$ac_t""failed" 1>&6
4273 echo "$ac_t""ok" 1>&6
4276 for ac_hdr in dlfcn.h
4278 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_hdr" >&5
4281 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4290 { (eval echo configure:4291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4292 if test -z "$ac_err"; then
4294 eval "ac_cv_header_$ac_safe=yes"
4297 echo "configure: failed program was:" >&5
4298 cat conftest.$ac_ext >&5
4300 eval "ac_cv_header_$ac_safe=no"
4304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4307 cat >> confdefs.h <<EOF
4308 #define $ac_tr_hdr 1
4312 echo "$ac_t""no" 1>&6
4321 # Only perform the check for file, if the check method requires it
4322 case $deplibs_check_method in
4324 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4325 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4326 echo "configure:4327: checking for ${ac_tool_prefix}file" >&5
4327 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4338 ac_save_MAGIC_CMD="$MAGIC_CMD"
4339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4340 ac_dummy="/usr/bin:$PATH"
4341 for ac_dir in $ac_dummy; do
4342 test -z "$ac_dir" && ac_dir=.
4343 if test -f $ac_dir/${ac_tool_prefix}file; then
4344 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4345 if test -n "$file_magic_test_file"; then
4346 case $deplibs_check_method in
4348 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4351 egrep "$file_magic_regex" > /dev/null; then
4356 *** Warning: the command libtool uses to detect shared libraries,
4357 *** $file_magic_cmd, produces output that libtool cannot recognize.
4358 *** The result is that libtool may fail to recognize shared libraries
4359 *** as such. This will affect the creation of libtool libraries that
4360 *** depend on shared libraries, but programs linked with such libtool
4361 *** libraries will work regardless of this problem. Nevertheless, you
4362 *** may want to report the problem to your system manager and/or to
4363 *** bug-libtool@gnu.org
4373 MAGIC_CMD="$ac_save_MAGIC_CMD"
4378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4379 if test -n "$MAGIC_CMD"; then
4380 echo "$ac_t""$MAGIC_CMD" 1>&6
4382 echo "$ac_t""no" 1>&6
4385 if test -z "$lt_cv_path_MAGIC_CMD"; then
4386 if test -n "$ac_tool_prefix"; then
4387 echo $ac_n "checking for file""... $ac_c" 1>&6
4388 echo "configure:4389: checking for file" >&5
4389 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4397 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4400 ac_save_MAGIC_CMD="$MAGIC_CMD"
4401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4402 ac_dummy="/usr/bin:$PATH"
4403 for ac_dir in $ac_dummy; do
4404 test -z "$ac_dir" && ac_dir=.
4405 if test -f $ac_dir/file; then
4406 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4407 if test -n "$file_magic_test_file"; then
4408 case $deplibs_check_method in
4410 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4412 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4413 egrep "$file_magic_regex" > /dev/null; then
4418 *** Warning: the command libtool uses to detect shared libraries,
4419 *** $file_magic_cmd, produces output that libtool cannot recognize.
4420 *** The result is that libtool may fail to recognize shared libraries
4421 *** as such. This will affect the creation of libtool libraries that
4422 *** depend on shared libraries, but programs linked with such libtool
4423 *** libraries will work regardless of this problem. Nevertheless, you
4424 *** may want to report the problem to your system manager and/or to
4425 *** bug-libtool@gnu.org
4435 MAGIC_CMD="$ac_save_MAGIC_CMD"
4440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4441 if test -n "$MAGIC_CMD"; then
4442 echo "$ac_t""$MAGIC_CMD" 1>&6
4444 echo "$ac_t""no" 1>&6
4456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_word" >&5
4460 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4468 for ac_dir in $ac_dummy; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f $ac_dir/$ac_word; then
4471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4478 RANLIB="$ac_cv_prog_RANLIB"
4479 if test -n "$RANLIB"; then
4480 echo "$ac_t""$RANLIB" 1>&6
4482 echo "$ac_t""no" 1>&6
4486 if test -z "$ac_cv_prog_RANLIB"; then
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "ranlib", so it can be a program name with args.
4489 set dummy ranlib; ac_word=$2
4490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_word" >&5
4492 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 if test -n "$RANLIB"; then
4496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4500 for ac_dir in $ac_dummy; do
4501 test -z "$ac_dir" && ac_dir=.
4502 if test -f $ac_dir/$ac_word; then
4503 ac_cv_prog_RANLIB="ranlib"
4508 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4511 RANLIB="$ac_cv_prog_RANLIB"
4512 if test -n "$RANLIB"; then
4513 echo "$ac_t""$RANLIB" 1>&6
4515 echo "$ac_t""no" 1>&6
4523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4524 set dummy ${ac_tool_prefix}strip; 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_STRIP+set}\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test -n "$STRIP"; then
4531 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
4545 STRIP="$ac_cv_prog_STRIP"
4546 if test -n "$STRIP"; then
4547 echo "$ac_t""$STRIP" 1>&6
4549 echo "$ac_t""no" 1>&6
4553 if test -z "$ac_cv_prog_STRIP"; then
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "strip", so it can be a program name with args.
4556 set dummy strip; 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_STRIP+set}\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4562 if test -n "$STRIP"; then
4563 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="strip"
4575 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4578 STRIP="$ac_cv_prog_STRIP"
4579 if test -n "$STRIP"; then
4580 echo "$ac_t""$STRIP" 1>&6
4582 echo "$ac_t""no" 1>&6
4592 enable_win32_dll=yes
4594 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4595 if test "${enable_libtool_lock+set}" = set; then
4596 enableval="$enable_libtool_lock"
4600 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4602 # Some flags need to be propagated to the compiler or linker for good
4606 # Find out which ABI we are using.
4607 echo '#line 4608 "configure"' > conftest.$ac_ext
4608 if { (eval echo configure:4609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4609 case `/usr/bin/file conftest.$ac_objext` in
4625 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4626 SAVE_CFLAGS="$CFLAGS"
4627 CFLAGS="$CFLAGS -belf"
4628 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4629 echo "configure:4630: checking whether the C compiler needs -belf" >&5
4630 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4638 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4639 cross_compiling=$ac_cv_prog_cc_cross
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4651 lt_cv_cc_needs_belf=yes
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 lt_cv_cc_needs_belf=no
4660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4664 cross_compiling=$ac_cv_prog_cc_cross
4668 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4671 CFLAGS="$SAVE_CFLAGS"
4675 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4676 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_word" >&5
4680 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 if test -n "$DLLTOOL"; then
4684 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4688 for ac_dir in $ac_dummy; do
4689 test -z "$ac_dir" && ac_dir=.
4690 if test -f $ac_dir/$ac_word; then
4691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4698 DLLTOOL="$ac_cv_prog_DLLTOOL"
4699 if test -n "$DLLTOOL"; then
4700 echo "$ac_t""$DLLTOOL" 1>&6
4702 echo "$ac_t""no" 1>&6
4706 if test -z "$ac_cv_prog_DLLTOOL"; then
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "dlltool", so it can be a program name with args.
4709 set dummy dlltool; ac_word=$2
4710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_word" >&5
4712 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 if test -n "$DLLTOOL"; then
4716 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4720 for ac_dir in $ac_dummy; do
4721 test -z "$ac_dir" && ac_dir=.
4722 if test -f $ac_dir/$ac_word; then
4723 ac_cv_prog_DLLTOOL="dlltool"
4728 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4731 DLLTOOL="$ac_cv_prog_DLLTOOL"
4732 if test -n "$DLLTOOL"; then
4733 echo "$ac_t""$DLLTOOL" 1>&6
4735 echo "$ac_t""no" 1>&6
4743 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}as; ac_word=$2
4745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_word" >&5
4747 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test -n "$AS"; then
4751 ac_cv_prog_AS="$AS" # Let the user override the test.
4753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4755 for ac_dir in $ac_dummy; do
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f $ac_dir/$ac_word; then
4758 ac_cv_prog_AS="${ac_tool_prefix}as"
4766 if test -n "$AS"; then
4767 echo "$ac_t""$AS" 1>&6
4769 echo "$ac_t""no" 1>&6
4773 if test -z "$ac_cv_prog_AS"; then
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "as", so it can be a program name with args.
4776 set dummy as; ac_word=$2
4777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4778 echo "configure:4779: checking for $ac_word" >&5
4779 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 if test -n "$AS"; then
4783 ac_cv_prog_AS="$AS" # Let the user override the test.
4785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4787 for ac_dir in $ac_dummy; do
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f $ac_dir/$ac_word; then
4795 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4799 if test -n "$AS"; then
4800 echo "$ac_t""$AS" 1>&6
4802 echo "$ac_t""no" 1>&6
4810 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_word" >&5
4814 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 if test -n "$OBJDUMP"; then
4818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4822 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f $ac_dir/$ac_word; then
4825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4832 OBJDUMP="$ac_cv_prog_OBJDUMP"
4833 if test -n "$OBJDUMP"; then
4834 echo "$ac_t""$OBJDUMP" 1>&6
4836 echo "$ac_t""no" 1>&6
4840 if test -z "$ac_cv_prog_OBJDUMP"; then
4841 if test -n "$ac_tool_prefix"; then
4842 # Extract the first word of "objdump", so it can be a program name with args.
4843 set dummy objdump; ac_word=$2
4844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4845 echo "configure:4846: checking for $ac_word" >&5
4846 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 if test -n "$OBJDUMP"; then
4850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4854 for ac_dir in $ac_dummy; do
4855 test -z "$ac_dir" && ac_dir=.
4856 if test -f $ac_dir/$ac_word; then
4857 ac_cv_prog_OBJDUMP="objdump"
4862 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4865 OBJDUMP="$ac_cv_prog_OBJDUMP"
4866 if test -n "$OBJDUMP"; then
4867 echo "$ac_t""$OBJDUMP" 1>&6
4869 echo "$ac_t""no" 1>&6
4878 # recent cygwin and mingw systems supply a stub DllMain which the user
4879 # can override, but on older systems we have to supply one
4880 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4881 echo "configure:4882: checking if libtool should supply DllMain function" >&5
4882 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4890 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896 lt_cv_need_dllmain=no
4898 echo "configure: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4901 lt_cv_need_dllmain=yes
4906 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4909 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4910 # old mingw systems require "-dll" to link a DLL, while more recent ones
4912 SAVE_CFLAGS="$CFLAGS"
4913 CFLAGS="$CFLAGS -mdll"
4914 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4915 echo "configure:4916: checking how to link DLLs" >&5
4916 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4917 echo $ac_n "(cached) $ac_c" 1>&6
4919 cat > conftest.$ac_ext <<EOF
4920 #line 4921 "configure"
4921 #include "confdefs.h"
4927 if { (eval echo configure:4928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4929 lt_cv_cc_dll_switch=-mdll
4931 echo "configure: failed program was:" >&5
4932 cat conftest.$ac_ext >&5
4934 lt_cv_cc_dll_switch=-dll
4939 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4940 CFLAGS="$SAVE_CFLAGS" ;;
4941 *-*-cygwin* | *-*-pw32*)
4942 # cygwin systems need to pass --dll to the linker, and not link
4943 # crt.o which will require a WinMain@16 definition.
4944 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4950 # Sed substitution that helps us do robust quoting. It backslashifies
4951 # metacharacters that are still active within double-quoted strings.
4952 Xsed='sed -e s/^X//'
4953 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4955 # Same as above, but do not quote variable references.
4956 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4958 # Sed substitution to delay expansion of an escaped shell variable in a
4959 # double_quote_subst'ed string.
4960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4966 default_ofile=libtool
4967 can_build_shared=yes
4969 # All known linkers require a `.a' archive for static linking (except M$VC,
4970 # which needs '.lib').
4972 ltmain="$ac_aux_dir/ltmain.sh"
4973 ofile="$default_ofile"
4974 with_gnu_ld="$lt_cv_prog_gnu_ld"
4975 need_locks="$enable_libtool_lock"
4978 old_CFLAGS="$CFLAGS"
4980 # Set sane defaults for various variables
4981 test -z "$AR" && AR=ar
4982 test -z "$AR_FLAGS" && AR_FLAGS=cru
4983 test -z "$AS" && AS=as
4984 test -z "$CC" && CC=cc
4985 test -z "$DLLTOOL" && DLLTOOL=dlltool
4986 test -z "$LD" && LD=ld
4987 test -z "$LN_S" && LN_S="ln -s"
4988 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4989 test -z "$NM" && NM=nm
4990 test -z "$OBJDUMP" && OBJDUMP=objdump
4991 test -z "$RANLIB" && RANLIB=:
4992 test -z "$STRIP" && STRIP=:
4993 test -z "$ac_objext" && ac_objext=o
4995 if test x"$host" != x"$build"; then
4996 ac_tool_prefix=${host_alias}-
5001 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5004 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5009 # AIX sometimes has problems with the GCC collect2 program. For some
5010 # reason, if we set the COLLECT_NAMES environment variable, the problems
5011 # vanish in a puff of smoke.
5012 if test "X${COLLECT_NAMES+set}" != Xset; then
5014 export COLLECT_NAMES
5019 # Determine commands to create old-style static archives.
5020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5021 old_postinstall_cmds='chmod 644 $oldlib'
5022 old_postuninstall_cmds=
5024 if test -n "$RANLIB"; then
5027 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5030 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5036 # Allow CC to be a program name with arguments.
5040 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5041 echo "configure:5042: checking for objdir" >&5
5042 rm -f .libs 2>/dev/null
5043 mkdir .libs 2>/dev/null
5044 if test -d .libs; then
5047 # MS-DOS does not allow filenames that begin with a dot.
5050 rmdir .libs 2>/dev/null
5051 echo "$ac_t""$objdir" 1>&6
5054 # Check whether --with-pic or --without-pic was given.
5055 if test "${with_pic+set}" = set; then
5062 test -z "$pic_mode" && pic_mode=default
5064 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5065 # in isolation, and that seeing it set (from the cache) indicates that
5066 # the associated values are set (in the cache) correctly too.
5067 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $compiler option to produce PIC" >&5
5069 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5073 lt_cv_prog_cc_shlib=
5075 lt_cv_prog_cc_static=
5076 lt_cv_prog_cc_no_builtin=
5077 lt_cv_prog_cc_can_build_shared=$can_build_shared
5079 if test "$GCC" = yes; then
5080 lt_cv_prog_cc_wl='-Wl,'
5081 lt_cv_prog_cc_static='-static'
5085 # Below there is a dirty hack to force normal static linking with -ldl
5086 # The problem is because libdl dynamically linked with both libc and
5087 # libC (AIX C++ library), which obviously doesn't included in libraries
5088 # list by gcc. This cause undefined symbols with -static flags.
5089 # This hack allows C programs to be linked with "-static -ldl", but
5090 # not sure about C++ programs.
5091 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5094 # FIXME: we need at least 68020 code to build shared libraries, but
5095 # adding the `-m68020' flag to GCC prevents building anything better,
5097 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5099 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5100 # PIC is the default for these OSes.
5102 darwin* | rhapsody*)
5103 # PIC is the default on this platform
5104 # Common symbols not allowed in MH_DYLIB files
5105 lt_cv_prog_cc_pic='-fno-common'
5107 cygwin* | mingw* | pw32* | os2*)
5108 # This hack is so that the source file can tell whether it is being
5109 # built for inclusion in a dll (and should export symbols for example).
5110 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5113 if test -d /usr/nec; then
5114 lt_cv_prog_cc_pic=-Kconform_pic
5118 lt_cv_prog_cc_pic='-fPIC'
5122 # PORTME Check for PIC flags for the system compiler.
5124 aix3* | aix4* | aix5*)
5125 lt_cv_prog_cc_wl='-Wl,'
5126 # All AIX code is PIC.
5127 if test "$host_cpu" = ia64; then
5128 # AIX 5 now supports IA64 processor
5129 lt_cv_prog_cc_static='-Bstatic'
5131 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5135 hpux9* | hpux10* | hpux11*)
5136 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5137 lt_cv_prog_cc_wl='-Wl,'
5138 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5139 lt_cv_prog_cc_pic='+Z'
5142 irix5* | irix6* | nonstopux*)
5143 lt_cv_prog_cc_wl='-Wl,'
5144 lt_cv_prog_cc_static='-non_shared'
5145 # PIC (with -KPIC) is the default.
5148 cygwin* | mingw* | pw32* | os2*)
5149 # This hack is so that the source file can tell whether it is being
5150 # built for inclusion in a dll (and should export symbols for example).
5151 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5155 lt_cv_prog_cc_pic='-KPIC'
5156 lt_cv_prog_cc_static='-Bstatic'
5160 # XPLINK code is PIC by default
5163 osf3* | osf4* | osf5*)
5164 # All OSF/1 code is PIC.
5165 lt_cv_prog_cc_wl='-Wl,'
5166 lt_cv_prog_cc_static='-non_shared'
5170 lt_cv_prog_cc_pic='-Kpic'
5171 lt_cv_prog_cc_static='-dn'
5172 lt_cv_prog_cc_shlib='-belf'
5176 lt_cv_prog_cc_pic='-KPIC'
5177 lt_cv_prog_cc_static='-Bstatic'
5178 lt_cv_prog_cc_wl='-Wl,'
5182 lt_cv_prog_cc_pic='-PIC'
5183 lt_cv_prog_cc_static='-Bstatic'
5184 lt_cv_prog_cc_wl='-Qoption ld '
5187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5188 lt_cv_prog_cc_pic='-KPIC'
5189 lt_cv_prog_cc_static='-Bstatic'
5190 lt_cv_prog_cc_wl='-Wl,'
5194 lt_cv_prog_cc_pic='-pic'
5195 lt_cv_prog_cc_static='-Bstatic'
5199 if test -d /usr/nec ;then
5200 lt_cv_prog_cc_pic='-Kconform_pic'
5201 lt_cv_prog_cc_static='-Bstatic'
5206 lt_cv_prog_cc_can_build_shared=no
5213 if test -z "$lt_cv_prog_cc_pic"; then
5214 echo "$ac_t""none" 1>&6
5216 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5218 # Check to make sure the pic_flag actually works.
5219 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5220 echo "configure:5221: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5221 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 save_CFLAGS="$CFLAGS"
5225 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5234 if { (eval echo configure:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 hpux9* | hpux10* | hpux11*)
5238 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5239 # they create non-PIC objects. So, if there were any warnings, we
5240 # assume that PIC is not supported.
5241 if test -s conftest.err; then
5242 lt_cv_prog_cc_pic_works=no
5244 lt_cv_prog_cc_pic_works=yes
5248 lt_cv_prog_cc_pic_works=yes
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 lt_cv_prog_cc_pic_works=no
5260 CFLAGS="$save_CFLAGS"
5265 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5267 lt_cv_prog_cc_can_build_shared=no
5269 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5272 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5275 # Check for any special shared library compilation flags.
5276 if test -n "$lt_cv_prog_cc_shlib"; then
5277 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5278 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5280 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5281 lt_cv_prog_cc_can_build_shared=no
5285 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5286 echo "configure:5287: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5287 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 lt_cv_prog_cc_static_works=no
5291 save_LDFLAGS="$LDFLAGS"
5292 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 lt_cv_prog_cc_static_works=yes
5305 echo "configure: failed program was:" >&5
5306 cat conftest.$ac_ext >&5
5309 LDFLAGS="$save_LDFLAGS"
5314 # Belt *and* braces to stop my trousers falling down:
5315 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5316 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5318 pic_flag="$lt_cv_prog_cc_pic"
5319 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5320 wl="$lt_cv_prog_cc_wl"
5321 link_static_flag="$lt_cv_prog_cc_static"
5322 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5323 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5326 # Check to see if options -o and -c are simultaneously supported by compiler
5327 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5328 echo "configure:5329: checking if $compiler supports -c -o file.$ac_objext" >&5
5329 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5333 $rm -r conftest 2>/dev/null
5336 echo "int some_variable = 0;" > conftest.$ac_ext
5338 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5339 # that will create temporary files in the current directory regardless of
5340 # the output directory. Thus, making CWD read-only will cause this test
5341 # to fail, enabling locking or at least warning the user not to do parallel
5344 save_CFLAGS="$CFLAGS"
5345 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5348 # The compiler can only warn and ignore the option if not recognized
5349 # So say no if there are warnings
5350 if test -s out/conftest.err; then
5351 lt_cv_compiler_c_o=no
5353 lt_cv_compiler_c_o=yes
5356 # Append any errors to the config.log.
5357 cat out/conftest.err 1>&5
5358 lt_cv_compiler_c_o=no
5360 CFLAGS="$save_CFLAGS"
5366 $rm -r conftest 2>/dev/null
5370 compiler_c_o=$lt_cv_compiler_c_o
5371 echo "$ac_t""$compiler_c_o" 1>&6
5373 if test x"$compiler_c_o" = x"yes"; then
5374 # Check to see if we can write to a .lo
5375 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5376 echo "configure:5377: checking if $compiler supports -c -o file.lo" >&5
5377 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5381 lt_cv_compiler_o_lo=no
5382 save_CFLAGS="$CFLAGS"
5383 CFLAGS="$CFLAGS -c -o conftest.lo"
5384 save_objext="$ac_objext"
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5391 int some_variable = 0;
5394 if { (eval echo configure:5395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5396 # The compiler can only warn and ignore the option if not recognized
5397 # So say no if there are warnings
5398 if test -s conftest.err; then
5399 lt_cv_compiler_o_lo=no
5401 lt_cv_compiler_o_lo=yes
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5409 ac_objext="$save_objext"
5410 CFLAGS="$save_CFLAGS"
5414 compiler_o_lo=$lt_cv_compiler_o_lo
5415 echo "$ac_t""$compiler_o_lo" 1>&6
5420 # Check to see if we can do hard links to lock some files if needed
5421 hard_links="nottested"
5422 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5423 # do not overwrite the value of need_locks provided by the user
5424 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5425 echo "configure:5426: checking if we can lock with hard links" >&5
5428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5430 ln conftest.a conftest.b 2>&5 || hard_links=no
5431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5432 echo "$ac_t""$hard_links" 1>&6
5433 if test "$hard_links" = no; then
5434 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5441 if test "$GCC" = yes; then
5442 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5443 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5444 echo "configure:5445: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5445 echo "int some_variable = 0;" > conftest.$ac_ext
5446 save_CFLAGS="$CFLAGS"
5447 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5448 compiler_rtti_exceptions=no
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5454 int some_variable = 0;
5457 if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5459 # The compiler can only warn and ignore the option if not recognized
5460 # So say no if there are warnings
5461 if test -s conftest.err; then
5462 compiler_rtti_exceptions=no
5464 compiler_rtti_exceptions=yes
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5472 CFLAGS="$save_CFLAGS"
5473 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5475 if test "$compiler_rtti_exceptions" = "yes"; then
5476 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5478 no_builtin_flag=' -fno-builtin'
5482 # See if the linker supports building shared libraries.
5483 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5484 echo "configure:5485: checking whether the linker ($LD) supports shared libraries" >&5
5486 allow_undefined_flag=
5488 need_lib_prefix=unknown
5489 need_version=unknown
5490 # when you set need_version to no, make sure it does not cause -set_version
5491 # flags to be left without arguments
5493 archive_expsym_cmds=
5494 old_archive_from_new_cmds=
5495 old_archive_from_expsyms_cmds=
5496 export_dynamic_flag_spec=
5497 whole_archive_flag_spec=
5498 thread_safe_flag_spec=
5499 hardcode_into_libs=no
5500 hardcode_libdir_flag_spec=
5501 hardcode_libdir_separator=
5504 hardcode_shlibpath_var=unsupported
5506 link_all_deplibs=unknown
5507 always_export_symbols=no
5508 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5509 # include_expsyms should be a list of space-separated symbols to be *always*
5510 # included in the symbol list
5512 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5515 # as well as any symbol that contains `d'.
5516 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5518 # platforms (ab)use it in PIC code, but their linkers get confused if
5519 # the symbol is explicitly referenced. Since portable code cannot
5520 # rely on this symbol name, it's probably fine to never include it in
5521 # preloaded symbol tables.
5522 extract_expsyms_cmds=
5525 cygwin* | mingw* | pw32*)
5526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5527 # When not using gcc, we currently assume that we are using
5528 # Microsoft Visual C++.
5529 if test "$GCC" != yes; then
5539 if test "$with_gnu_ld" = yes; then
5540 # If archive_cmds runs LD, not CC, wlarc should be empty
5543 # See if GNU ld supports shared libraries.
5545 aix3* | aix4* | aix5*)
5546 # On AIX, the GNU linker is very broken
5547 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5552 *** to be unable to reliably create shared libraries on AIX.
5553 *** Therefore, libtool is disabling shared libraries support. If you
5554 *** really care for shared libraries, you may want to modify your PATH
5555 *** so that a non-GNU linker is found, and then restart.
5561 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)'
5562 hardcode_libdir_flag_spec='-L$libdir'
5563 hardcode_minus_L=yes
5565 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5566 # that the semantics of dynamic libraries on AmigaOS, at least up
5567 # to version 4, is to share data among multiple programs linked
5568 # with the same dynamic library. Since this doesn't match the
5569 # behavior of shared libraries on other platforms, we can use
5575 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5576 allow_undefined_flag=unsupported
5577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5578 # support --undefined. This deserves some investigation. FIXME
5579 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5585 cygwin* | mingw* | pw32*)
5586 # hardcode_libdir_flag_spec is actually meaningless, as there is
5587 # no search path for DLLs.
5588 hardcode_libdir_flag_spec='-L$libdir'
5589 allow_undefined_flag=unsupported
5590 always_export_symbols=yes
5592 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5593 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5594 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5595 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5596 else $CC -o impgen impgen.c ; fi)~
5597 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5599 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5601 # cygwin and mingw dlls have different entry points and sets of symbols
5603 # FIXME: what about values for MSVC?
5604 dll_entry=__cygwin_dll_entry@12
5605 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5609 dll_entry=_DllMainCRTStartup@12
5610 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5614 # mingw and cygwin differ, and it's simplest to just exclude the union
5615 # of the two symbol sets.
5616 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5618 # recent cygwin and mingw systems supply a stub DllMain which the user
5619 # can override, but on older systems we have to supply one (in ltdll.c)
5620 if test "x$lt_cv_need_dllmain" = "xyes"; then
5621 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5622 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~
5623 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5629 # Extract the symbol export list from an `--export-all' def file,
5630 # then regenerate the def file from the symbol export list, so that
5631 # the compiled dll only exports the symbol export list.
5632 # Be careful not to strip the DATA tag left be newer dlltools.
5633 export_symbols_cmds="$ltdll_cmds"'
5634 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5635 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5637 # If the export-symbols file already is a .def file (1st line
5638 # is EXPORTS), use it as is.
5639 # If DATA tags from a recent dlltool are present, honour them!
5640 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5641 cp $export_symbols $output_objdir/$soname-def;
5643 echo EXPORTS > $output_objdir/$soname-def;
5645 cat $export_symbols | while read symbol; do
5648 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5649 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5650 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5652 _lt_hint=`expr 1 + \$_lt_hint`;
5656 $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~
5657 $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~
5658 $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~
5659 $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~
5660 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5665 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5668 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5669 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5674 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5678 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5679 *** create shared libraries on Solaris systems. Therefore, libtool
5680 *** is disabling shared libraries support. We urge you to upgrade GNU
5681 *** binutils to release 2.9.1 or newer. Another option is to modify
5682 *** your PATH or compiler configuration so that the native linker is
5683 *** used, and then restart.
5686 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5688 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5698 hardcode_shlibpath_var=no
5702 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5711 if test "$ld_shlibs" = yes; then
5712 runpath_var=LD_RUN_PATH
5713 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5714 export_dynamic_flag_spec='${wl}--export-dynamic'
5716 cygwin* | mingw* | pw32*)
5717 # dlltool doesn't understand --whole-archive et. al.
5718 whole_archive_flag_spec=
5721 # ancient GNU ld didn't support --whole-archive et. al.
5722 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5725 whole_archive_flag_spec=
5731 # PORTME fill in a description of your system's linker (not GNU ld)
5734 allow_undefined_flag=unsupported
5735 always_export_symbols=yes
5736 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'
5737 # Note: this linker hardcodes the directories in LIBPATH if there
5738 # are no directories specified by -L.
5739 hardcode_minus_L=yes
5740 if test "$GCC" = yes && test -z "$link_static_flag"; then
5741 # Neither direct hardcoding nor static linking is supported with a
5743 hardcode_direct=unsupported
5748 if test "$host_cpu" = ia64; then
5749 # On IA64, the linker does run time linking by default, so we don't
5750 # have to do anything special.
5751 aix_use_runtimelinking=no
5752 exp_sym_flag='-Bexport'
5755 aix_use_runtimelinking=no
5757 # Test if we are trying to use run time linking or normal
5758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5759 # need to do runtime linking.
5760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5761 for ld_flag in $LDFLAGS; do
5764 aix_use_runtimelinking=yes
5771 exp_sym_flag='-bexport'
5772 no_entry_flag='-bnoentry'
5775 # When large executables or shared objects are built, AIX ld can
5776 # have problems creating the table of contents. If linking a library
5777 # or program results in "error TOC overflow" add -mminimal-toc to
5778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5783 hardcode_libdir_separator=':'
5784 if test "$GCC" = yes; then
5785 case $host_os in aix4.[012]|aix4.[012].*)
5786 collect2name=`${CC} -print-prog-name=collect2`
5787 if test -f "$collect2name" && \
5788 strings "$collect2name" | grep resolve_lib_name >/dev/null
5790 # We have reworked collect2
5793 # We have old collect2
5794 hardcode_direct=unsupported
5795 # It fails to find uninstalled libraries when the uninstalled
5796 # path is not listed in the libpath. Setting hardcode_minus_L
5797 # to unsupported forces relinking
5798 hardcode_minus_L=yes
5799 hardcode_libdir_flag_spec='-L$libdir'
5800 hardcode_libdir_separator=
5804 shared_flag='-shared'
5807 if test "$host_cpu" = ia64; then
5808 shared_flag='${wl}-G'
5810 if test "$aix_use_runtimelinking" = yes; then
5811 shared_flag='${wl}-G'
5813 shared_flag='${wl}-bM:SRE'
5818 # It seems that -bexpall can do strange things, so it is better to
5819 # generate a list of symbols to export.
5820 always_export_symbols=yes
5821 if test "$aix_use_runtimelinking" = yes; then
5822 # Warning - without using the other runtime loading flags (-brtl),
5823 # -berok will link without error, but may produce a broken library.
5824 allow_undefined_flag='-berok'
5825 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5826 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"
5828 if test "$host_cpu" = ia64; then
5829 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5830 allow_undefined_flag="-z nodefs"
5831 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"
5833 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5834 # Warning - without using the other run time loading flags,
5835 # -berok will link without error, but may produce a broken library.
5836 allow_undefined_flag='${wl}-berok'
5837 # This is a bit strange, but is similar to how AIX traditionally builds
5838 # it's shared libraries.
5839 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'
5845 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)'
5846 hardcode_libdir_flag_spec='-L$libdir'
5847 hardcode_minus_L=yes
5848 # see comment about different semantics on the GNU ld section
5852 cygwin* | mingw* | pw32*)
5853 # When not using gcc, we currently assume that we are using
5854 # Microsoft Visual C++.
5855 # hardcode_libdir_flag_spec is actually meaningless, as there is
5856 # no search path for DLLs.
5857 hardcode_libdir_flag_spec=' '
5858 allow_undefined_flag=unsupported
5859 # Tell ltmain to make .lib files, not .a files.
5861 # FIXME: Setting linknames here is a bad hack.
5862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5863 # The linker will automatically build a .lib file if we build a DLL.
5864 old_archive_from_new_cmds='true'
5865 # FIXME: Should let the user specify the lib program.
5866 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5867 fix_srcfile_path='`cygpath -w "$srcfile"`'
5870 darwin* | rhapsody*)
5872 rhapsody* | darwin1.[012])
5873 allow_undefined_flag='-undefined suppress'
5876 allow_undefined_flag='-flat_namespace -undefined suppress'
5879 # FIXME: Relying on posixy $() will cause problems for
5880 # cross-compilation, but unfortunately the echo tests do not
5881 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5882 # `"' quotes if we put them in here... so don't!
5883 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)'
5884 # We need to add '_' to the symbols in $export_symbols first
5885 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5887 hardcode_shlibpath_var=no
5888 whole_archive_flag_spec='-all_load $convenience'
5895 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5896 # support. Future versions do this automatically, but an explicit c++rt0.o
5897 # does not break anything, and helps significantly (at the cost of a little
5900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5901 hardcode_libdir_flag_spec='-R$libdir'
5903 hardcode_shlibpath_var=no
5906 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5910 hardcode_minus_L=yes
5911 hardcode_shlibpath_var=no
5914 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5916 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5917 hardcode_libdir_flag_spec='-R$libdir'
5919 hardcode_shlibpath_var=no
5922 hpux9* | hpux10* | hpux11*)
5924 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' ;;
5925 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5928 hardcode_libdir_separator=:
5930 hardcode_minus_L=yes # Not in the search PATH, but as the default
5931 # location of the library.
5932 export_dynamic_flag_spec='${wl}-E'
5935 irix5* | irix6* | nonstopux*)
5936 if test "$GCC" = yes; then
5937 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'
5938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5940 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'
5941 hardcode_libdir_flag_spec='-rpath $libdir'
5943 hardcode_libdir_separator=:
5944 link_all_deplibs=yes
5948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5949 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5951 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5953 hardcode_libdir_flag_spec='-R$libdir'
5955 hardcode_shlibpath_var=no
5959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5962 hardcode_libdir_separator=:
5963 hardcode_shlibpath_var=no
5968 hardcode_shlibpath_var=no
5969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5971 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5972 export_dynamic_flag_spec='${wl}-E'
5975 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5977 hardcode_libdir_flag_spec='-R$libdir'
5980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5988 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5989 cp \$linknames \$output_objdir && linknames=''"
5990 export_dynamic_flag_spec="-Wl,DLL"
5994 hardcode_libdir_flag_spec='-L$libdir'
5995 hardcode_minus_L=yes
5996 allow_undefined_flag=unsupported
5997 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'
5998 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6002 if test "$GCC" = yes; then
6003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6004 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'
6006 allow_undefined_flag=' -expect_unresolved \*'
6007 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'
6009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6010 hardcode_libdir_separator=:
6013 osf4* | osf5*) # as osf3* with the addition of -msym flag
6014 if test "$GCC" = yes; then
6015 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6016 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'
6017 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6019 allow_undefined_flag=' -expect_unresolved \*'
6020 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'
6021 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6022 $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'
6024 #Both c and cxx compiler support -rpath directly
6025 hardcode_libdir_flag_spec='-rpath $libdir'
6027 hardcode_libdir_separator=:
6031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6032 hardcode_shlibpath_var=no
6033 runpath_var=LD_RUN_PATH
6034 hardcode_runpath_var=yes
6035 export_dynamic_flag_spec='${wl}-Bexport'
6039 # gcc --version < 3.0 without binutils cannot create self contained
6040 # shared libraries reliably, requiring libgcc.a to resolve some of
6041 # the object symbols generated in some cases. Libraries that use
6042 # assert need libgcc.a to resolve __eprintf, for example. Linking
6043 # a copy of libgcc.a into every shared library to guarantee resolving
6044 # such symbols causes other problems: According to Tim Van Holder
6045 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6046 # (to the application) exception stack for one thing.
6047 no_undefined_flag=' -z defs'
6048 if test "$GCC" = yes; then
6049 case `$CC --version 2>/dev/null` in
6053 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6054 *** create self contained shared libraries on Solaris systems, without
6055 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6056 *** -no-undefined support, which will at least allow you to build shared
6057 *** libraries. However, you may find that when you link such libraries
6058 *** into an application without using GCC, you have to manually add
6059 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6060 *** upgrade to a newer version of GCC. Another option is to rebuild your
6061 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6068 # $CC -shared without GNU ld will not create a library from C++
6069 # object files and a static libstdc++, better avoid it by now
6070 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6071 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6072 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6073 hardcode_libdir_flag_spec='-R$libdir'
6074 hardcode_shlibpath_var=no
6076 solaris2.[0-5] | solaris2.[0-5].*) ;;
6077 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6080 link_all_deplibs=yes
6084 if test "x$host_vendor" = xsequent; then
6085 # Use $CC to link under sequent, because it throws in some extra .o
6086 # files that make .init and .fini sections work.
6087 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6091 hardcode_libdir_flag_spec='-L$libdir'
6093 hardcode_minus_L=yes
6094 hardcode_shlibpath_var=no
6098 case $host_vendor in
6100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6101 hardcode_direct=yes # is this really true???
6104 ## LD is ld it makes a PLAMLIB
6105 ## CC just makes a GrossModule.
6106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6107 reload_cmds='$CC -r -o $output$reload_objs'
6111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6115 runpath_var='LD_RUN_PATH'
6116 hardcode_shlibpath_var=no
6120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6121 hardcode_shlibpath_var=no
6122 export_dynamic_flag_spec='-Bexport'
6126 no_undefined_flag=' -z text'
6127 # $CC -shared without GNU ld will not create a library from C++
6128 # object files and a static libstdc++, better avoid it by now
6129 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6130 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6131 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6132 hardcode_libdir_flag_spec=
6133 hardcode_shlibpath_var=no
6134 runpath_var='LD_RUN_PATH'
6138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6139 hardcode_libdir_flag_spec='-L$libdir'
6140 hardcode_shlibpath_var=no
6144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6145 hardcode_libdir_flag_spec='-L$libdir'
6146 hardcode_shlibpath_var=no
6150 if test -d /usr/nec; then
6151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6152 hardcode_shlibpath_var=no
6153 runpath_var=LD_RUN_PATH
6154 hardcode_runpath_var=yes
6160 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6163 hardcode_shlibpath_var=no
6164 hardcode_runpath_var=yes
6165 runpath_var=LD_RUN_PATH
6168 sysv5uw7* | unixware7*)
6169 no_undefined_flag='${wl}-z ${wl}text'
6170 if test "$GCC" = yes; then
6171 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6173 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6175 runpath_var='LD_RUN_PATH'
6176 hardcode_shlibpath_var=no
6184 echo "$ac_t""$ld_shlibs" 1>&6
6185 test "$ld_shlibs" = no && can_build_shared=no
6187 # Check hardcoding attributes.
6188 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6189 echo "configure:6190: checking how to hardcode library paths into programs" >&5
6191 if test -n "$hardcode_libdir_flag_spec" || \
6192 test -n "$runpath_var"; then
6194 # We can hardcode non-existant directories.
6195 if test "$hardcode_direct" != no &&
6196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6197 # have to relink, otherwise we might link with an installed library
6198 # when we should be linking with a yet-to-be-installed one
6199 ## test "$hardcode_shlibpath_var" != no &&
6200 test "$hardcode_minus_L" != no; then
6201 # Linking always hardcodes the temporary library directory.
6202 hardcode_action=relink
6204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6205 hardcode_action=immediate
6208 # We cannot hardcode anything, or else we can only hardcode existing
6210 hardcode_action=unsupported
6212 echo "$ac_t""$hardcode_action" 1>&6
6216 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6217 echo "configure:6218: checking whether stripping libraries is possible" >&5
6218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6221 echo "$ac_t""yes" 1>&6
6223 echo "$ac_t""no" 1>&6
6226 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6227 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6229 # PORTME Fill in your ld.so characteristics
6230 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6231 echo "configure:6232: checking dynamic linker characteristics" >&5
6233 libname_spec='lib$name'
6240 shlibpath_overrides_runpath=unknown
6242 dynamic_linker="$host_os ld.so"
6243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6249 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6250 shlibpath_var=LIBPATH
6252 # AIX has no versioning support, so we append a major version to the name.
6253 soname_spec='${libname}${release}.so$major'
6260 hardcode_into_libs=yes
6261 if test "$host_cpu" = ia64; then
6262 # AIX 5 supports IA64
6263 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6264 shlibpath_var=LD_LIBRARY_PATH
6266 # With GCC up to 2.95.x, collect2 would create an import file
6267 # for dependence libraries. The import file would start with
6268 # the line `#! .'. This would cause the generated library to
6269 # depend on `.', always an invalid library. This was fixed in
6270 # development snapshots of GCC prior to 3.0.
6272 aix4 | aix4.[01] | aix4.[01].*)
6273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6275 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6282 # AIX (on Power*) has no versioning support, so currently we can
6283 # not hardcode correct soname into executable. Probably we can
6284 # add versioning support to collect2, so additional links can
6285 # be useful in future.
6286 if test "$aix_use_runtimelinking" = yes; then
6287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6288 # instead of lib<name>.a to let people know that these are not
6289 # typical AIX shared libraries.
6290 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6292 # We preserve .a as extension for shared libraries through AIX4.2
6293 # and later when we are not doing run time linking.
6294 library_names_spec='${libname}${release}.a $libname.a'
6295 soname_spec='${libname}${release}.so$major'
6297 shlibpath_var=LIBPATH
6299 hardcode_into_libs=yes
6303 library_names_spec='$libname.ixlibrary $libname.a'
6304 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6305 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'
6309 library_names_spec='${libname}.so'
6310 dynamic_linker="$host_os ld.so"
6311 shlibpath_var=LIBRARY_PATH
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6318 soname_spec='${libname}${release}.so$major'
6319 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6320 shlibpath_var=LD_LIBRARY_PATH
6321 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6322 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6323 export_dynamic_flag_spec=-rdynamic
6324 # the default ld.so.conf also contains /usr/contrib/lib and
6325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6326 # libtool to hard-code these into programs
6329 cygwin* | mingw* | pw32*)
6330 version_type=windows
6333 case $GCC,$host_os in
6335 library_names_spec='$libname.dll.a'
6336 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6337 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6338 dldir=$destdir/`dirname \$dlpath`~
6339 test -d \$dldir || mkdir -p \$dldir~
6340 $install_prog .libs/$dlname \$dldir/$dlname'
6341 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6342 dlpath=$dir/\$dldll~
6346 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6350 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6353 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6356 dynamic_linker='Win32 ld.exe'
6357 # FIXME: first we should search . and the directory the executable is in
6361 darwin* | rhapsody*)
6362 dynamic_linker="$host_os dyld"
6366 # FIXME: Relying on posixy $() will cause problems for
6367 # cross-compilation, but unfortunately the echo tests do not
6368 # yet detect zsh echo's removal of \ escapes.
6369 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)'
6370 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6371 shlibpath_overrides_runpath=yes
6372 shlibpath_var=DYLD_LIBRARY_PATH
6380 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6381 version_type=freebsd-$objformat
6382 case $version_type in
6384 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6389 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6393 shlibpath_var=LD_LIBRARY_PATH
6396 shlibpath_overrides_runpath=yes
6399 shlibpath_overrides_runpath=no
6400 hardcode_into_libs=yes
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6410 soname_spec='${libname}${release}.so$major'
6411 shlibpath_var=LD_LIBRARY_PATH
6412 hardcode_into_libs=yes
6415 hpux9* | hpux10* | hpux11*)
6416 # Give a soname corresponding to the major version so that dld.sl refuses to
6417 # link against other versions.
6418 dynamic_linker="$host_os dld.sl"
6422 shlibpath_var=SHLIB_PATH
6423 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6424 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6425 soname_spec='${libname}${release}.sl$major'
6426 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6427 postinstall_cmds='chmod 555 $lib'
6430 irix5* | irix6* | nonstopux*)
6432 nonstopux*) version_type=nonstopux ;;
6433 *) version_type=irix ;;
6437 soname_spec='${libname}${release}.so$major'
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6440 irix5* | nonstopux*)
6444 case $LD in # libtool.m4 will add one of these switches to LD
6445 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6446 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6447 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6448 *) libsuff= shlibsuff= libmagic=never-match;;
6452 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6453 shlibpath_overrides_runpath=no
6454 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6455 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6458 # No shared lib support for Linux oldld, aout, or coff.
6459 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6463 # This must be Linux ELF.
6468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6469 soname_spec='${libname}${release}.so$major'
6470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6471 shlibpath_var=LD_LIBRARY_PATH
6472 shlibpath_overrides_runpath=no
6473 # This implies no fast_install, which is unacceptable.
6474 # Some rework will be needed to allow for fast_install
6475 # before this can be enabled.
6476 hardcode_into_libs=yes
6478 # We used to test for /lib/ld.so.1 and disable shared libraries on
6479 # powerpc, because MkLinux only supported shared libraries with the
6480 # GNU dynamic linker. Since this was broken with cross compilers,
6481 # most powerpc-linux boxes support dynamic linking these days and
6482 # people can always --disable-shared, the test was removed, and we
6483 # assume the GNU/Linux dynamic linker is in use.
6484 dynamic_linker='GNU/Linux ld.so'
6491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6492 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6494 dynamic_linker='NetBSD (a.out) ld.so'
6496 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6497 soname_spec='${libname}${release}.so$major'
6498 dynamic_linker='NetBSD ld.elf_so'
6500 shlibpath_var=LD_LIBRARY_PATH
6501 shlibpath_overrides_runpath=yes
6502 hardcode_into_libs=yes
6507 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6508 shlibpath_var=LD_LIBRARY_PATH
6509 shlibpath_overrides_runpath=yes
6516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6518 openbsd2.[89] | openbsd2.[89].*)
6519 shlibpath_overrides_runpath=no
6522 shlibpath_overrides_runpath=yes
6526 shlibpath_overrides_runpath=yes
6528 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6530 shlibpath_var=LD_LIBRARY_PATH
6536 shlibpath_overrides_runpath=yes
6537 shlibpath_var=LIBPATH
6538 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6539 # the library's exports are in libname.x; this is the file that must
6540 # actually be linked with to use a DLL.
6541 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6545 libname_spec='$name'
6547 library_names_spec='$libname.dll $libname.a'
6548 dynamic_linker='OS/2 ld.exe'
6549 shlibpath_var=LIBPATH
6552 osf3* | osf4* | osf5*)
6555 soname_spec='${libname}${release}.so$major'
6556 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6557 shlibpath_var=LD_LIBRARY_PATH
6558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6560 hardcode_into_libs=yes
6565 soname_spec='${libname}${release}.so$major'
6566 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6567 shlibpath_var=LD_LIBRARY_PATH
6574 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6575 soname_spec='${libname}${release}.so$major'
6576 shlibpath_var=LD_LIBRARY_PATH
6577 shlibpath_overrides_runpath=yes
6578 hardcode_into_libs=yes
6579 # ldd complains unless libraries are executable
6580 postinstall_cmds='chmod +x $lib'
6585 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6587 shlibpath_var=LD_LIBRARY_PATH
6588 shlibpath_overrides_runpath=yes
6589 if test "$with_gnu_ld" = yes; then
6595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6597 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6598 soname_spec='${libname}${release}.so$major'
6599 shlibpath_var=LD_LIBRARY_PATH
6600 case $host_vendor in
6602 shlibpath_overrides_runpath=no
6604 export_dynamic_flag_spec='${wl}-Blargedynsym'
6605 runpath_var=LD_RUN_PATH
6613 shlibpath_overrides_runpath=no
6614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6621 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6622 soname_spec='${libname}${release}.so$major'
6623 shlibpath_var=LD_LIBRARY_PATH
6630 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6631 soname_spec='${libname}${release}.so$major'
6632 shlibpath_var=LD_LIBRARY_PATH
6636 if test -d /usr/nec ;then
6638 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6639 soname_spec='$libname.so.$major'
6640 shlibpath_var=LD_LIBRARY_PATH
6648 echo "$ac_t""$dynamic_linker" 1>&6
6649 test "$dynamic_linker" = no && can_build_shared=no
6651 # Report the final consequences.
6652 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6653 echo "configure:6654: checking if libtool supports shared libraries" >&5
6654 echo "$ac_t""$can_build_shared" 1>&6
6656 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6657 echo "configure:6658: checking whether to build shared libraries" >&5
6658 test "$can_build_shared" = "no" && enable_shared=no
6660 # On AIX, shared libraries and static libraries use the same namespace, and
6661 # are all built from PIC.
6664 test "$enable_shared" = yes && enable_static=no
6665 if test -n "$RANLIB"; then
6666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6667 postinstall_cmds='$RANLIB $lib'
6672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6673 test "$enable_shared" = yes && enable_static=no
6677 echo "$ac_t""$enable_shared" 1>&6
6679 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6680 echo "configure:6681: checking whether to build static libraries" >&5
6681 # Make sure either enable_shared or enable_static is yes.
6682 test "$enable_shared" = yes || enable_static=yes
6683 echo "$ac_t""$enable_static" 1>&6
6685 if test "$hardcode_action" = relink; then
6686 # Fast installation is not supported
6687 enable_fast_install=no
6688 elif test "$shlibpath_overrides_runpath" = yes ||
6689 test "$enable_shared" = no; then
6690 # Fast installation is not necessary
6691 enable_fast_install=needless
6694 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6695 if test "$GCC" = yes; then
6696 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6699 if test "x$enable_dlopen" != xyes; then
6700 enable_dlopen=unknown
6701 enable_dlopen_self=unknown
6702 enable_dlopen_self_static=unknown
6709 lt_cv_dlopen="load_add_on"
6711 lt_cv_dlopen_self=yes
6714 cygwin* | mingw* | pw32*)
6715 lt_cv_dlopen="LoadLibrary"
6720 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6721 echo "configure:6722: checking for dllload" >&5
6722 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 /* System header to define __stub macros and hopefully few prototypes,
6729 which can conflict with char dllload(); below. */
6731 /* Override any gcc2 internal prototype to avoid an error. */
6732 /* We use char because int might match the return type of a gcc2
6733 builtin and then its argument prototype would still apply. */
6739 /* The GNU C library defines this for functions which it implements
6740 to always fail with ENOSYS. Some functions are actually named
6741 something starting with __ and the normal name is an alias. */
6742 #if defined (__stub_dllload) || defined (__stub___dllload)
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6752 eval "ac_cv_func_dllload=yes"
6754 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 eval "ac_cv_func_dllload=no"
6762 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 lt_cv_dlopen="dllload"
6766 echo "$ac_t""no" 1>&6
6767 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6768 echo "configure:6769: checking for shl_load" >&5
6769 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* System header to define __stub macros and hopefully few prototypes,
6776 which can conflict with char shl_load(); below. */
6778 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6786 /* The GNU C library defines this for functions which it implements
6787 to always fail with ENOSYS. Some functions are actually named
6788 something starting with __ and the normal name is an alias. */
6789 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 eval "ac_cv_func_shl_load=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_func_shl_load=no"
6809 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 lt_cv_dlopen="shl_load"
6813 echo "$ac_t""no" 1>&6
6814 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6815 echo "configure:6816: checking for shl_load in -ldld" >&5
6816 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6817 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6820 ac_save_LIBS="$LIBS"
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6825 /* Override any gcc2 internal prototype to avoid an error. */
6826 /* We use char because int might match the return type of a gcc2
6827 builtin and then its argument prototype would still apply. */
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836 eval "ac_cv_lib_$ac_lib_var=yes"
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 eval "ac_cv_lib_$ac_lib_var=no"
6844 LIBS="$ac_save_LIBS"
6847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6851 echo "$ac_t""no" 1>&6
6852 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6853 echo "configure:6854: checking for dlopen" >&5
6854 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char dlopen(); below. */
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6871 /* The GNU C library defines this for functions which it implements
6872 to always fail with ENOSYS. Some functions are actually named
6873 something starting with __ and the normal name is an alias. */
6874 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_func_dlopen=yes"
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_func_dlopen=no"
6894 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6895 echo "$ac_t""yes" 1>&6
6896 lt_cv_dlopen="dlopen"
6898 echo "$ac_t""no" 1>&6
6899 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6900 echo "configure:6901: checking for dlopen in -ldl" >&5
6901 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 ac_save_LIBS="$LIBS"
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 /* Override any gcc2 internal prototype to avoid an error. */
6911 /* We use char because int might match the return type of a gcc2
6912 builtin and then its argument prototype would still apply. */
6919 if { (eval echo configure:6920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6921 eval "ac_cv_lib_$ac_lib_var=yes"
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6926 eval "ac_cv_lib_$ac_lib_var=no"
6929 LIBS="$ac_save_LIBS"
6932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6933 echo "$ac_t""yes" 1>&6
6934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6936 echo "$ac_t""no" 1>&6
6937 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6938 echo "configure:6939: checking for dlopen in -lsvld" >&5
6939 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 ac_save_LIBS="$LIBS"
6945 cat > conftest.$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6948 /* Override any gcc2 internal prototype to avoid an error. */
6949 /* We use char because int might match the return type of a gcc2
6950 builtin and then its argument prototype would still apply. */
6957 if { (eval echo configure:6958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6959 eval "ac_cv_lib_$ac_lib_var=yes"
6961 echo "configure: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6964 eval "ac_cv_lib_$ac_lib_var=no"
6967 LIBS="$ac_save_LIBS"
6970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6971 echo "$ac_t""yes" 1>&6
6972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6974 echo "$ac_t""no" 1>&6
6975 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6976 echo "configure:6977: checking for dld_link in -ldld" >&5
6977 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6979 echo $ac_n "(cached) $ac_c" 1>&6
6981 ac_save_LIBS="$LIBS"
6983 cat > conftest.$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6986 /* Override any gcc2 internal prototype to avoid an error. */
6987 /* We use char because int might match the return type of a gcc2
6988 builtin and then its argument prototype would still apply. */
6995 if { (eval echo configure:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6997 eval "ac_cv_lib_$ac_lib_var=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 eval "ac_cv_lib_$ac_lib_var=no"
7005 LIBS="$ac_save_LIBS"
7008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7009 echo "$ac_t""yes" 1>&6
7010 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7012 echo "$ac_t""no" 1>&6
7036 if test "x$lt_cv_dlopen" != xno; then
7042 case $lt_cv_dlopen in
7044 save_CPPFLAGS="$CPPFLAGS"
7045 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7047 save_LDFLAGS="$LDFLAGS"
7048 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7051 LIBS="$lt_cv_dlopen_libs $LIBS"
7053 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7054 echo "configure:7055: checking whether a program can dlopen itself" >&5
7055 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7058 if test "$cross_compiling" = yes; then :
7059 lt_cv_dlopen_self=cross
7061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7062 lt_status=$lt_dlunknown
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7074 # define LT_DLGLOBAL RTLD_GLOBAL
7077 # define LT_DLGLOBAL DL_GLOBAL
7079 # define LT_DLGLOBAL 0
7083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7084 find out it does not work in some platform. */
7085 #ifndef LT_DLLAZY_OR_NOW
7087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7090 # define LT_DLLAZY_OR_NOW DL_LAZY
7093 # define LT_DLLAZY_OR_NOW RTLD_NOW
7096 # define LT_DLLAZY_OR_NOW DL_NOW
7098 # define LT_DLLAZY_OR_NOW 0
7106 extern "C" void exit (int);
7109 void fnord() { int i=42;}
7112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7113 int status = $lt_dlunknown;
7117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7119 /* dlclose (self); */
7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7126 (./conftest; exit; ) 2>/dev/null
7129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7131 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7134 # compilation failed
7135 lt_cv_dlopen_self=no
7143 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7145 if test "x$lt_cv_dlopen_self" = xyes; then
7146 LDFLAGS="$LDFLAGS $link_static_flag"
7147 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7148 echo "configure:7149: checking whether a statically linked program can dlopen itself" >&5
7149 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7152 if test "$cross_compiling" = yes; then :
7153 lt_cv_dlopen_self_static=cross
7155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7156 lt_status=$lt_dlunknown
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7168 # define LT_DLGLOBAL RTLD_GLOBAL
7171 # define LT_DLGLOBAL DL_GLOBAL
7173 # define LT_DLGLOBAL 0
7177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7178 find out it does not work in some platform. */
7179 #ifndef LT_DLLAZY_OR_NOW
7181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7184 # define LT_DLLAZY_OR_NOW DL_LAZY
7187 # define LT_DLLAZY_OR_NOW RTLD_NOW
7190 # define LT_DLLAZY_OR_NOW DL_NOW
7192 # define LT_DLLAZY_OR_NOW 0
7200 extern "C" void exit (int);
7203 void fnord() { int i=42;}
7206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7207 int status = $lt_dlunknown;
7211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7213 /* dlclose (self); */
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7220 (./conftest; exit; ) 2>/dev/null
7223 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7224 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7225 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7228 # compilation failed
7229 lt_cv_dlopen_self_static=no
7237 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7240 CPPFLAGS="$save_CPPFLAGS"
7241 LDFLAGS="$save_LDFLAGS"
7246 case $lt_cv_dlopen_self in
7247 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7248 *) enable_dlopen_self=unknown ;;
7251 case $lt_cv_dlopen_self_static in
7252 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7253 *) enable_dlopen_self_static=unknown ;;
7258 if test "$enable_shared" = yes && test "$GCC" = yes; then
7259 case $archive_cmds in
7261 # FIXME: we may have to deal with multi-command sequences.
7264 # Test whether the compiler implicitly links with -lc since on some
7265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7266 # to ld, don't add -lc before -lgcc.
7267 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7268 echo "configure:7269: checking whether -lc should be explicitly linked in" >&5
7269 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6
7273 echo 'static int dummy;' > conftest.$ac_ext
7275 if { (eval echo configure:7276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7278 libobjs=conftest.$ac_objext
7280 wl=$lt_cv_prog_cc_wl
7286 save_allow_undefined_flag=$allow_undefined_flag
7287 allow_undefined_flag=
7288 if { (eval echo configure:7289: \"$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; }
7290 lt_cv_archive_cmds_need_lc=no
7292 lt_cv_archive_cmds_need_lc=yes
7294 allow_undefined_flag=$save_allow_undefined_flag
7296 cat conftest.err 1>&5
7300 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7304 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7306 # The second clause should only fire when bootstrapping the
7307 # libtool distribution, otherwise you forgot to ship ltmain.sh
7308 # with your package, and you will get complaints that there are
7309 # no rules to generate ltmain.sh.
7310 if test -f "$ltmain"; then
7313 # If there is no Makefile yet, we rely on a make rule to execute
7314 # `config.status --recheck' to rerun these tests and create the
7315 # libtool script then.
7316 test -f Makefile && make "$ltmain"
7319 if test -f "$ltmain"; then
7320 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7323 echo creating $ofile
7325 # Now quote all the things that may contain metacharacters while being
7326 # careful not to overquote the AC_SUBSTed values. We take copies of the
7327 # variables and quote the copies for generation of the libtool script.
7328 for var in echo old_CC old_CFLAGS SED \
7329 AR AR_FLAGS CC LD LN_S NM SHELL \
7330 reload_flag reload_cmds wl \
7331 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7332 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7333 library_names_spec soname_spec \
7334 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7335 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7336 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7337 old_striplib striplib file_magic_cmd export_symbols_cmds \
7338 deplibs_check_method allow_undefined_flag no_undefined_flag \
7339 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7340 global_symbol_to_c_name_address \
7341 hardcode_libdir_flag_spec hardcode_libdir_separator \
7342 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7343 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7346 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7347 old_postinstall_cmds | old_postuninstall_cmds | \
7348 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7349 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7350 postinstall_cmds | postuninstall_cmds | \
7351 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7352 # Double-quote double-evaled strings.
7353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7356 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7361 cat <<__EOF__ > "${ofile}T"
7364 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7365 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7366 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7368 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7369 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7371 # This program is free software; you can redistribute it and/or modify
7372 # it under the terms of the GNU General Public License as published by
7373 # the Free Software Foundation; either version 2 of the License, or
7374 # (at your option) any later version.
7376 # This program is distributed in the hope that it will be useful, but
7377 # WITHOUT ANY WARRANTY; without even the implied warranty of
7378 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7379 # General Public License for more details.
7381 # You should have received a copy of the GNU General Public License
7382 # along with this program; if not, write to the Free Software
7383 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7385 # As a special exception to the GNU General Public License, if you
7386 # distribute this file as part of a program that contains a
7387 # configuration script generated by Autoconf, you may include it under
7388 # the same distribution terms that you use for the rest of that program.
7390 # A sed that does not truncate output.
7393 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7394 Xsed="${SED} -e s/^X//"
7396 # The HP-UX ksh and POSIX shell print the target directory to stdout
7398 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7400 # ### BEGIN LIBTOOL CONFIG
7402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7404 # Shell to use when invoking shell scripts.
7407 # Whether or not to build shared libraries.
7408 build_libtool_libs=$enable_shared
7410 # Whether or not to build static libraries.
7411 build_old_libs=$enable_static
7413 # Whether or not to add -lc for building shared libraries.
7414 build_libtool_need_lc=$need_lc
7416 # Whether or not to optimize for fast installation.
7417 fast_install=$enable_fast_install
7420 host_alias=$host_alias
7423 # An echo program that does not interpret backslashes.
7428 AR_FLAGS=$lt_AR_FLAGS
7430 # The default C compiler.
7433 # Is the compiler the GNU C compiler?
7436 # The linker used to build libraries.
7439 # Whether we need hard or soft links.
7442 # A BSD-compatible nm program.
7445 # A symbol stripping program
7448 # Used to examine libraries when file_magic_cmd begins "file"
7449 MAGIC_CMD=$MAGIC_CMD
7451 # Used on cygwin: DLL creation program.
7454 # Used on cygwin: object dumper.
7457 # Used on cygwin: assembler.
7460 # The name of the directory that contains temporary libtool files.
7463 # How to create reloadable object files.
7464 reload_flag=$lt_reload_flag
7465 reload_cmds=$lt_reload_cmds
7467 # How to pass a linker flag through the compiler.
7470 # Object file suffix (normally "o").
7473 # Old archive suffix (normally "a").
7476 # Executable file suffix (normally "").
7479 # Additional compiler flags for building library objects.
7480 pic_flag=$lt_pic_flag
7483 # Does compiler simultaneously support -c and -o options?
7484 compiler_c_o=$lt_compiler_c_o
7486 # Can we write directly to a .lo ?
7487 compiler_o_lo=$lt_compiler_o_lo
7489 # Must we lock files when doing compilation ?
7490 need_locks=$lt_need_locks
7492 # Do we need the lib prefix for modules?
7493 need_lib_prefix=$need_lib_prefix
7495 # Do we need a version for libraries?
7496 need_version=$need_version
7498 # Whether dlopen is supported.
7499 dlopen_support=$enable_dlopen
7501 # Whether dlopen of programs is supported.
7502 dlopen_self=$enable_dlopen_self
7504 # Whether dlopen of statically linked programs is supported.
7505 dlopen_self_static=$enable_dlopen_self_static
7507 # Compiler flag to prevent dynamic linking.
7508 link_static_flag=$lt_link_static_flag
7510 # Compiler flag to turn off builtin functions.
7511 no_builtin_flag=$lt_no_builtin_flag
7513 # Compiler flag to allow reflexive dlopens.
7514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7516 # Compiler flag to generate shared objects directly from archives.
7517 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7519 # Compiler flag to generate thread-safe objects.
7520 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7522 # Library versioning type.
7523 version_type=$version_type
7525 # Format of library name prefix.
7526 libname_spec=$lt_libname_spec
7528 # List of archive names. First name is the real one, the rest are links.
7529 # The last name is the one that the linker finds with -lNAME.
7530 library_names_spec=$lt_library_names_spec
7532 # The coded name of the library, if different from the real name.
7533 soname_spec=$lt_soname_spec
7535 # Commands used to build and install an old-style archive.
7537 old_archive_cmds=$lt_old_archive_cmds
7538 old_postinstall_cmds=$lt_old_postinstall_cmds
7539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7541 # Create an old-style archive from a shared archive.
7542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7544 # Create a temporary old-style archive to link instead of a shared archive.
7545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7547 # Commands used to build and install a shared archive.
7548 archive_cmds=$lt_archive_cmds
7549 archive_expsym_cmds=$lt_archive_expsym_cmds
7550 postinstall_cmds=$lt_postinstall_cmds
7551 postuninstall_cmds=$lt_postuninstall_cmds
7553 # Commands to strip libraries.
7554 old_striplib=$lt_old_striplib
7555 striplib=$lt_striplib
7557 # Method to check whether dependent libraries are shared objects.
7558 deplibs_check_method=$lt_deplibs_check_method
7560 # Command to use when deplibs_check_method == file_magic.
7561 file_magic_cmd=$lt_file_magic_cmd
7563 # Flag that allows shared libraries with undefined symbols to be built.
7564 allow_undefined_flag=$lt_allow_undefined_flag
7566 # Flag that forces no undefined symbols.
7567 no_undefined_flag=$lt_no_undefined_flag
7569 # Commands used to finish a libtool library installation in a directory.
7570 finish_cmds=$lt_finish_cmds
7572 # Same as above, but a single script fragment to be evaled but not shown.
7573 finish_eval=$lt_finish_eval
7575 # Take the output of nm and produce a listing of raw symbols and C names.
7576 global_symbol_pipe=$lt_global_symbol_pipe
7578 # Transform the output of nm in a proper C declaration
7579 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7581 # Transform the output of nm in a C name address pair
7582 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7584 # This is the shared library runtime path variable.
7585 runpath_var=$runpath_var
7587 # This is the shared library path variable.
7588 shlibpath_var=$shlibpath_var
7590 # Is shlibpath searched before the hard-coded library search path?
7591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7593 # How to hardcode a shared library path into an executable.
7594 hardcode_action=$hardcode_action
7596 # Whether we should hardcode library paths into libraries.
7597 hardcode_into_libs=$hardcode_into_libs
7599 # Flag to hardcode \$libdir into a binary during linking.
7600 # This must work even if \$libdir does not exist.
7601 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7603 # Whether we need a single -rpath flag with a separated argument.
7604 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7606 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7608 hardcode_direct=$hardcode_direct
7610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7612 hardcode_minus_L=$hardcode_minus_L
7614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7615 # the resulting binary.
7616 hardcode_shlibpath_var=$hardcode_shlibpath_var
7618 # Variables whose values should be saved in libtool wrapper scripts and
7619 # restored at relink time.
7620 variables_saved_for_relink="$variables_saved_for_relink"
7622 # Whether libtool must link a program against all its dependency libraries.
7623 link_all_deplibs=$link_all_deplibs
7625 # Compile-time system search path for libraries
7626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7628 # Run-time system search path for libraries
7629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7631 # Fix the shell variable \$srcfile for the compiler.
7632 fix_srcfile_path="$fix_srcfile_path"
7634 # Set to yes if exported symbols are required.
7635 always_export_symbols=$always_export_symbols
7637 # The commands to list exported symbols.
7638 export_symbols_cmds=$lt_export_symbols_cmds
7640 # The commands to extract the exported symbol list from a shared archive.
7641 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7643 # Symbols that should not be listed in the preloaded symbols.
7644 exclude_expsyms=$lt_exclude_expsyms
7646 # Symbols that must always be exported.
7647 include_expsyms=$lt_include_expsyms
7649 # ### END LIBTOOL CONFIG
7655 cat <<\EOF >> "${ofile}T"
7657 # AIX sometimes has problems with the GCC collect2 program. For some
7658 # reason, if we set the COLLECT_NAMES environment variable, the problems
7659 # vanish in a puff of smoke.
7660 if test "X${COLLECT_NAMES+set}" != Xset; then
7662 export COLLECT_NAMES
7669 cygwin* | mingw* | pw32* | os2*)
7670 cat <<'EOF' >> "${ofile}T"
7671 # This is a source program that is used to create dlls on Windows
7672 # Don't remove nor modify the starting and closing comments
7673 # /* ltdll.c starts here */
7674 # #define WIN32_LEAN_AND_MEAN
7675 # #include <windows.h>
7676 # #undef WIN32_LEAN_AND_MEAN
7677 # #include <stdio.h>
7679 # #ifndef __CYGWIN__
7680 # # ifdef __CYGWIN32__
7681 # # define __CYGWIN__ __CYGWIN32__
7685 # #ifdef __cplusplus
7688 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7689 # #ifdef __cplusplus
7694 # #include <cygwin/cygwin_dll.h>
7695 # DECLARE_CYGWIN_DLL( DllMain );
7697 # HINSTANCE __hDllInstance_base;
7700 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7702 # __hDllInstance_base = hInst;
7705 # /* ltdll.c ends here */
7706 # This is a source program that is used to create import libraries
7707 # on Windows for dlls which lack them. Don't remove nor modify the
7708 # starting and closing comments
7709 # /* impgen.c starts here */
7710 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7712 # This file is part of GNU libtool.
7714 # This program is free software; you can redistribute it and/or modify
7715 # it under the terms of the GNU General Public License as published by
7716 # the Free Software Foundation; either version 2 of the License, or
7717 # (at your option) any later version.
7719 # This program is distributed in the hope that it will be useful,
7720 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7721 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7722 # GNU General Public License for more details.
7724 # You should have received a copy of the GNU General Public License
7725 # along with this program; if not, write to the Free Software
7726 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7729 # #include <stdio.h> /* for printf() */
7730 # #include <unistd.h> /* for open(), lseek(), read() */
7731 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7732 # #include <string.h> /* for strdup() */
7734 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7736 # #define O_BINARY 0
7739 # static unsigned int
7740 # pe_get16 (fd, offset)
7744 # unsigned char b[2];
7745 # lseek (fd, offset, SEEK_SET);
7747 # return b[0] + (b[1]<<8);
7750 # static unsigned int
7751 # pe_get32 (fd, offset)
7755 # unsigned char b[4];
7756 # lseek (fd, offset, SEEK_SET);
7758 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7761 # static unsigned int
7765 # unsigned char *b = ptr;
7766 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7775 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7776 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7777 # unsigned long name_rvas, nexp;
7778 # unsigned char *expdata, *erva;
7779 # char *filename, *dll_name;
7781 # filename = argv[1];
7783 # dll = open(filename, O_RDONLY|O_BINARY);
7787 # dll_name = filename;
7789 # for (i=0; filename[i]; i++)
7790 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7791 # dll_name = filename + i +1;
7793 # pe_header_offset = pe_get32 (dll, 0x3c);
7794 # opthdr_ofs = pe_header_offset + 4 + 20;
7795 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7797 # if (num_entries < 1) /* no exports */
7800 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7801 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7802 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7803 # secptr = (pe_header_offset + 4 + 20 +
7804 # pe_get16 (dll, pe_header_offset + 4 + 16));
7807 # for (i = 0; i < nsections; i++)
7810 # unsigned long secptr1 = secptr + 40 * i;
7811 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7812 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7813 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7814 # lseek(dll, secptr1, SEEK_SET);
7815 # read(dll, sname, 8);
7816 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7818 # expptr = fptr + (export_rva - vaddr);
7819 # if (export_rva + export_size > vaddr + vsize)
7820 # export_size = vsize - (export_rva - vaddr);
7825 # expdata = (unsigned char*)malloc(export_size);
7826 # lseek (dll, expptr, SEEK_SET);
7827 # read (dll, expdata, export_size);
7828 # erva = expdata - export_rva;
7830 # nexp = pe_as32 (expdata+24);
7831 # name_rvas = pe_as32 (expdata+32);
7833 # printf ("EXPORTS\n");
7834 # for (i = 0; i<nexp; i++)
7836 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7837 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7842 # /* impgen.c ends here */
7848 # We use sed instead of cat because bash on DJGPP gets confused if
7849 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7850 # text mode, it properly converts lines to CR/LF. This bash problem
7851 # is reportedly fixed, but why not run on old versions too?
7852 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7854 mv -f "${ofile}T" "$ofile" || \
7855 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7863 # This can be used to rebuild libtool when needed
7864 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7866 # Always use our own libtool.
7867 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7869 # Prevent multiple expansion
7873 # test for ln hardlink support
7874 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7875 echo "configure:7876: checking whether ln works" >&5
7876 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7879 rm -f conftest.src conftest.dst
7880 echo "conftest" > conftest.src
7881 if ln conftest.src conftest.dst 2>/dev/null
7883 ol_cv_prog_LN_H="ln"
7885 ol_cv_prog_LN_H="cp"
7887 rm -f conftest.src conftest.dst
7890 LN_H="$ol_cv_prog_LN_H"
7891 if test "$ol_cv_prog_LN_H" = "ln"; then
7892 echo "$ac_t""yes" 1>&6
7894 echo "$ac_t""no" 1>&6
7897 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7898 echo "configure:7899: checking whether ln -s works" >&5
7899 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7903 if ln -s X conftestdata 2>/dev/null
7906 ac_cv_prog_LN_S="ln -s"
7911 LN_S="$ac_cv_prog_LN_S"
7912 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7913 echo "$ac_t""yes" 1>&6
7915 echo "$ac_t""no" 1>&6
7920 if test $ol_enable_perl != no ; then
7921 # Extract the first word of "perl", so it can be a program name with args.
7922 set dummy perl; ac_word=$2
7923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_word" >&5
7925 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7930 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7933 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7938 for ac_dir in $ac_dummy; do
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/$ac_word; then
7941 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7946 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7950 PERLBIN="$ac_cv_path_PERLBIN"
7951 if test -n "$PERLBIN"; then
7952 echo "$ac_t""$PERLBIN" 1>&6
7954 echo "$ac_t""no" 1>&6
7958 if test "no$PERLBIN" = "no" ; then
7959 if test $ol_enable_perl = yes ; then
7960 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7964 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7965 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7967 if test x"$ol_with_perl_module" = "xstatic" ; then
7968 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7970 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7976 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7977 echo "configure:7978: checking how to run the C preprocessor" >&5
7978 # On Suns, sometimes $CPP names a directory.
7979 if test -n "$CPP" && test -d "$CPP"; then
7982 if test -z "$CPP"; then
7983 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 # This must be in double quotes, not single quotes, because CPP may get
7987 # substituted into the Makefile and "${CC-cc}" will confuse make.
7989 # On the NeXT, cc -E runs the code through the compiler's parser,
7990 # not just through cpp.
7991 cat > conftest.$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7998 { (eval echo configure:7999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8000 if test -z "$ac_err"; then
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 CPP="${CC-cc} -E -traditional-cpp"
8008 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure"
8010 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8021 echo "configure: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8024 CPP="${CC-cc} -nologo -E"
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8032 { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8034 if test -z "$ac_err"; then
8038 echo "configure: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8048 ac_cv_prog_CPP="$CPP"
8050 CPP="$ac_cv_prog_CPP"
8052 ac_cv_prog_CPP="$CPP"
8054 echo "$ac_t""$CPP" 1>&6
8057 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8058 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8060 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8061 echo "configure: warning: programs compiled here do run here..." 1>&2
8062 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8064 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8065 echo "configure: warning: programs compiled here do not run here..." 1>&2
8066 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8070 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8071 echo "configure:8072: checking for Cygwin environment" >&5
8072 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8073 echo $ac_n "(cached) $ac_c" 1>&6
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8082 #define __CYGWIN__ __CYGWIN32__
8087 if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8099 echo "$ac_t""$ac_cv_cygwin" 1>&6
8101 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8102 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8103 echo "configure:8104: checking for mingw32 environment" >&5
8104 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8115 if { (eval echo configure:8116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8119 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5
8127 echo "$ac_t""$ac_cv_mingw32" 1>&6
8129 test "$ac_cv_mingw32" = yes && MINGW32=yes
8133 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8134 echo "configure:8135: checking for executable suffix" >&5
8135 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8138 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8142 echo 'int main () { return 0; }' > conftest.$ac_ext
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8145 for file in conftest.*; do
8147 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8148 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8152 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8155 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8160 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8161 echo "$ac_t""${ac_cv_exeext}" 1>&6
8164 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8165 echo "configure:8166: checking for object suffix" >&5
8166 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8167 echo $ac_n "(cached) $ac_c" 1>&6
8170 echo 'int i = 1;' > conftest.$ac_ext
8171 if { (eval echo configure:8172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8172 for ac_file in conftest.*; do
8175 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8179 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8184 echo "$ac_t""$ac_cv_objext" 1>&6
8185 OBJEXT=$ac_cv_objext
8186 ac_objext=$ac_cv_objext
8189 cat >> confdefs.h <<EOF
8190 #define EXEEXT "${EXEEXT}"
8194 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8195 echo "configure:8196: checking for be_app in -lbe" >&5
8196 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8197 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 ac_save_LIBS="$LIBS"
8201 LIBS="-lbe -lroot -lnet $LIBS"
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 eval "ac_cv_lib_$ac_lib_var=yes"
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 eval "ac_cv_lib_$ac_lib_var=no"
8224 LIBS="$ac_save_LIBS"
8227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8229 LIBS="$LIBS -lbe -lroot -lnet"
8231 echo "$ac_t""no" 1>&6
8239 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8240 echo "configure:8241: checking for ${CC-cc} option to accept ANSI C" >&5
8241 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 am_cv_prog_cc_stdc=no
8246 # Don't try gcc -ansi; that turns off useful extensions and
8247 # breaks some systems' header files.
8248 # AIX -qlanglvl=ansi
8249 # Ultrix and OSF/1 -std1
8250 # HP-UX 10.20 and later -Ae
8251 # HP-UX older versions -Aa -D_HPUX_SOURCE
8252 # SVR4 -Xc -D__EXTENSIONS__
8253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8255 CC="$ac_save_CC $ac_arg"
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8258 "configure"
8258 #include "confdefs.h"
8261 #include <sys/types.h>
8262 #include <sys/stat.h>
8263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8264 struct buf { int x; };
8265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8266 static char *e (p, i)
8272 static char *f (char * (*g) (char **, int), char **p, ...)
8277 s = g (p, va_arg (v,int));
8281 int test (int i, double x);
8282 struct s1 {int (*f) (int a);};
8283 struct s2 {int (*f) (double a);};
8284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8290 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8294 if { (eval echo configure:8295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8296 am_cv_prog_cc_stdc="$ac_arg"; break
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8307 if test -z "$am_cv_prog_cc_stdc"; then
8308 echo "$ac_t""none needed" 1>&6
8310 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8312 case "x$am_cv_prog_cc_stdc" in
8314 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8317 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8318 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8321 # test for make depend flag
8324 if test -z "${MKDEP}"; then
8326 if test -z "${MKDEP_FLAGS}"; then
8327 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8328 echo "configure:8329: checking for ${OL_MKDEP} depend flag" >&5
8329 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8330 echo $ac_n "(cached) $ac_c" 1>&6
8334 for flag in "-M" "-xM"; do
8335 cat > conftest.c <<EOF
8338 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8339 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8341 if test ! -f conftest."${ac_object}" ; then
8343 OL_MKDEP_FLAGS="$flag"
8352 echo "$ac_t""$ol_cv_mkdep" 1>&6
8355 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8360 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8365 if test "${ol_cv_mkdep}" = no ; then
8366 # this will soon become an error
8367 echo "configure: warning: do not know how to generate dependencies" 1>&2
8370 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8371 echo "configure:8372: checking for afopen in -ls" >&5
8372 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8376 ac_save_LIBS="$LIBS"
8378 cat > conftest.$ac_ext <<EOF
8379 #line 8380 "configure"
8380 #include "confdefs.h"
8381 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 eval "ac_cv_lib_$ac_lib_var=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_lib_$ac_lib_var=no"
8400 LIBS="$ac_save_LIBS"
8403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8404 echo "$ac_t""yes" 1>&6
8407 cat >> confdefs.h <<\EOF
8408 #define HAVE_AIX_SECURITY 1
8413 echo "$ac_t""no" 1>&6
8419 ac_cv_func_getopt=no
8420 cat >> confdefs.h <<\EOF
8421 #define BOTH_STRINGS_H 1
8428 if test $ol_enable_modules != no ; then
8429 for ac_hdr in ltdl.h
8431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_hdr" >&5
8434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then
8447 eval "ac_cv_header_$ac_safe=yes"
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8453 eval "ac_cv_header_$ac_safe=no"
8457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8460 cat >> confdefs.h <<EOF
8461 #define $ac_tr_hdr 1
8465 echo "$ac_t""no" 1>&6
8470 if test $ac_cv_header_ltdl_h = no ; then
8471 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8474 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8475 echo "configure:8476: checking for lt_dlinit in -lltdl" >&5
8476 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8477 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8480 ac_save_LIBS="$LIBS"
8482 cat > conftest.$ac_ext <<EOF
8483 #line 8484 "configure"
8484 #include "confdefs.h"
8485 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8494 if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8496 eval "ac_cv_lib_$ac_lib_var=yes"
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8501 eval "ac_cv_lib_$ac_lib_var=no"
8504 LIBS="$ac_save_LIBS"
8507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8508 echo "$ac_t""yes" 1>&6
8511 cat >> confdefs.h <<\EOF
8512 #define HAVE_LIBLTDL 1
8517 echo "$ac_t""no" 1>&6
8521 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8522 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8526 ol_with_bdb_module=static
8527 ol_with_dnssrv_module=static
8528 ol_with_hdb_module=static
8529 ol_with_ldap_module=static
8530 ol_with_ldbm_module=static
8531 ol_with_meta_module=static
8532 ol_with_monitor_module=static
8533 ol_with_null_module=static
8534 ol_with_passwd_module=static
8535 ol_with_perl_module=static
8536 ol_with_shell_module=static
8537 ol_with_sql_module=static
8538 if test $ol_with_dyngroup = mod ; then
8539 echo "configure: warning: building static dyngroup overlay" 1>&2
8540 ol_with_dyngroup = yes
8542 if test $ol_with_proxycache = mod ; then
8543 echo "configure: warning: building static proxycache overlay" 1>&2
8544 ol_with_proxycache = yes
8546 if test $ol_with_rwm = mod ; then
8547 echo "configure: warning: building static rwm overlay" 1>&2
8553 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8554 echo "configure:8555: checking for EBCDIC" >&5
8555 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8559 cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8564 #include <__ASCII__/generate_error.h>
8568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8569 { (eval echo configure:8570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8571 if test -z "$ac_err"; then
8573 ol_cv_cpp_ebcdic=yes
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8584 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8585 if test $ol_cv_cpp_ebcdic = yes ; then
8586 cat >> confdefs.h <<\EOF
8587 #define HAVE_EBCDIC 1
8592 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8593 echo "configure:8594: checking for ANSI C header files" >&5
8594 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8595 echo $ac_n "(cached) $ac_c" 1>&6
8597 cat > conftest.$ac_ext <<EOF
8598 #line 8599 "configure"
8599 #include "confdefs.h"
8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8608 if test -z "$ac_err"; then
8610 ol_cv_header_stdc=yes
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 ol_cv_header_stdc=no
8620 if test $ol_cv_header_stdc = yes; then
8621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8622 cat > conftest.$ac_ext <<EOF
8623 #line 8624 "configure"
8624 #include "confdefs.h"
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 egrep "memchr" >/dev/null 2>&1; then
8632 ol_cv_header_stdc=no
8638 if test $ol_cv_header_stdc = yes; then
8639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 egrep "free" >/dev/null 2>&1; then
8650 ol_cv_header_stdc=no
8656 if test $ol_cv_header_stdc = yes; then
8657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8658 if test "$cross_compiling" = yes; then
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8669 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8670 || ('j' <= (c) && (c) <= 'r') \
8671 || ('s' <= (c) && (c) <= 'z'))
8672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8675 int main () { int i; for (i = 0; i < 256; i++)
8676 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8680 if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 ol_cv_header_stdc=no
8695 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8696 if test $ol_cv_header_stdc = yes; then
8697 cat >> confdefs.h <<\EOF
8698 #define STDC_HEADERS 1
8702 ac_cv_header_stdc=disable
8705 if test $ol_cv_header_stdc != yes; then
8706 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8713 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8714 echo "configure:8715: checking for $ac_hdr that defines DIR" >&5
8715 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8718 cat > conftest.$ac_ext <<EOF
8719 #line 8720 "configure"
8720 #include "confdefs.h"
8721 #include <sys/types.h>
8727 if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8729 eval "ac_cv_header_dirent_$ac_safe=yes"
8731 echo "configure: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8734 eval "ac_cv_header_dirent_$ac_safe=no"
8738 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8739 echo "$ac_t""yes" 1>&6
8740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8741 cat >> confdefs.h <<EOF
8742 #define $ac_tr_hdr 1
8744 ac_header_dirent=$ac_hdr; break
8746 echo "$ac_t""no" 1>&6
8749 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8750 if test $ac_header_dirent = dirent.h; then
8751 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8752 echo "configure:8753: checking for opendir in -ldir" >&5
8753 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8757 ac_save_LIBS="$LIBS"
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 /* Override any gcc2 internal prototype to avoid an error. */
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8773 eval "ac_cv_lib_$ac_lib_var=yes"
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8778 eval "ac_cv_lib_$ac_lib_var=no"
8781 LIBS="$ac_save_LIBS"
8784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8785 echo "$ac_t""yes" 1>&6
8788 echo "$ac_t""no" 1>&6
8792 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8793 echo "configure:8794: checking for opendir in -lx" >&5
8794 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8796 echo $ac_n "(cached) $ac_c" 1>&6
8798 ac_save_LIBS="$LIBS"
8800 cat > conftest.$ac_ext <<EOF
8801 #line 8802 "configure"
8802 #include "confdefs.h"
8803 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8812 if { (eval echo configure:8813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8814 eval "ac_cv_lib_$ac_lib_var=yes"
8816 echo "configure: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8819 eval "ac_cv_lib_$ac_lib_var=no"
8822 LIBS="$ac_save_LIBS"
8825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8826 echo "$ac_t""yes" 1>&6
8829 echo "$ac_t""no" 1>&6
8834 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8835 echo "configure:8836: checking for sys/wait.h that is POSIX.1 compatible" >&5
8836 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8837 echo $ac_n "(cached) $ac_c" 1>&6
8839 cat > conftest.$ac_ext <<EOF
8840 #line 8841 "configure"
8841 #include "confdefs.h"
8842 #include <sys/types.h>
8843 #include <sys/wait.h>
8845 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8848 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8853 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8856 if { (eval echo configure:8857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8858 ac_cv_header_sys_wait_h=yes
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8863 ac_cv_header_sys_wait_h=no
8868 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8869 if test $ac_cv_header_sys_wait_h = yes; then
8870 cat >> confdefs.h <<\EOF
8871 #define HAVE_SYS_WAIT_H 1
8876 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8877 echo "configure:8878: checking POSIX termios" >&5
8878 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8881 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure"
8883 #include "confdefs.h"
8884 #include <sys/types.h>
8886 #include <termios.h>
8888 /* SunOS 4.0.3 has termios.h but not the library calls. */
8892 if { (eval echo configure:8893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8894 am_cv_sys_posix_termios=yes
8896 echo "configure: failed program was:" >&5
8897 cat conftest.$ac_ext >&5
8899 am_cv_sys_posix_termios=no
8904 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8907 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8908 echo "configure:8909: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8909 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8914 gwinsz_in_termios_h=no
8915 if test $am_cv_sys_posix_termios = yes; then
8916 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure"
8918 #include "confdefs.h"
8919 #include <sys/types.h>
8920 # include <termios.h>
8926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8927 egrep "yes" >/dev/null 2>&1; then
8929 gwinsz_in_termios_h=yes
8935 if test $gwinsz_in_termios_h = no; then
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 #include <sys/types.h>
8940 # include <sys/ioctl.h>
8946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947 egrep "yes" >/dev/null 2>&1; then
8949 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8957 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8958 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8959 cat >> confdefs.h <<\EOF
8960 #define GWINSZ_IN_SYS_IOCTL 1
8965 if test $am_cv_sys_posix_termios = yes ; then
8966 cat >> confdefs.h <<\EOF
8967 #define HAVE_POSIX_TERMIOS 1
9023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9025 echo "configure:9026: checking for $ac_hdr" >&5
9026 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9029 cat > conftest.$ac_ext <<EOF
9030 #line 9031 "configure"
9031 #include "confdefs.h"
9034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9035 { (eval echo configure:9036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9037 if test -z "$ac_err"; then
9039 eval "ac_cv_header_$ac_safe=yes"
9042 echo "configure: failed program was:" >&5
9043 cat conftest.$ac_ext >&5
9045 eval "ac_cv_header_$ac_safe=no"
9049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9050 echo "$ac_t""yes" 1>&6
9051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9052 cat >> confdefs.h <<EOF
9053 #define $ac_tr_hdr 1
9057 echo "$ac_t""no" 1>&6
9064 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9065 echo "configure:9066: checking for sigset in -lV3" >&5
9066 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
9070 ac_save_LIBS="$LIBS"
9072 cat > conftest.$ac_ext <<EOF
9073 #line 9074 "configure"
9074 #include "confdefs.h"
9075 /* Override any gcc2 internal prototype to avoid an error. */
9076 /* We use char because int might match the return type of a gcc2
9077 builtin and then its argument prototype would still apply. */
9084 if { (eval echo configure:9085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9086 eval "ac_cv_lib_$ac_lib_var=yes"
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9091 eval "ac_cv_lib_$ac_lib_var=no"
9094 LIBS="$ac_save_LIBS"
9097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9098 echo "$ac_t""yes" 1>&6
9099 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9101 cat >> confdefs.h <<EOF
9102 #define $ac_tr_lib 1
9108 echo "$ac_t""no" 1>&6
9112 if test "$ac_cv_header_winsock_h" = yes; then
9113 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9114 echo "configure:9115: checking for winsock" >&5
9115 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9119 for curlib in ws2_32 wsock32; do
9120 LIBS="$LIBS -l$curlib"
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <winsock.h>
9129 select(0,NULL,NULL,NULL,NULL);
9131 gethostname(NULL,0);
9135 if { (eval echo configure:9136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9146 if test $ol_cv_winsock = yes; then
9147 cat >> confdefs.h <<\EOF
9148 #define HAVE_WINSOCK 1
9151 ac_cv_func_socket=yes
9152 ac_cv_func_select=yes
9153 ac_cv_func_closesocket=yes
9154 ac_cv_func_gethostname=yes
9155 if test $curlib = ws2_32; then
9156 ol_cv_winsock=winsock2
9157 cat >> confdefs.h <<\EOF
9158 #define HAVE_WINSOCK2 1
9168 echo "$ac_t""$ol_cv_winsock" 1>&6
9172 echo $ac_n "checking for socket""... $ac_c" 1>&6
9173 echo "configure:9174: checking for socket" >&5
9174 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9180 /* System header to define __stub macros and hopefully few prototypes,
9181 which can conflict with char socket(); below. */
9183 /* Override any gcc2 internal prototype to avoid an error. */
9184 /* We use char because int might match the return type of a gcc2
9185 builtin and then its argument prototype would still apply. */
9191 /* The GNU C library defines this for functions which it implements
9192 to always fail with ENOSYS. Some functions are actually named
9193 something starting with __ and the normal name is an alias. */
9194 #if defined (__stub_socket) || defined (__stub___socket)
9202 if { (eval echo configure:9203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9204 eval "ac_cv_func_socket=yes"
9206 echo "configure: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 eval "ac_cv_func_socket=no"
9214 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9215 echo "$ac_t""yes" 1>&6
9218 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9221 echo "configure:9222: checking for main in -lsocket" >&5
9222 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9224 echo $ac_n "(cached) $ac_c" 1>&6
9226 ac_save_LIBS="$LIBS"
9227 LIBS="-lsocket $LIBS"
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9236 if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9238 eval "ac_cv_lib_$ac_lib_var=yes"
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 eval "ac_cv_lib_$ac_lib_var=no"
9246 LIBS="$ac_save_LIBS"
9249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9250 echo "$ac_t""yes" 1>&6
9251 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9252 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9253 cat >> confdefs.h <<EOF
9254 #define $ac_tr_lib 1
9257 LIBS="-lsocket $LIBS"
9260 echo "$ac_t""no" 1>&6
9263 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9264 echo "configure:9265: checking for main in -lnet" >&5
9265 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9269 ac_save_LIBS="$LIBS"
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 eval "ac_cv_lib_$ac_lib_var=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 eval "ac_cv_lib_$ac_lib_var=no"
9289 LIBS="$ac_save_LIBS"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296 cat >> confdefs.h <<EOF
9297 #define $ac_tr_lib 1
9303 echo "$ac_t""no" 1>&6
9306 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9307 echo "configure:9308: checking for main in -lnsl_s" >&5
9308 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 ac_save_LIBS="$LIBS"
9313 LIBS="-lnsl_s $LIBS"
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 eval "ac_cv_lib_$ac_lib_var=yes"
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9329 eval "ac_cv_lib_$ac_lib_var=no"
9332 LIBS="$ac_save_LIBS"
9335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9336 echo "$ac_t""yes" 1>&6
9337 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9339 cat >> confdefs.h <<EOF
9340 #define $ac_tr_lib 1
9343 LIBS="-lnsl_s $LIBS"
9346 echo "$ac_t""no" 1>&6
9349 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9350 echo "configure:9351: checking for main in -lnsl" >&5
9351 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9355 ac_save_LIBS="$LIBS"
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9367 eval "ac_cv_lib_$ac_lib_var=yes"
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9372 eval "ac_cv_lib_$ac_lib_var=no"
9375 LIBS="$ac_save_LIBS"
9378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9379 echo "$ac_t""yes" 1>&6
9380 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9382 cat >> confdefs.h <<EOF
9383 #define $ac_tr_lib 1
9389 echo "$ac_t""no" 1>&6
9392 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9393 echo "configure:9394: checking for socket in -linet" >&5
9394 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9395 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9398 ac_save_LIBS="$LIBS"
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 eval "ac_cv_lib_$ac_lib_var=yes"
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9419 eval "ac_cv_lib_$ac_lib_var=no"
9422 LIBS="$ac_save_LIBS"
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9427 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9429 cat >> confdefs.h <<EOF
9430 #define $ac_tr_lib 1
9436 echo "$ac_t""no" 1>&6
9439 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9440 echo "configure:9441: checking for main in -lgen" >&5
9441 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9442 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9445 ac_save_LIBS="$LIBS"
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9457 eval "ac_cv_lib_$ac_lib_var=yes"
9459 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5
9462 eval "ac_cv_lib_$ac_lib_var=no"
9465 LIBS="$ac_save_LIBS"
9468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9469 echo "$ac_t""yes" 1>&6
9470 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9471 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9472 cat >> confdefs.h <<EOF
9473 #define $ac_tr_lib 1
9479 echo "$ac_t""no" 1>&6
9486 echo $ac_n "checking for select""... $ac_c" 1>&6
9487 echo "configure:9488: checking for select" >&5
9488 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9491 cat > conftest.$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9494 /* System header to define __stub macros and hopefully few prototypes,
9495 which can conflict with char select(); below. */
9497 /* Override any gcc2 internal prototype to avoid an error. */
9498 /* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9505 /* The GNU C library defines this for functions which it implements
9506 to always fail with ENOSYS. Some functions are actually named
9507 something starting with __ and the normal name is an alias. */
9508 #if defined (__stub_select) || defined (__stub___select)
9516 if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9518 eval "ac_cv_func_select=yes"
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9523 eval "ac_cv_func_select=no"
9528 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9529 echo "$ac_t""yes" 1>&6
9532 echo "$ac_t""no" 1>&6
9533 { echo "configure: error: select() required." 1>&2; exit 1; }
9537 if test "${ac_cv_header_winsock_h}" != yes; then
9538 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9539 echo "configure:9540: checking types of arguments for select()" >&5
9540 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9543 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9546 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9549 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9550 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9551 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9555 #ifdef HAVE_SYS_TYPES_H
9556 #include <sys/types.h>
9558 #ifdef HAVE_SYS_TIME_H
9559 #include <sys/time.h>
9561 #ifdef HAVE_SYS_SELECT_H
9562 #include <sys/select.h>
9564 #ifdef HAVE_SYS_SOCKET_H
9565 #include <sys/socket.h>
9567 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);
9572 if { (eval echo configure:9573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9574 ac_not_found=no ; break 3
9576 echo "configure: failed program was:" >&5
9577 cat conftest.$ac_ext >&5
9591 if test "$ac_not_found" = yes; then
9592 ac_cv_func_select_arg1=int
9593 ac_cv_func_select_arg234='int *'
9594 ac_cv_func_select_arg5='struct timeval *'
9596 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9597 cat >> confdefs.h <<EOF
9598 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9601 cat >> confdefs.h <<EOF
9602 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9605 cat >> confdefs.h <<EOF
9606 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9613 for ac_hdr in regex.h
9615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9617 echo "configure:9618: checking for $ac_hdr" >&5
9618 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9627 { (eval echo configure:9628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9629 if test -z "$ac_err"; then
9631 eval "ac_cv_header_$ac_safe=yes"
9634 echo "configure: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9637 eval "ac_cv_header_$ac_safe=no"
9641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9642 echo "$ac_t""yes" 1>&6
9643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9644 cat >> confdefs.h <<EOF
9645 #define $ac_tr_hdr 1
9649 echo "$ac_t""no" 1>&6
9653 if test "$ac_cv_header_regex_h" != yes ; then
9654 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9657 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9658 echo "configure:9659: checking for library containing regfree" >&5
9659 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9662 ac_func_search_save_LIBS="$LIBS"
9663 ac_cv_search_regfree="no"
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9678 ac_cv_search_regfree="none required"
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9684 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 /* Override any gcc2 internal prototype to avoid an error. */
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9700 ac_cv_search_regfree="-l$ac_lib"
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9708 LIBS="$ac_func_search_save_LIBS"
9711 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9712 if test "$ac_cv_search_regfree" != "no"; then
9713 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9716 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9720 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9721 echo "configure:9722: checking for compatible POSIX regex" >&5
9722 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9723 echo $ac_n "(cached) $ac_c" 1>&6
9726 if test "$cross_compiling" = yes; then
9727 ol_cv_c_posix_regex=cross
9729 cat > conftest.$ac_ext <<EOF
9730 #line 9731 "configure"
9731 #include "confdefs.h"
9733 #include <sys/types.h>
9735 static char *pattern, *string;
9743 if(regcomp(&re, pattern, 0)) {
9747 string = "ALL MATCH";
9749 rc = regexec(&re, string, 0, (void*)0, 0);
9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9758 ol_cv_c_posix_regex=yes
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9763 ol_cv_c_posix_regex=no
9770 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9772 if test "$ol_cv_c_posix_regex" = no ; then
9773 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9778 for ac_hdr in sys/uuid.h
9780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9782 echo "configure:9783: checking for $ac_hdr" >&5
9783 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9786 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9792 { (eval echo configure:9793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9794 if test -z "$ac_err"; then
9796 eval "ac_cv_header_$ac_safe=yes"
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9802 eval "ac_cv_header_$ac_safe=no"
9806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9807 echo "$ac_t""yes" 1>&6
9808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9809 cat >> confdefs.h <<EOF
9810 #define $ac_tr_hdr 1
9814 echo "$ac_t""no" 1>&6
9818 if test $ac_cv_header_sys_uuid_h = yes ; then
9821 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9822 echo "configure:9823: checking for library containing uuid_to_str" >&5
9823 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9826 ac_func_search_save_LIBS="$LIBS"
9827 ac_cv_search_uuid_to_str="no"
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9840 if { (eval echo configure:9841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9842 ac_cv_search_uuid_to_str="none required"
9844 echo "configure: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9848 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9864 ac_cv_search_uuid_to_str="-l$ac_lib"
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9872 LIBS="$ac_func_search_save_LIBS"
9875 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9876 if test "$ac_cv_search_uuid_to_str" != "no"; then
9877 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9884 if test have_uuid = yes ; then
9885 cat >> confdefs.h <<\EOF
9886 #define HAVE_UUID_TO_STR 1
9890 test "$ac_cv_search_uuid_to_str" = "none required" || \
9891 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9895 if test $have_uuid = no ; then
9896 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9897 echo "configure:9898: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9899 LIBS="$LIBS -lrpcrt4"
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9902 "configure"
9902 #include "confdefs.h"
9904 int __stdcall UuidCreate(void *);
9905 int __stdcall UuidToStringA(void *,void **);
9914 if { (eval echo configure:9915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9924 if test $need_rpcrt = yes; then
9925 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9928 echo "$ac_t""$need_rpcrt" 1>&6
9932 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9933 echo "configure:9934: checking for res_query" >&5
9934 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9935 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 /* System header to define __stub macros and hopefully few prototypes,
9941 which can conflict with char res_query(); below. */
9943 /* Override any gcc2 internal prototype to avoid an error. */
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9951 /* The GNU C library defines this for functions which it implements
9952 to always fail with ENOSYS. Some functions are actually named
9953 something starting with __ and the normal name is an alias. */
9954 #if defined (__stub_res_query) || defined (__stub___res_query)
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9964 eval "ac_cv_func_res_query=yes"
9966 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5
9969 eval "ac_cv_func_res_query=no"
9974 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9975 echo "$ac_t""yes" 1>&6
9978 echo "$ac_t""no" 1>&6
9981 if test $ac_cv_func_res_query = no ; then
9982 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9983 echo "configure:9984: checking for __res_query" >&5
9984 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 /* System header to define __stub macros and hopefully few prototypes,
9991 which can conflict with char __res_query(); below. */
9993 /* Override any gcc2 internal prototype to avoid an error. */
9994 /* We use char because int might match the return type of a gcc2
9995 builtin and then its argument prototype would still apply. */
10001 /* The GNU C library defines this for functions which it implements
10002 to always fail with ENOSYS. Some functions are actually named
10003 something starting with __ and the normal name is an alias. */
10004 #if defined (__stub___res_query) || defined (__stub_____res_query)
10012 if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10014 eval "ac_cv_func___res_query=yes"
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10019 eval "ac_cv_func___res_query=no"
10024 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10028 echo "$ac_t""no" 1>&6
10031 ac_cv_func_res_query=$ac_cv_func___res_query
10034 if test $ac_cv_func_res_query = no ; then
10035 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10036 echo "configure:10037: checking for res_query in -lbind" >&5
10037 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10041 ac_save_LIBS="$LIBS"
10042 LIBS="-lbind $LIBS"
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10055 if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10057 eval "ac_cv_lib_$ac_lib_var=yes"
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10062 eval "ac_cv_lib_$ac_lib_var=no"
10065 LIBS="$ac_save_LIBS"
10068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10072 cat >> confdefs.h <<EOF
10073 #define $ac_tr_lib 1
10076 LIBS="-lbind $LIBS"
10079 echo "$ac_t""no" 1>&6
10082 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10085 if test $ac_cv_func_res_query = no ; then
10086 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10087 echo "configure:10088: checking for __res_query in -lbind" >&5
10088 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10089 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10090 echo $ac_n "(cached) $ac_c" 1>&6
10092 ac_save_LIBS="$LIBS"
10093 LIBS="-lbind $LIBS"
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10100 char __res_query();
10106 if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10108 eval "ac_cv_lib_$ac_lib_var=yes"
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10113 eval "ac_cv_lib_$ac_lib_var=no"
10116 LIBS="$ac_save_LIBS"
10119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10123 cat >> confdefs.h <<EOF
10124 #define $ac_tr_lib 1
10127 LIBS="-lbind $LIBS"
10130 echo "$ac_t""no" 1>&6
10133 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10136 if test $ac_cv_func_res_query = no ; then
10137 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10138 echo "configure:10139: checking for res_query in -lresolv" >&5
10139 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10140 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10141 echo $ac_n "(cached) $ac_c" 1>&6
10143 ac_save_LIBS="$LIBS"
10144 LIBS="-lresolv $LIBS"
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 /* Override any gcc2 internal prototype to avoid an error. */
10149 /* We use char because int might match the return type of a gcc2
10150 builtin and then its argument prototype would still apply. */
10157 if { (eval echo configure:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10159 eval "ac_cv_lib_$ac_lib_var=yes"
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 eval "ac_cv_lib_$ac_lib_var=no"
10167 LIBS="$ac_save_LIBS"
10170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10171 echo "$ac_t""yes" 1>&6
10172 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10173 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10174 cat >> confdefs.h <<EOF
10175 #define $ac_tr_lib 1
10178 LIBS="-lresolv $LIBS"
10181 echo "$ac_t""no" 1>&6
10184 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10187 if test $ac_cv_func_res_query = no ; then
10188 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10189 echo "configure:10190: checking for __res_query in -lresolv" >&5
10190 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 ac_save_LIBS="$LIBS"
10195 LIBS="-lresolv $LIBS"
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10202 char __res_query();
10208 if { (eval echo configure:10209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10210 eval "ac_cv_lib_$ac_lib_var=yes"
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10215 eval "ac_cv_lib_$ac_lib_var=no"
10218 LIBS="$ac_save_LIBS"
10221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10222 echo "$ac_t""yes" 1>&6
10223 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10225 cat >> confdefs.h <<EOF
10226 #define $ac_tr_lib 1
10229 LIBS="-lresolv $LIBS"
10232 echo "$ac_t""no" 1>&6
10235 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10238 if test "$ac_cv_func_res_query" = yes ; then
10239 cat >> confdefs.h <<\EOF
10240 #define HAVE_RES_QUERY 1
10244 if test $ol_enable_dnssrv != no ; then
10249 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10250 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10253 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10256 echo "configure:10257: checking for $ac_func" >&5
10257 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char $ac_func(); below. */
10265 #include <assert.h>
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 /* We use char because int might match the return type of a gcc2
10268 builtin and then its argument prototype would still apply. */
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10285 if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10287 eval "ac_cv_func_$ac_func=yes"
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10292 eval "ac_cv_func_$ac_func=no"
10297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10300 cat >> confdefs.h <<EOF
10301 #define $ac_tr_func 1
10305 echo "$ac_t""no" 1>&6
10311 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10312 if test $ol_enable_ipv6 = yes ; then
10313 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10315 elif test $ol_enable_ipv6 != no ; then
10316 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10317 echo "configure:10318: checking INET6_ADDRSTRLEN" >&5
10318 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10326 # include <netinet/in.h>
10327 # ifdef INET6_ADDRSTRLEN
10328 __has_inet6_addrstrlen__;
10332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10333 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10335 ol_cv_inet6_addrstrlen=yes
10338 ol_cv_inet6_addrstrlen=no
10344 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10347 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10348 echo "configure:10349: checking struct sockaddr_storage" >&5
10349 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10357 #include <sys/types.h>
10358 #include <sys/socket.h>
10362 struct sockaddr_storage ss;
10366 if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10368 ol_cv_struct_sockaddr_storage=yes
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10373 ol_cv_struct_sockaddr_storage=no
10378 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10380 if test $ol_cv_inet6_addrstrlen = yes \
10381 -a $ol_cv_struct_sockaddr_storage = yes ; then
10383 elif test $ol_enable_ipv6 = yes \
10384 -a $ol_cv_inet6_addrstrlen = no ; then
10385 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10386 elif test $ol_enable_ipv6 = yes \
10387 -a $ol_cv_struct_sockaddr_storage = no ; then
10388 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10392 if test $ol_enable_local != no ; then
10393 for ac_hdr in sys/un.h
10395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10397 echo "configure:10398: checking for $ac_hdr" >&5
10398 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10407 { (eval echo configure:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10409 if test -z "$ac_err"; then
10411 eval "ac_cv_header_$ac_safe=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_header_$ac_safe=no"
10421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10422 echo "$ac_t""yes" 1>&6
10423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10424 cat >> confdefs.h <<EOF
10425 #define $ac_tr_hdr 1
10429 echo "$ac_t""no" 1>&6
10434 if test $ol_enable_local = auto ; then
10435 ol_enable_local=$ac_cv_header_sys_un_h
10436 elif test $ac_cv_header_sys_un_h = no ; then
10437 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10446 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10447 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10448 -o $ol_with_kerberos = k425 ; then
10450 for ac_hdr in krb5.h
10452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10454 echo "configure:10455: checking for $ac_hdr" >&5
10455 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10458 cat > conftest.$ac_ext <<EOF
10459 #line 10460 "configure"
10460 #include "confdefs.h"
10463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10464 { (eval echo configure:10465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10466 if test -z "$ac_err"; then
10468 eval "ac_cv_header_$ac_safe=yes"
10471 echo "configure: failed program was:" >&5
10472 cat conftest.$ac_ext >&5
10474 eval "ac_cv_header_$ac_safe=no"
10478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10481 cat >> confdefs.h <<EOF
10482 #define $ac_tr_hdr 1
10486 echo "$ac_t""no" 1>&6
10491 if test $ac_cv_header_krb5_h = yes ; then
10492 for ac_hdr in heim_err.h
10494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10496 echo "configure:10497: checking for $ac_hdr" >&5
10497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10498 echo $ac_n "(cached) $ac_c" 1>&6
10500 cat > conftest.$ac_ext <<EOF
10501 #line 10502 "configure"
10502 #include "confdefs.h"
10505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10506 { (eval echo configure:10507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10508 if test -z "$ac_err"; then
10510 eval "ac_cv_header_$ac_safe=yes"
10513 echo "configure: failed program was:" >&5
10514 cat conftest.$ac_ext >&5
10516 eval "ac_cv_header_$ac_safe=no"
10520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10521 echo "$ac_t""yes" 1>&6
10522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10523 cat >> confdefs.h <<EOF
10524 #define $ac_tr_hdr 1
10528 echo "$ac_t""no" 1>&6
10532 if test $ac_cv_header_heim_err_h = yes ; then
10538 if test $krb5_impl = mit; then
10539 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10540 echo "configure:10541: checking for main in -lk5crypto" >&5
10541 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10543 echo $ac_n "(cached) $ac_c" 1>&6
10545 ac_save_LIBS="$LIBS"
10546 LIBS="-lk5crypto $LIBS"
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10549 "configure"
10549 #include "confdefs.h"
10555 if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10557 eval "ac_cv_lib_$ac_lib_var=yes"
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10562 eval "ac_cv_lib_$ac_lib_var=no"
10565 LIBS="$ac_save_LIBS"
10568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 krb5crypto=k5crypto
10572 echo "$ac_t""no" 1>&6
10577 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10578 echo "configure:10579: checking for main in -lkrb5" >&5
10579 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10580 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10581 echo $ac_n "(cached) $ac_c" 1>&6
10583 ac_save_LIBS="$LIBS"
10584 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10585 cat > conftest.$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 eval "ac_cv_lib_$ac_lib_var=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_lib_$ac_lib_var=no"
10603 LIBS="$ac_save_LIBS"
10606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10609 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10611 echo "$ac_t""no" 1>&6
10616 elif test $krb5_impl = heimdal; then
10617 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10618 echo "configure:10619: checking for main in -ldes" >&5
10619 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10620 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10621 echo $ac_n "(cached) $ac_c" 1>&6
10623 ac_save_LIBS="$LIBS"
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10633 if { (eval echo configure:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10635 eval "ac_cv_lib_$ac_lib_var=yes"
10637 echo "configure: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10640 eval "ac_cv_lib_$ac_lib_var=no"
10643 LIBS="$ac_save_LIBS"
10646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10647 echo "$ac_t""yes" 1>&6
10650 echo "$ac_t""no" 1>&6
10655 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10656 echo "configure:10657: checking for main in -lkrb5" >&5
10657 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10661 ac_save_LIBS="$LIBS"
10662 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10671 if { (eval echo configure:10672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10673 eval "ac_cv_lib_$ac_lib_var=yes"
10675 echo "configure: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10678 eval "ac_cv_lib_$ac_lib_var=no"
10681 LIBS="$ac_save_LIBS"
10684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10685 echo "$ac_t""yes" 1>&6
10687 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10689 echo "$ac_t""no" 1>&6
10694 cat >> confdefs.h <<\EOF
10695 #define HAVE_HEIMDAL_KERBEROS 1
10701 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10704 if test $have_krb5 = yes ; then
10707 cat >> confdefs.h <<\EOF
10708 #define HAVE_KRB5 1
10712 if test $ol_enable_kpasswd != no ; then
10713 ol_link_kpasswd=yes;
10716 if test $ol_with_kerberos = k5only ; then
10717 ol_with_kerberos=found
10720 elif test $ol_with_kerberos != auto ; then
10721 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10727 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10728 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10730 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10734 echo "configure:10735: checking for $ac_hdr" >&5
10735 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10736 echo $ac_n "(cached) $ac_c" 1>&6
10738 cat > conftest.$ac_ext <<EOF
10739 #line 10740 "configure"
10740 #include "confdefs.h"
10743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10744 { (eval echo configure:10745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10746 if test -z "$ac_err"; then
10748 eval "ac_cv_header_$ac_safe=yes"
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10754 eval "ac_cv_header_$ac_safe=no"
10758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10759 echo "$ac_t""yes" 1>&6
10760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10761 cat >> confdefs.h <<EOF
10762 #define $ac_tr_hdr 1
10766 echo "$ac_t""no" 1>&6
10771 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10772 if test $krb5_impl = mit; then
10773 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10774 echo "configure:10775: checking for main in -lkrb4" >&5
10775 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10777 echo $ac_n "(cached) $ac_c" 1>&6
10779 ac_save_LIBS="$LIBS"
10780 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10789 if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10791 eval "ac_cv_lib_$ac_lib_var=yes"
10793 echo "configure: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10796 eval "ac_cv_lib_$ac_lib_var=no"
10799 LIBS="$ac_save_LIBS"
10802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10803 echo "$ac_t""yes" 1>&6
10805 KRB4_LIBS="-lkrb4 -ldes425"
10807 echo "$ac_t""no" 1>&6
10812 elif test $krb5_impl = heimdal; then
10813 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10814 echo "configure:10815: checking for main in -lkrb4" >&5
10815 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10816 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10817 echo $ac_n "(cached) $ac_c" 1>&6
10819 ac_save_LIBS="$LIBS"
10820 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10829 if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831 eval "ac_cv_lib_$ac_lib_var=yes"
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10836 eval "ac_cv_lib_$ac_lib_var=no"
10839 LIBS="$ac_save_LIBS"
10842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10847 echo "$ac_t""no" 1>&6
10854 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10857 if test $have_k425 = yes ; then
10858 ol_with_kerberos=found
10861 cat >> confdefs.h <<\EOF
10862 #define HAVE_KRB425 1
10865 cat >> confdefs.h <<\EOF
10866 #define HAVE_KRB4 1
10870 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10871 echo "configure:10872: checking for des_debug in Kerberos libraries" >&5
10872 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10877 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10878 cat > conftest.$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10882 #include <kerberosIV/krb.h>
10883 #include <kerberosIV/des.h>
10884 extern int des_debug;
10892 if { (eval echo configure:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10894 ol_cv_var_des_debug=yes
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10899 ol_cv_var_des_debug=no
10906 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10908 if test $ol_cv_var_des_debug = yes ; then
10909 cat >> confdefs.h <<\EOF
10910 #define HAVE_DES_DEBUG 1
10920 if test $ol_link_krb5 = yes ; then
10921 ol_with_kerberos=found
10924 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10925 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10927 for ac_hdr in krb.h des.h krb-archaeology.h
10929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10931 echo "configure:10932: checking for $ac_hdr" >&5
10932 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10933 echo $ac_n "(cached) $ac_c" 1>&6
10935 cat > conftest.$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10941 { (eval echo configure:10942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10943 if test -z "$ac_err"; then
10945 eval "ac_cv_header_$ac_safe=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_header_$ac_safe=no"
10955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10956 echo "$ac_t""yes" 1>&6
10957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10958 cat >> confdefs.h <<EOF
10959 #define $ac_tr_hdr 1
10963 echo "$ac_t""no" 1>&6
10968 if test $ac_cv_header_krb_h = yes ; then
10969 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10970 echo "configure:10971: checking for main in -lkrb" >&5
10971 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10972 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10975 ac_save_LIBS="$LIBS"
10976 LIBS="-lkrb -ldes $LIBS"
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 eval "ac_cv_lib_$ac_lib_var=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 eval "ac_cv_lib_$ac_lib_var=no"
10995 LIBS="$ac_save_LIBS"
10998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10999 echo "$ac_t""yes" 1>&6
11002 echo "$ac_t""no" 1>&6
11007 if test $have_k4 = yes ; then
11008 ol_with_kerberos=found
11011 cat >> confdefs.h <<\EOF
11012 #define HAVE_KRB4 1
11016 KRB4_LIBS="-lkrb -ldes"
11018 if test $ac_cv_header_krb_archaeology_h = yes ; then
11019 cat >> confdefs.h <<\EOF
11020 #define HAVE_KTH_KERBEROS 1
11028 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11029 ol_link_kpasswd=yes
11032 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11035 elif test $ol_enable_kbind = yes ; then
11036 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11039 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11040 cat >> confdefs.h <<\EOF
11041 #define HAVE_KERBEROS 1
11045 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11046 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11050 if test $ol_with_tls != no ; then
11051 for ac_hdr in openssl/ssl.h ssl.h
11053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11055 echo "configure:11056: checking for $ac_hdr" >&5
11056 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11057 echo $ac_n "(cached) $ac_c" 1>&6
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11065 { (eval echo configure:11066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11067 if test -z "$ac_err"; then
11069 eval "ac_cv_header_$ac_safe=yes"
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11075 eval "ac_cv_header_$ac_safe=no"
11079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11082 cat >> confdefs.h <<EOF
11083 #define $ac_tr_hdr 1
11087 echo "$ac_t""no" 1>&6
11092 if test $ac_cv_header_openssl_ssl_h = yes \
11093 -o $ac_cv_header_ssl_h = yes ; then
11094 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11095 echo "configure:11096: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11096 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11098 echo $ac_n "(cached) $ac_c" 1>&6
11100 ac_save_LIBS="$LIBS"
11101 LIBS="-lssl -lcrypto $LIBS"
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11105 /* Override any gcc2 internal prototype to avoid an error. */
11106 /* We use char because int might match the return type of a gcc2
11107 builtin and then its argument prototype would still apply. */
11108 char SSLeay_add_ssl_algorithms();
11111 SSLeay_add_ssl_algorithms()
11114 if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11116 eval "ac_cv_lib_$ac_lib_var=yes"
11118 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11121 eval "ac_cv_lib_$ac_lib_var=no"
11124 LIBS="$ac_save_LIBS"
11127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11128 echo "$ac_t""yes" 1>&6
11132 echo "$ac_t""no" 1>&6
11137 if test $have_ssleay = no ; then
11138 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11139 echo "configure:11140: checking for SSL_library_init in -lssl" >&5
11140 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11142 echo $ac_n "(cached) $ac_c" 1>&6
11144 ac_save_LIBS="$LIBS"
11145 LIBS="-lssl -lcrypto $LIBS"
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11152 char SSL_library_init();
11158 if { (eval echo configure:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160 eval "ac_cv_lib_$ac_lib_var=yes"
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11165 eval "ac_cv_lib_$ac_lib_var=no"
11168 LIBS="$ac_save_LIBS"
11171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11172 echo "$ac_t""yes" 1>&6
11176 echo "$ac_t""no" 1>&6
11182 if test $have_ssleay = no ; then
11183 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11184 echo "configure:11185: checking for ssl3_accept in -lssl" >&5
11185 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11189 ac_save_LIBS="$LIBS"
11190 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11191 cat > conftest.$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 /* Override any gcc2 internal prototype to avoid an error. */
11195 /* We use char because int might match the return type of a gcc2
11196 builtin and then its argument prototype would still apply. */
11197 char ssl3_accept();
11203 if { (eval echo configure:11204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11205 eval "ac_cv_lib_$ac_lib_var=yes"
11207 echo "configure: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11210 eval "ac_cv_lib_$ac_lib_var=no"
11213 LIBS="$ac_save_LIBS"
11216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11221 echo "$ac_t""no" 1>&6
11227 if test $have_ssleay = yes ; then
11231 cat >> confdefs.h <<\EOF
11232 #define HAVE_SSLEAY 1
11236 if test $need_rsaref = yes; then
11237 cat >> confdefs.h <<\EOF
11238 #define HAVE_RSAREF 1
11242 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11244 TLS_LIBS="-lssl -lcrypto"
11250 echo "configure: warning: TLS data protection not supported!" 1>&2
11254 if test $ol_link_tls = yes ; then
11255 cat >> confdefs.h <<\EOF
11261 elif test $ol_with_tls = auto ; then
11262 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11263 echo "configure: warning: TLS data protection not supported!" 1>&2
11265 elif test $ol_with_tls != no ; then
11266 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11269 if test $ol_enable_lmpasswd != no; then
11270 if test $ol_link_tls != yes ; then
11271 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11274 cat >> confdefs.h <<\EOF
11275 #define SLAPD_LMHASH 1
11282 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11283 -o $ol_with_threads = nt ; then
11286 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11287 echo "configure:11288: checking for _beginthread" >&5
11288 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11289 echo $ac_n "(cached) $ac_c" 1>&6
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char _beginthread(); below. */
11296 #include <assert.h>
11297 /* Override any gcc2 internal prototype to avoid an error. */
11298 /* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */
11300 char _beginthread();
11305 /* The GNU C library defines this for functions which it implements
11306 to always fail with ENOSYS. Some functions are actually named
11307 something starting with __ and the normal name is an alias. */
11308 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11316 if { (eval echo configure:11317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11318 eval "ac_cv_func__beginthread=yes"
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11323 eval "ac_cv_func__beginthread=no"
11328 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
11332 echo "$ac_t""no" 1>&6
11336 if test $ac_cv_func__beginthread = yes ; then
11337 cat >> confdefs.h <<\EOF
11338 #define HAVE_NT_THREADS 1
11341 ol_cv_nt_threads=yes
11345 if test "$ol_cv_nt_threads" = yes ; then
11347 ol_with_threads=found
11348 ol_with_yielding_select=yes
11350 cat >> confdefs.h <<\EOF
11351 #define HAVE_NT_SERVICE_MANAGER 1
11354 cat >> confdefs.h <<\EOF
11355 #define HAVE_NT_EVENT_LOG 1
11360 if test $ol_with_threads = nt ; then
11361 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11365 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11366 -o $ol_with_threads = posix ; then
11368 for ac_hdr in pthread.h
11370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11372 echo "configure:11373: checking for $ac_hdr" >&5
11373 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11382 { (eval echo configure:11383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11384 if test -z "$ac_err"; then
11386 eval "ac_cv_header_$ac_safe=yes"
11389 echo "configure: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11392 eval "ac_cv_header_$ac_safe=no"
11396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11397 echo "$ac_t""yes" 1>&6
11398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11399 cat >> confdefs.h <<EOF
11400 #define $ac_tr_hdr 1
11404 echo "$ac_t""no" 1>&6
11409 if test $ac_cv_header_pthread_h = yes ; then
11410 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11411 echo "configure:11412: checking POSIX thread version" >&5
11412 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11413 echo $ac_n "(cached) $ac_c" 1>&6
11416 cat > conftest.$ac_ext <<EOF
11417 #line 11418 "configure"
11418 #include "confdefs.h"
11420 # include <pthread.h>
11424 int i = PTHREAD_CREATE_JOINABLE;
11428 if { (eval echo configure:11429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <pthread.h>
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 egrep "pthread_detach" >/dev/null 2>&1; then
11439 ol_cv_pthread_version=10
11442 ol_cv_pthread_version=8
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11455 # include <pthread.h>
11456 # ifdef PTHREAD_CREATE_UNDETACHED
11461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11462 egrep "draft7" >/dev/null 2>&1; then
11464 ol_cv_pthread_version=7
11468 cat > conftest.$ac_ext <<EOF
11469 #line 11470 "configure"
11470 #include "confdefs.h"
11471 #include <pthread.h>
11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11474 egrep "pthread_attr_init" >/dev/null 2>&1; then
11476 ol_cv_pthread_version=6
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11484 # include <pthread.h>
11485 #ifdef PTHREAD_MUTEX_INITIALIZER
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 egrep "draft5" >/dev/null 2>&1; then
11493 ol_cv_pthread_version=5
11496 ol_cv_pthread_version=4
11511 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11514 if test $ol_cv_pthread_version != 0 ; then
11515 cat >> confdefs.h <<EOF
11516 #define HAVE_PTHREADS $ol_cv_pthread_version
11520 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11523 # consider threads found
11524 ol_with_threads=found
11527 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11528 echo "configure:11529: checking for LinuxThreads pthread.h" >&5
11529 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11530 echo $ac_n "(cached) $ac_c" 1>&6
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 #include <pthread.h>
11537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11538 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11540 ol_cv_header_linux_threads=yes
11543 ol_cv_header_linux_threads=no
11550 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11551 if test $ol_cv_header_linux_threads = yes; then
11552 cat >> confdefs.h <<\EOF
11553 #define HAVE_LINUX_THREADS 1
11559 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11560 echo "configure:11561: checking for GNU Pth pthread.h" >&5
11561 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11564 cat > conftest.$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11567 #include <pthread.h>
11568 #ifdef _POSIX_THREAD_IS_GNU_PTH
11573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11574 egrep "__gnu_pth__" >/dev/null 2>&1; then
11576 ol_cv_header_gnu_pth_pthread_h=yes
11579 ol_cv_header_gnu_pth_pthread_h=no
11586 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11589 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11590 for ac_hdr in sched.h
11592 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11593 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11594 echo "configure:11595: checking for $ac_hdr" >&5
11595 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11596 echo $ac_n "(cached) $ac_c" 1>&6
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11604 { (eval echo configure:11605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11606 if test -z "$ac_err"; then
11608 eval "ac_cv_header_$ac_safe=yes"
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11614 eval "ac_cv_header_$ac_safe=no"
11618 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11620 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11621 cat >> confdefs.h <<EOF
11622 #define $ac_tr_hdr 1
11626 echo "$ac_t""no" 1>&6
11633 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11634 echo "configure:11635: checking for pthread_create in default libraries" >&5
11635 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11639 if test "$cross_compiling" = yes; then
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643 /* pthread test headers */
11644 #include <pthread.h>
11645 #if HAVE_PTHREADS < 7
11649 #define NULL (void*)0
11652 static void *task(p)
11655 return (void *) (p == NULL);
11660 /* pthread test function */
11661 #ifndef PTHREAD_CREATE_DETACHED
11662 #define PTHREAD_CREATE_DETACHED 1
11666 int detach = PTHREAD_CREATE_DETACHED;
11668 #if HAVE_PTHREADS > 4
11669 /* Final pthreads */
11670 pthread_attr_t attr;
11672 status = pthread_attr_init(&attr);
11673 if( status ) return status;
11675 #if HAVE_PTHREADS < 7
11676 status = pthread_attr_setdetachstate(&attr, &detach);
11677 if( status < 0 ) status = errno;
11679 status = pthread_attr_setdetachstate(&attr, detach);
11681 if( status ) return status;
11682 status = pthread_create( &t, &attr, task, NULL );
11683 #if HAVE_PTHREADS < 7
11684 if( status < 0 ) status = errno;
11686 if( status ) return status;
11688 /* Draft 4 pthreads */
11689 status = pthread_create( &t, pthread_attr_default, task, NULL );
11690 if( status ) return errno;
11692 /* give thread a chance to complete */
11693 /* it should remain joinable and hence detachable */
11696 status = pthread_detach( &t );
11697 if( status ) return errno;
11700 #ifdef HAVE_LINUX_THREADS
11701 pthread_kill_other_threads_np();
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11710 ol_cv_pthread_create=yes
11712 echo "configure: failed program was:" >&5
11713 cat conftest.$ac_ext >&5
11715 ol_cv_pthread_create=no
11719 cat > conftest.$ac_ext <<EOF
11720 #line 11721 "configure"
11721 #include "confdefs.h"
11722 /* pthread test headers */
11723 #include <pthread.h>
11724 #if HAVE_PTHREADS < 7
11728 #define NULL (void*)0
11731 static void *task(p)
11734 return (void *) (p == NULL);
11738 int main(argc, argv)
11743 /* pthread test function */
11744 #ifndef PTHREAD_CREATE_DETACHED
11745 #define PTHREAD_CREATE_DETACHED 1
11749 int detach = PTHREAD_CREATE_DETACHED;
11751 #if HAVE_PTHREADS > 4
11752 /* Final pthreads */
11753 pthread_attr_t attr;
11755 status = pthread_attr_init(&attr);
11756 if( status ) return status;
11758 #if HAVE_PTHREADS < 7
11759 status = pthread_attr_setdetachstate(&attr, &detach);
11760 if( status < 0 ) status = errno;
11762 status = pthread_attr_setdetachstate(&attr, detach);
11764 if( status ) return status;
11765 status = pthread_create( &t, &attr, task, NULL );
11766 #if HAVE_PTHREADS < 7
11767 if( status < 0 ) status = errno;
11769 if( status ) return status;
11771 /* Draft 4 pthreads */
11772 status = pthread_create( &t, pthread_attr_default, task, NULL );
11773 if( status ) return errno;
11775 /* give thread a chance to complete */
11776 /* it should remain joinable and hence detachable */
11779 status = pthread_detach( &t );
11780 if( status ) return errno;
11783 #ifdef HAVE_LINUX_THREADS
11784 pthread_kill_other_threads_np();
11792 if { (eval echo configure:11793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11794 ol_cv_pthread_create=yes
11796 echo "configure: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11799 ol_cv_pthread_create=no
11806 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11808 if test $ol_cv_pthread_create != no ; then
11809 ol_link_threads=posix
11810 ol_link_pthreads=""
11813 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11814 if test "$ol_link_threads" = no ; then
11816 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11817 echo "configure:11818: checking for pthread link with -kthread" >&5
11818 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11819 echo $ac_n "(cached) $ac_c" 1>&6
11824 LIBS="-kthread $LIBS"
11826 if test "$cross_compiling" = yes; then
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 /* pthread test headers */
11831 #include <pthread.h>
11832 #if HAVE_PTHREADS < 7
11836 #define NULL (void*)0
11839 static void *task(p)
11842 return (void *) (p == NULL);
11847 /* pthread test function */
11848 #ifndef PTHREAD_CREATE_DETACHED
11849 #define PTHREAD_CREATE_DETACHED 1
11853 int detach = PTHREAD_CREATE_DETACHED;
11855 #if HAVE_PTHREADS > 4
11856 /* Final pthreads */
11857 pthread_attr_t attr;
11859 status = pthread_attr_init(&attr);
11860 if( status ) return status;
11862 #if HAVE_PTHREADS < 7
11863 status = pthread_attr_setdetachstate(&attr, &detach);
11864 if( status < 0 ) status = errno;
11866 status = pthread_attr_setdetachstate(&attr, detach);
11868 if( status ) return status;
11869 status = pthread_create( &t, &attr, task, NULL );
11870 #if HAVE_PTHREADS < 7
11871 if( status < 0 ) status = errno;
11873 if( status ) return status;
11875 /* Draft 4 pthreads */
11876 status = pthread_create( &t, pthread_attr_default, task, NULL );
11877 if( status ) return errno;
11879 /* give thread a chance to complete */
11880 /* it should remain joinable and hence detachable */
11883 status = pthread_detach( &t );
11884 if( status ) return errno;
11887 #ifdef HAVE_LINUX_THREADS
11888 pthread_kill_other_threads_np();
11895 if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11897 ol_cv_pthread_kthread=yes
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11902 ol_cv_pthread_kthread=no
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11909 /* pthread test headers */
11910 #include <pthread.h>
11911 #if HAVE_PTHREADS < 7
11915 #define NULL (void*)0
11918 static void *task(p)
11921 return (void *) (p == NULL);
11925 int main(argc, argv)
11930 /* pthread test function */
11931 #ifndef PTHREAD_CREATE_DETACHED
11932 #define PTHREAD_CREATE_DETACHED 1
11936 int detach = PTHREAD_CREATE_DETACHED;
11938 #if HAVE_PTHREADS > 4
11939 /* Final pthreads */
11940 pthread_attr_t attr;
11942 status = pthread_attr_init(&attr);
11943 if( status ) return status;
11945 #if HAVE_PTHREADS < 7
11946 status = pthread_attr_setdetachstate(&attr, &detach);
11947 if( status < 0 ) status = errno;
11949 status = pthread_attr_setdetachstate(&attr, detach);
11951 if( status ) return status;
11952 status = pthread_create( &t, &attr, task, NULL );
11953 #if HAVE_PTHREADS < 7
11954 if( status < 0 ) status = errno;
11956 if( status ) return status;
11958 /* Draft 4 pthreads */
11959 status = pthread_create( &t, pthread_attr_default, task, NULL );
11960 if( status ) return errno;
11962 /* give thread a chance to complete */
11963 /* it should remain joinable and hence detachable */
11966 status = pthread_detach( &t );
11967 if( status ) return errno;
11970 #ifdef HAVE_LINUX_THREADS
11971 pthread_kill_other_threads_np();
11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11981 ol_cv_pthread_kthread=yes
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11986 ol_cv_pthread_kthread=no
11997 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11999 if test $ol_cv_pthread_kthread = yes ; then
12000 ol_link_pthreads="-kthread"
12001 ol_link_threads=posix
12005 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12006 if test "$ol_link_threads" = no ; then
12008 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12009 echo "configure:12010: checking for pthread link with -pthread" >&5
12010 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12016 LIBS="-pthread $LIBS"
12018 if test "$cross_compiling" = yes; then
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 /* pthread test headers */
12023 #include <pthread.h>
12024 #if HAVE_PTHREADS < 7
12028 #define NULL (void*)0
12031 static void *task(p)
12034 return (void *) (p == NULL);
12039 /* pthread test function */
12040 #ifndef PTHREAD_CREATE_DETACHED
12041 #define PTHREAD_CREATE_DETACHED 1
12045 int detach = PTHREAD_CREATE_DETACHED;
12047 #if HAVE_PTHREADS > 4
12048 /* Final pthreads */
12049 pthread_attr_t attr;
12051 status = pthread_attr_init(&attr);
12052 if( status ) return status;
12054 #if HAVE_PTHREADS < 7
12055 status = pthread_attr_setdetachstate(&attr, &detach);
12056 if( status < 0 ) status = errno;
12058 status = pthread_attr_setdetachstate(&attr, detach);
12060 if( status ) return status;
12061 status = pthread_create( &t, &attr, task, NULL );
12062 #if HAVE_PTHREADS < 7
12063 if( status < 0 ) status = errno;
12065 if( status ) return status;
12067 /* Draft 4 pthreads */
12068 status = pthread_create( &t, pthread_attr_default, task, NULL );
12069 if( status ) return errno;
12071 /* give thread a chance to complete */
12072 /* it should remain joinable and hence detachable */
12075 status = pthread_detach( &t );
12076 if( status ) return errno;
12079 #ifdef HAVE_LINUX_THREADS
12080 pthread_kill_other_threads_np();
12087 if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12089 ol_cv_pthread_pthread=yes
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12094 ol_cv_pthread_pthread=no
12098 cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 /* pthread test headers */
12102 #include <pthread.h>
12103 #if HAVE_PTHREADS < 7
12107 #define NULL (void*)0
12110 static void *task(p)
12113 return (void *) (p == NULL);
12117 int main(argc, argv)
12122 /* pthread test function */
12123 #ifndef PTHREAD_CREATE_DETACHED
12124 #define PTHREAD_CREATE_DETACHED 1
12128 int detach = PTHREAD_CREATE_DETACHED;
12130 #if HAVE_PTHREADS > 4
12131 /* Final pthreads */
12132 pthread_attr_t attr;
12134 status = pthread_attr_init(&attr);
12135 if( status ) return status;
12137 #if HAVE_PTHREADS < 7
12138 status = pthread_attr_setdetachstate(&attr, &detach);
12139 if( status < 0 ) status = errno;
12141 status = pthread_attr_setdetachstate(&attr, detach);
12143 if( status ) return status;
12144 status = pthread_create( &t, &attr, task, NULL );
12145 #if HAVE_PTHREADS < 7
12146 if( status < 0 ) status = errno;
12148 if( status ) return status;
12150 /* Draft 4 pthreads */
12151 status = pthread_create( &t, pthread_attr_default, task, NULL );
12152 if( status ) return errno;
12154 /* give thread a chance to complete */
12155 /* it should remain joinable and hence detachable */
12158 status = pthread_detach( &t );
12159 if( status ) return errno;
12162 #ifdef HAVE_LINUX_THREADS
12163 pthread_kill_other_threads_np();
12171 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12173 ol_cv_pthread_pthread=yes
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12178 ol_cv_pthread_pthread=no
12189 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12191 if test $ol_cv_pthread_pthread = yes ; then
12192 ol_link_pthreads="-pthread"
12193 ol_link_threads=posix
12197 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12198 if test "$ol_link_threads" = no ; then
12200 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12201 echo "configure:12202: checking for pthread link with -pthreads" >&5
12202 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12208 LIBS="-pthreads $LIBS"
12210 if test "$cross_compiling" = yes; then
12211 cat > conftest.$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* pthread test headers */
12215 #include <pthread.h>
12216 #if HAVE_PTHREADS < 7
12220 #define NULL (void*)0
12223 static void *task(p)
12226 return (void *) (p == NULL);
12231 /* pthread test function */
12232 #ifndef PTHREAD_CREATE_DETACHED
12233 #define PTHREAD_CREATE_DETACHED 1
12237 int detach = PTHREAD_CREATE_DETACHED;
12239 #if HAVE_PTHREADS > 4
12240 /* Final pthreads */
12241 pthread_attr_t attr;
12243 status = pthread_attr_init(&attr);
12244 if( status ) return status;
12246 #if HAVE_PTHREADS < 7
12247 status = pthread_attr_setdetachstate(&attr, &detach);
12248 if( status < 0 ) status = errno;
12250 status = pthread_attr_setdetachstate(&attr, detach);
12252 if( status ) return status;
12253 status = pthread_create( &t, &attr, task, NULL );
12254 #if HAVE_PTHREADS < 7
12255 if( status < 0 ) status = errno;
12257 if( status ) return status;
12259 /* Draft 4 pthreads */
12260 status = pthread_create( &t, pthread_attr_default, task, NULL );
12261 if( status ) return errno;
12263 /* give thread a chance to complete */
12264 /* it should remain joinable and hence detachable */
12267 status = pthread_detach( &t );
12268 if( status ) return errno;
12271 #ifdef HAVE_LINUX_THREADS
12272 pthread_kill_other_threads_np();
12279 if { (eval echo configure:12280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12281 ol_cv_pthread_pthreads=yes
12283 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12286 ol_cv_pthread_pthreads=no
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12293 /* pthread test headers */
12294 #include <pthread.h>
12295 #if HAVE_PTHREADS < 7
12299 #define NULL (void*)0
12302 static void *task(p)
12305 return (void *) (p == NULL);
12309 int main(argc, argv)
12314 /* pthread test function */
12315 #ifndef PTHREAD_CREATE_DETACHED
12316 #define PTHREAD_CREATE_DETACHED 1
12320 int detach = PTHREAD_CREATE_DETACHED;
12322 #if HAVE_PTHREADS > 4
12323 /* Final pthreads */
12324 pthread_attr_t attr;
12326 status = pthread_attr_init(&attr);
12327 if( status ) return status;
12329 #if HAVE_PTHREADS < 7
12330 status = pthread_attr_setdetachstate(&attr, &detach);
12331 if( status < 0 ) status = errno;
12333 status = pthread_attr_setdetachstate(&attr, detach);
12335 if( status ) return status;
12336 status = pthread_create( &t, &attr, task, NULL );
12337 #if HAVE_PTHREADS < 7
12338 if( status < 0 ) status = errno;
12340 if( status ) return status;
12342 /* Draft 4 pthreads */
12343 status = pthread_create( &t, pthread_attr_default, task, NULL );
12344 if( status ) return errno;
12346 /* give thread a chance to complete */
12347 /* it should remain joinable and hence detachable */
12350 status = pthread_detach( &t );
12351 if( status ) return errno;
12354 #ifdef HAVE_LINUX_THREADS
12355 pthread_kill_other_threads_np();
12363 if { (eval echo configure:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12365 ol_cv_pthread_pthreads=yes
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12370 ol_cv_pthread_pthreads=no
12381 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12383 if test $ol_cv_pthread_pthreads = yes ; then
12384 ol_link_pthreads="-pthreads"
12385 ol_link_threads=posix
12389 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12390 if test "$ol_link_threads" = no ; then
12392 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12393 echo "configure:12394: checking for pthread link with -mthreads" >&5
12394 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12395 echo $ac_n "(cached) $ac_c" 1>&6
12400 LIBS="-mthreads $LIBS"
12402 if test "$cross_compiling" = yes; then
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* pthread test headers */
12407 #include <pthread.h>
12408 #if HAVE_PTHREADS < 7
12412 #define NULL (void*)0
12415 static void *task(p)
12418 return (void *) (p == NULL);
12423 /* pthread test function */
12424 #ifndef PTHREAD_CREATE_DETACHED
12425 #define PTHREAD_CREATE_DETACHED 1
12429 int detach = PTHREAD_CREATE_DETACHED;
12431 #if HAVE_PTHREADS > 4
12432 /* Final pthreads */
12433 pthread_attr_t attr;
12435 status = pthread_attr_init(&attr);
12436 if( status ) return status;
12438 #if HAVE_PTHREADS < 7
12439 status = pthread_attr_setdetachstate(&attr, &detach);
12440 if( status < 0 ) status = errno;
12442 status = pthread_attr_setdetachstate(&attr, detach);
12444 if( status ) return status;
12445 status = pthread_create( &t, &attr, task, NULL );
12446 #if HAVE_PTHREADS < 7
12447 if( status < 0 ) status = errno;
12449 if( status ) return status;
12451 /* Draft 4 pthreads */
12452 status = pthread_create( &t, pthread_attr_default, task, NULL );
12453 if( status ) return errno;
12455 /* give thread a chance to complete */
12456 /* it should remain joinable and hence detachable */
12459 status = pthread_detach( &t );
12460 if( status ) return errno;
12463 #ifdef HAVE_LINUX_THREADS
12464 pthread_kill_other_threads_np();
12471 if { (eval echo configure:12472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12473 ol_cv_pthread_mthreads=yes
12475 echo "configure: failed program was:" >&5
12476 cat conftest.$ac_ext >&5
12478 ol_cv_pthread_mthreads=no
12482 cat > conftest.$ac_ext <<EOF
12483 #line 12484 "configure"
12484 #include "confdefs.h"
12485 /* pthread test headers */
12486 #include <pthread.h>
12487 #if HAVE_PTHREADS < 7
12491 #define NULL (void*)0
12494 static void *task(p)
12497 return (void *) (p == NULL);
12501 int main(argc, argv)
12506 /* pthread test function */
12507 #ifndef PTHREAD_CREATE_DETACHED
12508 #define PTHREAD_CREATE_DETACHED 1
12512 int detach = PTHREAD_CREATE_DETACHED;
12514 #if HAVE_PTHREADS > 4
12515 /* Final pthreads */
12516 pthread_attr_t attr;
12518 status = pthread_attr_init(&attr);
12519 if( status ) return status;
12521 #if HAVE_PTHREADS < 7
12522 status = pthread_attr_setdetachstate(&attr, &detach);
12523 if( status < 0 ) status = errno;
12525 status = pthread_attr_setdetachstate(&attr, detach);
12527 if( status ) return status;
12528 status = pthread_create( &t, &attr, task, NULL );
12529 #if HAVE_PTHREADS < 7
12530 if( status < 0 ) status = errno;
12532 if( status ) return status;
12534 /* Draft 4 pthreads */
12535 status = pthread_create( &t, pthread_attr_default, task, NULL );
12536 if( status ) return errno;
12538 /* give thread a chance to complete */
12539 /* it should remain joinable and hence detachable */
12542 status = pthread_detach( &t );
12543 if( status ) return errno;
12546 #ifdef HAVE_LINUX_THREADS
12547 pthread_kill_other_threads_np();
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12557 ol_cv_pthread_mthreads=yes
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12562 ol_cv_pthread_mthreads=no
12573 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12575 if test $ol_cv_pthread_mthreads = yes ; then
12576 ol_link_pthreads="-mthreads"
12577 ol_link_threads=posix
12581 # Pthread try link: -thread (ol_cv_pthread_thread)
12582 if test "$ol_link_threads" = no ; then
12584 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12585 echo "configure:12586: checking for pthread link with -thread" >&5
12586 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12592 LIBS="-thread $LIBS"
12594 if test "$cross_compiling" = yes; then
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 /* pthread test headers */
12599 #include <pthread.h>
12600 #if HAVE_PTHREADS < 7
12604 #define NULL (void*)0
12607 static void *task(p)
12610 return (void *) (p == NULL);
12615 /* pthread test function */
12616 #ifndef PTHREAD_CREATE_DETACHED
12617 #define PTHREAD_CREATE_DETACHED 1
12621 int detach = PTHREAD_CREATE_DETACHED;
12623 #if HAVE_PTHREADS > 4
12624 /* Final pthreads */
12625 pthread_attr_t attr;
12627 status = pthread_attr_init(&attr);
12628 if( status ) return status;
12630 #if HAVE_PTHREADS < 7
12631 status = pthread_attr_setdetachstate(&attr, &detach);
12632 if( status < 0 ) status = errno;
12634 status = pthread_attr_setdetachstate(&attr, detach);
12636 if( status ) return status;
12637 status = pthread_create( &t, &attr, task, NULL );
12638 #if HAVE_PTHREADS < 7
12639 if( status < 0 ) status = errno;
12641 if( status ) return status;
12643 /* Draft 4 pthreads */
12644 status = pthread_create( &t, pthread_attr_default, task, NULL );
12645 if( status ) return errno;
12647 /* give thread a chance to complete */
12648 /* it should remain joinable and hence detachable */
12651 status = pthread_detach( &t );
12652 if( status ) return errno;
12655 #ifdef HAVE_LINUX_THREADS
12656 pthread_kill_other_threads_np();
12663 if { (eval echo configure:12664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665 ol_cv_pthread_thread=yes
12667 echo "configure: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12670 ol_cv_pthread_thread=no
12674 cat > conftest.$ac_ext <<EOF
12675 #line 12676 "configure"
12676 #include "confdefs.h"
12677 /* pthread test headers */
12678 #include <pthread.h>
12679 #if HAVE_PTHREADS < 7
12683 #define NULL (void*)0
12686 static void *task(p)
12689 return (void *) (p == NULL);
12693 int main(argc, argv)
12698 /* pthread test function */
12699 #ifndef PTHREAD_CREATE_DETACHED
12700 #define PTHREAD_CREATE_DETACHED 1
12704 int detach = PTHREAD_CREATE_DETACHED;
12706 #if HAVE_PTHREADS > 4
12707 /* Final pthreads */
12708 pthread_attr_t attr;
12710 status = pthread_attr_init(&attr);
12711 if( status ) return status;
12713 #if HAVE_PTHREADS < 7
12714 status = pthread_attr_setdetachstate(&attr, &detach);
12715 if( status < 0 ) status = errno;
12717 status = pthread_attr_setdetachstate(&attr, detach);
12719 if( status ) return status;
12720 status = pthread_create( &t, &attr, task, NULL );
12721 #if HAVE_PTHREADS < 7
12722 if( status < 0 ) status = errno;
12724 if( status ) return status;
12726 /* Draft 4 pthreads */
12727 status = pthread_create( &t, pthread_attr_default, task, NULL );
12728 if( status ) return errno;
12730 /* give thread a chance to complete */
12731 /* it should remain joinable and hence detachable */
12734 status = pthread_detach( &t );
12735 if( status ) return errno;
12738 #ifdef HAVE_LINUX_THREADS
12739 pthread_kill_other_threads_np();
12747 if { (eval echo configure:12748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12749 ol_cv_pthread_thread=yes
12751 echo "configure: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12754 ol_cv_pthread_thread=no
12765 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12767 if test $ol_cv_pthread_thread = yes ; then
12768 ol_link_pthreads="-thread"
12769 ol_link_threads=posix
12774 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12775 if test "$ol_link_threads" = no ; then
12776 # try -lpthread -lmach -lexc -lc_r
12777 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12778 echo "configure:12779: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12779 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12780 echo $ac_n "(cached) $ac_c" 1>&6
12785 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12787 if test "$cross_compiling" = yes; then
12788 cat > conftest.$ac_ext <<EOF
12789 #line 12790 "configure"
12790 #include "confdefs.h"
12791 /* pthread test headers */
12792 #include <pthread.h>
12793 #if HAVE_PTHREADS < 7
12797 #define NULL (void*)0
12800 static void *task(p)
12803 return (void *) (p == NULL);
12808 /* pthread test function */
12809 #ifndef PTHREAD_CREATE_DETACHED
12810 #define PTHREAD_CREATE_DETACHED 1
12814 int detach = PTHREAD_CREATE_DETACHED;
12816 #if HAVE_PTHREADS > 4
12817 /* Final pthreads */
12818 pthread_attr_t attr;
12820 status = pthread_attr_init(&attr);
12821 if( status ) return status;
12823 #if HAVE_PTHREADS < 7
12824 status = pthread_attr_setdetachstate(&attr, &detach);
12825 if( status < 0 ) status = errno;
12827 status = pthread_attr_setdetachstate(&attr, detach);
12829 if( status ) return status;
12830 status = pthread_create( &t, &attr, task, NULL );
12831 #if HAVE_PTHREADS < 7
12832 if( status < 0 ) status = errno;
12834 if( status ) return status;
12836 /* Draft 4 pthreads */
12837 status = pthread_create( &t, pthread_attr_default, task, NULL );
12838 if( status ) return errno;
12840 /* give thread a chance to complete */
12841 /* it should remain joinable and hence detachable */
12844 status = pthread_detach( &t );
12845 if( status ) return errno;
12848 #ifdef HAVE_LINUX_THREADS
12849 pthread_kill_other_threads_np();
12856 if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12858 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12863 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 /* pthread test headers */
12871 #include <pthread.h>
12872 #if HAVE_PTHREADS < 7
12876 #define NULL (void*)0
12879 static void *task(p)
12882 return (void *) (p == NULL);
12886 int main(argc, argv)
12891 /* pthread test function */
12892 #ifndef PTHREAD_CREATE_DETACHED
12893 #define PTHREAD_CREATE_DETACHED 1
12897 int detach = PTHREAD_CREATE_DETACHED;
12899 #if HAVE_PTHREADS > 4
12900 /* Final pthreads */
12901 pthread_attr_t attr;
12903 status = pthread_attr_init(&attr);
12904 if( status ) return status;
12906 #if HAVE_PTHREADS < 7
12907 status = pthread_attr_setdetachstate(&attr, &detach);
12908 if( status < 0 ) status = errno;
12910 status = pthread_attr_setdetachstate(&attr, detach);
12912 if( status ) return status;
12913 status = pthread_create( &t, &attr, task, NULL );
12914 #if HAVE_PTHREADS < 7
12915 if( status < 0 ) status = errno;
12917 if( status ) return status;
12919 /* Draft 4 pthreads */
12920 status = pthread_create( &t, pthread_attr_default, task, NULL );
12921 if( status ) return errno;
12923 /* give thread a chance to complete */
12924 /* it should remain joinable and hence detachable */
12927 status = pthread_detach( &t );
12928 if( status ) return errno;
12931 #ifdef HAVE_LINUX_THREADS
12932 pthread_kill_other_threads_np();
12940 if { (eval echo configure:12941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12942 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12947 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12958 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12960 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12961 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12962 ol_link_threads=posix
12966 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12967 if test "$ol_link_threads" = no ; then
12968 # try -lpthread -lmach -lexc
12969 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12970 echo "configure:12971: checking for pthread link with -lpthread -lmach -lexc" >&5
12971 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12977 LIBS="-lpthread -lmach -lexc $LIBS"
12979 if test "$cross_compiling" = yes; then
12980 cat > conftest.$ac_ext <<EOF
12981 #line 12982 "configure"
12982 #include "confdefs.h"
12983 /* pthread test headers */
12984 #include <pthread.h>
12985 #if HAVE_PTHREADS < 7
12989 #define NULL (void*)0
12992 static void *task(p)
12995 return (void *) (p == NULL);
13000 /* pthread test function */
13001 #ifndef PTHREAD_CREATE_DETACHED
13002 #define PTHREAD_CREATE_DETACHED 1
13006 int detach = PTHREAD_CREATE_DETACHED;
13008 #if HAVE_PTHREADS > 4
13009 /* Final pthreads */
13010 pthread_attr_t attr;
13012 status = pthread_attr_init(&attr);
13013 if( status ) return status;
13015 #if HAVE_PTHREADS < 7
13016 status = pthread_attr_setdetachstate(&attr, &detach);
13017 if( status < 0 ) status = errno;
13019 status = pthread_attr_setdetachstate(&attr, detach);
13021 if( status ) return status;
13022 status = pthread_create( &t, &attr, task, NULL );
13023 #if HAVE_PTHREADS < 7
13024 if( status < 0 ) status = errno;
13026 if( status ) return status;
13028 /* Draft 4 pthreads */
13029 status = pthread_create( &t, pthread_attr_default, task, NULL );
13030 if( status ) return errno;
13032 /* give thread a chance to complete */
13033 /* it should remain joinable and hence detachable */
13036 status = pthread_detach( &t );
13037 if( status ) return errno;
13040 #ifdef HAVE_LINUX_THREADS
13041 pthread_kill_other_threads_np();
13048 if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050 ol_cv_pthread_lpthread_lmach_lexc=yes
13052 echo "configure: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13055 ol_cv_pthread_lpthread_lmach_lexc=no
13059 cat > conftest.$ac_ext <<EOF
13060 #line 13061 "configure"
13061 #include "confdefs.h"
13062 /* pthread test headers */
13063 #include <pthread.h>
13064 #if HAVE_PTHREADS < 7
13068 #define NULL (void*)0
13071 static void *task(p)
13074 return (void *) (p == NULL);
13078 int main(argc, argv)
13083 /* pthread test function */
13084 #ifndef PTHREAD_CREATE_DETACHED
13085 #define PTHREAD_CREATE_DETACHED 1
13089 int detach = PTHREAD_CREATE_DETACHED;
13091 #if HAVE_PTHREADS > 4
13092 /* Final pthreads */
13093 pthread_attr_t attr;
13095 status = pthread_attr_init(&attr);
13096 if( status ) return status;
13098 #if HAVE_PTHREADS < 7
13099 status = pthread_attr_setdetachstate(&attr, &detach);
13100 if( status < 0 ) status = errno;
13102 status = pthread_attr_setdetachstate(&attr, detach);
13104 if( status ) return status;
13105 status = pthread_create( &t, &attr, task, NULL );
13106 #if HAVE_PTHREADS < 7
13107 if( status < 0 ) status = errno;
13109 if( status ) return status;
13111 /* Draft 4 pthreads */
13112 status = pthread_create( &t, pthread_attr_default, task, NULL );
13113 if( status ) return errno;
13115 /* give thread a chance to complete */
13116 /* it should remain joinable and hence detachable */
13119 status = pthread_detach( &t );
13120 if( status ) return errno;
13123 #ifdef HAVE_LINUX_THREADS
13124 pthread_kill_other_threads_np();
13132 if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13134 ol_cv_pthread_lpthread_lmach_lexc=yes
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13139 ol_cv_pthread_lpthread_lmach_lexc=no
13150 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13152 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13153 ol_link_pthreads="-lpthread -lmach -lexc"
13154 ol_link_threads=posix
13159 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13160 if test "$ol_link_threads" = no ; then
13161 # try -lpthread -Wl,-woff,85
13162 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13163 echo "configure:13164: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13164 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13165 echo $ac_n "(cached) $ac_c" 1>&6
13170 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13172 if test "$cross_compiling" = yes; then
13173 cat > conftest.$ac_ext <<EOF
13174 #line 13175 "configure"
13175 #include "confdefs.h"
13176 /* pthread test headers */
13177 #include <pthread.h>
13178 #if HAVE_PTHREADS < 7
13182 #define NULL (void*)0
13185 static void *task(p)
13188 return (void *) (p == NULL);
13193 /* pthread test function */
13194 #ifndef PTHREAD_CREATE_DETACHED
13195 #define PTHREAD_CREATE_DETACHED 1
13199 int detach = PTHREAD_CREATE_DETACHED;
13201 #if HAVE_PTHREADS > 4
13202 /* Final pthreads */
13203 pthread_attr_t attr;
13205 status = pthread_attr_init(&attr);
13206 if( status ) return status;
13208 #if HAVE_PTHREADS < 7
13209 status = pthread_attr_setdetachstate(&attr, &detach);
13210 if( status < 0 ) status = errno;
13212 status = pthread_attr_setdetachstate(&attr, detach);
13214 if( status ) return status;
13215 status = pthread_create( &t, &attr, task, NULL );
13216 #if HAVE_PTHREADS < 7
13217 if( status < 0 ) status = errno;
13219 if( status ) return status;
13221 /* Draft 4 pthreads */
13222 status = pthread_create( &t, pthread_attr_default, task, NULL );
13223 if( status ) return errno;
13225 /* give thread a chance to complete */
13226 /* it should remain joinable and hence detachable */
13229 status = pthread_detach( &t );
13230 if( status ) return errno;
13233 #ifdef HAVE_LINUX_THREADS
13234 pthread_kill_other_threads_np();
13241 if { (eval echo configure:13242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13243 ol_cv_pthread_lib_lpthread_woff=yes
13245 echo "configure: failed program was:" >&5
13246 cat conftest.$ac_ext >&5
13248 ol_cv_pthread_lib_lpthread_woff=no
13252 cat > conftest.$ac_ext <<EOF
13253 #line 13254 "configure"
13254 #include "confdefs.h"
13255 /* pthread test headers */
13256 #include <pthread.h>
13257 #if HAVE_PTHREADS < 7
13261 #define NULL (void*)0
13264 static void *task(p)
13267 return (void *) (p == NULL);
13271 int main(argc, argv)
13276 /* pthread test function */
13277 #ifndef PTHREAD_CREATE_DETACHED
13278 #define PTHREAD_CREATE_DETACHED 1
13282 int detach = PTHREAD_CREATE_DETACHED;
13284 #if HAVE_PTHREADS > 4
13285 /* Final pthreads */
13286 pthread_attr_t attr;
13288 status = pthread_attr_init(&attr);
13289 if( status ) return status;
13291 #if HAVE_PTHREADS < 7
13292 status = pthread_attr_setdetachstate(&attr, &detach);
13293 if( status < 0 ) status = errno;
13295 status = pthread_attr_setdetachstate(&attr, detach);
13297 if( status ) return status;
13298 status = pthread_create( &t, &attr, task, NULL );
13299 #if HAVE_PTHREADS < 7
13300 if( status < 0 ) status = errno;
13302 if( status ) return status;
13304 /* Draft 4 pthreads */
13305 status = pthread_create( &t, pthread_attr_default, task, NULL );
13306 if( status ) return errno;
13308 /* give thread a chance to complete */
13309 /* it should remain joinable and hence detachable */
13312 status = pthread_detach( &t );
13313 if( status ) return errno;
13316 #ifdef HAVE_LINUX_THREADS
13317 pthread_kill_other_threads_np();
13325 if { (eval echo configure:13326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13327 ol_cv_pthread_lib_lpthread_woff=yes
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13332 ol_cv_pthread_lib_lpthread_woff=no
13343 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13345 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13346 ol_link_pthreads="-lpthread -Wl,-woff,85"
13347 ol_link_threads=posix
13352 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13353 if test "$ol_link_threads" = no ; then
13355 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13356 echo "configure:13357: checking for pthread link with -lpthread" >&5
13357 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13363 LIBS="-lpthread $LIBS"
13365 if test "$cross_compiling" = yes; then
13366 cat > conftest.$ac_ext <<EOF
13367 #line 13368 "configure"
13368 #include "confdefs.h"
13369 /* pthread test headers */
13370 #include <pthread.h>
13371 #if HAVE_PTHREADS < 7
13375 #define NULL (void*)0
13378 static void *task(p)
13381 return (void *) (p == NULL);
13386 /* pthread test function */
13387 #ifndef PTHREAD_CREATE_DETACHED
13388 #define PTHREAD_CREATE_DETACHED 1
13392 int detach = PTHREAD_CREATE_DETACHED;
13394 #if HAVE_PTHREADS > 4
13395 /* Final pthreads */
13396 pthread_attr_t attr;
13398 status = pthread_attr_init(&attr);
13399 if( status ) return status;
13401 #if HAVE_PTHREADS < 7
13402 status = pthread_attr_setdetachstate(&attr, &detach);
13403 if( status < 0 ) status = errno;
13405 status = pthread_attr_setdetachstate(&attr, detach);
13407 if( status ) return status;
13408 status = pthread_create( &t, &attr, task, NULL );
13409 #if HAVE_PTHREADS < 7
13410 if( status < 0 ) status = errno;
13412 if( status ) return status;
13414 /* Draft 4 pthreads */
13415 status = pthread_create( &t, pthread_attr_default, task, NULL );
13416 if( status ) return errno;
13418 /* give thread a chance to complete */
13419 /* it should remain joinable and hence detachable */
13422 status = pthread_detach( &t );
13423 if( status ) return errno;
13426 #ifdef HAVE_LINUX_THREADS
13427 pthread_kill_other_threads_np();
13434 if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13436 ol_cv_pthread_lpthread=yes
13438 echo "configure: failed program was:" >&5
13439 cat conftest.$ac_ext >&5
13441 ol_cv_pthread_lpthread=no
13445 cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13448 /* pthread test headers */
13449 #include <pthread.h>
13450 #if HAVE_PTHREADS < 7
13454 #define NULL (void*)0
13457 static void *task(p)
13460 return (void *) (p == NULL);
13464 int main(argc, argv)
13469 /* pthread test function */
13470 #ifndef PTHREAD_CREATE_DETACHED
13471 #define PTHREAD_CREATE_DETACHED 1
13475 int detach = PTHREAD_CREATE_DETACHED;
13477 #if HAVE_PTHREADS > 4
13478 /* Final pthreads */
13479 pthread_attr_t attr;
13481 status = pthread_attr_init(&attr);
13482 if( status ) return status;
13484 #if HAVE_PTHREADS < 7
13485 status = pthread_attr_setdetachstate(&attr, &detach);
13486 if( status < 0 ) status = errno;
13488 status = pthread_attr_setdetachstate(&attr, detach);
13490 if( status ) return status;
13491 status = pthread_create( &t, &attr, task, NULL );
13492 #if HAVE_PTHREADS < 7
13493 if( status < 0 ) status = errno;
13495 if( status ) return status;
13497 /* Draft 4 pthreads */
13498 status = pthread_create( &t, pthread_attr_default, task, NULL );
13499 if( status ) return errno;
13501 /* give thread a chance to complete */
13502 /* it should remain joinable and hence detachable */
13505 status = pthread_detach( &t );
13506 if( status ) return errno;
13509 #ifdef HAVE_LINUX_THREADS
13510 pthread_kill_other_threads_np();
13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13520 ol_cv_pthread_lpthread=yes
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13525 ol_cv_pthread_lpthread=no
13536 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13538 if test $ol_cv_pthread_lpthread = yes ; then
13539 ol_link_pthreads="-lpthread"
13540 ol_link_threads=posix
13544 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13545 if test "$ol_link_threads" = no ; then
13547 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13548 echo "configure:13549: checking for pthread link with -lc_r" >&5
13549 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13550 echo $ac_n "(cached) $ac_c" 1>&6
13557 if test "$cross_compiling" = yes; then
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 /* pthread test headers */
13562 #include <pthread.h>
13563 #if HAVE_PTHREADS < 7
13567 #define NULL (void*)0
13570 static void *task(p)
13573 return (void *) (p == NULL);
13578 /* pthread test function */
13579 #ifndef PTHREAD_CREATE_DETACHED
13580 #define PTHREAD_CREATE_DETACHED 1
13584 int detach = PTHREAD_CREATE_DETACHED;
13586 #if HAVE_PTHREADS > 4
13587 /* Final pthreads */
13588 pthread_attr_t attr;
13590 status = pthread_attr_init(&attr);
13591 if( status ) return status;
13593 #if HAVE_PTHREADS < 7
13594 status = pthread_attr_setdetachstate(&attr, &detach);
13595 if( status < 0 ) status = errno;
13597 status = pthread_attr_setdetachstate(&attr, detach);
13599 if( status ) return status;
13600 status = pthread_create( &t, &attr, task, NULL );
13601 #if HAVE_PTHREADS < 7
13602 if( status < 0 ) status = errno;
13604 if( status ) return status;
13606 /* Draft 4 pthreads */
13607 status = pthread_create( &t, pthread_attr_default, task, NULL );
13608 if( status ) return errno;
13610 /* give thread a chance to complete */
13611 /* it should remain joinable and hence detachable */
13614 status = pthread_detach( &t );
13615 if( status ) return errno;
13618 #ifdef HAVE_LINUX_THREADS
13619 pthread_kill_other_threads_np();
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13628 ol_cv_pthread_lc_r=yes
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13633 ol_cv_pthread_lc_r=no
13637 cat > conftest.$ac_ext <<EOF
13638 #line 13639 "configure"
13639 #include "confdefs.h"
13640 /* pthread test headers */
13641 #include <pthread.h>
13642 #if HAVE_PTHREADS < 7
13646 #define NULL (void*)0
13649 static void *task(p)
13652 return (void *) (p == NULL);
13656 int main(argc, argv)
13661 /* pthread test function */
13662 #ifndef PTHREAD_CREATE_DETACHED
13663 #define PTHREAD_CREATE_DETACHED 1
13667 int detach = PTHREAD_CREATE_DETACHED;
13669 #if HAVE_PTHREADS > 4
13670 /* Final pthreads */
13671 pthread_attr_t attr;
13673 status = pthread_attr_init(&attr);
13674 if( status ) return status;
13676 #if HAVE_PTHREADS < 7
13677 status = pthread_attr_setdetachstate(&attr, &detach);
13678 if( status < 0 ) status = errno;
13680 status = pthread_attr_setdetachstate(&attr, detach);
13682 if( status ) return status;
13683 status = pthread_create( &t, &attr, task, NULL );
13684 #if HAVE_PTHREADS < 7
13685 if( status < 0 ) status = errno;
13687 if( status ) return status;
13689 /* Draft 4 pthreads */
13690 status = pthread_create( &t, pthread_attr_default, task, NULL );
13691 if( status ) return errno;
13693 /* give thread a chance to complete */
13694 /* it should remain joinable and hence detachable */
13697 status = pthread_detach( &t );
13698 if( status ) return errno;
13701 #ifdef HAVE_LINUX_THREADS
13702 pthread_kill_other_threads_np();
13710 if { (eval echo configure:13711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13712 ol_cv_pthread_lc_r=yes
13714 echo "configure: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13717 ol_cv_pthread_lc_r=no
13728 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13730 if test $ol_cv_pthread_lc_r = yes ; then
13731 ol_link_pthreads="-lc_r"
13732 ol_link_threads=posix
13737 # Pthread try link: -threads (ol_cv_pthread_threads)
13738 if test "$ol_link_threads" = no ; then
13740 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13741 echo "configure:13742: checking for pthread link with -threads" >&5
13742 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13743 echo $ac_n "(cached) $ac_c" 1>&6
13748 LIBS="-threads $LIBS"
13750 if test "$cross_compiling" = yes; then
13751 cat > conftest.$ac_ext <<EOF
13752 #line 13753 "configure"
13753 #include "confdefs.h"
13754 /* pthread test headers */
13755 #include <pthread.h>
13756 #if HAVE_PTHREADS < 7
13760 #define NULL (void*)0
13763 static void *task(p)
13766 return (void *) (p == NULL);
13771 /* pthread test function */
13772 #ifndef PTHREAD_CREATE_DETACHED
13773 #define PTHREAD_CREATE_DETACHED 1
13777 int detach = PTHREAD_CREATE_DETACHED;
13779 #if HAVE_PTHREADS > 4
13780 /* Final pthreads */
13781 pthread_attr_t attr;
13783 status = pthread_attr_init(&attr);
13784 if( status ) return status;
13786 #if HAVE_PTHREADS < 7
13787 status = pthread_attr_setdetachstate(&attr, &detach);
13788 if( status < 0 ) status = errno;
13790 status = pthread_attr_setdetachstate(&attr, detach);
13792 if( status ) return status;
13793 status = pthread_create( &t, &attr, task, NULL );
13794 #if HAVE_PTHREADS < 7
13795 if( status < 0 ) status = errno;
13797 if( status ) return status;
13799 /* Draft 4 pthreads */
13800 status = pthread_create( &t, pthread_attr_default, task, NULL );
13801 if( status ) return errno;
13803 /* give thread a chance to complete */
13804 /* it should remain joinable and hence detachable */
13807 status = pthread_detach( &t );
13808 if( status ) return errno;
13811 #ifdef HAVE_LINUX_THREADS
13812 pthread_kill_other_threads_np();
13819 if { (eval echo configure:13820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13821 ol_cv_pthread_threads=yes
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13826 ol_cv_pthread_threads=no
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 /* pthread test headers */
13834 #include <pthread.h>
13835 #if HAVE_PTHREADS < 7
13839 #define NULL (void*)0
13842 static void *task(p)
13845 return (void *) (p == NULL);
13849 int main(argc, argv)
13854 /* pthread test function */
13855 #ifndef PTHREAD_CREATE_DETACHED
13856 #define PTHREAD_CREATE_DETACHED 1
13860 int detach = PTHREAD_CREATE_DETACHED;
13862 #if HAVE_PTHREADS > 4
13863 /* Final pthreads */
13864 pthread_attr_t attr;
13866 status = pthread_attr_init(&attr);
13867 if( status ) return status;
13869 #if HAVE_PTHREADS < 7
13870 status = pthread_attr_setdetachstate(&attr, &detach);
13871 if( status < 0 ) status = errno;
13873 status = pthread_attr_setdetachstate(&attr, detach);
13875 if( status ) return status;
13876 status = pthread_create( &t, &attr, task, NULL );
13877 #if HAVE_PTHREADS < 7
13878 if( status < 0 ) status = errno;
13880 if( status ) return status;
13882 /* Draft 4 pthreads */
13883 status = pthread_create( &t, pthread_attr_default, task, NULL );
13884 if( status ) return errno;
13886 /* give thread a chance to complete */
13887 /* it should remain joinable and hence detachable */
13890 status = pthread_detach( &t );
13891 if( status ) return errno;
13894 #ifdef HAVE_LINUX_THREADS
13895 pthread_kill_other_threads_np();
13903 if { (eval echo configure:13904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13905 ol_cv_pthread_threads=yes
13907 echo "configure: failed program was:" >&5
13908 cat conftest.$ac_ext >&5
13910 ol_cv_pthread_threads=no
13921 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13923 if test $ol_cv_pthread_threads = yes ; then
13924 ol_link_pthreads="-threads"
13925 ol_link_threads=posix
13930 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13931 if test "$ol_link_threads" = no ; then
13932 # try -lpthreads -lmach -lexc -lc_r
13933 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13934 echo "configure:13935: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13935 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13936 echo $ac_n "(cached) $ac_c" 1>&6
13941 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13943 if test "$cross_compiling" = yes; then
13944 cat > conftest.$ac_ext <<EOF
13945 #line 13946 "configure"
13946 #include "confdefs.h"
13947 /* pthread test headers */
13948 #include <pthread.h>
13949 #if HAVE_PTHREADS < 7
13953 #define NULL (void*)0
13956 static void *task(p)
13959 return (void *) (p == NULL);
13964 /* pthread test function */
13965 #ifndef PTHREAD_CREATE_DETACHED
13966 #define PTHREAD_CREATE_DETACHED 1
13970 int detach = PTHREAD_CREATE_DETACHED;
13972 #if HAVE_PTHREADS > 4
13973 /* Final pthreads */
13974 pthread_attr_t attr;
13976 status = pthread_attr_init(&attr);
13977 if( status ) return status;
13979 #if HAVE_PTHREADS < 7
13980 status = pthread_attr_setdetachstate(&attr, &detach);
13981 if( status < 0 ) status = errno;
13983 status = pthread_attr_setdetachstate(&attr, detach);
13985 if( status ) return status;
13986 status = pthread_create( &t, &attr, task, NULL );
13987 #if HAVE_PTHREADS < 7
13988 if( status < 0 ) status = errno;
13990 if( status ) return status;
13992 /* Draft 4 pthreads */
13993 status = pthread_create( &t, pthread_attr_default, task, NULL );
13994 if( status ) return errno;
13996 /* give thread a chance to complete */
13997 /* it should remain joinable and hence detachable */
14000 status = pthread_detach( &t );
14001 if( status ) return errno;
14004 #ifdef HAVE_LINUX_THREADS
14005 pthread_kill_other_threads_np();
14012 if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14014 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14019 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14023 cat > conftest.$ac_ext <<EOF
14024 #line 14025 "configure"
14025 #include "confdefs.h"
14026 /* pthread test headers */
14027 #include <pthread.h>
14028 #if HAVE_PTHREADS < 7
14032 #define NULL (void*)0
14035 static void *task(p)
14038 return (void *) (p == NULL);
14042 int main(argc, argv)
14047 /* pthread test function */
14048 #ifndef PTHREAD_CREATE_DETACHED
14049 #define PTHREAD_CREATE_DETACHED 1
14053 int detach = PTHREAD_CREATE_DETACHED;
14055 #if HAVE_PTHREADS > 4
14056 /* Final pthreads */
14057 pthread_attr_t attr;
14059 status = pthread_attr_init(&attr);
14060 if( status ) return status;
14062 #if HAVE_PTHREADS < 7
14063 status = pthread_attr_setdetachstate(&attr, &detach);
14064 if( status < 0 ) status = errno;
14066 status = pthread_attr_setdetachstate(&attr, detach);
14068 if( status ) return status;
14069 status = pthread_create( &t, &attr, task, NULL );
14070 #if HAVE_PTHREADS < 7
14071 if( status < 0 ) status = errno;
14073 if( status ) return status;
14075 /* Draft 4 pthreads */
14076 status = pthread_create( &t, pthread_attr_default, task, NULL );
14077 if( status ) return errno;
14079 /* give thread a chance to complete */
14080 /* it should remain joinable and hence detachable */
14083 status = pthread_detach( &t );
14084 if( status ) return errno;
14087 #ifdef HAVE_LINUX_THREADS
14088 pthread_kill_other_threads_np();
14096 if { (eval echo configure:14097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14098 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14100 echo "configure: failed program was:" >&5
14101 cat conftest.$ac_ext >&5
14103 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14114 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14116 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14117 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14118 ol_link_threads=posix
14122 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14123 if test "$ol_link_threads" = no ; then
14124 # try -lpthreads -lmach -lexc
14125 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14126 echo "configure:14127: checking for pthread link with -lpthreads -lmach -lexc" >&5
14127 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14128 echo $ac_n "(cached) $ac_c" 1>&6
14133 LIBS="-lpthreads -lmach -lexc $LIBS"
14135 if test "$cross_compiling" = yes; then
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 /* pthread test headers */
14140 #include <pthread.h>
14141 #if HAVE_PTHREADS < 7
14145 #define NULL (void*)0
14148 static void *task(p)
14151 return (void *) (p == NULL);
14156 /* pthread test function */
14157 #ifndef PTHREAD_CREATE_DETACHED
14158 #define PTHREAD_CREATE_DETACHED 1
14162 int detach = PTHREAD_CREATE_DETACHED;
14164 #if HAVE_PTHREADS > 4
14165 /* Final pthreads */
14166 pthread_attr_t attr;
14168 status = pthread_attr_init(&attr);
14169 if( status ) return status;
14171 #if HAVE_PTHREADS < 7
14172 status = pthread_attr_setdetachstate(&attr, &detach);
14173 if( status < 0 ) status = errno;
14175 status = pthread_attr_setdetachstate(&attr, detach);
14177 if( status ) return status;
14178 status = pthread_create( &t, &attr, task, NULL );
14179 #if HAVE_PTHREADS < 7
14180 if( status < 0 ) status = errno;
14182 if( status ) return status;
14184 /* Draft 4 pthreads */
14185 status = pthread_create( &t, pthread_attr_default, task, NULL );
14186 if( status ) return errno;
14188 /* give thread a chance to complete */
14189 /* it should remain joinable and hence detachable */
14192 status = pthread_detach( &t );
14193 if( status ) return errno;
14196 #ifdef HAVE_LINUX_THREADS
14197 pthread_kill_other_threads_np();
14204 if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14206 ol_cv_pthread_lpthreads_lmach_lexc=yes
14208 echo "configure: failed program was:" >&5
14209 cat conftest.$ac_ext >&5
14211 ol_cv_pthread_lpthreads_lmach_lexc=no
14215 cat > conftest.$ac_ext <<EOF
14216 #line 14217 "configure"
14217 #include "confdefs.h"
14218 /* pthread test headers */
14219 #include <pthread.h>
14220 #if HAVE_PTHREADS < 7
14224 #define NULL (void*)0
14227 static void *task(p)
14230 return (void *) (p == NULL);
14234 int main(argc, argv)
14239 /* pthread test function */
14240 #ifndef PTHREAD_CREATE_DETACHED
14241 #define PTHREAD_CREATE_DETACHED 1
14245 int detach = PTHREAD_CREATE_DETACHED;
14247 #if HAVE_PTHREADS > 4
14248 /* Final pthreads */
14249 pthread_attr_t attr;
14251 status = pthread_attr_init(&attr);
14252 if( status ) return status;
14254 #if HAVE_PTHREADS < 7
14255 status = pthread_attr_setdetachstate(&attr, &detach);
14256 if( status < 0 ) status = errno;
14258 status = pthread_attr_setdetachstate(&attr, detach);
14260 if( status ) return status;
14261 status = pthread_create( &t, &attr, task, NULL );
14262 #if HAVE_PTHREADS < 7
14263 if( status < 0 ) status = errno;
14265 if( status ) return status;
14267 /* Draft 4 pthreads */
14268 status = pthread_create( &t, pthread_attr_default, task, NULL );
14269 if( status ) return errno;
14271 /* give thread a chance to complete */
14272 /* it should remain joinable and hence detachable */
14275 status = pthread_detach( &t );
14276 if( status ) return errno;
14279 #ifdef HAVE_LINUX_THREADS
14280 pthread_kill_other_threads_np();
14288 if { (eval echo configure:14289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14290 ol_cv_pthread_lpthreads_lmach_lexc=yes
14292 echo "configure: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14295 ol_cv_pthread_lpthreads_lmach_lexc=no
14306 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14308 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14309 ol_link_pthreads="-lpthreads -lmach -lexc"
14310 ol_link_threads=posix
14314 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14315 if test "$ol_link_threads" = no ; then
14316 # try -lpthreads -lexc
14317 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14318 echo "configure:14319: checking for pthread link with -lpthreads -lexc" >&5
14319 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14320 echo $ac_n "(cached) $ac_c" 1>&6
14325 LIBS="-lpthreads -lexc $LIBS"
14327 if test "$cross_compiling" = yes; then
14328 cat > conftest.$ac_ext <<EOF
14329 #line 14330 "configure"
14330 #include "confdefs.h"
14331 /* pthread test headers */
14332 #include <pthread.h>
14333 #if HAVE_PTHREADS < 7
14337 #define NULL (void*)0
14340 static void *task(p)
14343 return (void *) (p == NULL);
14348 /* pthread test function */
14349 #ifndef PTHREAD_CREATE_DETACHED
14350 #define PTHREAD_CREATE_DETACHED 1
14354 int detach = PTHREAD_CREATE_DETACHED;
14356 #if HAVE_PTHREADS > 4
14357 /* Final pthreads */
14358 pthread_attr_t attr;
14360 status = pthread_attr_init(&attr);
14361 if( status ) return status;
14363 #if HAVE_PTHREADS < 7
14364 status = pthread_attr_setdetachstate(&attr, &detach);
14365 if( status < 0 ) status = errno;
14367 status = pthread_attr_setdetachstate(&attr, detach);
14369 if( status ) return status;
14370 status = pthread_create( &t, &attr, task, NULL );
14371 #if HAVE_PTHREADS < 7
14372 if( status < 0 ) status = errno;
14374 if( status ) return status;
14376 /* Draft 4 pthreads */
14377 status = pthread_create( &t, pthread_attr_default, task, NULL );
14378 if( status ) return errno;
14380 /* give thread a chance to complete */
14381 /* it should remain joinable and hence detachable */
14384 status = pthread_detach( &t );
14385 if( status ) return errno;
14388 #ifdef HAVE_LINUX_THREADS
14389 pthread_kill_other_threads_np();
14396 if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14398 ol_cv_pthread_lpthreads_lexc=yes
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14403 ol_cv_pthread_lpthreads_lexc=no
14407 cat > conftest.$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14410 /* pthread test headers */
14411 #include <pthread.h>
14412 #if HAVE_PTHREADS < 7
14416 #define NULL (void*)0
14419 static void *task(p)
14422 return (void *) (p == NULL);
14426 int main(argc, argv)
14431 /* pthread test function */
14432 #ifndef PTHREAD_CREATE_DETACHED
14433 #define PTHREAD_CREATE_DETACHED 1
14437 int detach = PTHREAD_CREATE_DETACHED;
14439 #if HAVE_PTHREADS > 4
14440 /* Final pthreads */
14441 pthread_attr_t attr;
14443 status = pthread_attr_init(&attr);
14444 if( status ) return status;
14446 #if HAVE_PTHREADS < 7
14447 status = pthread_attr_setdetachstate(&attr, &detach);
14448 if( status < 0 ) status = errno;
14450 status = pthread_attr_setdetachstate(&attr, detach);
14452 if( status ) return status;
14453 status = pthread_create( &t, &attr, task, NULL );
14454 #if HAVE_PTHREADS < 7
14455 if( status < 0 ) status = errno;
14457 if( status ) return status;
14459 /* Draft 4 pthreads */
14460 status = pthread_create( &t, pthread_attr_default, task, NULL );
14461 if( status ) return errno;
14463 /* give thread a chance to complete */
14464 /* it should remain joinable and hence detachable */
14467 status = pthread_detach( &t );
14468 if( status ) return errno;
14471 #ifdef HAVE_LINUX_THREADS
14472 pthread_kill_other_threads_np();
14480 if { (eval echo configure:14481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14482 ol_cv_pthread_lpthreads_lexc=yes
14484 echo "configure: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14487 ol_cv_pthread_lpthreads_lexc=no
14498 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14500 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14501 ol_link_pthreads="-lpthreads -lexc"
14502 ol_link_threads=posix
14507 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14508 if test "$ol_link_threads" = no ; then
14510 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14511 echo "configure:14512: checking for pthread link with -lpthreads" >&5
14512 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
14518 LIBS="-lpthreads $LIBS"
14520 if test "$cross_compiling" = yes; then
14521 cat > conftest.$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 /* pthread test headers */
14525 #include <pthread.h>
14526 #if HAVE_PTHREADS < 7
14530 #define NULL (void*)0
14533 static void *task(p)
14536 return (void *) (p == NULL);
14541 /* pthread test function */
14542 #ifndef PTHREAD_CREATE_DETACHED
14543 #define PTHREAD_CREATE_DETACHED 1
14547 int detach = PTHREAD_CREATE_DETACHED;
14549 #if HAVE_PTHREADS > 4
14550 /* Final pthreads */
14551 pthread_attr_t attr;
14553 status = pthread_attr_init(&attr);
14554 if( status ) return status;
14556 #if HAVE_PTHREADS < 7
14557 status = pthread_attr_setdetachstate(&attr, &detach);
14558 if( status < 0 ) status = errno;
14560 status = pthread_attr_setdetachstate(&attr, detach);
14562 if( status ) return status;
14563 status = pthread_create( &t, &attr, task, NULL );
14564 #if HAVE_PTHREADS < 7
14565 if( status < 0 ) status = errno;
14567 if( status ) return status;
14569 /* Draft 4 pthreads */
14570 status = pthread_create( &t, pthread_attr_default, task, NULL );
14571 if( status ) return errno;
14573 /* give thread a chance to complete */
14574 /* it should remain joinable and hence detachable */
14577 status = pthread_detach( &t );
14578 if( status ) return errno;
14581 #ifdef HAVE_LINUX_THREADS
14582 pthread_kill_other_threads_np();
14589 if { (eval echo configure:14590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14591 ol_cv_pthread_lib_lpthreads=yes
14593 echo "configure: failed program was:" >&5
14594 cat conftest.$ac_ext >&5
14596 ol_cv_pthread_lib_lpthreads=no
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603 /* pthread test headers */
14604 #include <pthread.h>
14605 #if HAVE_PTHREADS < 7
14609 #define NULL (void*)0
14612 static void *task(p)
14615 return (void *) (p == NULL);
14619 int main(argc, argv)
14624 /* pthread test function */
14625 #ifndef PTHREAD_CREATE_DETACHED
14626 #define PTHREAD_CREATE_DETACHED 1
14630 int detach = PTHREAD_CREATE_DETACHED;
14632 #if HAVE_PTHREADS > 4
14633 /* Final pthreads */
14634 pthread_attr_t attr;
14636 status = pthread_attr_init(&attr);
14637 if( status ) return status;
14639 #if HAVE_PTHREADS < 7
14640 status = pthread_attr_setdetachstate(&attr, &detach);
14641 if( status < 0 ) status = errno;
14643 status = pthread_attr_setdetachstate(&attr, detach);
14645 if( status ) return status;
14646 status = pthread_create( &t, &attr, task, NULL );
14647 #if HAVE_PTHREADS < 7
14648 if( status < 0 ) status = errno;
14650 if( status ) return status;
14652 /* Draft 4 pthreads */
14653 status = pthread_create( &t, pthread_attr_default, task, NULL );
14654 if( status ) return errno;
14656 /* give thread a chance to complete */
14657 /* it should remain joinable and hence detachable */
14660 status = pthread_detach( &t );
14661 if( status ) return errno;
14664 #ifdef HAVE_LINUX_THREADS
14665 pthread_kill_other_threads_np();
14673 if { (eval echo configure:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14675 ol_cv_pthread_lib_lpthreads=yes
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14680 ol_cv_pthread_lib_lpthreads=no
14691 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14693 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14694 ol_link_pthreads="-lpthreads"
14695 ol_link_threads=posix
14700 if test $ol_link_threads != no ; then
14701 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14703 save_CPPFLAGS="$CPPFLAGS"
14705 LIBS="$LTHREAD_LIBS $LIBS"
14707 for ac_func in sched_yield pthread_yield thr_yield
14709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14710 echo "configure:14711: checking for $ac_func" >&5
14711 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14712 echo $ac_n "(cached) $ac_c" 1>&6
14714 cat > conftest.$ac_ext <<EOF
14715 #line 14716 "configure"
14716 #include "confdefs.h"
14717 /* System header to define __stub macros and hopefully few prototypes,
14718 which can conflict with char $ac_func(); below. */
14719 #include <assert.h>
14720 /* Override any gcc2 internal prototype to avoid an error. */
14721 /* We use char because int might match the return type of a gcc2
14722 builtin and then its argument prototype would still apply. */
14728 /* The GNU C library defines this for functions which it implements
14729 to always fail with ENOSYS. Some functions are actually named
14730 something starting with __ and the normal name is an alias. */
14731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14739 if { (eval echo configure:14740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14741 eval "ac_cv_func_$ac_func=yes"
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14746 eval "ac_cv_func_$ac_func=no"
14751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14752 echo "$ac_t""yes" 1>&6
14753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14754 cat >> confdefs.h <<EOF
14755 #define $ac_tr_func 1
14759 echo "$ac_t""no" 1>&6
14764 if test $ac_cv_func_sched_yield = no -a \
14765 $ac_cv_func_pthread_yield = no -a \
14766 $ac_cv_func_thr_yield = no ; then
14767 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14768 echo "configure:14769: checking for sched_yield in -lrt" >&5
14769 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14770 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14771 echo $ac_n "(cached) $ac_c" 1>&6
14773 ac_save_LIBS="$LIBS"
14775 cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14778 /* Override any gcc2 internal prototype to avoid an error. */
14779 /* We use char because int might match the return type of a gcc2
14780 builtin and then its argument prototype would still apply. */
14781 char sched_yield();
14787 if { (eval echo configure:14788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14789 eval "ac_cv_lib_$ac_lib_var=yes"
14791 echo "configure: failed program was:" >&5
14792 cat conftest.$ac_ext >&5
14794 eval "ac_cv_lib_$ac_lib_var=no"
14797 LIBS="$ac_save_LIBS"
14800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14801 echo "$ac_t""yes" 1>&6
14802 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14803 cat >> confdefs.h <<\EOF
14804 #define HAVE_SCHED_YIELD 1
14807 ac_cv_func_sched_yield=yes
14809 echo "$ac_t""no" 1>&6
14810 ac_cv_func_sched_yield=no
14814 if test $ac_cv_func_sched_yield = no -a \
14815 $ac_cv_func_pthread_yield = no -a \
14816 "$ac_cv_func_thr_yield" = no ; then
14817 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14820 for ac_func in pthread_kill pthread_rwlock_destroy
14822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14823 echo "configure:14824: checking for $ac_func" >&5
14824 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14825 echo $ac_n "(cached) $ac_c" 1>&6
14827 cat > conftest.$ac_ext <<EOF
14828 #line 14829 "configure"
14829 #include "confdefs.h"
14830 /* System header to define __stub macros and hopefully few prototypes,
14831 which can conflict with char $ac_func(); below. */
14832 #include <assert.h>
14833 /* Override any gcc2 internal prototype to avoid an error. */
14834 /* We use char because int might match the return type of a gcc2
14835 builtin and then its argument prototype would still apply. */
14841 /* The GNU C library defines this for functions which it implements
14842 to always fail with ENOSYS. Some functions are actually named
14843 something starting with __ and the normal name is an alias. */
14844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14852 if { (eval echo configure:14853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14854 eval "ac_cv_func_$ac_func=yes"
14856 echo "configure: failed program was:" >&5
14857 cat conftest.$ac_ext >&5
14859 eval "ac_cv_func_$ac_func=no"
14864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14865 echo "$ac_t""yes" 1>&6
14866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14867 cat >> confdefs.h <<EOF
14868 #define $ac_tr_func 1
14872 echo "$ac_t""no" 1>&6
14877 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14878 echo "configure:14879: checking for pthread_detach with <pthread.h>" >&5
14879 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14880 echo $ac_n "(cached) $ac_c" 1>&6
14883 cat > conftest.$ac_ext <<EOF
14884 #line 14885 "configure"
14885 #include "confdefs.h"
14887 #include <pthread.h>
14889 #define NULL (void*)0
14893 pthread_detach(NULL);
14896 if { (eval echo configure:14897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14898 ol_cv_func_pthread_detach=yes
14900 echo "configure: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14903 ol_cv_func_pthread_detach=no
14909 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14911 if test $ol_cv_func_pthread_detach = no ; then
14912 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14915 cat >> confdefs.h <<\EOF
14916 #define HAVE_PTHREAD_DETACH 1
14921 pthread_setconcurrency \
14922 pthread_getconcurrency \
14923 thr_setconcurrency \
14924 thr_getconcurrency \
14927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14928 echo "configure:14929: checking for $ac_func" >&5
14929 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14930 echo $ac_n "(cached) $ac_c" 1>&6
14932 cat > conftest.$ac_ext <<EOF
14933 #line 14934 "configure"
14934 #include "confdefs.h"
14935 /* System header to define __stub macros and hopefully few prototypes,
14936 which can conflict with char $ac_func(); below. */
14937 #include <assert.h>
14938 /* Override any gcc2 internal prototype to avoid an error. */
14939 /* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14946 /* The GNU C library defines this for functions which it implements
14947 to always fail with ENOSYS. Some functions are actually named
14948 something starting with __ and the normal name is an alias. */
14949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14957 if { (eval echo configure:14958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14959 eval "ac_cv_func_$ac_func=yes"
14961 echo "configure: failed program was:" >&5
14962 cat conftest.$ac_ext >&5
14964 eval "ac_cv_func_$ac_func=no"
14969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14970 echo "$ac_t""yes" 1>&6
14971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14972 cat >> confdefs.h <<EOF
14973 #define $ac_tr_func 1
14977 echo "$ac_t""no" 1>&6
14983 for ac_func in pthread_kill_other_threads_np
14985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14986 echo "configure:14987: checking for $ac_func" >&5
14987 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14988 echo $ac_n "(cached) $ac_c" 1>&6
14990 cat > conftest.$ac_ext <<EOF
14991 #line 14992 "configure"
14992 #include "confdefs.h"
14993 /* System header to define __stub macros and hopefully few prototypes,
14994 which can conflict with char $ac_func(); below. */
14995 #include <assert.h>
14996 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15004 /* The GNU C library defines this for functions which it implements
15005 to always fail with ENOSYS. Some functions are actually named
15006 something starting with __ and the normal name is an alias. */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15017 eval "ac_cv_func_$ac_func=yes"
15019 echo "configure: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15022 eval "ac_cv_func_$ac_func=no"
15027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15028 echo "$ac_t""yes" 1>&6
15029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15030 cat >> confdefs.h <<EOF
15031 #define $ac_tr_func 1
15035 echo "$ac_t""no" 1>&6
15039 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15040 echo "configure:15041: checking for LinuxThreads implementation" >&5
15041 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15044 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15047 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15052 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15053 echo "configure:15054: checking for LinuxThreads consistency" >&5
15054 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15058 if test $ol_cv_header_linux_threads = yes -a \
15059 $ol_cv_sys_linux_threads = yes; then
15060 ol_cv_linux_threads=yes
15061 elif test $ol_cv_header_linux_threads = no -a \
15062 $ol_cv_sys_linux_threads = no; then
15063 ol_cv_linux_threads=no
15065 ol_cv_linux_threads=error
15070 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15073 if test $ol_cv_linux_threads = error; then
15074 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15077 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15078 echo "configure:15079: checking if pthread_create() works" >&5
15079 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15080 echo $ac_n "(cached) $ac_c" 1>&6
15083 if test "$cross_compiling" = yes; then
15084 ol_cv_pthread_create_works=yes
15086 cat > conftest.$ac_ext <<EOF
15087 #line 15088 "configure"
15088 #include "confdefs.h"
15089 /* pthread test headers */
15090 #include <pthread.h>
15091 #if HAVE_PTHREADS < 7
15095 #define NULL (void*)0
15098 static void *task(p)
15101 return (void *) (p == NULL);
15105 int main(argc, argv)
15110 /* pthread test function */
15111 #ifndef PTHREAD_CREATE_DETACHED
15112 #define PTHREAD_CREATE_DETACHED 1
15116 int detach = PTHREAD_CREATE_DETACHED;
15118 #if HAVE_PTHREADS > 4
15119 /* Final pthreads */
15120 pthread_attr_t attr;
15122 status = pthread_attr_init(&attr);
15123 if( status ) return status;
15125 #if HAVE_PTHREADS < 7
15126 status = pthread_attr_setdetachstate(&attr, &detach);
15127 if( status < 0 ) status = errno;
15129 status = pthread_attr_setdetachstate(&attr, detach);
15131 if( status ) return status;
15132 status = pthread_create( &t, &attr, task, NULL );
15133 #if HAVE_PTHREADS < 7
15134 if( status < 0 ) status = errno;
15136 if( status ) return status;
15138 /* Draft 4 pthreads */
15139 status = pthread_create( &t, pthread_attr_default, task, NULL );
15140 if( status ) return errno;
15142 /* give thread a chance to complete */
15143 /* it should remain joinable and hence detachable */
15146 status = pthread_detach( &t );
15147 if( status ) return errno;
15150 #ifdef HAVE_LINUX_THREADS
15151 pthread_kill_other_threads_np();
15159 if { (eval echo configure:15160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15161 ol_cv_pthread_create_works=yes
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15166 ol_cv_pthread_create_works=no
15173 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15175 if test $ol_cv_pthread_create_works = no ; then
15176 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15179 if test $ol_with_yielding_select = auto ; then
15180 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15181 echo "configure:15182: checking if select yields when using pthreads" >&5
15182 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15183 echo $ac_n "(cached) $ac_c" 1>&6
15186 if test "$cross_compiling" = yes; then
15187 ol_cv_pthread_select_yields=cross
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15193 #include <sys/types.h>
15194 #include <sys/time.h>
15195 #include <unistd.h>
15196 #include <pthread.h>
15198 #define NULL (void*) 0
15201 static int fildes[2];
15203 static void *task(p)
15215 FD_SET(fildes[0], &rfds);
15217 /* we're not interested in any fds */
15218 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15225 exit(0); /* if we exit here, the select blocked the whole process */
15228 int main(argc, argv)
15234 /* create a pipe to select */
15235 if(pipe(&fildes[0])) {
15240 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15241 (void) pthread_setconcurrency(2);
15243 #ifdef HAVE_THR_SETCONCURRENCY
15244 /* Set Solaris LWP concurrency to 2 */
15245 thr_setconcurrency(2);
15249 #if HAVE_PTHREADS < 6
15250 pthread_create(&t, pthread_attr_default, task, NULL);
15252 pthread_create(&t, NULL, task, NULL);
15255 /* make sure task runs first */
15258 #elif defined( HAVE_SCHED_YIELD )
15260 #elif defined( HAVE_PTHREAD_YIELD )
15267 if { (eval echo configure:15268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15269 ol_cv_pthread_select_yields=no
15271 echo "configure: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15274 ol_cv_pthread_select_yields=yes
15281 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15283 if test $ol_cv_pthread_select_yields = cross ; then
15284 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15287 if test $ol_cv_pthread_select_yields = yes ; then
15288 ol_with_yielding_select=yes
15292 CPPFLAGS="$save_CPPFLAGS"
15295 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15299 if test $ol_with_threads = posix ; then
15300 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15304 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15305 -o $ol_with_threads = mach ; then
15307 for ac_hdr in mach/cthreads.h cthreads.h
15309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15311 echo "configure:15312: checking for $ac_hdr" >&5
15312 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15313 echo $ac_n "(cached) $ac_c" 1>&6
15315 cat > conftest.$ac_ext <<EOF
15316 #line 15317 "configure"
15317 #include "confdefs.h"
15320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15321 { (eval echo configure:15322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15323 if test -z "$ac_err"; then
15325 eval "ac_cv_header_$ac_safe=yes"
15328 echo "configure: failed program was:" >&5
15329 cat conftest.$ac_ext >&5
15331 eval "ac_cv_header_$ac_safe=no"
15335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15336 echo "$ac_t""yes" 1>&6
15337 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15338 cat >> confdefs.h <<EOF
15339 #define $ac_tr_hdr 1
15343 echo "$ac_t""no" 1>&6
15347 if test $ac_cv_header_mach_cthreads_h = yes ; then
15348 ol_with_threads=found
15350 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15351 echo "configure:15352: checking for cthread_fork" >&5
15352 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15355 cat > conftest.$ac_ext <<EOF
15356 #line 15357 "configure"
15357 #include "confdefs.h"
15358 /* System header to define __stub macros and hopefully few prototypes,
15359 which can conflict with char cthread_fork(); below. */
15360 #include <assert.h>
15361 /* Override any gcc2 internal prototype to avoid an error. */
15362 /* We use char because int might match the return type of a gcc2
15363 builtin and then its argument prototype would still apply. */
15364 char cthread_fork();
15369 /* The GNU C library defines this for functions which it implements
15370 to always fail with ENOSYS. Some functions are actually named
15371 something starting with __ and the normal name is an alias. */
15372 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15380 if { (eval echo configure:15381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15382 eval "ac_cv_func_cthread_fork=yes"
15384 echo "configure: failed program was:" >&5
15385 cat conftest.$ac_ext >&5
15387 eval "ac_cv_func_cthread_fork=no"
15392 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15393 echo "$ac_t""yes" 1>&6
15394 ol_link_threads=yes
15396 echo "$ac_t""no" 1>&6
15400 if test $ol_link_threads = no ; then
15401 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15402 echo "configure:15403: checking for cthread_fork with -all_load" >&5
15403 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15404 echo $ac_n "(cached) $ac_c" 1>&6
15408 LIBS="-all_load $LIBS"
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 #include <mach/cthreads.h>
15415 cthread_fork((void *)0, (void *)0);
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 ol_cv_cthread_all_load=yes
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15426 ol_cv_cthread_all_load=no
15433 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15435 if test $ol_cv_cthread_all_load = yes ; then
15436 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15437 ol_link_threads=mach
15438 ol_with_threads=found
15442 elif test $ac_cv_header_cthreads_h = yes ; then
15444 ol_with_threads=found
15447 LIBS="$LIBS -lthreads"
15448 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15449 echo "configure:15450: checking for cthread_fork" >&5
15450 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15451 echo $ac_n "(cached) $ac_c" 1>&6
15453 cat > conftest.$ac_ext <<EOF
15454 #line 15455 "configure"
15455 #include "confdefs.h"
15456 /* System header to define __stub macros and hopefully few prototypes,
15457 which can conflict with char cthread_fork(); below. */
15458 #include <assert.h>
15459 /* Override any gcc2 internal prototype to avoid an error. */
15460 /* We use char because int might match the return type of a gcc2
15461 builtin and then its argument prototype would still apply. */
15462 char cthread_fork();
15467 /* The GNU C library defines this for functions which it implements
15468 to always fail with ENOSYS. Some functions are actually named
15469 something starting with __ and the normal name is an alias. */
15470 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15478 if { (eval echo configure:15479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15480 eval "ac_cv_func_cthread_fork=yes"
15482 echo "configure: failed program was:" >&5
15483 cat conftest.$ac_ext >&5
15485 eval "ac_cv_func_cthread_fork=no"
15490 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15491 echo "$ac_t""yes" 1>&6
15492 ol_link_threads=yes
15494 echo "$ac_t""no" 1>&6
15499 if test $ol_link_threads = yes ; then
15500 LTHREAD_LIBS="-lthreads"
15501 ol_link_threads=mach
15502 ol_with_threads=found
15504 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15507 elif test $ol_with_threads = mach ; then
15508 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15511 if test $ol_link_threads = mach ; then
15512 cat >> confdefs.h <<\EOF
15513 #define HAVE_MACH_CTHREADS 1
15516 elif test $ol_with_threads = found ; then
15517 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15521 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15522 -o $ol_with_threads = pth ; then
15524 for ac_hdr in pth.h
15526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15528 echo "configure:15529: checking for $ac_hdr" >&5
15529 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15530 echo $ac_n "(cached) $ac_c" 1>&6
15532 cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15538 { (eval echo configure:15539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15540 if test -z "$ac_err"; then
15542 eval "ac_cv_header_$ac_safe=yes"
15545 echo "configure: failed program was:" >&5
15546 cat conftest.$ac_ext >&5
15548 eval "ac_cv_header_$ac_safe=no"
15552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15553 echo "$ac_t""yes" 1>&6
15554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15555 cat >> confdefs.h <<EOF
15556 #define $ac_tr_hdr 1
15560 echo "$ac_t""no" 1>&6
15565 if test $ac_cv_header_pth_h = yes ; then
15566 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15567 echo "configure:15568: checking for pth_version in -lpth" >&5
15568 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15569 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15570 echo $ac_n "(cached) $ac_c" 1>&6
15572 ac_save_LIBS="$LIBS"
15574 cat > conftest.$ac_ext <<EOF
15575 #line 15576 "configure"
15576 #include "confdefs.h"
15577 /* Override any gcc2 internal prototype to avoid an error. */
15578 /* We use char because int might match the return type of a gcc2
15579 builtin and then its argument prototype would still apply. */
15580 char pth_version();
15586 if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15588 eval "ac_cv_lib_$ac_lib_var=yes"
15590 echo "configure: failed program was:" >&5
15591 cat conftest.$ac_ext >&5
15593 eval "ac_cv_lib_$ac_lib_var=no"
15596 LIBS="$ac_save_LIBS"
15599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15600 echo "$ac_t""yes" 1>&6
15603 echo "$ac_t""no" 1>&6
15608 if test $have_pth = yes ; then
15609 cat >> confdefs.h <<\EOF
15610 #define HAVE_GNU_PTH 1
15613 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15614 ol_link_threads=pth
15615 ol_with_threads=found
15617 if test $ol_with_yielding_select = auto ; then
15618 ol_with_yielding_select=yes
15624 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15625 -o $ol_with_threads = lwp ; then
15627 for ac_hdr in thread.h synch.h
15629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15631 echo "configure:15632: checking for $ac_hdr" >&5
15632 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15635 cat > conftest.$ac_ext <<EOF
15636 #line 15637 "configure"
15637 #include "confdefs.h"
15640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15641 { (eval echo configure:15642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15643 if test -z "$ac_err"; then
15645 eval "ac_cv_header_$ac_safe=yes"
15648 echo "configure: failed program was:" >&5
15649 cat conftest.$ac_ext >&5
15651 eval "ac_cv_header_$ac_safe=no"
15655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15656 echo "$ac_t""yes" 1>&6
15657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15658 cat >> confdefs.h <<EOF
15659 #define $ac_tr_hdr 1
15663 echo "$ac_t""no" 1>&6
15667 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15668 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15669 echo "configure:15670: checking for thr_create in -lthread" >&5
15670 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15671 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15674 ac_save_LIBS="$LIBS"
15675 LIBS="-lthread $LIBS"
15676 cat > conftest.$ac_ext <<EOF
15677 #line 15678 "configure"
15678 #include "confdefs.h"
15679 /* Override any gcc2 internal prototype to avoid an error. */
15680 /* We use char because int might match the return type of a gcc2
15681 builtin and then its argument prototype would still apply. */
15688 if { (eval echo configure:15689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15690 eval "ac_cv_lib_$ac_lib_var=yes"
15692 echo "configure: failed program was:" >&5
15693 cat conftest.$ac_ext >&5
15695 eval "ac_cv_lib_$ac_lib_var=no"
15698 LIBS="$ac_save_LIBS"
15701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15702 echo "$ac_t""yes" 1>&6
15705 echo "$ac_t""no" 1>&6
15710 if test $have_thr = yes ; then
15711 cat >> confdefs.h <<\EOF
15715 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15716 ol_link_threads=thr
15718 if test $ol_with_yielding_select = auto ; then
15719 ol_with_yielding_select=yes
15723 thr_setconcurrency \
15724 thr_getconcurrency \
15727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15728 echo "configure:15729: checking for $ac_func" >&5
15729 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15730 echo $ac_n "(cached) $ac_c" 1>&6
15732 cat > conftest.$ac_ext <<EOF
15733 #line 15734 "configure"
15734 #include "confdefs.h"
15735 /* System header to define __stub macros and hopefully few prototypes,
15736 which can conflict with char $ac_func(); below. */
15737 #include <assert.h>
15738 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15746 /* The GNU C library defines this for functions which it implements
15747 to always fail with ENOSYS. Some functions are actually named
15748 something starting with __ and the normal name is an alias. */
15749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15757 if { (eval echo configure:15758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15759 eval "ac_cv_func_$ac_func=yes"
15761 echo "configure: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15764 eval "ac_cv_func_$ac_func=no"
15769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15770 echo "$ac_t""yes" 1>&6
15771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15772 cat >> confdefs.h <<EOF
15773 #define $ac_tr_func 1
15777 echo "$ac_t""no" 1>&6
15784 for ac_hdr in lwp/lwp.h
15786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15788 echo "configure:15789: checking for $ac_hdr" >&5
15789 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
15792 cat > conftest.$ac_ext <<EOF
15793 #line 15794 "configure"
15794 #include "confdefs.h"
15797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15798 { (eval echo configure:15799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15800 if test -z "$ac_err"; then
15802 eval "ac_cv_header_$ac_safe=yes"
15805 echo "configure: failed program was:" >&5
15806 cat conftest.$ac_ext >&5
15808 eval "ac_cv_header_$ac_safe=no"
15812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15813 echo "$ac_t""yes" 1>&6
15814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15815 cat >> confdefs.h <<EOF
15816 #define $ac_tr_hdr 1
15820 echo "$ac_t""no" 1>&6
15824 if test $ac_cv_header_lwp_lwp_h = yes ; then
15825 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15826 echo "configure:15827: checking for lwp_create in -llwp" >&5
15827 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15831 ac_save_LIBS="$LIBS"
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15836 /* Override any gcc2 internal prototype to avoid an error. */
15837 /* We use char because int might match the return type of a gcc2
15838 builtin and then its argument prototype would still apply. */
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15847 eval "ac_cv_lib_$ac_lib_var=yes"
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15852 eval "ac_cv_lib_$ac_lib_var=no"
15855 LIBS="$ac_save_LIBS"
15858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15859 echo "$ac_t""yes" 1>&6
15862 echo "$ac_t""no" 1>&6
15867 if test $have_lwp = yes ; then
15868 cat >> confdefs.h <<\EOF
15872 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15873 ol_link_threads=lwp
15875 if test $ol_with_yielding_select = auto ; then
15876 ol_with_yielding_select=no
15882 if test $ol_with_yielding_select = yes ; then
15883 cat >> confdefs.h <<\EOF
15884 #define HAVE_YIELDING_SELECT 1
15889 if test $ol_with_threads = manual ; then
15890 ol_link_threads=yes
15892 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15894 for ac_hdr in pthread.h sched.h
15896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15898 echo "configure:15899: checking for $ac_hdr" >&5
15899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15900 echo $ac_n "(cached) $ac_c" 1>&6
15902 cat > conftest.$ac_ext <<EOF
15903 #line 15904 "configure"
15904 #include "confdefs.h"
15907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15908 { (eval echo configure:15909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15910 if test -z "$ac_err"; then
15912 eval "ac_cv_header_$ac_safe=yes"
15915 echo "configure: failed program was:" >&5
15916 cat conftest.$ac_ext >&5
15918 eval "ac_cv_header_$ac_safe=no"
15922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15923 echo "$ac_t""yes" 1>&6
15924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15925 cat >> confdefs.h <<EOF
15926 #define $ac_tr_hdr 1
15930 echo "$ac_t""no" 1>&6
15934 for ac_func in sched_yield pthread_yield
15936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15937 echo "configure:15938: checking for $ac_func" >&5
15938 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15939 echo $ac_n "(cached) $ac_c" 1>&6
15941 cat > conftest.$ac_ext <<EOF
15942 #line 15943 "configure"
15943 #include "confdefs.h"
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char $ac_func(); below. */
15946 #include <assert.h>
15947 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */
15955 /* The GNU C library defines this for functions which it implements
15956 to always fail with ENOSYS. Some functions are actually named
15957 something starting with __ and the normal name is an alias. */
15958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15966 if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15968 eval "ac_cv_func_$ac_func=yes"
15970 echo "configure: failed program was:" >&5
15971 cat conftest.$ac_ext >&5
15973 eval "ac_cv_func_$ac_func=no"
15978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15981 cat >> confdefs.h <<EOF
15982 #define $ac_tr_func 1
15986 echo "$ac_t""no" 1>&6
15991 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15992 echo "configure:15993: checking for LinuxThreads pthread.h" >&5
15993 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15994 echo $ac_n "(cached) $ac_c" 1>&6
15996 cat > conftest.$ac_ext <<EOF
15997 #line 15998 "configure"
15998 #include "confdefs.h"
15999 #include <pthread.h>
16001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16002 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16004 ol_cv_header_linux_threads=yes
16007 ol_cv_header_linux_threads=no
16014 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16015 if test $ol_cv_header_linux_threads = yes; then
16016 cat >> confdefs.h <<\EOF
16017 #define HAVE_LINUX_THREADS 1
16023 for ac_hdr in mach/cthreads.h
16025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16027 echo "configure:16028: checking for $ac_hdr" >&5
16028 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16029 echo $ac_n "(cached) $ac_c" 1>&6
16031 cat > conftest.$ac_ext <<EOF
16032 #line 16033 "configure"
16033 #include "confdefs.h"
16036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16037 { (eval echo configure:16038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16039 if test -z "$ac_err"; then
16041 eval "ac_cv_header_$ac_safe=yes"
16044 echo "configure: failed program was:" >&5
16045 cat conftest.$ac_ext >&5
16047 eval "ac_cv_header_$ac_safe=no"
16051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16052 echo "$ac_t""yes" 1>&6
16053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16054 cat >> confdefs.h <<EOF
16055 #define $ac_tr_hdr 1
16059 echo "$ac_t""no" 1>&6
16063 for ac_hdr in lwp/lwp.h
16065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16067 echo "configure:16068: checking for $ac_hdr" >&5
16068 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16069 echo $ac_n "(cached) $ac_c" 1>&6
16071 cat > conftest.$ac_ext <<EOF
16072 #line 16073 "configure"
16073 #include "confdefs.h"
16076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16077 { (eval echo configure:16078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16079 if test -z "$ac_err"; then
16081 eval "ac_cv_header_$ac_safe=yes"
16084 echo "configure: failed program was:" >&5
16085 cat conftest.$ac_ext >&5
16087 eval "ac_cv_header_$ac_safe=no"
16091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16092 echo "$ac_t""yes" 1>&6
16093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16094 cat >> confdefs.h <<EOF
16095 #define $ac_tr_hdr 1
16099 echo "$ac_t""no" 1>&6
16103 for ac_hdr in thread.h synch.h
16105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16107 echo "configure:16108: checking for $ac_hdr" >&5
16108 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16111 cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16117 { (eval echo configure:16118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16119 if test -z "$ac_err"; then
16121 eval "ac_cv_header_$ac_safe=yes"
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 eval "ac_cv_header_$ac_safe=no"
16131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16132 echo "$ac_t""yes" 1>&6
16133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16134 cat >> confdefs.h <<EOF
16135 #define $ac_tr_hdr 1
16139 echo "$ac_t""no" 1>&6
16145 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16146 cat >> confdefs.h <<\EOF
16147 #define REENTRANT 1
16150 cat >> confdefs.h <<\EOF
16151 #define _REENTRANT 1
16154 cat >> confdefs.h <<\EOF
16155 #define THREAD_SAFE 1
16158 cat >> confdefs.h <<\EOF
16159 #define _THREAD_SAFE 1
16162 cat >> confdefs.h <<\EOF
16163 #define THREADSAFE 1
16166 cat >> confdefs.h <<\EOF
16167 #define _THREADSAFE 1
16170 cat >> confdefs.h <<\EOF
16171 #define _SGI_MP_SOURCE 1
16175 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16176 echo "configure:16177: checking for thread specific errno" >&5
16177 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
16181 cat > conftest.$ac_ext <<EOF
16182 #line 16183 "configure"
16183 #include "confdefs.h"
16189 if { (eval echo configure:16190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16191 ol_cv_errno_thread_specific=yes
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16196 ol_cv_errno_thread_specific=no
16202 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16204 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16205 echo "configure:16206: checking for thread specific h_errno" >&5
16206 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16210 cat > conftest.$ac_ext <<EOF
16211 #line 16212 "configure"
16212 #include "confdefs.h"
16218 if { (eval echo configure:16219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16220 ol_cv_h_errno_thread_specific=yes
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16225 ol_cv_h_errno_thread_specific=no
16231 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16233 if test $ol_cv_errno_thread_specific != yes \
16234 -o $ol_cv_h_errno_thread_specific != yes ; then
16235 LIBS="$LTHREAD_LIBS $LIBS"
16241 if test $ol_link_threads = no ; then
16242 if test $ol_with_threads = yes ; then
16243 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16246 if test $ol_with_threads = auto ; then
16247 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16251 cat >> confdefs.h <<\EOF
16252 #define NO_THREADS 1
16258 if test $ol_link_threads != no ; then
16259 cat >> confdefs.h <<\EOF
16260 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16267 gethostbyname_r gethostbyaddr_r \
16270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16271 echo "configure:16272: checking for $ac_func" >&5
16272 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16273 echo $ac_n "(cached) $ac_c" 1>&6
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16278 /* System header to define __stub macros and hopefully few prototypes,
16279 which can conflict with char $ac_func(); below. */
16280 #include <assert.h>
16281 /* Override any gcc2 internal prototype to avoid an error. */
16282 /* We use char because int might match the return type of a gcc2
16283 builtin and then its argument prototype would still apply. */
16289 /* The GNU C library defines this for functions which it implements
16290 to always fail with ENOSYS. Some functions are actually named
16291 something starting with __ and the normal name is an alias. */
16292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16300 if { (eval echo configure:16301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16302 eval "ac_cv_func_$ac_func=yes"
16304 echo "configure: failed program was:" >&5
16305 cat conftest.$ac_ext >&5
16307 eval "ac_cv_func_$ac_func=no"
16312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16313 echo "$ac_t""yes" 1>&6
16314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16315 cat >> confdefs.h <<EOF
16316 #define $ac_tr_func 1
16320 echo "$ac_t""no" 1>&6
16325 if test "$ac_cv_func_ctime_r" = no ; then
16326 ol_cv_func_ctime_r_nargs=0
16328 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16329 echo "configure:16330: checking number of arguments of ctime_r" >&5
16330 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16331 echo $ac_n "(cached) $ac_c" 1>&6
16333 cat > conftest.$ac_ext <<EOF
16334 #line 16335 "configure"
16335 #include "confdefs.h"
16338 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16341 if { (eval echo configure:16342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16343 ol_cv_func_ctime_r_nargs3=yes
16345 echo "configure: failed program was:" >&5
16346 cat conftest.$ac_ext >&5
16348 ol_cv_func_ctime_r_nargs3=no
16352 cat > conftest.$ac_ext <<EOF
16353 #line 16354 "configure"
16354 #include "confdefs.h"
16357 time_t ti; char *buffer; ctime_r(&ti,buffer);
16360 if { (eval echo configure:16361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16362 ol_cv_func_ctime_r_nargs2=yes
16364 echo "configure: failed program was:" >&5
16365 cat conftest.$ac_ext >&5
16367 ol_cv_func_ctime_r_nargs2=no
16371 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16372 $ol_cv_func_ctime_r_nargs2 = no ; then
16374 ol_cv_func_ctime_r_nargs=3
16376 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16377 $ol_cv_func_ctime_r_nargs2 = yes ; then
16379 ol_cv_func_ctime_r_nargs=2
16382 ol_cv_func_ctime_r_nargs=0
16387 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16389 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16390 cat >> confdefs.h <<EOF
16391 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16398 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16399 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16400 echo "configure:16401: checking number of arguments of gethostbyname_r" >&5
16401 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16402 echo $ac_n "(cached) $ac_c" 1>&6
16404 cat > conftest.$ac_ext <<EOF
16405 #line 16406 "configure"
16406 #include "confdefs.h"
16407 #include <sys/types.h>
16408 #include <sys/socket.h>
16409 #include <netinet/in.h>
16411 #define BUFSIZE (sizeof(struct hostent)+10)
16413 struct hostent hent; char buffer[BUFSIZE];
16414 int bufsize=BUFSIZE;int h_errno;
16415 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16416 buffer, bufsize, &h_errno);
16419 if { (eval echo configure:16420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16421 ol_cv_func_gethostbyname_r_nargs5=yes
16423 echo "configure: failed program was:" >&5
16424 cat conftest.$ac_ext >&5
16426 ol_cv_func_gethostbyname_r_nargs5=no
16430 cat > conftest.$ac_ext <<EOF
16431 #line 16432 "configure"
16432 #include "confdefs.h"
16433 #include <sys/types.h>
16434 #include <sys/socket.h>
16435 #include <netinet/in.h>
16437 #define BUFSIZE (sizeof(struct hostent)+10)
16439 struct hostent hent;struct hostent *rhent;
16440 char buffer[BUFSIZE];
16441 int bufsize=BUFSIZE;int h_errno;
16442 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16446 if { (eval echo configure:16447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16448 ol_cv_func_gethostbyname_r_nargs6=yes
16450 echo "configure: failed program was:" >&5
16451 cat conftest.$ac_ext >&5
16453 ol_cv_func_gethostbyname_r_nargs6=no
16457 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16458 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16460 ol_cv_func_gethostbyname_r_nargs=5
16462 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16463 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16465 ol_cv_func_gethostbyname_r_nargs=6
16468 ol_cv_func_gethostbyname_r_nargs=0
16473 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16474 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16475 cat >> confdefs.h <<EOF
16476 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16482 ol_cv_func_gethostbyname_r_nargs=0
16485 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16486 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16487 echo "configure:16488: checking number of arguments of gethostbyaddr_r" >&5
16488 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16489 echo $ac_n "(cached) $ac_c" 1>&6
16491 cat > conftest.$ac_ext <<EOF
16492 #line 16493 "configure"
16493 #include "confdefs.h"
16494 #include <sys/types.h>
16495 #include <sys/socket.h>
16496 #include <netinet/in.h>
16498 #define BUFSIZE (sizeof(struct hostent)+10)
16500 struct hostent hent; char buffer[BUFSIZE];
16501 struct in_addr add;
16502 size_t alen=sizeof(struct in_addr);
16503 int bufsize=BUFSIZE;int h_errno;
16504 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16505 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16508 if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16510 ol_cv_func_gethostbyaddr_r_nargs7=yes
16512 echo "configure: failed program was:" >&5
16513 cat conftest.$ac_ext >&5
16515 ol_cv_func_gethostbyaddr_r_nargs7=no
16519 cat > conftest.$ac_ext <<EOF
16520 #line 16521 "configure"
16521 #include "confdefs.h"
16522 #include <sys/types.h>
16523 #include <sys/socket.h>
16524 #include <netinet/in.h>
16526 #define BUFSIZE (sizeof(struct hostent)+10)
16528 struct hostent hent;
16529 struct hostent *rhent; char buffer[BUFSIZE];
16530 struct in_addr add;
16531 size_t alen=sizeof(struct in_addr);
16532 int bufsize=BUFSIZE;int h_errno;
16533 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16534 alen, AF_INET, &hent, buffer, bufsize,
16538 if { (eval echo configure:16539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16540 ol_cv_func_gethostbyaddr_r_nargs8=yes
16542 echo "configure: failed program was:" >&5
16543 cat conftest.$ac_ext >&5
16545 ol_cv_func_gethostbyaddr_r_nargs8=no
16549 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16550 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16552 ol_cv_func_gethostbyaddr_r_nargs=7
16554 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16555 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16557 ol_cv_func_gethostbyaddr_r_nargs=8
16560 ol_cv_func_gethostbyaddr_r_nargs=0
16565 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16566 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16567 cat >> confdefs.h <<EOF
16568 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16574 ol_cv_func_gethostbyaddr_r_nargs=0
16579 if test $ol_with_ldbm_api = auto \
16580 -o $ol_with_ldbm_api = berkeley \
16581 -o $ol_with_ldbm_api = bcompat ; then
16583 if test $ol_with_ldbm_api = bcompat; then \
16584 for ac_hdr in db_185.h db.h
16586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16588 echo "configure:16589: checking for $ac_hdr" >&5
16589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16590 echo $ac_n "(cached) $ac_c" 1>&6
16592 cat > conftest.$ac_ext <<EOF
16593 #line 16594 "configure"
16594 #include "confdefs.h"
16597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16598 { (eval echo configure:16599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16600 if test -z "$ac_err"; then
16602 eval "ac_cv_header_$ac_safe=yes"
16605 echo "configure: failed program was:" >&5
16606 cat conftest.$ac_ext >&5
16608 eval "ac_cv_header_$ac_safe=no"
16612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16613 echo "$ac_t""yes" 1>&6
16614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16615 cat >> confdefs.h <<EOF
16616 #define $ac_tr_hdr 1
16620 echo "$ac_t""no" 1>&6
16624 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16625 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16626 echo "configure:16627: checking if Berkeley DB header compatibility" >&5
16627 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16628 echo $ac_n "(cached) $ac_c" 1>&6
16631 cat > conftest.$ac_ext <<EOF
16632 #line 16633 "configure"
16633 #include "confdefs.h"
16636 # include <db_185.h>
16641 /* this check could be improved */
16642 #ifndef DB_VERSION_MAJOR
16643 # define DB_VERSION_MAJOR 1
16646 #if DB_VERSION_MAJOR == 1
16651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16652 egrep "__db_version_1" >/dev/null 2>&1; then
16654 ol_cv_header_db1=yes
16657 ol_cv_header_db1=no
16663 echo "$ac_t""$ol_cv_header_db1" 1>&6
16665 if test $ol_cv_header_db1 = yes ; then
16667 if test $ol_cv_lib_db = no ; then
16668 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16669 echo "configure:16670: checking for Berkeley DB link (default)" >&5
16670 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16671 echo $ac_n "(cached) $ac_c" 1>&6
16676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16678 cat > conftest.$ac_ext <<EOF
16679 #line 16680 "configure"
16680 #include "confdefs.h"
16682 #ifdef HAVE_DB_185_H
16683 # include <db_185.h>
16688 #ifndef DB_VERSION_MAJOR
16689 # define DB_VERSION_MAJOR 1
16693 #define NULL ((void*)0)
16698 #if DB_VERSION_MAJOR > 1
16701 int major, minor, patch;
16703 version = db_version( &major, &minor, &patch );
16705 if( major != DB_VERSION_MAJOR ||
16706 minor < DB_VERSION_MINOR )
16708 printf("Berkeley DB version mismatch\n"
16709 "\texpected: %s\n\tgot: %s\n",
16710 DB_VERSION_STRING, version);
16716 #if DB_VERSION_MAJOR > 2
16717 db_env_create( NULL, 0 );
16718 #elif DB_VERSION_MAJOR > 1
16719 db_appexit( NULL );
16721 (void) dbopen( NULL, 0, 0, 0, NULL);
16726 if { (eval echo configure:16727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16730 echo "configure: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16741 echo "$ac_t""$ol_cv_db_none" 1>&6
16743 if test $ol_cv_db_none = yes ; then
16748 if test $ol_cv_lib_db = no ; then
16749 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16750 echo "configure:16751: checking for Berkeley DB link (-ldb42)" >&5
16751 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16752 echo $ac_n "(cached) $ac_c" 1>&6
16757 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16759 cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16763 #ifdef HAVE_DB_185_H
16764 # include <db_185.h>
16769 #ifndef DB_VERSION_MAJOR
16770 # define DB_VERSION_MAJOR 1
16774 #define NULL ((void*)0)
16779 #if DB_VERSION_MAJOR > 1
16782 int major, minor, patch;
16784 version = db_version( &major, &minor, &patch );
16786 if( major != DB_VERSION_MAJOR ||
16787 minor < DB_VERSION_MINOR )
16789 printf("Berkeley DB version mismatch\n"
16790 "\texpected: %s\n\tgot: %s\n",
16791 DB_VERSION_STRING, version);
16797 #if DB_VERSION_MAJOR > 2
16798 db_env_create( NULL, 0 );
16799 #elif DB_VERSION_MAJOR > 1
16800 db_appexit( NULL );
16802 (void) dbopen( NULL, 0, 0, 0, NULL);
16807 if { (eval echo configure:16808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16811 echo "configure: failed program was:" >&5
16812 cat conftest.$ac_ext >&5
16822 echo "$ac_t""$ol_cv_db_db42" 1>&6
16824 if test $ol_cv_db_db42 = yes ; then
16825 ol_cv_lib_db=-ldb42
16829 if test $ol_cv_lib_db = no ; then
16830 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16831 echo "configure:16832: checking for Berkeley DB link (-ldb-42)" >&5
16832 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16833 echo $ac_n "(cached) $ac_c" 1>&6
16838 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16840 cat > conftest.$ac_ext <<EOF
16841 #line 16842 "configure"
16842 #include "confdefs.h"
16844 #ifdef HAVE_DB_185_H
16845 # include <db_185.h>
16850 #ifndef DB_VERSION_MAJOR
16851 # define DB_VERSION_MAJOR 1
16855 #define NULL ((void*)0)
16860 #if DB_VERSION_MAJOR > 1
16863 int major, minor, patch;
16865 version = db_version( &major, &minor, &patch );
16867 if( major != DB_VERSION_MAJOR ||
16868 minor < DB_VERSION_MINOR )
16870 printf("Berkeley DB version mismatch\n"
16871 "\texpected: %s\n\tgot: %s\n",
16872 DB_VERSION_STRING, version);
16878 #if DB_VERSION_MAJOR > 2
16879 db_env_create( NULL, 0 );
16880 #elif DB_VERSION_MAJOR > 1
16881 db_appexit( NULL );
16883 (void) dbopen( NULL, 0, 0, 0, NULL);
16888 if { (eval echo configure:16889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16892 echo "configure: failed program was:" >&5
16893 cat conftest.$ac_ext >&5
16903 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16905 if test $ol_cv_db_db_42 = yes ; then
16906 ol_cv_lib_db=-ldb-42
16910 if test $ol_cv_lib_db = no ; then
16911 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16912 echo "configure:16913: checking for Berkeley DB link (-ldb-4.2)" >&5
16913 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16914 echo $ac_n "(cached) $ac_c" 1>&6
16919 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16921 cat > conftest.$ac_ext <<EOF
16922 #line 16923 "configure"
16923 #include "confdefs.h"
16925 #ifdef HAVE_DB_185_H
16926 # include <db_185.h>
16931 #ifndef DB_VERSION_MAJOR
16932 # define DB_VERSION_MAJOR 1
16936 #define NULL ((void*)0)
16941 #if DB_VERSION_MAJOR > 1
16944 int major, minor, patch;
16946 version = db_version( &major, &minor, &patch );
16948 if( major != DB_VERSION_MAJOR ||
16949 minor < DB_VERSION_MINOR )
16951 printf("Berkeley DB version mismatch\n"
16952 "\texpected: %s\n\tgot: %s\n",
16953 DB_VERSION_STRING, version);
16959 #if DB_VERSION_MAJOR > 2
16960 db_env_create( NULL, 0 );
16961 #elif DB_VERSION_MAJOR > 1
16962 db_appexit( NULL );
16964 (void) dbopen( NULL, 0, 0, 0, NULL);
16969 if { (eval echo configure:16970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16971 ol_cv_db_db_4_dot_2=yes
16973 echo "configure: failed program was:" >&5
16974 cat conftest.$ac_ext >&5
16976 ol_cv_db_db_4_dot_2=no
16984 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16986 if test $ol_cv_db_db_4_dot_2 = yes ; then
16987 ol_cv_lib_db=-ldb-4.2
16991 if test $ol_cv_lib_db = no ; then
16992 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16993 echo "configure:16994: checking for Berkeley DB link (-ldb-4-2)" >&5
16994 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16995 echo $ac_n "(cached) $ac_c" 1>&6
17000 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17002 cat > conftest.$ac_ext <<EOF
17003 #line 17004 "configure"
17004 #include "confdefs.h"
17006 #ifdef HAVE_DB_185_H
17007 # include <db_185.h>
17012 #ifndef DB_VERSION_MAJOR
17013 # define DB_VERSION_MAJOR 1
17017 #define NULL ((void*)0)
17022 #if DB_VERSION_MAJOR > 1
17025 int major, minor, patch;
17027 version = db_version( &major, &minor, &patch );
17029 if( major != DB_VERSION_MAJOR ||
17030 minor < DB_VERSION_MINOR )
17032 printf("Berkeley DB version mismatch\n"
17033 "\texpected: %s\n\tgot: %s\n",
17034 DB_VERSION_STRING, version);
17040 #if DB_VERSION_MAJOR > 2
17041 db_env_create( NULL, 0 );
17042 #elif DB_VERSION_MAJOR > 1
17043 db_appexit( NULL );
17045 (void) dbopen( NULL, 0, 0, 0, NULL);
17050 if { (eval echo configure:17051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17052 ol_cv_db_db_4_2=yes
17054 echo "configure: failed program was:" >&5
17055 cat conftest.$ac_ext >&5
17065 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17067 if test $ol_cv_db_db_4_2 = yes ; then
17068 ol_cv_lib_db=-ldb-4-2
17072 if test $ol_cv_lib_db = no ; then
17073 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17074 echo "configure:17075: checking for Berkeley DB link (-ldb-4)" >&5
17075 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17076 echo $ac_n "(cached) $ac_c" 1>&6
17081 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17083 cat > conftest.$ac_ext <<EOF
17084 #line 17085 "configure"
17085 #include "confdefs.h"
17087 #ifdef HAVE_DB_185_H
17088 # include <db_185.h>
17093 #ifndef DB_VERSION_MAJOR
17094 # define DB_VERSION_MAJOR 1
17098 #define NULL ((void*)0)
17103 #if DB_VERSION_MAJOR > 1
17106 int major, minor, patch;
17108 version = db_version( &major, &minor, &patch );
17110 if( major != DB_VERSION_MAJOR ||
17111 minor < DB_VERSION_MINOR )
17113 printf("Berkeley DB version mismatch\n"
17114 "\texpected: %s\n\tgot: %s\n",
17115 DB_VERSION_STRING, version);
17121 #if DB_VERSION_MAJOR > 2
17122 db_env_create( NULL, 0 );
17123 #elif DB_VERSION_MAJOR > 1
17124 db_appexit( NULL );
17126 (void) dbopen( NULL, 0, 0, 0, NULL);
17131 if { (eval echo configure:17132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17135 echo "configure: failed program was:" >&5
17136 cat conftest.$ac_ext >&5
17146 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17148 if test $ol_cv_db_db_4 = yes ; then
17149 ol_cv_lib_db=-ldb-4
17153 if test $ol_cv_lib_db = no ; then
17154 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17155 echo "configure:17156: checking for Berkeley DB link (-ldb4)" >&5
17156 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17157 echo $ac_n "(cached) $ac_c" 1>&6
17162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17164 cat > conftest.$ac_ext <<EOF
17165 #line 17166 "configure"
17166 #include "confdefs.h"
17168 #ifdef HAVE_DB_185_H
17169 # include <db_185.h>
17174 #ifndef DB_VERSION_MAJOR
17175 # define DB_VERSION_MAJOR 1
17179 #define NULL ((void*)0)
17184 #if DB_VERSION_MAJOR > 1
17187 int major, minor, patch;
17189 version = db_version( &major, &minor, &patch );
17191 if( major != DB_VERSION_MAJOR ||
17192 minor < DB_VERSION_MINOR )
17194 printf("Berkeley DB version mismatch\n"
17195 "\texpected: %s\n\tgot: %s\n",
17196 DB_VERSION_STRING, version);
17202 #if DB_VERSION_MAJOR > 2
17203 db_env_create( NULL, 0 );
17204 #elif DB_VERSION_MAJOR > 1
17205 db_appexit( NULL );
17207 (void) dbopen( NULL, 0, 0, 0, NULL);
17212 if { (eval echo configure:17213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17216 echo "configure: failed program was:" >&5
17217 cat conftest.$ac_ext >&5
17227 echo "$ac_t""$ol_cv_db_db4" 1>&6
17229 if test $ol_cv_db_db4 = yes ; then
17234 if test $ol_cv_lib_db = no ; then
17235 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17236 echo "configure:17237: checking for Berkeley DB link (-ldb)" >&5
17237 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17238 echo $ac_n "(cached) $ac_c" 1>&6
17243 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17245 cat > conftest.$ac_ext <<EOF
17246 #line 17247 "configure"
17247 #include "confdefs.h"
17249 #ifdef HAVE_DB_185_H
17250 # include <db_185.h>
17255 #ifndef DB_VERSION_MAJOR
17256 # define DB_VERSION_MAJOR 1
17260 #define NULL ((void*)0)
17265 #if DB_VERSION_MAJOR > 1
17268 int major, minor, patch;
17270 version = db_version( &major, &minor, &patch );
17272 if( major != DB_VERSION_MAJOR ||
17273 minor < DB_VERSION_MINOR )
17275 printf("Berkeley DB version mismatch\n"
17276 "\texpected: %s\n\tgot: %s\n",
17277 DB_VERSION_STRING, version);
17283 #if DB_VERSION_MAJOR > 2
17284 db_env_create( NULL, 0 );
17285 #elif DB_VERSION_MAJOR > 1
17286 db_appexit( NULL );
17288 (void) dbopen( NULL, 0, 0, 0, NULL);
17293 if { (eval echo configure:17294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17297 echo "configure: failed program was:" >&5
17298 cat conftest.$ac_ext >&5
17308 echo "$ac_t""$ol_cv_db_db" 1>&6
17310 if test $ol_cv_db_db = yes ; then
17315 if test $ol_cv_lib_db = no ; then
17316 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17317 echo "configure:17318: checking for Berkeley DB link (-ldb41)" >&5
17318 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17319 echo $ac_n "(cached) $ac_c" 1>&6
17324 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17326 cat > conftest.$ac_ext <<EOF
17327 #line 17328 "configure"
17328 #include "confdefs.h"
17330 #ifdef HAVE_DB_185_H
17331 # include <db_185.h>
17336 #ifndef DB_VERSION_MAJOR
17337 # define DB_VERSION_MAJOR 1
17341 #define NULL ((void*)0)
17346 #if DB_VERSION_MAJOR > 1
17349 int major, minor, patch;
17351 version = db_version( &major, &minor, &patch );
17353 if( major != DB_VERSION_MAJOR ||
17354 minor < DB_VERSION_MINOR )
17356 printf("Berkeley DB version mismatch\n"
17357 "\texpected: %s\n\tgot: %s\n",
17358 DB_VERSION_STRING, version);
17364 #if DB_VERSION_MAJOR > 2
17365 db_env_create( NULL, 0 );
17366 #elif DB_VERSION_MAJOR > 1
17367 db_appexit( NULL );
17369 (void) dbopen( NULL, 0, 0, 0, NULL);
17374 if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17389 echo "$ac_t""$ol_cv_db_db41" 1>&6
17391 if test $ol_cv_db_db41 = yes ; then
17392 ol_cv_lib_db=-ldb41
17396 if test $ol_cv_lib_db = no ; then
17397 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17398 echo "configure:17399: checking for Berkeley DB link (-ldb-41)" >&5
17399 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17400 echo $ac_n "(cached) $ac_c" 1>&6
17405 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17407 cat > conftest.$ac_ext <<EOF
17408 #line 17409 "configure"
17409 #include "confdefs.h"
17411 #ifdef HAVE_DB_185_H
17412 # include <db_185.h>
17417 #ifndef DB_VERSION_MAJOR
17418 # define DB_VERSION_MAJOR 1
17422 #define NULL ((void*)0)
17427 #if DB_VERSION_MAJOR > 1
17430 int major, minor, patch;
17432 version = db_version( &major, &minor, &patch );
17434 if( major != DB_VERSION_MAJOR ||
17435 minor < DB_VERSION_MINOR )
17437 printf("Berkeley DB version mismatch\n"
17438 "\texpected: %s\n\tgot: %s\n",
17439 DB_VERSION_STRING, version);
17445 #if DB_VERSION_MAJOR > 2
17446 db_env_create( NULL, 0 );
17447 #elif DB_VERSION_MAJOR > 1
17448 db_appexit( NULL );
17450 (void) dbopen( NULL, 0, 0, 0, NULL);
17455 if { (eval echo configure:17456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17459 echo "configure: failed program was:" >&5
17460 cat conftest.$ac_ext >&5
17470 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17472 if test $ol_cv_db_db_41 = yes ; then
17473 ol_cv_lib_db=-ldb-41
17477 if test $ol_cv_lib_db = no ; then
17478 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17479 echo "configure:17480: checking for Berkeley DB link (-ldb-4.1)" >&5
17480 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17481 echo $ac_n "(cached) $ac_c" 1>&6
17486 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17488 cat > conftest.$ac_ext <<EOF
17489 #line 17490 "configure"
17490 #include "confdefs.h"
17492 #ifdef HAVE_DB_185_H
17493 # include <db_185.h>
17498 #ifndef DB_VERSION_MAJOR
17499 # define DB_VERSION_MAJOR 1
17503 #define NULL ((void*)0)
17508 #if DB_VERSION_MAJOR > 1
17511 int major, minor, patch;
17513 version = db_version( &major, &minor, &patch );
17515 if( major != DB_VERSION_MAJOR ||
17516 minor < DB_VERSION_MINOR )
17518 printf("Berkeley DB version mismatch\n"
17519 "\texpected: %s\n\tgot: %s\n",
17520 DB_VERSION_STRING, version);
17526 #if DB_VERSION_MAJOR > 2
17527 db_env_create( NULL, 0 );
17528 #elif DB_VERSION_MAJOR > 1
17529 db_appexit( NULL );
17531 (void) dbopen( NULL, 0, 0, 0, NULL);
17536 if { (eval echo configure:17537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17538 ol_cv_db_db_4_dot_1=yes
17540 echo "configure: failed program was:" >&5
17541 cat conftest.$ac_ext >&5
17543 ol_cv_db_db_4_dot_1=no
17551 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17553 if test $ol_cv_db_db_4_dot_1 = yes ; then
17554 ol_cv_lib_db=-ldb-4.1
17558 if test $ol_cv_lib_db = no ; then
17559 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17560 echo "configure:17561: checking for Berkeley DB link (-ldb-4-1)" >&5
17561 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17562 echo $ac_n "(cached) $ac_c" 1>&6
17567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17569 cat > conftest.$ac_ext <<EOF
17570 #line 17571 "configure"
17571 #include "confdefs.h"
17573 #ifdef HAVE_DB_185_H
17574 # include <db_185.h>
17579 #ifndef DB_VERSION_MAJOR
17580 # define DB_VERSION_MAJOR 1
17584 #define NULL ((void*)0)
17589 #if DB_VERSION_MAJOR > 1
17592 int major, minor, patch;
17594 version = db_version( &major, &minor, &patch );
17596 if( major != DB_VERSION_MAJOR ||
17597 minor < DB_VERSION_MINOR )
17599 printf("Berkeley DB version mismatch\n"
17600 "\texpected: %s\n\tgot: %s\n",
17601 DB_VERSION_STRING, version);
17607 #if DB_VERSION_MAJOR > 2
17608 db_env_create( NULL, 0 );
17609 #elif DB_VERSION_MAJOR > 1
17610 db_appexit( NULL );
17612 (void) dbopen( NULL, 0, 0, 0, NULL);
17617 if { (eval echo configure:17618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17619 ol_cv_db_db_4_1=yes
17621 echo "configure: failed program was:" >&5
17622 cat conftest.$ac_ext >&5
17632 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17634 if test $ol_cv_db_db_4_1 = yes ; then
17635 ol_cv_lib_db=-ldb-4-1
17639 if test $ol_cv_lib_db = no ; then
17640 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17641 echo "configure:17642: checking for Berkeley DB link (-ldb3)" >&5
17642 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17643 echo $ac_n "(cached) $ac_c" 1>&6
17648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17650 cat > conftest.$ac_ext <<EOF
17651 #line 17652 "configure"
17652 #include "confdefs.h"
17654 #ifdef HAVE_DB_185_H
17655 # include <db_185.h>
17660 #ifndef DB_VERSION_MAJOR
17661 # define DB_VERSION_MAJOR 1
17665 #define NULL ((void*)0)
17670 #if DB_VERSION_MAJOR > 1
17673 int major, minor, patch;
17675 version = db_version( &major, &minor, &patch );
17677 if( major != DB_VERSION_MAJOR ||
17678 minor < DB_VERSION_MINOR )
17680 printf("Berkeley DB version mismatch\n"
17681 "\texpected: %s\n\tgot: %s\n",
17682 DB_VERSION_STRING, version);
17688 #if DB_VERSION_MAJOR > 2
17689 db_env_create( NULL, 0 );
17690 #elif DB_VERSION_MAJOR > 1
17691 db_appexit( NULL );
17693 (void) dbopen( NULL, 0, 0, 0, NULL);
17698 if { (eval echo configure:17699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17702 echo "configure: failed program was:" >&5
17703 cat conftest.$ac_ext >&5
17713 echo "$ac_t""$ol_cv_db_db3" 1>&6
17715 if test $ol_cv_db_db3 = yes ; then
17720 if test $ol_cv_lib_db = no ; then
17721 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17722 echo "configure:17723: checking for Berkeley DB link (-ldb-3)" >&5
17723 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17724 echo $ac_n "(cached) $ac_c" 1>&6
17729 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17731 cat > conftest.$ac_ext <<EOF
17732 #line 17733 "configure"
17733 #include "confdefs.h"
17735 #ifdef HAVE_DB_185_H
17736 # include <db_185.h>
17741 #ifndef DB_VERSION_MAJOR
17742 # define DB_VERSION_MAJOR 1
17746 #define NULL ((void*)0)
17751 #if DB_VERSION_MAJOR > 1
17754 int major, minor, patch;
17756 version = db_version( &major, &minor, &patch );
17758 if( major != DB_VERSION_MAJOR ||
17759 minor < DB_VERSION_MINOR )
17761 printf("Berkeley DB version mismatch\n"
17762 "\texpected: %s\n\tgot: %s\n",
17763 DB_VERSION_STRING, version);
17769 #if DB_VERSION_MAJOR > 2
17770 db_env_create( NULL, 0 );
17771 #elif DB_VERSION_MAJOR > 1
17772 db_appexit( NULL );
17774 (void) dbopen( NULL, 0, 0, 0, NULL);
17779 if { (eval echo configure:17780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17783 echo "configure: failed program was:" >&5
17784 cat conftest.$ac_ext >&5
17794 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17796 if test $ol_cv_db_db_3 = yes ; then
17797 ol_cv_lib_db=-ldb-3
17801 if test $ol_cv_lib_db = no ; then
17802 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17803 echo "configure:17804: checking for Berkeley DB link (-ldb2)" >&5
17804 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17805 echo $ac_n "(cached) $ac_c" 1>&6
17810 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17812 cat > conftest.$ac_ext <<EOF
17813 #line 17814 "configure"
17814 #include "confdefs.h"
17816 #ifdef HAVE_DB_185_H
17817 # include <db_185.h>
17822 #ifndef DB_VERSION_MAJOR
17823 # define DB_VERSION_MAJOR 1
17827 #define NULL ((void*)0)
17832 #if DB_VERSION_MAJOR > 1
17835 int major, minor, patch;
17837 version = db_version( &major, &minor, &patch );
17839 if( major != DB_VERSION_MAJOR ||
17840 minor < DB_VERSION_MINOR )
17842 printf("Berkeley DB version mismatch\n"
17843 "\texpected: %s\n\tgot: %s\n",
17844 DB_VERSION_STRING, version);
17850 #if DB_VERSION_MAJOR > 2
17851 db_env_create( NULL, 0 );
17852 #elif DB_VERSION_MAJOR > 1
17853 db_appexit( NULL );
17855 (void) dbopen( NULL, 0, 0, 0, NULL);
17860 if { (eval echo configure:17861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17864 echo "configure: failed program was:" >&5
17865 cat conftest.$ac_ext >&5
17875 echo "$ac_t""$ol_cv_db_db2" 1>&6
17877 if test $ol_cv_db_db2 = yes ; then
17882 if test $ol_cv_lib_db = no ; then
17883 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17884 echo "configure:17885: checking for Berkeley DB link (-ldb-2)" >&5
17885 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17886 echo $ac_n "(cached) $ac_c" 1>&6
17891 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17893 cat > conftest.$ac_ext <<EOF
17894 #line 17895 "configure"
17895 #include "confdefs.h"
17897 #ifdef HAVE_DB_185_H
17898 # include <db_185.h>
17903 #ifndef DB_VERSION_MAJOR
17904 # define DB_VERSION_MAJOR 1
17908 #define NULL ((void*)0)
17913 #if DB_VERSION_MAJOR > 1
17916 int major, minor, patch;
17918 version = db_version( &major, &minor, &patch );
17920 if( major != DB_VERSION_MAJOR ||
17921 minor < DB_VERSION_MINOR )
17923 printf("Berkeley DB version mismatch\n"
17924 "\texpected: %s\n\tgot: %s\n",
17925 DB_VERSION_STRING, version);
17931 #if DB_VERSION_MAJOR > 2
17932 db_env_create( NULL, 0 );
17933 #elif DB_VERSION_MAJOR > 1
17934 db_appexit( NULL );
17936 (void) dbopen( NULL, 0, 0, 0, NULL);
17941 if { (eval echo configure:17942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17945 echo "configure: failed program was:" >&5
17946 cat conftest.$ac_ext >&5
17956 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17958 if test $ol_cv_db_db_2 = yes ; then
17959 ol_cv_lib_db=-ldb-2
17963 if test $ol_cv_lib_db = no ; then
17964 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17965 echo "configure:17966: checking for Berkeley DB link (-ldb1)" >&5
17966 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17967 echo $ac_n "(cached) $ac_c" 1>&6
17972 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17974 cat > conftest.$ac_ext <<EOF
17975 #line 17976 "configure"
17976 #include "confdefs.h"
17978 #ifdef HAVE_DB_185_H
17979 # include <db_185.h>
17984 #ifndef DB_VERSION_MAJOR
17985 # define DB_VERSION_MAJOR 1
17989 #define NULL ((void*)0)
17994 #if DB_VERSION_MAJOR > 1
17997 int major, minor, patch;
17999 version = db_version( &major, &minor, &patch );
18001 if( major != DB_VERSION_MAJOR ||
18002 minor < DB_VERSION_MINOR )
18004 printf("Berkeley DB version mismatch\n"
18005 "\texpected: %s\n\tgot: %s\n",
18006 DB_VERSION_STRING, version);
18012 #if DB_VERSION_MAJOR > 2
18013 db_env_create( NULL, 0 );
18014 #elif DB_VERSION_MAJOR > 1
18015 db_appexit( NULL );
18017 (void) dbopen( NULL, 0, 0, 0, NULL);
18022 if { (eval echo configure:18023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18026 echo "configure: failed program was:" >&5
18027 cat conftest.$ac_ext >&5
18037 echo "$ac_t""$ol_cv_db_db1" 1>&6
18039 if test $ol_cv_db_db1 = yes ; then
18044 if test $ol_cv_lib_db = no ; then
18045 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18046 echo "configure:18047: checking for Berkeley DB link (-ldb-1)" >&5
18047 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18048 echo $ac_n "(cached) $ac_c" 1>&6
18053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18055 cat > conftest.$ac_ext <<EOF
18056 #line 18057 "configure"
18057 #include "confdefs.h"
18059 #ifdef HAVE_DB_185_H
18060 # include <db_185.h>
18065 #ifndef DB_VERSION_MAJOR
18066 # define DB_VERSION_MAJOR 1
18070 #define NULL ((void*)0)
18075 #if DB_VERSION_MAJOR > 1
18078 int major, minor, patch;
18080 version = db_version( &major, &minor, &patch );
18082 if( major != DB_VERSION_MAJOR ||
18083 minor < DB_VERSION_MINOR )
18085 printf("Berkeley DB version mismatch\n"
18086 "\texpected: %s\n\tgot: %s\n",
18087 DB_VERSION_STRING, version);
18093 #if DB_VERSION_MAJOR > 2
18094 db_env_create( NULL, 0 );
18095 #elif DB_VERSION_MAJOR > 1
18096 db_appexit( NULL );
18098 (void) dbopen( NULL, 0, 0, 0, NULL);
18103 if { (eval echo configure:18104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18107 echo "configure: failed program was:" >&5
18108 cat conftest.$ac_ext >&5
18118 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18120 if test $ol_cv_db_db_1 = yes ; then
18121 ol_cv_lib_db=-ldb-1
18126 if test "$ol_cv_lib_db" != no ; then
18127 ol_cv_berkeley_db=yes
18133 ol_cv_berkeley_db=no
18136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18138 echo "configure:18139: checking for $ac_hdr" >&5
18139 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18140 echo $ac_n "(cached) $ac_c" 1>&6
18142 cat > conftest.$ac_ext <<EOF
18143 #line 18144 "configure"
18144 #include "confdefs.h"
18147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18148 { (eval echo configure:18149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18150 if test -z "$ac_err"; then
18152 eval "ac_cv_header_$ac_safe=yes"
18155 echo "configure: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18158 eval "ac_cv_header_$ac_safe=no"
18162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18163 echo "$ac_t""yes" 1>&6
18164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18165 cat >> confdefs.h <<EOF
18166 #define $ac_tr_hdr 1
18170 echo "$ac_t""no" 1>&6
18174 if test $ac_cv_header_db_h = yes; then
18176 if test $ol_cv_lib_db = no ; then
18177 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18178 echo "configure:18179: checking for Berkeley DB link (default)" >&5
18179 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18180 echo $ac_n "(cached) $ac_c" 1>&6
18185 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18187 cat > conftest.$ac_ext <<EOF
18188 #line 18189 "configure"
18189 #include "confdefs.h"
18191 #ifdef HAVE_DB_185_H
18192 # include <db_185.h>
18197 #ifndef DB_VERSION_MAJOR
18198 # define DB_VERSION_MAJOR 1
18202 #define NULL ((void*)0)
18207 #if DB_VERSION_MAJOR > 1
18210 int major, minor, patch;
18212 version = db_version( &major, &minor, &patch );
18214 if( major != DB_VERSION_MAJOR ||
18215 minor < DB_VERSION_MINOR )
18217 printf("Berkeley DB version mismatch\n"
18218 "\texpected: %s\n\tgot: %s\n",
18219 DB_VERSION_STRING, version);
18225 #if DB_VERSION_MAJOR > 2
18226 db_env_create( NULL, 0 );
18227 #elif DB_VERSION_MAJOR > 1
18228 db_appexit( NULL );
18230 (void) dbopen( NULL, 0, 0, 0, NULL);
18235 if { (eval echo configure:18236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18239 echo "configure: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18250 echo "$ac_t""$ol_cv_db_none" 1>&6
18252 if test $ol_cv_db_none = yes ; then
18257 if test $ol_cv_lib_db = no ; then
18258 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18259 echo "configure:18260: checking for Berkeley DB link (-ldb42)" >&5
18260 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18261 echo $ac_n "(cached) $ac_c" 1>&6
18266 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18268 cat > conftest.$ac_ext <<EOF
18269 #line 18270 "configure"
18270 #include "confdefs.h"
18272 #ifdef HAVE_DB_185_H
18273 # include <db_185.h>
18278 #ifndef DB_VERSION_MAJOR
18279 # define DB_VERSION_MAJOR 1
18283 #define NULL ((void*)0)
18288 #if DB_VERSION_MAJOR > 1
18291 int major, minor, patch;
18293 version = db_version( &major, &minor, &patch );
18295 if( major != DB_VERSION_MAJOR ||
18296 minor < DB_VERSION_MINOR )
18298 printf("Berkeley DB version mismatch\n"
18299 "\texpected: %s\n\tgot: %s\n",
18300 DB_VERSION_STRING, version);
18306 #if DB_VERSION_MAJOR > 2
18307 db_env_create( NULL, 0 );
18308 #elif DB_VERSION_MAJOR > 1
18309 db_appexit( NULL );
18311 (void) dbopen( NULL, 0, 0, 0, NULL);
18316 if { (eval echo configure:18317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18320 echo "configure: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18331 echo "$ac_t""$ol_cv_db_db42" 1>&6
18333 if test $ol_cv_db_db42 = yes ; then
18334 ol_cv_lib_db=-ldb42
18338 if test $ol_cv_lib_db = no ; then
18339 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18340 echo "configure:18341: checking for Berkeley DB link (-ldb-42)" >&5
18341 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18342 echo $ac_n "(cached) $ac_c" 1>&6
18347 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18349 cat > conftest.$ac_ext <<EOF
18350 #line 18351 "configure"
18351 #include "confdefs.h"
18353 #ifdef HAVE_DB_185_H
18354 # include <db_185.h>
18359 #ifndef DB_VERSION_MAJOR
18360 # define DB_VERSION_MAJOR 1
18364 #define NULL ((void*)0)
18369 #if DB_VERSION_MAJOR > 1
18372 int major, minor, patch;
18374 version = db_version( &major, &minor, &patch );
18376 if( major != DB_VERSION_MAJOR ||
18377 minor < DB_VERSION_MINOR )
18379 printf("Berkeley DB version mismatch\n"
18380 "\texpected: %s\n\tgot: %s\n",
18381 DB_VERSION_STRING, version);
18387 #if DB_VERSION_MAJOR > 2
18388 db_env_create( NULL, 0 );
18389 #elif DB_VERSION_MAJOR > 1
18390 db_appexit( NULL );
18392 (void) dbopen( NULL, 0, 0, 0, NULL);
18397 if { (eval echo configure:18398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18401 echo "configure: failed program was:" >&5
18402 cat conftest.$ac_ext >&5
18412 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18414 if test $ol_cv_db_db_42 = yes ; then
18415 ol_cv_lib_db=-ldb-42
18419 if test $ol_cv_lib_db = no ; then
18420 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18421 echo "configure:18422: checking for Berkeley DB link (-ldb-4.2)" >&5
18422 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18423 echo $ac_n "(cached) $ac_c" 1>&6
18428 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18430 cat > conftest.$ac_ext <<EOF
18431 #line 18432 "configure"
18432 #include "confdefs.h"
18434 #ifdef HAVE_DB_185_H
18435 # include <db_185.h>
18440 #ifndef DB_VERSION_MAJOR
18441 # define DB_VERSION_MAJOR 1
18445 #define NULL ((void*)0)
18450 #if DB_VERSION_MAJOR > 1
18453 int major, minor, patch;
18455 version = db_version( &major, &minor, &patch );
18457 if( major != DB_VERSION_MAJOR ||
18458 minor < DB_VERSION_MINOR )
18460 printf("Berkeley DB version mismatch\n"
18461 "\texpected: %s\n\tgot: %s\n",
18462 DB_VERSION_STRING, version);
18468 #if DB_VERSION_MAJOR > 2
18469 db_env_create( NULL, 0 );
18470 #elif DB_VERSION_MAJOR > 1
18471 db_appexit( NULL );
18473 (void) dbopen( NULL, 0, 0, 0, NULL);
18478 if { (eval echo configure:18479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18480 ol_cv_db_db_4_dot_2=yes
18482 echo "configure: failed program was:" >&5
18483 cat conftest.$ac_ext >&5
18485 ol_cv_db_db_4_dot_2=no
18493 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18495 if test $ol_cv_db_db_4_dot_2 = yes ; then
18496 ol_cv_lib_db=-ldb-4.2
18500 if test $ol_cv_lib_db = no ; then
18501 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18502 echo "configure:18503: checking for Berkeley DB link (-ldb-4-2)" >&5
18503 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18504 echo $ac_n "(cached) $ac_c" 1>&6
18509 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18511 cat > conftest.$ac_ext <<EOF
18512 #line 18513 "configure"
18513 #include "confdefs.h"
18515 #ifdef HAVE_DB_185_H
18516 # include <db_185.h>
18521 #ifndef DB_VERSION_MAJOR
18522 # define DB_VERSION_MAJOR 1
18526 #define NULL ((void*)0)
18531 #if DB_VERSION_MAJOR > 1
18534 int major, minor, patch;
18536 version = db_version( &major, &minor, &patch );
18538 if( major != DB_VERSION_MAJOR ||
18539 minor < DB_VERSION_MINOR )
18541 printf("Berkeley DB version mismatch\n"
18542 "\texpected: %s\n\tgot: %s\n",
18543 DB_VERSION_STRING, version);
18549 #if DB_VERSION_MAJOR > 2
18550 db_env_create( NULL, 0 );
18551 #elif DB_VERSION_MAJOR > 1
18552 db_appexit( NULL );
18554 (void) dbopen( NULL, 0, 0, 0, NULL);
18559 if { (eval echo configure:18560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18561 ol_cv_db_db_4_2=yes
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18574 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18576 if test $ol_cv_db_db_4_2 = yes ; then
18577 ol_cv_lib_db=-ldb-4-2
18581 if test $ol_cv_lib_db = no ; then
18582 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18583 echo "configure:18584: checking for Berkeley DB link (-ldb-4)" >&5
18584 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18585 echo $ac_n "(cached) $ac_c" 1>&6
18590 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18592 cat > conftest.$ac_ext <<EOF
18593 #line 18594 "configure"
18594 #include "confdefs.h"
18596 #ifdef HAVE_DB_185_H
18597 # include <db_185.h>
18602 #ifndef DB_VERSION_MAJOR
18603 # define DB_VERSION_MAJOR 1
18607 #define NULL ((void*)0)
18612 #if DB_VERSION_MAJOR > 1
18615 int major, minor, patch;
18617 version = db_version( &major, &minor, &patch );
18619 if( major != DB_VERSION_MAJOR ||
18620 minor < DB_VERSION_MINOR )
18622 printf("Berkeley DB version mismatch\n"
18623 "\texpected: %s\n\tgot: %s\n",
18624 DB_VERSION_STRING, version);
18630 #if DB_VERSION_MAJOR > 2
18631 db_env_create( NULL, 0 );
18632 #elif DB_VERSION_MAJOR > 1
18633 db_appexit( NULL );
18635 (void) dbopen( NULL, 0, 0, 0, NULL);
18640 if { (eval echo configure:18641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18644 echo "configure: failed program was:" >&5
18645 cat conftest.$ac_ext >&5
18655 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18657 if test $ol_cv_db_db_4 = yes ; then
18658 ol_cv_lib_db=-ldb-4
18662 if test $ol_cv_lib_db = no ; then
18663 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18664 echo "configure:18665: checking for Berkeley DB link (-ldb4)" >&5
18665 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18666 echo $ac_n "(cached) $ac_c" 1>&6
18671 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18673 cat > conftest.$ac_ext <<EOF
18674 #line 18675 "configure"
18675 #include "confdefs.h"
18677 #ifdef HAVE_DB_185_H
18678 # include <db_185.h>
18683 #ifndef DB_VERSION_MAJOR
18684 # define DB_VERSION_MAJOR 1
18688 #define NULL ((void*)0)
18693 #if DB_VERSION_MAJOR > 1
18696 int major, minor, patch;
18698 version = db_version( &major, &minor, &patch );
18700 if( major != DB_VERSION_MAJOR ||
18701 minor < DB_VERSION_MINOR )
18703 printf("Berkeley DB version mismatch\n"
18704 "\texpected: %s\n\tgot: %s\n",
18705 DB_VERSION_STRING, version);
18711 #if DB_VERSION_MAJOR > 2
18712 db_env_create( NULL, 0 );
18713 #elif DB_VERSION_MAJOR > 1
18714 db_appexit( NULL );
18716 (void) dbopen( NULL, 0, 0, 0, NULL);
18721 if { (eval echo configure:18722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18725 echo "configure: failed program was:" >&5
18726 cat conftest.$ac_ext >&5
18736 echo "$ac_t""$ol_cv_db_db4" 1>&6
18738 if test $ol_cv_db_db4 = yes ; then
18743 if test $ol_cv_lib_db = no ; then
18744 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18745 echo "configure:18746: checking for Berkeley DB link (-ldb)" >&5
18746 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18747 echo $ac_n "(cached) $ac_c" 1>&6
18752 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18754 cat > conftest.$ac_ext <<EOF
18755 #line 18756 "configure"
18756 #include "confdefs.h"
18758 #ifdef HAVE_DB_185_H
18759 # include <db_185.h>
18764 #ifndef DB_VERSION_MAJOR
18765 # define DB_VERSION_MAJOR 1
18769 #define NULL ((void*)0)
18774 #if DB_VERSION_MAJOR > 1
18777 int major, minor, patch;
18779 version = db_version( &major, &minor, &patch );
18781 if( major != DB_VERSION_MAJOR ||
18782 minor < DB_VERSION_MINOR )
18784 printf("Berkeley DB version mismatch\n"
18785 "\texpected: %s\n\tgot: %s\n",
18786 DB_VERSION_STRING, version);
18792 #if DB_VERSION_MAJOR > 2
18793 db_env_create( NULL, 0 );
18794 #elif DB_VERSION_MAJOR > 1
18795 db_appexit( NULL );
18797 (void) dbopen( NULL, 0, 0, 0, NULL);
18802 if { (eval echo configure:18803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18806 echo "configure: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18817 echo "$ac_t""$ol_cv_db_db" 1>&6
18819 if test $ol_cv_db_db = yes ; then
18824 if test $ol_cv_lib_db = no ; then
18825 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18826 echo "configure:18827: checking for Berkeley DB link (-ldb41)" >&5
18827 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18828 echo $ac_n "(cached) $ac_c" 1>&6
18833 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18835 cat > conftest.$ac_ext <<EOF
18836 #line 18837 "configure"
18837 #include "confdefs.h"
18839 #ifdef HAVE_DB_185_H
18840 # include <db_185.h>
18845 #ifndef DB_VERSION_MAJOR
18846 # define DB_VERSION_MAJOR 1
18850 #define NULL ((void*)0)
18855 #if DB_VERSION_MAJOR > 1
18858 int major, minor, patch;
18860 version = db_version( &major, &minor, &patch );
18862 if( major != DB_VERSION_MAJOR ||
18863 minor < DB_VERSION_MINOR )
18865 printf("Berkeley DB version mismatch\n"
18866 "\texpected: %s\n\tgot: %s\n",
18867 DB_VERSION_STRING, version);
18873 #if DB_VERSION_MAJOR > 2
18874 db_env_create( NULL, 0 );
18875 #elif DB_VERSION_MAJOR > 1
18876 db_appexit( NULL );
18878 (void) dbopen( NULL, 0, 0, 0, NULL);
18883 if { (eval echo configure:18884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18887 echo "configure: failed program was:" >&5
18888 cat conftest.$ac_ext >&5
18898 echo "$ac_t""$ol_cv_db_db41" 1>&6
18900 if test $ol_cv_db_db41 = yes ; then
18901 ol_cv_lib_db=-ldb41
18905 if test $ol_cv_lib_db = no ; then
18906 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18907 echo "configure:18908: checking for Berkeley DB link (-ldb-41)" >&5
18908 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18909 echo $ac_n "(cached) $ac_c" 1>&6
18914 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18916 cat > conftest.$ac_ext <<EOF
18917 #line 18918 "configure"
18918 #include "confdefs.h"
18920 #ifdef HAVE_DB_185_H
18921 # include <db_185.h>
18926 #ifndef DB_VERSION_MAJOR
18927 # define DB_VERSION_MAJOR 1
18931 #define NULL ((void*)0)
18936 #if DB_VERSION_MAJOR > 1
18939 int major, minor, patch;
18941 version = db_version( &major, &minor, &patch );
18943 if( major != DB_VERSION_MAJOR ||
18944 minor < DB_VERSION_MINOR )
18946 printf("Berkeley DB version mismatch\n"
18947 "\texpected: %s\n\tgot: %s\n",
18948 DB_VERSION_STRING, version);
18954 #if DB_VERSION_MAJOR > 2
18955 db_env_create( NULL, 0 );
18956 #elif DB_VERSION_MAJOR > 1
18957 db_appexit( NULL );
18959 (void) dbopen( NULL, 0, 0, 0, NULL);
18964 if { (eval echo configure:18965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18968 echo "configure: failed program was:" >&5
18969 cat conftest.$ac_ext >&5
18979 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18981 if test $ol_cv_db_db_41 = yes ; then
18982 ol_cv_lib_db=-ldb-41
18986 if test $ol_cv_lib_db = no ; then
18987 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18988 echo "configure:18989: checking for Berkeley DB link (-ldb-4.1)" >&5
18989 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18990 echo $ac_n "(cached) $ac_c" 1>&6
18995 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18997 cat > conftest.$ac_ext <<EOF
18998 #line 18999 "configure"
18999 #include "confdefs.h"
19001 #ifdef HAVE_DB_185_H
19002 # include <db_185.h>
19007 #ifndef DB_VERSION_MAJOR
19008 # define DB_VERSION_MAJOR 1
19012 #define NULL ((void*)0)
19017 #if DB_VERSION_MAJOR > 1
19020 int major, minor, patch;
19022 version = db_version( &major, &minor, &patch );
19024 if( major != DB_VERSION_MAJOR ||
19025 minor < DB_VERSION_MINOR )
19027 printf("Berkeley DB version mismatch\n"
19028 "\texpected: %s\n\tgot: %s\n",
19029 DB_VERSION_STRING, version);
19035 #if DB_VERSION_MAJOR > 2
19036 db_env_create( NULL, 0 );
19037 #elif DB_VERSION_MAJOR > 1
19038 db_appexit( NULL );
19040 (void) dbopen( NULL, 0, 0, 0, NULL);
19045 if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19047 ol_cv_db_db_4_dot_1=yes
19049 echo "configure: failed program was:" >&5
19050 cat conftest.$ac_ext >&5
19052 ol_cv_db_db_4_dot_1=no
19060 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19062 if test $ol_cv_db_db_4_dot_1 = yes ; then
19063 ol_cv_lib_db=-ldb-4.1
19067 if test $ol_cv_lib_db = no ; then
19068 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19069 echo "configure:19070: checking for Berkeley DB link (-ldb-4-1)" >&5
19070 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19071 echo $ac_n "(cached) $ac_c" 1>&6
19076 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19078 cat > conftest.$ac_ext <<EOF
19079 #line 19080 "configure"
19080 #include "confdefs.h"
19082 #ifdef HAVE_DB_185_H
19083 # include <db_185.h>
19088 #ifndef DB_VERSION_MAJOR
19089 # define DB_VERSION_MAJOR 1
19093 #define NULL ((void*)0)
19098 #if DB_VERSION_MAJOR > 1
19101 int major, minor, patch;
19103 version = db_version( &major, &minor, &patch );
19105 if( major != DB_VERSION_MAJOR ||
19106 minor < DB_VERSION_MINOR )
19108 printf("Berkeley DB version mismatch\n"
19109 "\texpected: %s\n\tgot: %s\n",
19110 DB_VERSION_STRING, version);
19116 #if DB_VERSION_MAJOR > 2
19117 db_env_create( NULL, 0 );
19118 #elif DB_VERSION_MAJOR > 1
19119 db_appexit( NULL );
19121 (void) dbopen( NULL, 0, 0, 0, NULL);
19126 if { (eval echo configure:19127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19128 ol_cv_db_db_4_1=yes
19130 echo "configure: failed program was:" >&5
19131 cat conftest.$ac_ext >&5
19141 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19143 if test $ol_cv_db_db_4_1 = yes ; then
19144 ol_cv_lib_db=-ldb-4-1
19148 if test $ol_cv_lib_db = no ; then
19149 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19150 echo "configure:19151: checking for Berkeley DB link (-ldb3)" >&5
19151 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19152 echo $ac_n "(cached) $ac_c" 1>&6
19157 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19159 cat > conftest.$ac_ext <<EOF
19160 #line 19161 "configure"
19161 #include "confdefs.h"
19163 #ifdef HAVE_DB_185_H
19164 # include <db_185.h>
19169 #ifndef DB_VERSION_MAJOR
19170 # define DB_VERSION_MAJOR 1
19174 #define NULL ((void*)0)
19179 #if DB_VERSION_MAJOR > 1
19182 int major, minor, patch;
19184 version = db_version( &major, &minor, &patch );
19186 if( major != DB_VERSION_MAJOR ||
19187 minor < DB_VERSION_MINOR )
19189 printf("Berkeley DB version mismatch\n"
19190 "\texpected: %s\n\tgot: %s\n",
19191 DB_VERSION_STRING, version);
19197 #if DB_VERSION_MAJOR > 2
19198 db_env_create( NULL, 0 );
19199 #elif DB_VERSION_MAJOR > 1
19200 db_appexit( NULL );
19202 (void) dbopen( NULL, 0, 0, 0, NULL);
19207 if { (eval echo configure:19208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19211 echo "configure: failed program was:" >&5
19212 cat conftest.$ac_ext >&5
19222 echo "$ac_t""$ol_cv_db_db3" 1>&6
19224 if test $ol_cv_db_db3 = yes ; then
19229 if test $ol_cv_lib_db = no ; then
19230 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19231 echo "configure:19232: checking for Berkeley DB link (-ldb-3)" >&5
19232 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19233 echo $ac_n "(cached) $ac_c" 1>&6
19238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19240 cat > conftest.$ac_ext <<EOF
19241 #line 19242 "configure"
19242 #include "confdefs.h"
19244 #ifdef HAVE_DB_185_H
19245 # include <db_185.h>
19250 #ifndef DB_VERSION_MAJOR
19251 # define DB_VERSION_MAJOR 1
19255 #define NULL ((void*)0)
19260 #if DB_VERSION_MAJOR > 1
19263 int major, minor, patch;
19265 version = db_version( &major, &minor, &patch );
19267 if( major != DB_VERSION_MAJOR ||
19268 minor < DB_VERSION_MINOR )
19270 printf("Berkeley DB version mismatch\n"
19271 "\texpected: %s\n\tgot: %s\n",
19272 DB_VERSION_STRING, version);
19278 #if DB_VERSION_MAJOR > 2
19279 db_env_create( NULL, 0 );
19280 #elif DB_VERSION_MAJOR > 1
19281 db_appexit( NULL );
19283 (void) dbopen( NULL, 0, 0, 0, NULL);
19288 if { (eval echo configure:19289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19292 echo "configure: failed program was:" >&5
19293 cat conftest.$ac_ext >&5
19303 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19305 if test $ol_cv_db_db_3 = yes ; then
19306 ol_cv_lib_db=-ldb-3
19310 if test $ol_cv_lib_db = no ; then
19311 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19312 echo "configure:19313: checking for Berkeley DB link (-ldb2)" >&5
19313 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19314 echo $ac_n "(cached) $ac_c" 1>&6
19319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19321 cat > conftest.$ac_ext <<EOF
19322 #line 19323 "configure"
19323 #include "confdefs.h"
19325 #ifdef HAVE_DB_185_H
19326 # include <db_185.h>
19331 #ifndef DB_VERSION_MAJOR
19332 # define DB_VERSION_MAJOR 1
19336 #define NULL ((void*)0)
19341 #if DB_VERSION_MAJOR > 1
19344 int major, minor, patch;
19346 version = db_version( &major, &minor, &patch );
19348 if( major != DB_VERSION_MAJOR ||
19349 minor < DB_VERSION_MINOR )
19351 printf("Berkeley DB version mismatch\n"
19352 "\texpected: %s\n\tgot: %s\n",
19353 DB_VERSION_STRING, version);
19359 #if DB_VERSION_MAJOR > 2
19360 db_env_create( NULL, 0 );
19361 #elif DB_VERSION_MAJOR > 1
19362 db_appexit( NULL );
19364 (void) dbopen( NULL, 0, 0, 0, NULL);
19369 if { (eval echo configure:19370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19373 echo "configure: failed program was:" >&5
19374 cat conftest.$ac_ext >&5
19384 echo "$ac_t""$ol_cv_db_db2" 1>&6
19386 if test $ol_cv_db_db2 = yes ; then
19391 if test $ol_cv_lib_db = no ; then
19392 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19393 echo "configure:19394: checking for Berkeley DB link (-ldb-2)" >&5
19394 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19395 echo $ac_n "(cached) $ac_c" 1>&6
19400 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19402 cat > conftest.$ac_ext <<EOF
19403 #line 19404 "configure"
19404 #include "confdefs.h"
19406 #ifdef HAVE_DB_185_H
19407 # include <db_185.h>
19412 #ifndef DB_VERSION_MAJOR
19413 # define DB_VERSION_MAJOR 1
19417 #define NULL ((void*)0)
19422 #if DB_VERSION_MAJOR > 1
19425 int major, minor, patch;
19427 version = db_version( &major, &minor, &patch );
19429 if( major != DB_VERSION_MAJOR ||
19430 minor < DB_VERSION_MINOR )
19432 printf("Berkeley DB version mismatch\n"
19433 "\texpected: %s\n\tgot: %s\n",
19434 DB_VERSION_STRING, version);
19440 #if DB_VERSION_MAJOR > 2
19441 db_env_create( NULL, 0 );
19442 #elif DB_VERSION_MAJOR > 1
19443 db_appexit( NULL );
19445 (void) dbopen( NULL, 0, 0, 0, NULL);
19450 if { (eval echo configure:19451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19454 echo "configure: failed program was:" >&5
19455 cat conftest.$ac_ext >&5
19465 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19467 if test $ol_cv_db_db_2 = yes ; then
19468 ol_cv_lib_db=-ldb-2
19472 if test $ol_cv_lib_db = no ; then
19473 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19474 echo "configure:19475: checking for Berkeley DB link (-ldb1)" >&5
19475 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19476 echo $ac_n "(cached) $ac_c" 1>&6
19481 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19483 cat > conftest.$ac_ext <<EOF
19484 #line 19485 "configure"
19485 #include "confdefs.h"
19487 #ifdef HAVE_DB_185_H
19488 # include <db_185.h>
19493 #ifndef DB_VERSION_MAJOR
19494 # define DB_VERSION_MAJOR 1
19498 #define NULL ((void*)0)
19503 #if DB_VERSION_MAJOR > 1
19506 int major, minor, patch;
19508 version = db_version( &major, &minor, &patch );
19510 if( major != DB_VERSION_MAJOR ||
19511 minor < DB_VERSION_MINOR )
19513 printf("Berkeley DB version mismatch\n"
19514 "\texpected: %s\n\tgot: %s\n",
19515 DB_VERSION_STRING, version);
19521 #if DB_VERSION_MAJOR > 2
19522 db_env_create( NULL, 0 );
19523 #elif DB_VERSION_MAJOR > 1
19524 db_appexit( NULL );
19526 (void) dbopen( NULL, 0, 0, 0, NULL);
19531 if { (eval echo configure:19532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19535 echo "configure: failed program was:" >&5
19536 cat conftest.$ac_ext >&5
19546 echo "$ac_t""$ol_cv_db_db1" 1>&6
19548 if test $ol_cv_db_db1 = yes ; then
19553 if test $ol_cv_lib_db = no ; then
19554 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19555 echo "configure:19556: checking for Berkeley DB link (-ldb-1)" >&5
19556 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19557 echo $ac_n "(cached) $ac_c" 1>&6
19562 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19564 cat > conftest.$ac_ext <<EOF
19565 #line 19566 "configure"
19566 #include "confdefs.h"
19568 #ifdef HAVE_DB_185_H
19569 # include <db_185.h>
19574 #ifndef DB_VERSION_MAJOR
19575 # define DB_VERSION_MAJOR 1
19579 #define NULL ((void*)0)
19584 #if DB_VERSION_MAJOR > 1
19587 int major, minor, patch;
19589 version = db_version( &major, &minor, &patch );
19591 if( major != DB_VERSION_MAJOR ||
19592 minor < DB_VERSION_MINOR )
19594 printf("Berkeley DB version mismatch\n"
19595 "\texpected: %s\n\tgot: %s\n",
19596 DB_VERSION_STRING, version);
19602 #if DB_VERSION_MAJOR > 2
19603 db_env_create( NULL, 0 );
19604 #elif DB_VERSION_MAJOR > 1
19605 db_appexit( NULL );
19607 (void) dbopen( NULL, 0, 0, 0, NULL);
19612 if { (eval echo configure:19613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19616 echo "configure: failed program was:" >&5
19617 cat conftest.$ac_ext >&5
19627 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19629 if test $ol_cv_db_db_1 = yes ; then
19630 ol_cv_lib_db=-ldb-1
19635 if test "$ol_cv_lib_db" != no ; then
19636 ol_cv_berkeley_db=yes
19637 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19638 echo "configure:19639: checking for Berkeley DB thread support" >&5
19639 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19640 echo $ac_n "(cached) $ac_c" 1>&6
19644 LIBS="$LTHREAD_LIBS $LIBS"
19645 if test $ol_cv_lib_db != yes ; then
19646 LIBS="$ol_cv_lib_db $LIBS"
19649 if test "$cross_compiling" = yes; then
19650 ol_cv_berkeley_db_thread=cross
19652 cat > conftest.$ac_ext <<EOF
19653 #line 19654 "configure"
19654 #include "confdefs.h"
19656 #ifdef HAVE_DB_185_H
19662 #define NULL ((void *)0)
19667 u_int32_t flags = DB_CREATE |
19673 #if DB_VERSION_MAJOR > 2
19674 DB_ENV *env = NULL;
19676 rc = db_env_create( &env, 0 );
19678 flags |= DB_INIT_MPOOL;
19679 #ifdef DB_MPOOL_PRIVATE
19680 flags |= DB_MPOOL_PRIVATE;
19684 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19688 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19689 rc = env->open( env, NULL, flags, 0 );
19691 rc = env->open( env, NULL, NULL, flags, 0 );
19695 rc = env->close( env, 0 );
19699 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19705 memset( &env, '\0', sizeof(env) );
19707 rc = db_appinit( NULL, NULL, &env, flags );
19710 db_appexit( &env );
19713 unlink("__db_mpool.share");
19714 unlink("__db_lock.share");
19720 if { (eval echo configure:19721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19722 ol_cv_berkeley_db_thread=yes
19724 echo "configure: failed program was:" >&5
19725 cat conftest.$ac_ext >&5
19727 ol_cv_berkeley_db_thread=no
19737 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19739 if test $ol_cv_berkeley_db_thread != no ; then
19740 cat >> confdefs.h <<\EOF
19741 #define HAVE_BERKELEY_DB_THREAD 1
19751 if test $ol_cv_berkeley_db != no ; then
19752 cat >> confdefs.h <<\EOF
19753 #define HAVE_BERKELEY_DB 1
19757 ol_link_ldbm=berkeley
19758 ol_with_ldbm_api=berkeley
19760 if test $ol_with_ldbm_type = hash ; then
19761 cat >> confdefs.h <<\EOF
19762 #define LDBM_USE_DBHASH 1
19766 cat >> confdefs.h <<\EOF
19767 #define LDBM_USE_DBBTREE 1
19772 if test $ol_cv_lib_db != yes ; then
19773 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19778 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19779 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19780 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19781 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19782 echo "configure:19783: checking Berkeley DB version for BDB backend" >&5
19783 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19784 echo $ac_n "(cached) $ac_c" 1>&6
19787 cat > conftest.$ac_ext <<EOF
19788 #line 19789 "configure"
19789 #include "confdefs.h"
19793 /* this check could be improved */
19794 #ifndef DB_VERSION_MAJOR
19795 # define DB_VERSION_MAJOR 1
19797 #ifndef DB_VERSION_MINOR
19798 # define DB_VERSION_MINOR 0
19801 /* require 4.2 or later */
19802 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19803 __db_version_compat
19807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19808 egrep "__db_version_compat" >/dev/null 2>&1; then
19810 ol_cv_bdb_compat=yes
19813 ol_cv_bdb_compat=no
19819 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19822 if test $ol_cv_bdb_compat = yes ; then
19824 elif test $ol_enable_bdb = yes ; then
19825 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19830 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19831 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19834 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19835 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19836 ol_with_ldbm_api=none
19839 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19840 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19841 echo "configure:19842: checking for MDBM library" >&5
19842 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19843 echo $ac_n "(cached) $ac_c" 1>&6
19846 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19847 echo "configure:19848: checking for mdbm_set_chain" >&5
19848 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19849 echo $ac_n "(cached) $ac_c" 1>&6
19851 cat > conftest.$ac_ext <<EOF
19852 #line 19853 "configure"
19853 #include "confdefs.h"
19854 /* System header to define __stub macros and hopefully few prototypes,
19855 which can conflict with char mdbm_set_chain(); below. */
19856 #include <assert.h>
19857 /* Override any gcc2 internal prototype to avoid an error. */
19858 /* We use char because int might match the return type of a gcc2
19859 builtin and then its argument prototype would still apply. */
19860 char mdbm_set_chain();
19865 /* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19871 f = mdbm_set_chain;
19876 if { (eval echo configure:19877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19878 eval "ac_cv_func_mdbm_set_chain=yes"
19880 echo "configure: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19883 eval "ac_cv_func_mdbm_set_chain=no"
19888 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19889 echo "$ac_t""yes" 1>&6
19892 echo "$ac_t""no" 1>&6
19894 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19895 echo "configure:19896: checking for mdbm_set_chain in -lmdbm" >&5
19896 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19900 ac_save_LIBS="$LIBS"
19901 LIBS="-lmdbm $LIBS"
19902 cat > conftest.$ac_ext <<EOF
19903 #line 19904 "configure"
19904 #include "confdefs.h"
19905 /* Override any gcc2 internal prototype to avoid an error. */
19906 /* We use char because int might match the return type of a gcc2
19907 builtin and then its argument prototype would still apply. */
19908 char mdbm_set_chain();
19914 if { (eval echo configure:19915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19916 eval "ac_cv_lib_$ac_lib_var=yes"
19918 echo "configure: failed program was:" >&5
19919 cat conftest.$ac_ext >&5
19921 eval "ac_cv_lib_$ac_lib_var=no"
19924 LIBS="$ac_save_LIBS"
19927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19928 echo "$ac_t""yes" 1>&6
19929 ol_cv_lib_mdbm=-lmdbm
19931 echo "$ac_t""no" 1>&6
19942 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19945 for ac_hdr in mdbm.h
19947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19949 echo "configure:19950: checking for $ac_hdr" >&5
19950 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19951 echo $ac_n "(cached) $ac_c" 1>&6
19953 cat > conftest.$ac_ext <<EOF
19954 #line 19955 "configure"
19955 #include "confdefs.h"
19958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19959 { (eval echo configure:19960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19961 if test -z "$ac_err"; then
19963 eval "ac_cv_header_$ac_safe=yes"
19966 echo "configure: failed program was:" >&5
19967 cat conftest.$ac_ext >&5
19969 eval "ac_cv_header_$ac_safe=no"
19973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19974 echo "$ac_t""yes" 1>&6
19975 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19976 cat >> confdefs.h <<EOF
19977 #define $ac_tr_hdr 1
19981 echo "$ac_t""no" 1>&6
19985 echo $ac_n "checking for db""... $ac_c" 1>&6
19986 echo "configure:19987: checking for db" >&5
19987 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19988 echo $ac_n "(cached) $ac_c" 1>&6
19991 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19999 echo "$ac_t""$ol_cv_mdbm" 1>&6
20000 if test $ol_cv_mdbm = yes ; then
20001 cat >> confdefs.h <<\EOF
20002 #define HAVE_MDBM 1
20008 if test $ol_cv_mdbm = yes ; then
20010 ol_with_ldbm_api=mdbm
20011 if test $ol_cv_lib_mdbm != yes ; then
20012 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20017 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20018 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20019 echo "configure:20020: checking for GDBM library" >&5
20020 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20021 echo $ac_n "(cached) $ac_c" 1>&6
20024 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20025 echo "configure:20026: checking for gdbm_open" >&5
20026 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20027 echo $ac_n "(cached) $ac_c" 1>&6
20029 cat > conftest.$ac_ext <<EOF
20030 #line 20031 "configure"
20031 #include "confdefs.h"
20032 /* System header to define __stub macros and hopefully few prototypes,
20033 which can conflict with char gdbm_open(); below. */
20034 #include <assert.h>
20035 /* Override any gcc2 internal prototype to avoid an error. */
20036 /* We use char because int might match the return type of a gcc2
20037 builtin and then its argument prototype would still apply. */
20043 /* The GNU C library defines this for functions which it implements
20044 to always fail with ENOSYS. Some functions are actually named
20045 something starting with __ and the normal name is an alias. */
20046 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20054 if { (eval echo configure:20055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20056 eval "ac_cv_func_gdbm_open=yes"
20058 echo "configure: failed program was:" >&5
20059 cat conftest.$ac_ext >&5
20061 eval "ac_cv_func_gdbm_open=no"
20066 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20067 echo "$ac_t""yes" 1>&6
20070 echo "$ac_t""no" 1>&6
20072 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20073 echo "configure:20074: checking for gdbm_open in -lgdbm" >&5
20074 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20076 echo $ac_n "(cached) $ac_c" 1>&6
20078 ac_save_LIBS="$LIBS"
20079 LIBS="-lgdbm $LIBS"
20080 cat > conftest.$ac_ext <<EOF
20081 #line 20082 "configure"
20082 #include "confdefs.h"
20083 /* Override any gcc2 internal prototype to avoid an error. */
20084 /* We use char because int might match the return type of a gcc2
20085 builtin and then its argument prototype would still apply. */
20092 if { (eval echo configure:20093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20094 eval "ac_cv_lib_$ac_lib_var=yes"
20096 echo "configure: failed program was:" >&5
20097 cat conftest.$ac_ext >&5
20099 eval "ac_cv_lib_$ac_lib_var=no"
20102 LIBS="$ac_save_LIBS"
20105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20106 echo "$ac_t""yes" 1>&6
20107 ol_cv_lib_gdbm=-lgdbm
20109 echo "$ac_t""no" 1>&6
20120 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20123 for ac_hdr in gdbm.h
20125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20127 echo "configure:20128: checking for $ac_hdr" >&5
20128 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20129 echo $ac_n "(cached) $ac_c" 1>&6
20131 cat > conftest.$ac_ext <<EOF
20132 #line 20133 "configure"
20133 #include "confdefs.h"
20136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20137 { (eval echo configure:20138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20139 if test -z "$ac_err"; then
20141 eval "ac_cv_header_$ac_safe=yes"
20144 echo "configure: failed program was:" >&5
20145 cat conftest.$ac_ext >&5
20147 eval "ac_cv_header_$ac_safe=no"
20151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20152 echo "$ac_t""yes" 1>&6
20153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20154 cat >> confdefs.h <<EOF
20155 #define $ac_tr_hdr 1
20159 echo "$ac_t""no" 1>&6
20163 echo $ac_n "checking for db""... $ac_c" 1>&6
20164 echo "configure:20165: checking for db" >&5
20165 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20166 echo $ac_n "(cached) $ac_c" 1>&6
20169 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20177 echo "$ac_t""$ol_cv_gdbm" 1>&6
20178 if test $ol_cv_gdbm = yes ; then
20179 cat >> confdefs.h <<\EOF
20180 #define HAVE_GDBM 1
20186 if test $ol_cv_gdbm = yes ; then
20188 ol_with_ldbm_api=gdbm
20190 if test $ol_cv_lib_gdbm != yes ; then
20191 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20196 if test $ol_with_ldbm_api = ndbm ; then
20197 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20198 echo "configure:20199: checking for NDBM library" >&5
20199 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20200 echo $ac_n "(cached) $ac_c" 1>&6
20203 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20204 echo "configure:20205: checking for dbm_open" >&5
20205 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20206 echo $ac_n "(cached) $ac_c" 1>&6
20208 cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20211 /* System header to define __stub macros and hopefully few prototypes,
20212 which can conflict with char dbm_open(); below. */
20213 #include <assert.h>
20214 /* Override any gcc2 internal prototype to avoid an error. */
20215 /* We use char because int might match the return type of a gcc2
20216 builtin and then its argument prototype would still apply. */
20222 /* The GNU C library defines this for functions which it implements
20223 to always fail with ENOSYS. Some functions are actually named
20224 something starting with __ and the normal name is an alias. */
20225 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20233 if { (eval echo configure:20234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20235 eval "ac_cv_func_dbm_open=yes"
20237 echo "configure: failed program was:" >&5
20238 cat conftest.$ac_ext >&5
20240 eval "ac_cv_func_dbm_open=no"
20245 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20246 echo "$ac_t""yes" 1>&6
20249 echo "$ac_t""no" 1>&6
20251 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20252 echo "configure:20253: checking for dbm_open in -lndbm" >&5
20253 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20255 echo $ac_n "(cached) $ac_c" 1>&6
20257 ac_save_LIBS="$LIBS"
20258 LIBS="-lndbm $LIBS"
20259 cat > conftest.$ac_ext <<EOF
20260 #line 20261 "configure"
20261 #include "confdefs.h"
20262 /* Override any gcc2 internal prototype to avoid an error. */
20263 /* We use char because int might match the return type of a gcc2
20264 builtin and then its argument prototype would still apply. */
20271 if { (eval echo configure:20272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20273 eval "ac_cv_lib_$ac_lib_var=yes"
20275 echo "configure: failed program was:" >&5
20276 cat conftest.$ac_ext >&5
20278 eval "ac_cv_lib_$ac_lib_var=no"
20281 LIBS="$ac_save_LIBS"
20284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20285 echo "$ac_t""yes" 1>&6
20286 ol_cv_lib_ndbm=-lndbm
20288 echo "$ac_t""no" 1>&6
20290 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20291 echo "configure:20292: checking for dbm_open in -ldbm" >&5
20292 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20293 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20296 ac_save_LIBS="$LIBS"
20298 cat > conftest.$ac_ext <<EOF
20299 #line 20300 "configure"
20300 #include "confdefs.h"
20301 /* Override any gcc2 internal prototype to avoid an error. */
20302 /* We use char because int might match the return type of a gcc2
20303 builtin and then its argument prototype would still apply. */
20310 if { (eval echo configure:20311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20312 eval "ac_cv_lib_$ac_lib_var=yes"
20314 echo "configure: failed program was:" >&5
20315 cat conftest.$ac_ext >&5
20317 eval "ac_cv_lib_$ac_lib_var=no"
20320 LIBS="$ac_save_LIBS"
20323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20324 echo "$ac_t""yes" 1>&6
20325 ol_cv_lib_ndbm=-ldbm
20327 echo "$ac_t""no" 1>&6
20340 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20343 for ac_hdr in ndbm.h
20345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20347 echo "configure:20348: checking for $ac_hdr" >&5
20348 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20349 echo $ac_n "(cached) $ac_c" 1>&6
20351 cat > conftest.$ac_ext <<EOF
20352 #line 20353 "configure"
20353 #include "confdefs.h"
20356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20357 { (eval echo configure:20358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20359 if test -z "$ac_err"; then
20361 eval "ac_cv_header_$ac_safe=yes"
20364 echo "configure: failed program was:" >&5
20365 cat conftest.$ac_ext >&5
20367 eval "ac_cv_header_$ac_safe=no"
20371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20372 echo "$ac_t""yes" 1>&6
20373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20374 cat >> confdefs.h <<EOF
20375 #define $ac_tr_hdr 1
20379 echo "$ac_t""no" 1>&6
20383 echo $ac_n "checking for db""... $ac_c" 1>&6
20384 echo "configure:20385: checking for db" >&5
20385 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20386 echo $ac_n "(cached) $ac_c" 1>&6
20389 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20397 echo "$ac_t""$ol_cv_ndbm" 1>&6
20398 if test $ol_cv_ndbm = yes ; then
20399 cat >> confdefs.h <<\EOF
20400 #define HAVE_NDBM 1
20406 if test $ol_cv_ndbm = yes ; then
20408 ol_with_ldbm_api=ndbm
20410 if test $ol_cv_lib_ndbm != yes ; then
20411 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20416 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20417 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20418 if test $ol_enable_ldbm = yes ; then
20419 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20422 echo "configure: warning: disabling LDBM" 1>&2
20427 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20428 BUILD_LIBS_DYNAMIC=shared
20429 cat >> confdefs.h <<\EOF
20430 #define LDAP_LIBS_DYNAMIC 1
20435 BUILD_LIBS_DYNAMIC=static
20439 if test $ol_enable_wrappers != no ; then
20440 for ac_hdr in tcpd.h
20442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20444 echo "configure:20445: checking for $ac_hdr" >&5
20445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20446 echo $ac_n "(cached) $ac_c" 1>&6
20448 cat > conftest.$ac_ext <<EOF
20449 #line 20450 "configure"
20450 #include "confdefs.h"
20453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20454 { (eval echo configure:20455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20456 if test -z "$ac_err"; then
20458 eval "ac_cv_header_$ac_safe=yes"
20461 echo "configure: failed program was:" >&5
20462 cat conftest.$ac_ext >&5
20464 eval "ac_cv_header_$ac_safe=no"
20468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20469 echo "$ac_t""yes" 1>&6
20470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20471 cat >> confdefs.h <<EOF
20472 #define $ac_tr_hdr 1
20475 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20476 echo "configure:20477: checking for TCP wrappers library" >&5
20478 LIBS="$LIBS -lwrap"
20479 cat > conftest.$ac_ext <<EOF
20480 #line 20481 "configure"
20481 #include "confdefs.h"
20484 int allow_severity = 0;
20485 int deny_severity = 0;
20487 struct request_info *req;
20495 if { (eval echo configure:20496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20497 echo "$ac_t""-lwrap" 1>&6
20501 echo "configure: failed program was:" >&5
20502 cat conftest.$ac_ext >&5
20506 cat > conftest.$ac_ext <<EOF
20507 #line 20508 "configure"
20508 #include "confdefs.h"
20511 int allow_severity = 0;
20512 int deny_severity = 0;
20514 struct request_info *req;
20522 if { (eval echo configure:20523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20524 echo "$ac_t""-lwrap -lnsl" 1>&6
20526 LIBS="$save_LIBS -lnsl"
20528 echo "configure: failed program was:" >&5
20529 cat conftest.$ac_ext >&5
20532 echo "$ac_t""no" 1>&6
20540 echo "$ac_t""no" 1>&6
20546 if test $have_wrappers = yes ; then
20547 cat >> confdefs.h <<\EOF
20548 #define HAVE_TCPD 1
20552 elif test $ol_enable_wrappers = yes ; then
20553 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20555 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20560 if test $ol_enable_syslog != no ; then
20561 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20562 echo "configure:20563: checking for openlog" >&5
20563 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20564 echo $ac_n "(cached) $ac_c" 1>&6
20566 cat > conftest.$ac_ext <<EOF
20567 #line 20568 "configure"
20568 #include "confdefs.h"
20569 /* System header to define __stub macros and hopefully few prototypes,
20570 which can conflict with char openlog(); below. */
20571 #include <assert.h>
20572 /* Override any gcc2 internal prototype to avoid an error. */
20573 /* We use char because int might match the return type of a gcc2
20574 builtin and then its argument prototype would still apply. */
20580 /* The GNU C library defines this for functions which it implements
20581 to always fail with ENOSYS. Some functions are actually named
20582 something starting with __ and the normal name is an alias. */
20583 #if defined (__stub_openlog) || defined (__stub___openlog)
20591 if { (eval echo configure:20592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20593 eval "ac_cv_func_openlog=yes"
20595 echo "configure: failed program was:" >&5
20596 cat conftest.$ac_ext >&5
20598 eval "ac_cv_func_openlog=no"
20603 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20604 echo "$ac_t""yes" 1>&6
20607 echo "$ac_t""no" 1>&6
20610 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20611 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20613 ol_enable_syslog=$ac_cv_func_openlog
20618 if test $ol_enable_sql != no ; then
20619 for ac_hdr in sql.h sqlext.h
20621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20623 echo "configure:20624: checking for $ac_hdr" >&5
20624 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20625 echo $ac_n "(cached) $ac_c" 1>&6
20627 cat > conftest.$ac_ext <<EOF
20628 #line 20629 "configure"
20629 #include "confdefs.h"
20632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20633 { (eval echo configure:20634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20635 if test -z "$ac_err"; then
20637 eval "ac_cv_header_$ac_safe=yes"
20640 echo "configure: failed program was:" >&5
20641 cat conftest.$ac_ext >&5
20643 eval "ac_cv_header_$ac_safe=no"
20647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20648 echo "$ac_t""yes" 1>&6
20649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20650 cat >> confdefs.h <<EOF
20651 #define $ac_tr_hdr 1
20655 echo "$ac_t""no" 1>&6
20656 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20662 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20663 echo "configure:20664: checking for SQLDriverConnect in -liodbc" >&5
20664 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20665 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20666 echo $ac_n "(cached) $ac_c" 1>&6
20668 ac_save_LIBS="$LIBS"
20669 LIBS="-liodbc $LIBS"
20670 cat > conftest.$ac_ext <<EOF
20671 #line 20672 "configure"
20672 #include "confdefs.h"
20673 /* Override any gcc2 internal prototype to avoid an error. */
20674 /* We use char because int might match the return type of a gcc2
20675 builtin and then its argument prototype would still apply. */
20676 char SQLDriverConnect();
20682 if { (eval echo configure:20683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20684 eval "ac_cv_lib_$ac_lib_var=yes"
20686 echo "configure: failed program was:" >&5
20687 cat conftest.$ac_ext >&5
20689 eval "ac_cv_lib_$ac_lib_var=no"
20692 LIBS="$ac_save_LIBS"
20695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20696 echo "$ac_t""yes" 1>&6
20699 echo "$ac_t""no" 1>&6
20703 if test $have_iodbc = yes ; then
20704 ol_link_sql="-liodbc"
20706 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20707 echo "configure:20708: checking for SQLDriverConnect in -lodbc" >&5
20708 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20709 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20710 echo $ac_n "(cached) $ac_c" 1>&6
20712 ac_save_LIBS="$LIBS"
20713 LIBS="-lodbc $LIBS"
20714 cat > conftest.$ac_ext <<EOF
20715 #line 20716 "configure"
20716 #include "confdefs.h"
20717 /* Override any gcc2 internal prototype to avoid an error. */
20718 /* We use char because int might match the return type of a gcc2
20719 builtin and then its argument prototype would still apply. */
20720 char SQLDriverConnect();
20726 if { (eval echo configure:20727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20728 eval "ac_cv_lib_$ac_lib_var=yes"
20730 echo "configure: failed program was:" >&5
20731 cat conftest.$ac_ext >&5
20733 eval "ac_cv_lib_$ac_lib_var=no"
20736 LIBS="$ac_save_LIBS"
20739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20740 echo "$ac_t""yes" 1>&6
20743 echo "$ac_t""no" 1>&6
20747 if test $have_odbc = yes ; then
20748 ol_link_sql="-lodbc"
20752 if test $ol_link_sql != no ; then
20753 SLAPD_SQL_LIBS="$ol_link_sql"
20755 elif test $ol_enable_sql != auto ; then
20756 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20762 if test $ol_with_cyrus_sasl != no ; then
20763 for ac_hdr in sasl/sasl.h sasl.h
20765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20767 echo "configure:20768: checking for $ac_hdr" >&5
20768 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20769 echo $ac_n "(cached) $ac_c" 1>&6
20771 cat > conftest.$ac_ext <<EOF
20772 #line 20773 "configure"
20773 #include "confdefs.h"
20776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20777 { (eval echo configure:20778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20779 if test -z "$ac_err"; then
20781 eval "ac_cv_header_$ac_safe=yes"
20784 echo "configure: failed program was:" >&5
20785 cat conftest.$ac_ext >&5
20787 eval "ac_cv_header_$ac_safe=no"
20791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20792 echo "$ac_t""yes" 1>&6
20793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20794 cat >> confdefs.h <<EOF
20795 #define $ac_tr_hdr 1
20799 echo "$ac_t""no" 1>&6
20804 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20805 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20806 echo "configure:20807: checking for sasl_client_init in -lsasl2" >&5
20807 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20809 echo $ac_n "(cached) $ac_c" 1>&6
20811 ac_save_LIBS="$LIBS"
20812 LIBS="-lsasl2 $LIBS"
20813 cat > conftest.$ac_ext <<EOF
20814 #line 20815 "configure"
20815 #include "confdefs.h"
20816 /* Override any gcc2 internal prototype to avoid an error. */
20817 /* We use char because int might match the return type of a gcc2
20818 builtin and then its argument prototype would still apply. */
20819 char sasl_client_init();
20825 if { (eval echo configure:20826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20827 eval "ac_cv_lib_$ac_lib_var=yes"
20829 echo "configure: failed program was:" >&5
20830 cat conftest.$ac_ext >&5
20832 eval "ac_cv_lib_$ac_lib_var=no"
20835 LIBS="$ac_save_LIBS"
20838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20839 echo "$ac_t""yes" 1>&6
20840 ol_link_sasl="-lsasl2"
20842 echo "$ac_t""no" 1>&6
20843 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20844 echo "configure:20845: checking for sasl_client_init in -lsasl" >&5
20845 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20846 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20847 echo $ac_n "(cached) $ac_c" 1>&6
20849 ac_save_LIBS="$LIBS"
20850 LIBS="-lsasl $LIBS"
20851 cat > conftest.$ac_ext <<EOF
20852 #line 20853 "configure"
20853 #include "confdefs.h"
20854 /* Override any gcc2 internal prototype to avoid an error. */
20855 /* We use char because int might match the return type of a gcc2
20856 builtin and then its argument prototype would still apply. */
20857 char sasl_client_init();
20863 if { (eval echo configure:20864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20865 eval "ac_cv_lib_$ac_lib_var=yes"
20867 echo "configure: failed program was:" >&5
20868 cat conftest.$ac_ext >&5
20870 eval "ac_cv_lib_$ac_lib_var=no"
20873 LIBS="$ac_save_LIBS"
20876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20877 echo "$ac_t""yes" 1>&6
20878 ol_link_sasl="-lsasl"
20880 echo "$ac_t""no" 1>&6
20887 if test $ol_link_sasl = no ; then
20888 if test $ol_with_cyrus_sasl != auto ; then
20889 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20891 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20892 echo "configure: warning: SASL authentication not supported!" 1>&2
20893 if test $ol_link_tls = no ; then
20894 echo "configure: warning: Strong authentication not supported!" 1>&2
20898 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20899 echo "configure:20900: checking Cyrus SASL library version" >&5
20900 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20901 echo $ac_n "(cached) $ac_c" 1>&6
20904 cat > conftest.$ac_ext <<EOF
20905 #line 20906 "configure"
20906 #include "confdefs.h"
20908 #ifdef HAVE_SASL_SASL_H
20909 #include <sasl/sasl.h>
20914 /* Require 2.1.15+ */
20915 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20916 char *__sasl_compat = "2.2+ or better okay (we guess)";
20917 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20918 && SASL_VERSION_STEP >=15
20919 char *__sasl_compat = "2.1.15+ or better okay";
20923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20924 egrep "__sasl_compat" >/dev/null 2>&1; then
20926 ol_cv_sasl_compat=yes
20929 ol_cv_sasl_compat=no
20935 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20937 if test $ol_cv_sasl_compat = no ; then
20939 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20942 cat >> confdefs.h <<\EOF
20943 #define HAVE_CYRUS_SASL 1
20946 SASL_LIBS="$ol_link_sasl"
20947 if test $ol_enable_spasswd != no ; then
20948 ol_link_spasswd=yes
20951 ac_save_LIBS="$LIBS"
20952 LIBS="$LIBS $ol_link_sasl"
20953 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20954 echo "configure:20955: checking for sasl_version" >&5
20955 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20956 echo $ac_n "(cached) $ac_c" 1>&6
20958 cat > conftest.$ac_ext <<EOF
20959 #line 20960 "configure"
20960 #include "confdefs.h"
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char sasl_version(); below. */
20963 #include <assert.h>
20964 /* Override any gcc2 internal prototype to avoid an error. */
20965 /* We use char because int might match the return type of a gcc2
20966 builtin and then its argument prototype would still apply. */
20967 char sasl_version();
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20985 eval "ac_cv_func_sasl_version=yes"
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 eval "ac_cv_func_sasl_version=no"
20995 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20996 echo "$ac_t""yes" 1>&6
20997 cat >> confdefs.h <<\EOF
20998 #define HAVE_SASL_VERSION 1
21002 echo "$ac_t""no" 1>&6
21005 LIBS="$ac_save_LIBS"
21009 echo "configure: warning: SASL authentication not supported!" 1>&2
21010 if test $ol_link_tls = no ; then
21011 echo "configure: warning: Strong authentication not supported!" 1>&2
21015 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21017 if test -r /dev/urandom ; then
21018 dev="/dev/urandom";
21019 elif test -r /idev/urandom ; then
21020 dev="/idev/urandom";
21021 elif test -r /dev/srandom ; then
21022 dev="/dev/srandom";
21023 elif test -r /dev/random ; then
21025 elif test -r /idev/random ; then
21026 dev="/idev/random";
21029 if test $dev != no ; then
21030 cat >> confdefs.h <<EOF
21031 #define URANDOM_DEVICE "$dev"
21038 if test $ol_with_fetch != no ; then
21040 LIBS="-lfetch -lcom_err $LIBS"
21041 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21042 echo "configure:21043: checking fetch(3) library" >&5
21043 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21044 echo $ac_n "(cached) $ac_c" 1>&6
21047 cat > conftest.$ac_ext <<EOF
21048 #line 21049 "configure"
21049 #include "confdefs.h"
21051 #include <sys/param.h>
21055 struct url *u = fetchParseURL("file:///");
21058 if { (eval echo configure:21059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21060 ol_cv_lib_fetch=yes
21062 echo "configure: failed program was:" >&5
21063 cat conftest.$ac_ext >&5
21070 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21072 if test $ol_cv_lib_fetch != no ; then
21073 ol_link_fetch="-lfetch -lcom_err"
21074 cat >> confdefs.h <<\EOF
21075 #define HAVE_FETCH 1
21081 if test $ol_cv_lib_fetch != no ; then
21082 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21083 ol_link_fetch=freebsd
21085 elif test $ol_with_fetch != auto ; then
21086 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21090 if test $ol_enable_crypt != no ; then
21092 LIBS="$TLS_LIBS $LIBS"
21094 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21095 echo "configure:21096: checking for crypt" >&5
21096 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21097 echo $ac_n "(cached) $ac_c" 1>&6
21099 cat > conftest.$ac_ext <<EOF
21100 #line 21101 "configure"
21101 #include "confdefs.h"
21102 /* System header to define __stub macros and hopefully few prototypes,
21103 which can conflict with char crypt(); below. */
21104 #include <assert.h>
21105 /* Override any gcc2 internal prototype to avoid an error. */
21106 /* We use char because int might match the return type of a gcc2
21107 builtin and then its argument prototype would still apply. */
21113 /* The GNU C library defines this for functions which it implements
21114 to always fail with ENOSYS. Some functions are actually named
21115 something starting with __ and the normal name is an alias. */
21116 #if defined (__stub_crypt) || defined (__stub___crypt)
21124 if { (eval echo configure:21125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21126 eval "ac_cv_func_crypt=yes"
21128 echo "configure: failed program was:" >&5
21129 cat conftest.$ac_ext >&5
21131 eval "ac_cv_func_crypt=no"
21136 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21137 echo "$ac_t""yes" 1>&6
21140 echo "$ac_t""no" 1>&6
21143 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21144 echo "configure:21145: checking for crypt in -lcrypt" >&5
21145 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21147 echo $ac_n "(cached) $ac_c" 1>&6
21149 ac_save_LIBS="$LIBS"
21150 LIBS="-lcrypt $LIBS"
21151 cat > conftest.$ac_ext <<EOF
21152 #line 21153 "configure"
21153 #include "confdefs.h"
21154 /* Override any gcc2 internal prototype to avoid an error. */
21155 /* We use char because int might match the return type of a gcc2
21156 builtin and then its argument prototype would still apply. */
21163 if { (eval echo configure:21164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21165 eval "ac_cv_lib_$ac_lib_var=yes"
21167 echo "configure: failed program was:" >&5
21168 cat conftest.$ac_ext >&5
21170 eval "ac_cv_lib_$ac_lib_var=no"
21173 LIBS="$ac_save_LIBS"
21176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21177 echo "$ac_t""yes" 1>&6
21178 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21181 echo "$ac_t""no" 1>&6
21190 if test $have_crypt = yes ; then
21191 cat >> confdefs.h <<\EOF
21192 #define HAVE_CRYPT 1
21196 echo "configure: warning: could not find crypt" 1>&2
21197 if test $ol_enable_crypt = yes ; then
21198 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21201 echo "configure: warning: disabling crypt support" 1>&2
21206 if test $ol_enable_proctitle != no ; then
21207 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21208 echo "configure:21209: checking for setproctitle" >&5
21209 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21210 echo $ac_n "(cached) $ac_c" 1>&6
21212 cat > conftest.$ac_ext <<EOF
21213 #line 21214 "configure"
21214 #include "confdefs.h"
21215 /* System header to define __stub macros and hopefully few prototypes,
21216 which can conflict with char setproctitle(); below. */
21217 #include <assert.h>
21218 /* Override any gcc2 internal prototype to avoid an error. */
21219 /* We use char because int might match the return type of a gcc2
21220 builtin and then its argument prototype would still apply. */
21221 char setproctitle();
21226 /* The GNU C library defines this for functions which it implements
21227 to always fail with ENOSYS. Some functions are actually named
21228 something starting with __ and the normal name is an alias. */
21229 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21237 if { (eval echo configure:21238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21239 eval "ac_cv_func_setproctitle=yes"
21241 echo "configure: failed program was:" >&5
21242 cat conftest.$ac_ext >&5
21244 eval "ac_cv_func_setproctitle=no"
21249 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21250 echo "$ac_t""yes" 1>&6
21251 have_setproctitle=yes
21253 echo "$ac_t""no" 1>&6
21255 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21256 echo "configure:21257: checking for setproctitle in -lutil" >&5
21257 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21259 echo $ac_n "(cached) $ac_c" 1>&6
21261 ac_save_LIBS="$LIBS"
21262 LIBS="-lutil $LIBS"
21263 cat > conftest.$ac_ext <<EOF
21264 #line 21265 "configure"
21265 #include "confdefs.h"
21266 /* Override any gcc2 internal prototype to avoid an error. */
21267 /* We use char because int might match the return type of a gcc2
21268 builtin and then its argument prototype would still apply. */
21269 char setproctitle();
21275 if { (eval echo configure:21276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21277 eval "ac_cv_lib_$ac_lib_var=yes"
21279 echo "configure: failed program was:" >&5
21280 cat conftest.$ac_ext >&5
21282 eval "ac_cv_lib_$ac_lib_var=no"
21285 LIBS="$ac_save_LIBS"
21288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21289 echo "$ac_t""yes" 1>&6
21290 have_setproctitle=yes
21291 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21293 echo "$ac_t""no" 1>&6
21294 have_setproctitle=no
21295 LIBOBJS="$LIBOBJS setproctitle.o"
21296 LIBSRCS="$LIBSRCS setproctitle.c"
21302 if test $have_setproctitle = yes ; then
21303 cat >> confdefs.h <<\EOF
21304 #define HAVE_SETPROCTITLE 1
21310 if test $ol_enable_slp != no ; then
21311 for ac_hdr in slp.h
21313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21315 echo "configure:21316: checking for $ac_hdr" >&5
21316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21317 echo $ac_n "(cached) $ac_c" 1>&6
21319 cat > conftest.$ac_ext <<EOF
21320 #line 21321 "configure"
21321 #include "confdefs.h"
21324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21325 { (eval echo configure:21326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21327 if test -z "$ac_err"; then
21329 eval "ac_cv_header_$ac_safe=yes"
21332 echo "configure: failed program was:" >&5
21333 cat conftest.$ac_ext >&5
21335 eval "ac_cv_header_$ac_safe=no"
21339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21340 echo "$ac_t""yes" 1>&6
21341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21342 cat >> confdefs.h <<EOF
21343 #define $ac_tr_hdr 1
21347 echo "$ac_t""no" 1>&6
21352 if test $ac_cv_header_slp_h = yes ; then
21353 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21354 echo "configure:21355: checking for SLPOpen in -lslp" >&5
21355 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21357 echo $ac_n "(cached) $ac_c" 1>&6
21359 ac_save_LIBS="$LIBS"
21361 cat > conftest.$ac_ext <<EOF
21362 #line 21363 "configure"
21363 #include "confdefs.h"
21364 /* Override any gcc2 internal prototype to avoid an error. */
21365 /* We use char because int might match the return type of a gcc2
21366 builtin and then its argument prototype would still apply. */
21373 if { (eval echo configure:21374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21375 eval "ac_cv_lib_$ac_lib_var=yes"
21377 echo "configure: failed program was:" >&5
21378 cat conftest.$ac_ext >&5
21380 eval "ac_cv_lib_$ac_lib_var=no"
21383 LIBS="$ac_save_LIBS"
21386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21387 echo "$ac_t""yes" 1>&6
21390 echo "$ac_t""no" 1>&6
21394 if test $have_slp = yes ; then
21395 cat >> confdefs.h <<\EOF
21399 SLAPD_SLP_LIBS=-lslp
21402 elif test $ol_enable_slp = yes ; then
21403 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21408 echo $ac_n "checking long long""... $ac_c" 1>&6
21409 echo "configure:21410: checking long long" >&5
21410 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21411 echo $ac_n "(cached) $ac_c" 1>&6
21414 cat > conftest.$ac_ext <<EOF
21415 #line 21416 "configure"
21416 #include "confdefs.h"
21422 if { (eval echo configure:21423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21424 ol_cv_type_long_long=yes
21426 echo "configure: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21429 ol_cv_type_long_long=no
21434 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21435 if test $ol_cv_type_long_long = yes; then
21436 cat >> confdefs.h <<\EOF
21437 #define HAVE_LONG_LONG 1
21442 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21443 echo "configure:21444: checking for ANSI C header files" >&5
21444 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21445 echo $ac_n "(cached) $ac_c" 1>&6
21447 cat > conftest.$ac_ext <<EOF
21448 #line 21449 "configure"
21449 #include "confdefs.h"
21450 #include <stdlib.h>
21451 #include <stdarg.h>
21452 #include <string.h>
21455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21456 { (eval echo configure:21457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21458 if test -z "$ac_err"; then
21460 ac_cv_header_stdc=yes
21463 echo "configure: failed program was:" >&5
21464 cat conftest.$ac_ext >&5
21466 ac_cv_header_stdc=no
21470 if test $ac_cv_header_stdc = yes; then
21471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21472 cat > conftest.$ac_ext <<EOF
21473 #line 21474 "configure"
21474 #include "confdefs.h"
21475 #include <string.h>
21477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21478 egrep "memchr" >/dev/null 2>&1; then
21482 ac_cv_header_stdc=no
21488 if test $ac_cv_header_stdc = yes; then
21489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21490 cat > conftest.$ac_ext <<EOF
21491 #line 21492 "configure"
21492 #include "confdefs.h"
21493 #include <stdlib.h>
21495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21496 egrep "free" >/dev/null 2>&1; then
21500 ac_cv_header_stdc=no
21506 if test $ac_cv_header_stdc = yes; then
21507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21508 if test "$cross_compiling" = yes; then
21511 cat > conftest.$ac_ext <<EOF
21512 #line 21513 "configure"
21513 #include "confdefs.h"
21515 #if ((' ' & 0x0FF) == 0x020)
21516 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21517 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21519 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21520 || ('j' <= (c) && (c) <= 'r') \
21521 || ('s' <= (c) && (c) <= 'z'))
21522 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21525 int main () { int i; for (i = 0; i < 256; i++)
21526 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21530 if { (eval echo configure:21531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21534 echo "configure: failed program was:" >&5
21535 cat conftest.$ac_ext >&5
21537 ac_cv_header_stdc=no
21545 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21546 if test $ac_cv_header_stdc = yes; then
21547 cat >> confdefs.h <<\EOF
21548 #define STDC_HEADERS 1
21553 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21554 echo "configure:21555: checking for mode_t" >&5
21555 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21556 echo $ac_n "(cached) $ac_c" 1>&6
21558 cat > conftest.$ac_ext <<EOF
21559 #line 21560 "configure"
21560 #include "confdefs.h"
21561 #include <sys/types.h>
21563 #include <stdlib.h>
21564 #include <stddef.h>
21568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21569 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21571 eval "ac_cv_type_mode_t=yes"
21574 eval "ac_cv_type_mode_t=no"
21579 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21580 echo "$ac_t""yes" 1>&6
21582 echo "$ac_t""no" 1>&6
21583 cat >> confdefs.h <<EOF
21589 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21590 echo "configure:21591: checking for off_t" >&5
21591 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21592 echo $ac_n "(cached) $ac_c" 1>&6
21594 cat > conftest.$ac_ext <<EOF
21595 #line 21596 "configure"
21596 #include "confdefs.h"
21597 #include <sys/types.h>
21599 #include <stdlib.h>
21600 #include <stddef.h>
21604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21605 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21607 eval "ac_cv_type_off_t=yes"
21610 eval "ac_cv_type_off_t=no"
21615 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21616 echo "$ac_t""yes" 1>&6
21618 echo "$ac_t""no" 1>&6
21619 cat >> confdefs.h <<EOF
21625 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21626 echo "configure:21627: checking for pid_t" >&5
21627 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21628 echo $ac_n "(cached) $ac_c" 1>&6
21630 cat > conftest.$ac_ext <<EOF
21631 #line 21632 "configure"
21632 #include "confdefs.h"
21633 #include <sys/types.h>
21635 #include <stdlib.h>
21636 #include <stddef.h>
21640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21641 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21643 eval "ac_cv_type_pid_t=yes"
21646 eval "ac_cv_type_pid_t=no"
21651 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21652 echo "$ac_t""yes" 1>&6
21654 echo "$ac_t""no" 1>&6
21655 cat >> confdefs.h <<EOF
21661 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21662 echo "configure:21663: checking for ptrdiff_t" >&5
21663 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21664 echo $ac_n "(cached) $ac_c" 1>&6
21666 cat > conftest.$ac_ext <<EOF
21667 #line 21668 "configure"
21668 #include "confdefs.h"
21669 #include <stddef.h>
21674 if { (eval echo configure:21675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21676 am_cv_type_ptrdiff_t=yes
21678 echo "configure: failed program was:" >&5
21679 cat conftest.$ac_ext >&5
21681 am_cv_type_ptrdiff_t=no
21686 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21687 if test $am_cv_type_ptrdiff_t = yes; then
21688 cat >> confdefs.h <<\EOF
21689 #define HAVE_PTRDIFF_T 1
21694 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21695 echo "configure:21696: checking return type of signal handlers" >&5
21696 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21697 echo $ac_n "(cached) $ac_c" 1>&6
21699 cat > conftest.$ac_ext <<EOF
21700 #line 21701 "configure"
21701 #include "confdefs.h"
21702 #include <sys/types.h>
21703 #include <signal.h>
21708 extern "C" void (*signal (int, void (*)(int)))(int);
21710 void (*signal ()) ();
21717 if { (eval echo configure:21718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21719 ac_cv_type_signal=void
21721 echo "configure: failed program was:" >&5
21722 cat conftest.$ac_ext >&5
21724 ac_cv_type_signal=int
21729 echo "$ac_t""$ac_cv_type_signal" 1>&6
21730 cat >> confdefs.h <<EOF
21731 #define RETSIGTYPE $ac_cv_type_signal
21735 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21736 echo "configure:21737: checking for size_t" >&5
21737 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21738 echo $ac_n "(cached) $ac_c" 1>&6
21740 cat > conftest.$ac_ext <<EOF
21741 #line 21742 "configure"
21742 #include "confdefs.h"
21743 #include <sys/types.h>
21745 #include <stdlib.h>
21746 #include <stddef.h>
21750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21751 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21753 eval "ac_cv_type_size_t=yes"
21756 eval "ac_cv_type_size_t=no"
21761 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21762 echo "$ac_t""yes" 1>&6
21764 echo "$ac_t""no" 1>&6
21765 cat >> confdefs.h <<EOF
21766 #define size_t unsigned
21772 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21773 echo "configure:21774: checking for ssize_t" >&5
21774 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21775 echo $ac_n "(cached) $ac_c" 1>&6
21777 cat > conftest.$ac_ext <<EOF
21778 #line 21779 "configure"
21779 #include "confdefs.h"
21780 #include <sys/types.h>
21782 #include <stdlib.h>
21783 #include <stddef.h>
21787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21788 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21790 eval "ac_cv_type_ssize_t=yes"
21793 eval "ac_cv_type_ssize_t=no"
21798 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21799 echo "$ac_t""yes" 1>&6
21801 echo "$ac_t""no" 1>&6
21802 cat >> confdefs.h <<EOF
21803 #define ssize_t signed int
21808 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21809 echo "configure:21810: checking for caddr_t" >&5
21810 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21811 echo $ac_n "(cached) $ac_c" 1>&6
21813 cat > conftest.$ac_ext <<EOF
21814 #line 21815 "configure"
21815 #include "confdefs.h"
21816 #include <sys/types.h>
21818 #include <stdlib.h>
21819 #include <stddef.h>
21823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21824 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21826 eval "ac_cv_type_caddr_t=yes"
21829 eval "ac_cv_type_caddr_t=no"
21834 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21835 echo "$ac_t""yes" 1>&6
21837 echo "$ac_t""no" 1>&6
21838 cat >> confdefs.h <<EOF
21839 #define caddr_t char *
21845 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21846 echo "configure:21847: checking for socklen_t" >&5
21847 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21848 echo $ac_n "(cached) $ac_c" 1>&6
21850 cat > conftest.$ac_ext <<EOF
21851 #line 21852 "configure"
21852 #include "confdefs.h"
21854 #ifdef HAVE_SYS_TYPES_H
21855 #include <sys/types.h>
21857 #ifdef HAVE_SYS_SOCKET_H
21858 #include <sys/socket.h>
21865 if { (eval echo configure:21866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21867 ol_cv_type_socklen_t=yes
21869 echo "configure: failed program was:" >&5
21870 cat conftest.$ac_ext >&5
21872 ol_cv_type_socklen_t=no
21877 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21878 if test $ol_cv_type_socklen_t = no; then
21879 cat >> confdefs.h <<\EOF
21880 #define socklen_t int
21885 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21886 echo "configure:21887: checking for member st_blksize in aggregate type struct stat" >&5
21887 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21888 echo $ac_n "(cached) $ac_c" 1>&6
21890 cat > conftest.$ac_ext <<EOF
21891 #line 21892 "configure"
21892 #include "confdefs.h"
21893 #include <sys/types.h>
21894 #include <sys/stat.h>
21896 struct stat foo; foo.st_blksize;
21899 if { (eval echo configure:21900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21901 ac_cv_c_struct_member_st_blksize=yes
21903 echo "configure: failed program was:" >&5
21904 cat conftest.$ac_ext >&5
21906 ac_cv_c_struct_member_st_blksize=no
21911 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21912 st_blksize="$ac_cv_c_struct_member_st_blksize"
21913 if test $ac_cv_c_struct_member_st_blksize = yes; then
21914 cat >> confdefs.h <<\EOF
21915 #define HAVE_ST_BLKSIZE 1
21920 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21921 echo "configure:21922: checking whether time.h and sys/time.h may both be included" >&5
21922 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21923 echo $ac_n "(cached) $ac_c" 1>&6
21925 cat > conftest.$ac_ext <<EOF
21926 #line 21927 "configure"
21927 #include "confdefs.h"
21928 #include <sys/types.h>
21929 #include <sys/time.h>
21935 if { (eval echo configure:21936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21937 ac_cv_header_time=yes
21939 echo "configure: failed program was:" >&5
21940 cat conftest.$ac_ext >&5
21942 ac_cv_header_time=no
21947 echo "$ac_t""$ac_cv_header_time" 1>&6
21948 if test $ac_cv_header_time = yes; then
21949 cat >> confdefs.h <<\EOF
21950 #define TIME_WITH_SYS_TIME 1
21955 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21956 echo "configure:21957: checking whether struct tm is in sys/time.h or time.h" >&5
21957 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21958 echo $ac_n "(cached) $ac_c" 1>&6
21960 cat > conftest.$ac_ext <<EOF
21961 #line 21962 "configure"
21962 #include "confdefs.h"
21963 #include <sys/types.h>
21966 struct tm *tp; tp->tm_sec;
21969 if { (eval echo configure:21970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21971 ac_cv_struct_tm=time.h
21973 echo "configure: failed program was:" >&5
21974 cat conftest.$ac_ext >&5
21976 ac_cv_struct_tm=sys/time.h
21981 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21982 if test $ac_cv_struct_tm = sys/time.h; then
21983 cat >> confdefs.h <<\EOF
21984 #define TM_IN_SYS_TIME 1
21989 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21990 echo "configure:21991: checking for uid_t in sys/types.h" >&5
21991 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21992 echo $ac_n "(cached) $ac_c" 1>&6
21994 cat > conftest.$ac_ext <<EOF
21995 #line 21996 "configure"
21996 #include "confdefs.h"
21997 #include <sys/types.h>
21999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22000 egrep "uid_t" >/dev/null 2>&1; then
22002 ac_cv_type_uid_t=yes
22005 ac_cv_type_uid_t=no
22011 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22012 if test $ac_cv_type_uid_t = no; then
22013 cat >> confdefs.h <<\EOF
22017 cat >> confdefs.h <<\EOF
22023 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22024 echo "configure:22025: checking for sig_atomic_t" >&5
22025 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22026 echo $ac_n "(cached) $ac_c" 1>&6
22028 cat > conftest.$ac_ext <<EOF
22029 #line 22030 "configure"
22030 #include "confdefs.h"
22031 #include <signal.h>
22033 sig_atomic_t atomic;
22036 if { (eval echo configure:22037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22038 ol_cv_type_sig_atomic_t=yes
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22043 ol_cv_type_sig_atomic_t=no
22048 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22049 if test $ol_cv_type_sig_atomic_t = no; then
22050 cat >> confdefs.h <<\EOF
22051 #define sig_atomic_t int
22058 # test for pw_gecos in struct passwd
22059 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22060 echo "configure:22061: checking struct passwd for pw_gecos" >&5
22061 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22062 echo $ac_n "(cached) $ac_c" 1>&6
22065 cat > conftest.$ac_ext <<EOF
22066 #line 22067 "configure"
22067 #include "confdefs.h"
22072 pwd.pw_gecos = pwd.pw_name;
22076 if { (eval echo configure:22077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22078 ol_cv_struct_passwd_pw_gecos=yes
22080 echo "configure: failed program was:" >&5
22081 cat conftest.$ac_ext >&5
22083 ol_cv_struct_passwd_pw_gecos=no
22088 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22089 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22090 cat >> confdefs.h <<\EOF
22091 #define HAVE_PW_GECOS 1
22096 # test for pw_passwd in struct passwd
22097 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22098 echo "configure:22099: checking struct passwd for pw_passwd" >&5
22099 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22100 echo $ac_n "(cached) $ac_c" 1>&6
22103 cat > conftest.$ac_ext <<EOF
22104 #line 22105 "configure"
22105 #include "confdefs.h"
22110 pwd.pw_passwd = pwd.pw_name;
22114 if { (eval echo configure:22115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22116 ol_cv_struct_passwd_pw_passwd=yes
22118 echo "configure: failed program was:" >&5
22119 cat conftest.$ac_ext >&5
22121 ol_cv_struct_passwd_pw_passwd=no
22126 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22127 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22128 cat >> confdefs.h <<\EOF
22129 #define HAVE_PW_PASSWD 1
22135 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22136 echo "configure:22137: checking if toupper() requires islower()" >&5
22137 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22138 echo $ac_n "(cached) $ac_c" 1>&6
22141 if test "$cross_compiling" = yes; then
22142 ol_cv_c_upper_lower=safe
22144 cat > conftest.$ac_ext <<EOF
22145 #line 22146 "configure"
22146 #include "confdefs.h"
22151 if ('C' == toupper('C'))
22157 if { (eval echo configure:22158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22159 ol_cv_c_upper_lower=no
22161 echo "configure: failed program was:" >&5
22162 cat conftest.$ac_ext >&5
22164 ol_cv_c_upper_lower=yes
22171 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22172 if test $ol_cv_c_upper_lower != no ; then
22173 cat >> confdefs.h <<\EOF
22174 #define C_UPPER_LOWER 1
22179 echo $ac_n "checking for working const""... $ac_c" 1>&6
22180 echo "configure:22181: checking for working const" >&5
22181 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22182 echo $ac_n "(cached) $ac_c" 1>&6
22184 cat > conftest.$ac_ext <<EOF
22185 #line 22186 "configure"
22186 #include "confdefs.h"
22190 /* Ultrix mips cc rejects this. */
22191 typedef int charset[2]; const charset x;
22192 /* SunOS 4.1.1 cc rejects this. */
22193 char const *const *ccp;
22195 /* NEC SVR4.0.2 mips cc rejects this. */
22196 struct point {int x, y;};
22197 static struct point const zero = {0,0};
22198 /* AIX XL C 1.02.0.0 rejects this.
22199 It does not let you subtract one const X* pointer from another in an arm
22200 of an if-expression whose if-part is not a constant expression */
22201 const char *g = "string";
22202 ccp = &g + (g ? g-g : 0);
22203 /* HPUX 7.0 cc rejects these. */
22206 ccp = (char const *const *) p;
22207 { /* SCO 3.2v4 cc rejects this. */
22209 char const *s = 0 ? (char *) 0 : (char const *) 0;
22213 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22214 int x[] = {25, 17};
22215 const int *foo = &x[0];
22218 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22219 typedef const int *iptr;
22223 { /* AIX XL C 1.02.0.0 rejects this saying
22224 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22225 struct s { int j; const int *ap[3]; };
22226 struct s *b; b->j = 5;
22228 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22229 const int foo = 10;
22234 if { (eval echo configure:22235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22246 echo "$ac_t""$ac_cv_c_const" 1>&6
22247 if test $ac_cv_c_const = no; then
22248 cat >> confdefs.h <<\EOF
22254 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22255 echo "configure:22256: checking if compiler understands volatile" >&5
22256 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22257 echo $ac_n "(cached) $ac_c" 1>&6
22259 cat > conftest.$ac_ext <<EOF
22260 #line 22261 "configure"
22261 #include "confdefs.h"
22264 volatile int a; int * volatile b = x ? &y : &z;
22265 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22269 if { (eval echo configure:22270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22271 ol_cv_c_volatile=yes
22273 echo "configure: failed program was:" >&5
22274 cat conftest.$ac_ext >&5
22276 ol_cv_c_volatile=no
22281 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22282 if test $ol_cv_c_volatile = yes; then
22285 cat >> confdefs.h <<\EOF
22292 if test $cross_compiling = yes ; then
22293 cat >> confdefs.h <<\EOF
22294 #define CROSS_COMPILING 1
22298 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22299 echo "configure:22300: checking whether byte ordering is bigendian" >&5
22300 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22301 echo $ac_n "(cached) $ac_c" 1>&6
22303 ac_cv_c_bigendian=unknown
22304 # See if sys/param.h defines the BYTE_ORDER macro.
22305 cat > conftest.$ac_ext <<EOF
22306 #line 22307 "configure"
22307 #include "confdefs.h"
22308 #include <sys/types.h>
22309 #include <sys/param.h>
22312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22313 bogus endian macros
22317 if { (eval echo configure:22318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22319 # It does; now see whether it defined to BIG_ENDIAN or not.
22320 cat > conftest.$ac_ext <<EOF
22321 #line 22322 "configure"
22322 #include "confdefs.h"
22323 #include <sys/types.h>
22324 #include <sys/param.h>
22327 #if BYTE_ORDER != BIG_ENDIAN
22332 if { (eval echo configure:22333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22334 ac_cv_c_bigendian=yes
22336 echo "configure: failed program was:" >&5
22337 cat conftest.$ac_ext >&5
22339 ac_cv_c_bigendian=no
22343 echo "configure: failed program was:" >&5
22344 cat conftest.$ac_ext >&5
22347 if test $ac_cv_c_bigendian = unknown; then
22348 if test "$cross_compiling" = yes; then
22349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22351 cat > conftest.$ac_ext <<EOF
22352 #line 22353 "configure"
22353 #include "confdefs.h"
22355 /* Are we little or big endian? From Harbison&Steele. */
22359 char c[sizeof (long)];
22362 exit (u.c[sizeof (long) - 1] == 1);
22365 if { (eval echo configure:22366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22367 ac_cv_c_bigendian=no
22369 echo "configure: failed program was:" >&5
22370 cat conftest.$ac_ext >&5
22372 ac_cv_c_bigendian=yes
22380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22381 if test $ac_cv_c_bigendian = yes; then
22382 cat >> confdefs.h <<\EOF
22383 #define WORDS_BIGENDIAN 1
22390 echo $ac_n "checking size of short""... $ac_c" 1>&6
22391 echo "configure:22392: checking size of short" >&5
22392 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22393 echo $ac_n "(cached) $ac_c" 1>&6
22395 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22396 cat > conftest.$ac_ext <<EOF
22397 #line 22398 "configure"
22398 #include "confdefs.h"
22399 #include "confdefs.h"
22400 #include <sys/types.h>
22404 switch (0) case 0: case (sizeof (short) == $ac_size):;
22407 if { (eval echo configure:22408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22409 ac_cv_sizeof_short=$ac_size
22411 echo "configure: failed program was:" >&5
22412 cat conftest.$ac_ext >&5
22415 if test x$ac_cv_sizeof_short != x ; then break; fi
22420 if test x$ac_cv_sizeof_short = x ; then
22421 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22423 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22424 cat >> confdefs.h <<EOF
22425 #define SIZEOF_SHORT $ac_cv_sizeof_short
22429 echo $ac_n "checking size of int""... $ac_c" 1>&6
22430 echo "configure:22431: checking size of int" >&5
22431 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22432 echo $ac_n "(cached) $ac_c" 1>&6
22434 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22435 cat > conftest.$ac_ext <<EOF
22436 #line 22437 "configure"
22437 #include "confdefs.h"
22438 #include "confdefs.h"
22439 #include <sys/types.h>
22443 switch (0) case 0: case (sizeof (int) == $ac_size):;
22446 if { (eval echo configure:22447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22448 ac_cv_sizeof_int=$ac_size
22450 echo "configure: failed program was:" >&5
22451 cat conftest.$ac_ext >&5
22454 if test x$ac_cv_sizeof_int != x ; then break; fi
22459 if test x$ac_cv_sizeof_int = x ; then
22460 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22462 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22463 cat >> confdefs.h <<EOF
22464 #define SIZEOF_INT $ac_cv_sizeof_int
22468 echo $ac_n "checking size of long""... $ac_c" 1>&6
22469 echo "configure:22470: checking size of long" >&5
22470 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22471 echo $ac_n "(cached) $ac_c" 1>&6
22473 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22474 cat > conftest.$ac_ext <<EOF
22475 #line 22476 "configure"
22476 #include "confdefs.h"
22477 #include "confdefs.h"
22478 #include <sys/types.h>
22482 switch (0) case 0: case (sizeof (long) == $ac_size):;
22485 if { (eval echo configure:22486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22487 ac_cv_sizeof_long=$ac_size
22489 echo "configure: failed program was:" >&5
22490 cat conftest.$ac_ext >&5
22493 if test x$ac_cv_sizeof_long != x ; then break; fi
22498 if test x$ac_cv_sizeof_long = x ; then
22499 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22501 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22502 cat >> confdefs.h <<EOF
22503 #define SIZEOF_LONG $ac_cv_sizeof_long
22508 if test "$ac_cv_sizeof_int" -lt 4 ; then
22509 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22511 cat >> confdefs.h <<\EOF
22512 #define LBER_INT_T long
22516 cat >> confdefs.h <<\EOF
22517 #define LBER_INT_T int
22522 cat >> confdefs.h <<\EOF
22523 #define LBER_LEN_T long
22526 cat >> confdefs.h <<\EOF
22527 #define LBER_SOCKET_T int
22530 cat >> confdefs.h <<\EOF
22531 #define LBER_TAG_T long
22535 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22536 echo "configure:22537: checking for 8-bit clean memcmp" >&5
22537 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22538 echo $ac_n "(cached) $ac_c" 1>&6
22540 if test "$cross_compiling" = yes; then
22541 ac_cv_func_memcmp_clean=no
22543 cat > conftest.$ac_ext <<EOF
22544 #line 22545 "configure"
22545 #include "confdefs.h"
22549 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22550 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22554 if { (eval echo configure:22555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22556 ac_cv_func_memcmp_clean=yes
22558 echo "configure: failed program was:" >&5
22559 cat conftest.$ac_ext >&5
22561 ac_cv_func_memcmp_clean=no
22568 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22569 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22571 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22572 echo "configure:22573: checking for strftime" >&5
22573 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22574 echo $ac_n "(cached) $ac_c" 1>&6
22576 cat > conftest.$ac_ext <<EOF
22577 #line 22578 "configure"
22578 #include "confdefs.h"
22579 /* System header to define __stub macros and hopefully few prototypes,
22580 which can conflict with char strftime(); below. */
22581 #include <assert.h>
22582 /* Override any gcc2 internal prototype to avoid an error. */
22583 /* We use char because int might match the return type of a gcc2
22584 builtin and then its argument prototype would still apply. */
22590 /* The GNU C library defines this for functions which it implements
22591 to always fail with ENOSYS. Some functions are actually named
22592 something starting with __ and the normal name is an alias. */
22593 #if defined (__stub_strftime) || defined (__stub___strftime)
22601 if { (eval echo configure:22602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22603 eval "ac_cv_func_strftime=yes"
22605 echo "configure: failed program was:" >&5
22606 cat conftest.$ac_ext >&5
22608 eval "ac_cv_func_strftime=no"
22613 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22614 echo "$ac_t""yes" 1>&6
22615 cat >> confdefs.h <<\EOF
22616 #define HAVE_STRFTIME 1
22620 echo "$ac_t""no" 1>&6
22621 # strftime is in -lintl on SCO UNIX.
22622 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22623 echo "configure:22624: checking for strftime in -lintl" >&5
22624 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22626 echo $ac_n "(cached) $ac_c" 1>&6
22628 ac_save_LIBS="$LIBS"
22629 LIBS="-lintl $LIBS"
22630 cat > conftest.$ac_ext <<EOF
22631 #line 22632 "configure"
22632 #include "confdefs.h"
22633 /* Override any gcc2 internal prototype to avoid an error. */
22634 /* We use char because int might match the return type of a gcc2
22635 builtin and then its argument prototype would still apply. */
22642 if { (eval echo configure:22643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22644 eval "ac_cv_lib_$ac_lib_var=yes"
22646 echo "configure: failed program was:" >&5
22647 cat conftest.$ac_ext >&5
22649 eval "ac_cv_lib_$ac_lib_var=no"
22652 LIBS="$ac_save_LIBS"
22655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22656 echo "$ac_t""yes" 1>&6
22657 cat >> confdefs.h <<\EOF
22658 #define HAVE_STRFTIME 1
22661 LIBS="-lintl $LIBS"
22663 echo "$ac_t""no" 1>&6
22669 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22670 echo "configure:22671: checking for inet_aton()" >&5
22671 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22672 echo $ac_n "(cached) $ac_c" 1>&6
22674 cat > conftest.$ac_ext <<EOF
22675 #line 22676 "configure"
22676 #include "confdefs.h"
22678 #ifdef HAVE_SYS_TYPES_H
22679 # include <sys/types.h>
22681 #ifdef HAVE_SYS_SOCKET_H
22682 # include <sys/socket.h>
22683 # ifdef HAVE_SYS_SELECT_H
22684 # include <sys/select.h>
22686 # include <netinet/in.h>
22687 # ifdef HAVE_ARPA_INET_H
22688 # include <arpa/inet.h>
22694 int rc = inet_aton( "255.255.255.255", &in );
22697 if { (eval echo configure:22698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22699 ol_cv_func_inet_aton=yes
22701 echo "configure: failed program was:" >&5
22702 cat conftest.$ac_ext >&5
22704 ol_cv_func_inet_aton=no
22709 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22710 if test $ol_cv_func_inet_aton != no; then
22711 cat >> confdefs.h <<\EOF
22712 #define HAVE_INET_ATON 1
22718 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22719 echo "configure:22720: checking for _spawnlp" >&5
22720 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22721 echo $ac_n "(cached) $ac_c" 1>&6
22723 cat > conftest.$ac_ext <<EOF
22724 #line 22725 "configure"
22725 #include "confdefs.h"
22726 /* System header to define __stub macros and hopefully few prototypes,
22727 which can conflict with char _spawnlp(); below. */
22728 #include <assert.h>
22729 /* Override any gcc2 internal prototype to avoid an error. */
22730 /* We use char because int might match the return type of a gcc2
22731 builtin and then its argument prototype would still apply. */
22737 /* The GNU C library defines this for functions which it implements
22738 to always fail with ENOSYS. Some functions are actually named
22739 something starting with __ and the normal name is an alias. */
22740 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22748 if { (eval echo configure:22749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22750 eval "ac_cv_func__spawnlp=yes"
22752 echo "configure: failed program was:" >&5
22753 cat conftest.$ac_ext >&5
22755 eval "ac_cv_func__spawnlp=no"
22760 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22761 echo "$ac_t""yes" 1>&6
22762 cat >> confdefs.h <<\EOF
22763 #define HAVE_SPAWNLP 1
22767 echo "$ac_t""no" 1>&6
22771 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22772 echo "configure:22773: checking for _snprintf" >&5
22773 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22774 echo $ac_n "(cached) $ac_c" 1>&6
22776 cat > conftest.$ac_ext <<EOF
22777 #line 22778 "configure"
22778 #include "confdefs.h"
22779 /* System header to define __stub macros and hopefully few prototypes,
22780 which can conflict with char _snprintf(); below. */
22781 #include <assert.h>
22782 /* Override any gcc2 internal prototype to avoid an error. */
22783 /* We use char because int might match the return type of a gcc2
22784 builtin and then its argument prototype would still apply. */
22790 /* The GNU C library defines this for functions which it implements
22791 to always fail with ENOSYS. Some functions are actually named
22792 something starting with __ and the normal name is an alias. */
22793 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22801 if { (eval echo configure:22802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22803 eval "ac_cv_func__snprintf=yes"
22805 echo "configure: failed program was:" >&5
22806 cat conftest.$ac_ext >&5
22808 eval "ac_cv_func__snprintf=no"
22813 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22814 echo "$ac_t""yes" 1>&6
22815 ac_cv_func_snprintf=yes
22816 cat >> confdefs.h <<\EOF
22817 #define snprintf _snprintf
22822 echo "$ac_t""no" 1>&6
22826 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22827 echo "configure:22828: checking for _vsnprintf" >&5
22828 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22829 echo $ac_n "(cached) $ac_c" 1>&6
22831 cat > conftest.$ac_ext <<EOF
22832 #line 22833 "configure"
22833 #include "confdefs.h"
22834 /* System header to define __stub macros and hopefully few prototypes,
22835 which can conflict with char _vsnprintf(); below. */
22836 #include <assert.h>
22837 /* Override any gcc2 internal prototype to avoid an error. */
22838 /* We use char because int might match the return type of a gcc2
22839 builtin and then its argument prototype would still apply. */
22845 /* The GNU C library defines this for functions which it implements
22846 to always fail with ENOSYS. Some functions are actually named
22847 something starting with __ and the normal name is an alias. */
22848 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22856 if { (eval echo configure:22857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22858 eval "ac_cv_func__vsnprintf=yes"
22860 echo "configure: failed program was:" >&5
22861 cat conftest.$ac_ext >&5
22863 eval "ac_cv_func__vsnprintf=no"
22868 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22869 echo "$ac_t""yes" 1>&6
22870 ac_cv_func_vsnprintf=yes
22871 cat >> confdefs.h <<\EOF
22872 #define vsnprintf _vsnprintf
22877 echo "$ac_t""no" 1>&6
22881 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22882 echo "configure:22883: checking for vprintf" >&5
22883 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22884 echo $ac_n "(cached) $ac_c" 1>&6
22886 cat > conftest.$ac_ext <<EOF
22887 #line 22888 "configure"
22888 #include "confdefs.h"
22889 /* System header to define __stub macros and hopefully few prototypes,
22890 which can conflict with char vprintf(); below. */
22891 #include <assert.h>
22892 /* Override any gcc2 internal prototype to avoid an error. */
22893 /* We use char because int might match the return type of a gcc2
22894 builtin and then its argument prototype would still apply. */
22900 /* The GNU C library defines this for functions which it implements
22901 to always fail with ENOSYS. Some functions are actually named
22902 something starting with __ and the normal name is an alias. */
22903 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22911 if { (eval echo configure:22912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22913 eval "ac_cv_func_vprintf=yes"
22915 echo "configure: failed program was:" >&5
22916 cat conftest.$ac_ext >&5
22918 eval "ac_cv_func_vprintf=no"
22923 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22924 echo "$ac_t""yes" 1>&6
22925 cat >> confdefs.h <<\EOF
22926 #define HAVE_VPRINTF 1
22930 echo "$ac_t""no" 1>&6
22933 if test "$ac_cv_func_vprintf" != yes; then
22934 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22935 echo "configure:22936: checking for _doprnt" >&5
22936 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22937 echo $ac_n "(cached) $ac_c" 1>&6
22939 cat > conftest.$ac_ext <<EOF
22940 #line 22941 "configure"
22941 #include "confdefs.h"
22942 /* System header to define __stub macros and hopefully few prototypes,
22943 which can conflict with char _doprnt(); below. */
22944 #include <assert.h>
22945 /* Override any gcc2 internal prototype to avoid an error. */
22946 /* We use char because int might match the return type of a gcc2
22947 builtin and then its argument prototype would still apply. */
22953 /* The GNU C library defines this for functions which it implements
22954 to always fail with ENOSYS. Some functions are actually named
22955 something starting with __ and the normal name is an alias. */
22956 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22964 if { (eval echo configure:22965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22966 eval "ac_cv_func__doprnt=yes"
22968 echo "configure: failed program was:" >&5
22969 cat conftest.$ac_ext >&5
22971 eval "ac_cv_func__doprnt=no"
22976 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22977 echo "$ac_t""yes" 1>&6
22978 cat >> confdefs.h <<\EOF
22979 #define HAVE_DOPRNT 1
22983 echo "$ac_t""no" 1>&6
22989 if test $ac_cv_func_vprintf = yes ; then
22990 for ac_func in snprintf vsnprintf
22992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22993 echo "configure:22994: checking for $ac_func" >&5
22994 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22995 echo $ac_n "(cached) $ac_c" 1>&6
22997 cat > conftest.$ac_ext <<EOF
22998 #line 22999 "configure"
22999 #include "confdefs.h"
23000 /* System header to define __stub macros and hopefully few prototypes,
23001 which can conflict with char $ac_func(); below. */
23002 #include <assert.h>
23003 /* Override any gcc2 internal prototype to avoid an error. */
23004 /* We use char because int might match the return type of a gcc2
23005 builtin and then its argument prototype would still apply. */
23011 /* The GNU C library defines this for functions which it implements
23012 to always fail with ENOSYS. Some functions are actually named
23013 something starting with __ and the normal name is an alias. */
23014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23022 if { (eval echo configure:23023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23024 eval "ac_cv_func_$ac_func=yes"
23026 echo "configure: failed program was:" >&5
23027 cat conftest.$ac_ext >&5
23029 eval "ac_cv_func_$ac_func=no"
23034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23035 echo "$ac_t""yes" 1>&6
23036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23037 cat >> confdefs.h <<EOF
23038 #define $ac_tr_func 1
23042 echo "$ac_t""no" 1>&6
23107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23108 echo "configure:23109: checking for $ac_func" >&5
23109 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23110 echo $ac_n "(cached) $ac_c" 1>&6
23112 cat > conftest.$ac_ext <<EOF
23113 #line 23114 "configure"
23114 #include "confdefs.h"
23115 /* System header to define __stub macros and hopefully few prototypes,
23116 which can conflict with char $ac_func(); below. */
23117 #include <assert.h>
23118 /* Override any gcc2 internal prototype to avoid an error. */
23119 /* We use char because int might match the return type of a gcc2
23120 builtin and then its argument prototype would still apply. */
23126 /* The GNU C library defines this for functions which it implements
23127 to always fail with ENOSYS. Some functions are actually named
23128 something starting with __ and the normal name is an alias. */
23129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23137 if { (eval echo configure:23138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23139 eval "ac_cv_func_$ac_func=yes"
23141 echo "configure: failed program was:" >&5
23142 cat conftest.$ac_ext >&5
23144 eval "ac_cv_func_$ac_func=no"
23149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23150 echo "$ac_t""yes" 1>&6
23151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23152 cat >> confdefs.h <<EOF
23153 #define $ac_tr_func 1
23157 echo "$ac_t""no" 1>&6
23162 for ac_func in getopt getpeereid
23164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23165 echo "configure:23166: checking for $ac_func" >&5
23166 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23167 echo $ac_n "(cached) $ac_c" 1>&6
23169 cat > conftest.$ac_ext <<EOF
23170 #line 23171 "configure"
23171 #include "confdefs.h"
23172 /* System header to define __stub macros and hopefully few prototypes,
23173 which can conflict with char $ac_func(); below. */
23174 #include <assert.h>
23175 /* Override any gcc2 internal prototype to avoid an error. */
23176 /* We use char because int might match the return type of a gcc2
23177 builtin and then its argument prototype would still apply. */
23183 /* The GNU C library defines this for functions which it implements
23184 to always fail with ENOSYS. Some functions are actually named
23185 something starting with __ and the normal name is an alias. */
23186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23194 if { (eval echo configure:23195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23196 eval "ac_cv_func_$ac_func=yes"
23198 echo "configure: failed program was:" >&5
23199 cat conftest.$ac_ext >&5
23201 eval "ac_cv_func_$ac_func=no"
23206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23207 echo "$ac_t""yes" 1>&6
23208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23209 cat >> confdefs.h <<EOF
23210 #define $ac_tr_func 1
23214 echo "$ac_t""no" 1>&6
23215 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23221 if test "$ac_cv_func_getopt" != yes; then
23222 LIBSRCS="$LIBSRCS getopt.c"
23224 if test "$ac_cv_func_getpeereid" != yes; then
23225 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23226 echo "configure:23227: checking for msg_accrights in msghdr" >&5
23227 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23228 echo $ac_n "(cached) $ac_c" 1>&6
23230 cat > conftest.$ac_ext <<EOF
23231 #line 23232 "configure"
23232 #include "confdefs.h"
23233 #include <sys/socket.h>
23235 struct msghdr m; m.msg_accrightslen=0
23238 if { (eval echo configure:23239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23240 ol_cv_msghdr_msg_accrights=yes
23242 echo "configure: failed program was:" >&5
23243 cat conftest.$ac_ext >&5
23245 ol_cv_msghdr_msg_accrights=no
23251 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23252 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23253 cat >> confdefs.h <<\EOF
23254 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23259 LIBSRCS="$LIBSRCS getpeereid.c"
23261 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23262 if test "$ac_cv_func_snprintf" != yes; then
23263 cat >> confdefs.h <<\EOF
23264 #define snprintf ber_pvt_snprintf
23268 if test "$ac_cv_func_vsnprintf" != yes; then
23269 cat >> confdefs.h <<\EOF
23270 #define vsnprintf ber_pvt_vsnprintf
23276 # Check Configuration
23277 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23278 echo "configure:23279: checking declaration of sys_errlist" >&5
23279 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23280 echo $ac_n "(cached) $ac_c" 1>&6
23283 cat > conftest.$ac_ext <<EOF
23284 #line 23285 "configure"
23285 #include "confdefs.h"
23288 #include <sys/types.h>
23291 #include <stdlib.h>
23294 char *c = (char *) *sys_errlist
23297 if { (eval echo configure:23298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23299 ol_cv_dcl_sys_errlist=yes
23300 ol_cv_have_sys_errlist=yes
23302 echo "configure: failed program was:" >&5
23303 cat conftest.$ac_ext >&5
23305 ol_cv_dcl_sys_errlist=no
23310 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23312 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23313 if test $ol_cv_dcl_sys_errlist = no ; then
23314 cat >> confdefs.h <<\EOF
23315 #define DECL_SYS_ERRLIST 1
23319 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23320 echo "configure:23321: checking existence of sys_errlist" >&5
23321 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23322 echo $ac_n "(cached) $ac_c" 1>&6
23325 cat > conftest.$ac_ext <<EOF
23326 #line 23327 "configure"
23327 #include "confdefs.h"
23330 char *c = (char *) *sys_errlist
23333 if { (eval echo configure:23334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23335 ol_cv_have_sys_errlist=yes
23337 echo "configure: failed program was:" >&5
23338 cat conftest.$ac_ext >&5
23340 ol_cv_have_sys_errlist=no
23345 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23347 if test $ol_cv_have_sys_errlist = yes ; then
23348 cat >> confdefs.h <<\EOF
23349 #define HAVE_SYS_ERRLIST 1
23356 if test "$ol_enable_slapi" != no ; then
23357 for ac_hdr in ltdl.h
23359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23361 echo "configure:23362: checking for $ac_hdr" >&5
23362 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23363 echo $ac_n "(cached) $ac_c" 1>&6
23365 cat > conftest.$ac_ext <<EOF
23366 #line 23367 "configure"
23367 #include "confdefs.h"
23370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23371 { (eval echo configure:23372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23373 if test -z "$ac_err"; then
23375 eval "ac_cv_header_$ac_safe=yes"
23378 echo "configure: failed program was:" >&5
23379 cat conftest.$ac_ext >&5
23381 eval "ac_cv_header_$ac_safe=no"
23385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23386 echo "$ac_t""yes" 1>&6
23387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23388 cat >> confdefs.h <<EOF
23389 #define $ac_tr_hdr 1
23393 echo "$ac_t""no" 1>&6
23398 if test $ac_cv_header_ltdl_h != yes ; then
23399 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23401 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23402 echo "configure:23403: checking for lt_dlinit in -lltdl" >&5
23403 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23404 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23405 echo $ac_n "(cached) $ac_c" 1>&6
23407 ac_save_LIBS="$LIBS"
23408 LIBS="-lltdl $LIBS"
23409 cat > conftest.$ac_ext <<EOF
23410 #line 23411 "configure"
23411 #include "confdefs.h"
23412 /* Override any gcc2 internal prototype to avoid an error. */
23413 /* We use char because int might match the return type of a gcc2
23414 builtin and then its argument prototype would still apply. */
23421 if { (eval echo configure:23422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23423 eval "ac_cv_lib_$ac_lib_var=yes"
23425 echo "configure: failed program was:" >&5
23426 cat conftest.$ac_ext >&5
23428 eval "ac_cv_lib_$ac_lib_var=no"
23431 LIBS="$ac_save_LIBS"
23434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23435 echo "$ac_t""yes" 1>&6
23438 LIBSLAPI=libslapi.a
23439 LIBSLAPITOOLS=../libslapi.a
23440 cat >> confdefs.h <<\EOF
23441 #define HAVE_LIBLTDL 1
23446 echo "$ac_t""no" 1>&6
23447 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23451 cat >> confdefs.h <<\EOF
23452 #define LDAP_SLAPI 1
23457 if test "$ol_enable_debug" != no ; then
23458 cat >> confdefs.h <<\EOF
23459 #define LDAP_DEBUG 1
23463 if test "$ol_enable_syslog" = yes ; then
23464 cat >> confdefs.h <<\EOF
23465 #define LDAP_SYSLOG 1
23469 if test "$ol_link_kbind" != no ; then
23470 cat >> confdefs.h <<\EOF
23471 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23475 if test "$ol_enable_proctitle" != no ; then
23476 cat >> confdefs.h <<\EOF
23477 #define LDAP_PROCTITLE 1
23481 if test "$ol_enable_referrals" != no ; then
23482 cat >> confdefs.h <<\EOF
23483 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23487 if test "$ol_enable_local" != no; then
23488 cat >> confdefs.h <<\EOF
23489 #define LDAP_PF_LOCAL 1
23493 if test "$ol_link_ipv6" != no; then
23494 cat >> confdefs.h <<\EOF
23495 #define LDAP_PF_INET6 1
23499 if test "$ol_enable_cleartext" != no ; then
23500 cat >> confdefs.h <<\EOF
23501 #define SLAPD_CLEARTEXT 1
23505 if test "$ol_enable_crypt" != no ; then
23506 cat >> confdefs.h <<\EOF
23507 #define SLAPD_CRYPT 1
23511 if test "$ol_link_kpasswd" != no ; then
23512 cat >> confdefs.h <<\EOF
23513 #define SLAPD_KPASSWD 1
23517 if test "$ol_link_spasswd" != no ; then
23518 cat >> confdefs.h <<\EOF
23519 #define SLAPD_SPASSWD 1
23523 if test "$ol_enable_multimaster" != no ; then
23524 cat >> confdefs.h <<\EOF
23525 #define SLAPD_MULTIMASTER 1
23529 if test "$ol_enable_rlookups" != no ; then
23530 cat >> confdefs.h <<\EOF
23531 #define SLAPD_RLOOKUPS 1
23535 if test "$ol_enable_aci" != no ; then
23536 cat >> confdefs.h <<\EOF
23537 #define SLAPD_ACI_ENABLED 1
23542 if test "$ol_link_modules" != no ; then
23543 cat >> confdefs.h <<\EOF
23544 #define SLAPD_MODULES 1
23548 SLAPD_MODULES_LDFLAGS="-dlopen self"
23551 cat >> confdefs.h <<\EOF
23552 #define SLAPD_MOD_STATIC 1
23555 cat >> confdefs.h <<\EOF
23556 #define SLAPD_MOD_DYNAMIC 2
23560 if test "$ol_enable_bdb" != no ; then
23561 cat >> confdefs.h <<\EOF
23562 #define SLAPD_BDB 1
23567 if test "$ol_with_bdb_module" != static ; then
23568 cat >> confdefs.h <<\EOF
23569 #define SLAPD_BDB_DYNAMIC 1
23573 BUILD_BDB_DYNAMIC=shared
23574 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23576 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23580 if test "$ol_link_dnssrv" != no ; then
23581 cat >> confdefs.h <<\EOF
23582 #define SLAPD_DNSSRV 1
23587 if test "$ol_with_dnssrv_module" != static ; then
23588 cat >> confdefs.h <<\EOF
23589 #define SLAPD_DNSSRV_DYNAMIC 1
23593 BUILD_DNSSRV_DYNAMIC=shared
23594 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23596 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23600 if test "$ol_enable_hdb" != no ; then
23601 cat >> confdefs.h <<\EOF
23602 #define SLAPD_HDB 1
23607 if test "$ol_with_hdb_module" != static ; then
23608 cat >> confdefs.h <<\EOF
23609 #define SLAPD_HDB_DYNAMIC 1
23613 BUILD_HDB_DYNAMIC=shared
23614 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23616 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23620 if test "$ol_enable_ldap" != no ; then
23621 cat >> confdefs.h <<\EOF
23622 #define SLAPD_LDAP 1
23627 if test "$ol_with_ldap_module" != static ; then
23628 cat >> confdefs.h <<\EOF
23629 #define SLAPD_LDAP_DYNAMIC 1
23633 BUILD_LDAP_DYNAMIC=shared
23634 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23636 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23640 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23641 cat >> confdefs.h <<\EOF
23642 #define SLAPD_LDBM 1
23647 if test "$ol_with_ldbm_module" != static ; then
23648 cat >> confdefs.h <<\EOF
23649 #define SLAPD_LDBM_DYNAMIC 1
23653 BUILD_LDBM_DYNAMIC=shared
23654 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23656 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23660 if test "$ol_enable_meta" != no ; then
23661 if test "$ol_enable_ldap" = no ; then
23662 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23664 if test "$ol_enable_rewrite" = no ; then
23665 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23667 cat >> confdefs.h <<\EOF
23668 #define SLAPD_META 1
23674 if test "$ol_with_meta_module" != static ; then
23675 cat >> confdefs.h <<\EOF
23676 #define SLAPD_META_DYNAMIC 1
23680 BUILD_META_DYNAMIC=shared
23681 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23683 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23687 if test "$ol_enable_monitor" != no ; then
23688 cat >> confdefs.h <<\EOF
23689 #define SLAPD_MONITOR 1
23694 if test "$ol_with_monitor_module" != static ; then
23695 cat >> confdefs.h <<\EOF
23696 #define SLAPD_MONITOR_DYNAMIC 1
23700 BUILD_MONITOR_DYNAMIC=shared
23701 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23703 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23707 if test "$ol_enable_null" != no ; then
23708 cat >> confdefs.h <<\EOF
23709 #define SLAPD_NULL 1
23714 if test "$ol_with_null_module" != static ; then
23715 cat >> confdefs.h <<\EOF
23716 #define SLAPD_NULL_DYNAMIC 1
23720 BUILD_NULL_DYNAMIC=shared
23721 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23723 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23727 if test "$ol_enable_passwd" != no ; then
23728 cat >> confdefs.h <<\EOF
23729 #define SLAPD_PASSWD 1
23734 if test "$ol_with_passwd_module" != static ; then
23735 cat >> confdefs.h <<\EOF
23736 #define SLAPD_PASSWD_DYNAMIC 1
23740 BUILD_PASSWD_DYNAMIC=shared
23741 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23743 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23747 if test "$ol_link_perl" != no ; then
23748 cat >> confdefs.h <<\EOF
23749 #define SLAPD_PERL 1
23754 if test "$ol_with_perl_module" != static ; then
23755 cat >> confdefs.h <<\EOF
23756 #define SLAPD_PERL_DYNAMIC 1
23760 BUILD_PERL_DYNAMIC=shared
23761 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23763 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23767 if test "$ol_enable_shell" != no ; then
23768 if test "$ol_link_thread" != no ; then
23769 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23771 cat >> confdefs.h <<\EOF
23772 #define SLAPD_SHELL 1
23777 if test "$ol_with_shell_module" != static ; then
23778 cat >> confdefs.h <<\EOF
23779 #define SLAPD_SHELL_DYNAMIC 1
23783 BUILD_SHELL_DYNAMIC=shared
23784 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23786 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23790 if test "$ol_link_sql" != no ; then
23791 cat >> confdefs.h <<\EOF
23792 #define SLAPD_SQL 1
23797 if test "$ol_with_sql_module" != static; then
23798 cat >> confdefs.h <<\EOF
23799 #define SLAPD_SQL_DYNAMIC 1
23803 BUILD_SQL_DYNAMIC=shared
23804 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23806 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23810 if test "$ol_with_dyngroup" != no ; then
23811 BUILD_DYNGROUP=$ol_with_dyngroup
23812 if test "$ol_with_dyngroup" = mod ; then
23813 MFLAG=SLAPD_MOD_DYNAMIC
23814 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23816 MFLAG=SLAPD_MOD_STATIC
23818 cat >> confdefs.h <<EOF
23819 #define SLAPD_OVER_DYNGROUP $MFLAG
23824 if test "$ol_with_proxycache" != no ; then
23825 BUILD_PROXYCACHE=$ol_with_proxycache
23826 if test "$ol_with_proxycache" = mod ; then
23827 MFLAG=SLAPD_MOD_DYNAMIC
23828 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23830 MFLAG=SLAPD_MOD_STATIC
23832 cat >> confdefs.h <<EOF
23833 #define SLAPD_OVER_PROXYCACHE $MFLAG
23838 if test "$ol_with_rwm " != no ; then
23840 BUILD_RWM=$ol_with_rwm
23841 if test "$ol_with_rwm" = mod ; then
23842 MFLAG=SLAPD_MOD_DYNAMIC
23843 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23845 MFLAG=SLAPD_MOD_STATIC
23847 cat >> confdefs.h <<EOF
23848 #define SLAPD_OVER_RWM $MFLAG
23853 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23854 $BUILD_SLAPD = yes ; then
23858 if test "$ol_enable_rewrite" != no ; then
23859 cat >> confdefs.h <<\EOF
23860 #define ENABLE_REWRITE 1
23866 if test "$ol_enable_slapi" != no ; then
23867 cat >> confdefs.h <<\EOF
23868 #define ENABLE_SLAPI 1
23872 SLAPD_SLAPI_DEPEND=libslapi.a
23877 if test "$ac_cv_mingw32" = yes ; then
23879 SLAPD_MODULES_LDFLAGS=
23884 if test -z "$SLAPD_STATIC_BACKENDS"; then
23885 SLAPD_NO_STATIC='#'
23963 # Check whether --with-xxinstall or --without-xxinstall was given.
23964 if test "${with_xxinstall+set}" = set; then
23965 withval="$with_xxinstall"
23973 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23975 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23976 # Let make expand exec_prefix.
23977 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23979 # Any assignment to VPATH causes Sun make to only execute
23980 # the first set of double-colon rules, so remove it if not needed.
23981 # If there is a colon in the path, we need to keep it.
23982 if test "x$srcdir" = x.; then
23983 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23986 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23988 DEFS=-DHAVE_CONFIG_H
23990 # Without the "./", some shells look in PATH for config.status.
23991 : ${CONFIG_STATUS=./config.status}
23993 echo creating $CONFIG_STATUS
23994 rm -f $CONFIG_STATUS
23995 cat > $CONFIG_STATUS <<EOF
23997 # Generated automatically by configure.
23998 # Run this file to recreate the current configuration.
23999 # This directory was configured as follows,
24000 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24002 # $0 $ac_configure_args
24004 # Compiler output produced by configure, useful for debugging
24005 # configure, is in ./config.log if it exists.
24007 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24010 case "\$ac_option" in
24011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24012 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24013 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24014 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24015 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24017 -help | --help | --hel | --he | --h)
24018 echo "\$ac_cs_usage"; exit 0 ;;
24019 *) echo "\$ac_cs_usage"; exit 1 ;;
24023 ac_given_srcdir=$srcdir
24024 ac_given_INSTALL="$INSTALL"
24026 trap 'rm -fr `echo "\
24027 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24028 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24029 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24030 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24031 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24032 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24033 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24034 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24035 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24036 include/Makefile:build/top.mk:include/Makefile.in \
24037 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24038 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24039 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24040 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24041 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24042 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24043 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24044 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24045 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24046 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24047 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24048 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24049 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24050 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24051 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24052 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24053 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24054 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24055 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24056 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24057 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24058 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24059 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24060 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24061 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24062 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24063 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24065 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24066 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24068 cat >> $CONFIG_STATUS <<EOF
24070 # Protect against being on the right side of a sed subst in config.status.
24071 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24072 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24076 s%@CFLAGS@%$CFLAGS%g
24077 s%@CPPFLAGS@%$CPPFLAGS%g
24078 s%@CXXFLAGS@%$CXXFLAGS%g
24079 s%@FFLAGS@%$FFLAGS%g
24081 s%@LDFLAGS@%$LDFLAGS%g
24083 s%@exec_prefix@%$exec_prefix%g
24084 s%@prefix@%$prefix%g
24085 s%@program_transform_name@%$program_transform_name%g
24086 s%@bindir@%$bindir%g
24087 s%@sbindir@%$sbindir%g
24088 s%@libexecdir@%$libexecdir%g
24089 s%@datadir@%$datadir%g
24090 s%@sysconfdir@%$sysconfdir%g
24091 s%@sharedstatedir@%$sharedstatedir%g
24092 s%@localstatedir@%$localstatedir%g
24093 s%@libdir@%$libdir%g
24094 s%@includedir@%$includedir%g
24095 s%@oldincludedir@%$oldincludedir%g
24096 s%@infodir@%$infodir%g
24097 s%@mandir@%$mandir%g
24099 s%@host_alias@%$host_alias%g
24100 s%@host_cpu@%$host_cpu%g
24101 s%@host_vendor@%$host_vendor%g
24102 s%@host_os@%$host_os%g
24103 s%@target@%$target%g
24104 s%@target_alias@%$target_alias%g
24105 s%@target_cpu@%$target_cpu%g
24106 s%@target_vendor@%$target_vendor%g
24107 s%@target_os@%$target_os%g
24109 s%@build_alias@%$build_alias%g
24110 s%@build_cpu@%$build_cpu%g
24111 s%@build_vendor@%$build_vendor%g
24112 s%@build_os@%$build_os%g
24113 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24114 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24115 s%@INSTALL_DATA@%$INSTALL_DATA%g
24116 s%@PACKAGE@%$PACKAGE%g
24117 s%@VERSION@%$VERSION%g
24118 s%@ACLOCAL@%$ACLOCAL%g
24119 s%@AUTOCONF@%$AUTOCONF%g
24120 s%@AUTOMAKE@%$AUTOMAKE%g
24121 s%@AUTOHEADER@%$AUTOHEADER%g
24122 s%@MAKEINFO@%$MAKEINFO%g
24123 s%@install_sh@%$install_sh%g
24126 s%@AMTARFLAGS@%$AMTARFLAGS%g
24127 s%@SET_MAKE@%$SET_MAKE%g
24128 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24129 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24130 s%@top_builddir@%$top_builddir%g
24131 s%@ldap_subdir@%$ldap_subdir%g
24135 s%@OBJEXT@%$OBJEXT%g
24136 s%@EXEEXT@%$EXEEXT%g
24138 s%@RANLIB@%$RANLIB%g
24140 s%@DLLTOOL@%$DLLTOOL%g
24142 s%@OBJDUMP@%$OBJDUMP%g
24144 s%@LIBTOOL@%$LIBTOOL%g
24146 s%@PERLBIN@%$PERLBIN%g
24147 s%@OL_MKDEP@%$OL_MKDEP%g
24148 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24149 s%@LTSTATIC@%$LTSTATIC%g
24150 s%@LIBOBJS@%$LIBOBJS%g
24151 s%@LIBSRCS@%$LIBSRCS%g
24153 s%@WITH_TLS@%$WITH_TLS%g
24154 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24155 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24156 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24157 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24158 s%@BUILD_BDB@%$BUILD_BDB%g
24159 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24160 s%@BUILD_HDB@%$BUILD_HDB%g
24161 s%@BUILD_LDAP@%$BUILD_LDAP%g
24162 s%@BUILD_LDBM@%$BUILD_LDBM%g
24163 s%@BUILD_META@%$BUILD_META%g
24164 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24165 s%@BUILD_NULL@%$BUILD_NULL%g
24166 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24167 s%@BUILD_PERL@%$BUILD_PERL%g
24168 s%@BUILD_SHELL@%$BUILD_SHELL%g
24169 s%@BUILD_SQL@%$BUILD_SQL%g
24170 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24171 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24172 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24173 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24174 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24175 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24176 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24177 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24178 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24179 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24180 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24181 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24182 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24183 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24184 s%@BUILD_RWM@%$BUILD_RWM%g
24185 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24186 s%@LDAP_LIBS@%$LDAP_LIBS%g
24187 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24188 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24189 s%@LDBM_LIBS@%$LDBM_LIBS%g
24190 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24191 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24192 s%@WRAP_LIBS@%$WRAP_LIBS%g
24193 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24194 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24195 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24196 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24197 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24198 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24199 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24200 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24201 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24202 s%@KRB4_LIBS@%$KRB4_LIBS%g
24203 s%@KRB5_LIBS@%$KRB5_LIBS%g
24204 s%@SASL_LIBS@%$SASL_LIBS%g
24205 s%@TLS_LIBS@%$TLS_LIBS%g
24206 s%@MODULES_LIBS@%$MODULES_LIBS%g
24207 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24208 s%@LIBSLAPI@%$LIBSLAPI%g
24209 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24210 s%@AUTH_LIBS@%$AUTH_LIBS%g
24211 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24212 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24213 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24214 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24219 cat >> $CONFIG_STATUS <<\EOF
24221 # Split the substitutions into bite-sized pieces for seds with
24222 # small command number limits, like on Digital OSF/1 and HP-UX.
24223 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24224 ac_file=1 # Number of current file.
24225 ac_beg=1 # First line for current file.
24226 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24229 while $ac_more_lines; do
24230 if test $ac_beg -gt 1; then
24231 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24233 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24235 if test ! -s conftest.s$ac_file; then
24236 ac_more_lines=false
24237 rm -f conftest.s$ac_file
24239 if test -z "$ac_sed_cmds"; then
24240 ac_sed_cmds="sed -f conftest.s$ac_file"
24242 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24244 ac_file=`expr $ac_file + 1`
24246 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24249 if test -z "$ac_sed_cmds"; then
24254 cat >> $CONFIG_STATUS <<EOF
24256 CONFIG_FILES=\${CONFIG_FILES-"\
24257 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24258 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24259 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24260 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24261 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24262 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24263 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24264 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24265 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24266 include/Makefile:build/top.mk:include/Makefile.in \
24267 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24268 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24269 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24270 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24271 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24272 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24273 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24274 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24275 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24276 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24277 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24278 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24279 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24280 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24281 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24282 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24283 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24284 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24285 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24286 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24287 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24288 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24289 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24290 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24291 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24292 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24293 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24295 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24298 cat >> $CONFIG_STATUS <<\EOF
24299 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24302 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24303 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24304 *) ac_file_in="${ac_file}.in" ;;
24307 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24309 # Remove last slash and all that follows it. Not all systems have dirname.
24310 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24311 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24312 # The file is in a subdirectory.
24313 test ! -d "$ac_dir" && mkdir "$ac_dir"
24314 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24315 # A "../" for each directory in $ac_dir_suffix.
24316 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24318 ac_dir_suffix= ac_dots=
24321 case "$ac_given_srcdir" in
24323 if test -z "$ac_dots"; then top_srcdir=.
24324 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24325 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24326 *) # Relative path.
24327 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24328 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24331 case "$ac_given_INSTALL" in
24332 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24333 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24336 echo creating "$ac_file"
24338 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24340 *[Mm]akefile*) ac_comsub="1i\\
24341 # $configure_input" ;;
24345 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24347 s%@configure_input@%$configure_input%g
24348 s%@srcdir@%$srcdir%g
24349 s%@top_srcdir@%$top_srcdir%g
24350 s%@INSTALL@%$INSTALL%g
24351 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24355 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24356 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24358 # ac_d sets the value in "#define NAME VALUE" lines.
24359 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24360 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24363 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24364 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24365 ac_uB='\([ ]\)%\1#\2define\3'
24368 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24369 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24370 ac_eB='$%\1#\2define\3'
24374 if test "${CONFIG_HEADERS+set}" != set; then
24376 cat >> $CONFIG_STATUS <<EOF
24377 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24379 cat >> $CONFIG_STATUS <<\EOF
24381 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24382 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24384 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24385 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24386 *) ac_file_in="${ac_file}.in" ;;
24389 echo creating $ac_file
24391 rm -f conftest.frag conftest.in conftest.out
24392 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24393 cat $ac_file_inputs > conftest.in
24397 # Transform confdefs.h into a sed script conftest.vals that substitutes
24398 # the proper values into config.h.in to produce config.h. And first:
24399 # Protect against being on the right side of a sed subst in config.status.
24400 # Protect against being in an unquoted here document in config.status.
24401 rm -f conftest.vals
24402 cat > conftest.hdr <<\EOF
24405 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24409 sed -n -f conftest.hdr confdefs.h > conftest.vals
24412 # This sed command replaces #undef with comments. This is necessary, for
24413 # example, in the case of _POSIX_SOURCE, which is predefined and required
24414 # on some systems where configure will not decide to define it.
24415 cat >> conftest.vals <<\EOF
24416 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24419 # Break up conftest.vals because some shells have a limit on
24420 # the size of here documents, and old seds have small limits too.
24422 rm -f conftest.tail
24425 ac_lines=`grep -c . conftest.vals`
24426 # grep -c gives empty output for an empty file on some AIX systems.
24427 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24428 # Write a limited-size here document to conftest.frag.
24429 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24430 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24432 sed -f conftest.frag conftest.in > conftest.out
24434 mv conftest.out conftest.in
24435 ' >> $CONFIG_STATUS
24436 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24437 rm -f conftest.vals
24438 mv conftest.tail conftest.vals
24440 rm -f conftest.vals
24442 cat >> $CONFIG_STATUS <<\EOF
24443 rm -f conftest.frag conftest.h
24444 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24445 cat conftest.in >> conftest.h
24447 if cmp -s $ac_file conftest.h 2>/dev/null; then
24448 echo "$ac_file is unchanged"
24451 # Remove last slash and all that follows it. Not all systems have dirname.
24452 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24453 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24454 # The file is in a subdirectory.
24455 test ! -d "$ac_dir" && mkdir "$ac_dir"
24458 mv conftest.h $ac_file
24463 cat >> $CONFIG_STATUS <<EOF
24466 cat >> $CONFIG_STATUS <<\EOF
24470 echo Please run \"make depend\" to build dependencies
24474 chmod +x $CONFIG_STATUS
24475 rm -fr confdefs* $ac_clean_files
24476 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1