2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.621 2006/01/09 21:06:08 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-ldbm enable ldbm backend no|yes|mod [no]
1038 --enable-ldbm-api use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039 --enable-ldbm-type use LDBM type auto|btree|hash [auto]
1040 --enable-meta enable metadirectory backend no|yes|mod [no]
1041 --enable-monitor enable monitor backend no|yes|mod [yes]
1042 --enable-null enable null backend no|yes|mod [no]
1043 --enable-passwd enable passwd backend no|yes|mod [no]
1044 --enable-perl enable perl backend no|yes|mod [no]
1045 --enable-relay enable relay backend no|yes|mod [yes]
1046 --enable-shell enable shell backend no|yes|mod [no]
1047 --enable-sql enable sql backend no|yes|mod [no]
1049 SLAPD Overlay Options:
1050 --enable-overlays enable all available overlays no|yes|mod
1051 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1052 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1053 --enable-denyop Deny Operation overlay no|yes|mod [no]
1054 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1055 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1056 --enable-lastmod Last Modification overlay no|yes|mod [no]
1057 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1058 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1059 --enable-refint Referential Integrity overlay no|yes|mod [no]
1060 --enable-retcode Return Code testing overlay no|yes|mod [no]
1061 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-multiple-precision
1091 multiple precision support for statistics
1092 auto|bignum|gmp [auto]
1094 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1095 --with-pic try to use only PIC/non-PIC objects [default=use
1098 include additional configurations [automatic]
1100 See INSTALL file for further details.
1102 Some influential environment variables:
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1129 ac_dir_suffix= ac_top_builddir=
1133 .) # No --srcdir option. We are building in place.
1135 if test -z "$ac_top_builddir"; then
1138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1151 .) ac_abs_builddir="$ac_dir";;
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1198 $ac_configure --help
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59. Invocation command line was
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 test -z "$as_dir" && as_dir=.
1260 echo "PATH: $as_dir"
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1284 ac_must_keep_next=false
1290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301 if test $ac_must_keep_next = true; then
1302 ac_must_keep_next=false # Got value, back to normal.
1305 *=* | --config-cache | -C | -disable-* | --disable-* \
1306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308 | -with-* | --with-* | -without-* | --without-* | --x)
1309 case "$ac_configure_args0 " in
1310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 -* ) ac_must_keep_next=true ;;
1316 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317 # Get rid of the leading space.
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log. We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332 # Save into config.log some information that might help in debugging.
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1342 # The following way of writing the cache mishandles newlines in values,
1345 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1365 for ac_var in $ac_subst_vars
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1372 if test -n "$ac_subst_files"; then
1379 for ac_var in $ac_subst_files
1381 eval ac_val=$`echo $ac_var`
1382 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -s confdefs.h; then
1394 sed "/^$/d" confdefs.h | sort
1397 test "$ac_signal" != 0 &&
1398 echo "$as_me: caught signal $ac_signal"
1399 echo "$as_me: exit $exit_status"
1401 rm -f core *.core &&
1402 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 for ac_signal in 1 2 13 15; do
1406 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415 # Predefined preprocessor variables.
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445 if test "x$prefix" != xNONE; then
1446 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 for ac_site_file in $CONFIG_SITE; do
1452 if test -r "$ac_site_file"; then
1453 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455 sed 's/^/| /' "$ac_site_file" >&5
1461 # Check that the precious variables saved in the cache have kept the same
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1485 echo "$as_me: former value: $ac_old_val" >&2;}
1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1487 echo "$as_me: current value: $ac_new_val" >&2;}
1488 ac_cache_corrupted=:
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1561 for ac_dir in build $srcdir/build; do
1562 if test -f $ac_dir/install-sh; then
1564 ac_install_sh="$ac_aux_dir/install-sh -c"
1566 elif test -f $ac_dir/install.sh; then
1568 ac_install_sh="$ac_aux_dir/install.sh -c"
1570 elif test -f $ac_dir/shtool; then
1572 ac_install_sh="$ac_aux_dir/shtool install -c"
1576 if test -z "$ac_aux_dir"; then
1577 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1578 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1579 { (exit 1); exit 1; }; }
1581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1583 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1585 eval `$ac_aux_dir/version.sh`
1586 if test -z "$OL_STRING"; then
1587 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1588 echo "$as_me: error: could not determine version" >&2;}
1589 { (exit 1); exit 1; }; }
1592 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1593 ac_cv_shtool="$ac_aux_dir/shtool"
1595 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1596 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1597 { (exit 1); exit 1; }; }
1600 SHTOOL="$ac_cv_shtool"
1602 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1603 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1606 if test -d $ac_aux_dir/CVS; then
1607 OPENLDAP_CVS="(from CVS sources) "
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625 ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629 { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651 ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673 ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691 test "$program_prefix$program_suffix$program_transform_name" = \
1693 program_prefix=${target_alias}-
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1789 set X `ls -t $srcdir/configure conftest.file`
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1806 test "$2" = conftest.file
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1867 for d in ./-p ./--version;
1869 test -d $d && rmdir $d
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1875 mkdir_p='$(install_sh) -d'
1879 for ac_prog in gawk mawk nawk awk
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$AWK" && break
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.make <<\_ACEOF
1927 @echo 'ac_maketemp="$(MAKE)"'
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1934 eval ac_cv_prog_make_${ac_make}_set=no
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1955 rmdir .tst 2>/dev/null
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1975 # Define the identity of the package.
1980 # Some tools Automake needs.
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'. However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$STRIP"; then
2012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032 echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_STRIP"; then
2042 # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_STRIP"; then
2050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_STRIP="strip"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2080 STRIP="$ac_cv_prog_STRIP"
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086 # We need awk for the "check" target. The system "awk" is bad on
2088 # Always define AMTAR for backward compatibility.
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2141 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2143 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2145 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154 ldap_subdir="/openldap"
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159 withval="$with_subdir"
2166 ldap_subdir="$withval"
2169 ldap_subdir="/$withval"
2175 # OpenLDAP --enable-debug
2177 # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179 enableval="$enable_debug"
2182 for ol_val in no yes traditional ; do
2183 if test "$enableval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190 { (exit 1); exit 1; }; }
2192 ol_enable_debug="$ol_arg"
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2200 # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202 enableval="$enable_dynamic"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213 { (exit 1); exit 1; }; }
2215 ol_enable_dynamic="$ol_arg"
2218 ol_enable_dynamic=no
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2223 # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225 enableval="$enable_syslog"
2228 for ol_val in auto yes no ; do
2229 if test "$enableval" = "$ol_val" ; then
2233 if test "$ol_arg" = "invalid" ; then
2234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236 { (exit 1); exit 1; }; }
2238 ol_enable_syslog="$ol_arg"
2241 ol_enable_syslog=auto
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2246 # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248 enableval="$enable_proctitle"
2251 for ol_val in auto yes no ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259 { (exit 1); exit 1; }; }
2261 ol_enable_proctitle="$ol_arg"
2264 ol_enable_proctitle=yes
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 ol_enable_kbind=${ol_enable_kbind-no}
2269 # OpenLDAP --enable-ipv6
2271 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2272 if test "${enable_ipv6+set}" = set; then
2273 enableval="$enable_ipv6"
2276 for ol_val in auto yes no ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2284 { (exit 1); exit 1; }; }
2286 ol_enable_ipv6="$ol_arg"
2292 # OpenLDAP --enable-local
2294 # Check whether --enable-local or --disable-local was given.
2295 if test "${enable_local+set}" = set; then
2296 enableval="$enable_local"
2299 for ol_val in auto yes no ; do
2300 if test "$enableval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2306 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2307 { (exit 1); exit 1; }; }
2309 ol_enable_local="$ol_arg"
2312 ol_enable_local=auto
2314 # end --enable-local
2316 # OpenLDAP --with-cyrus_sasl
2318 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2319 if test "${with_cyrus_sasl+set}" = set; then
2320 withval="$with_cyrus_sasl"
2323 for ol_val in auto yes no ; do
2324 if test "$withval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2330 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2331 { (exit 1); exit 1; }; }
2333 ol_with_cyrus_sasl="$ol_arg"
2336 ol_with_cyrus_sasl="auto"
2337 fi; # end --with-cyrus_sasl
2339 # OpenLDAP --with-fetch
2341 # Check whether --with-fetch or --without-fetch was given.
2342 if test "${with_fetch+set}" = set; then
2343 withval="$with_fetch"
2346 for ol_val in auto yes no ; do
2347 if test "$withval" = "$ol_val" ; then
2351 if test "$ol_arg" = "invalid" ; then
2352 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2353 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2354 { (exit 1); exit 1; }; }
2356 ol_with_fetch="$ol_arg"
2359 ol_with_fetch="auto"
2360 fi; # end --with-fetch
2362 ol_with_kerberos=${ol_with_kerberos-auto}
2363 # OpenLDAP --with-threads
2365 # Check whether --with-threads or --without-threads was given.
2366 if test "${with_threads+set}" = set; then
2367 withval="$with_threads"
2370 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2371 if test "$withval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2377 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2378 { (exit 1); exit 1; }; }
2380 ol_with_threads="$ol_arg"
2383 ol_with_threads="auto"
2384 fi; # end --with-threads
2386 # OpenLDAP --with-tls
2388 # Check whether --with-tls or --without-tls was given.
2389 if test "${with_tls+set}" = set; then
2393 for ol_val in auto openssl yes no ; do
2394 if test "$withval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2400 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2401 { (exit 1); exit 1; }; }
2403 ol_with_tls="$ol_arg"
2407 fi; # end --with-tls
2409 # OpenLDAP --with-yielding_select
2411 # Check whether --with-yielding_select or --without-yielding_select was given.
2412 if test "${with_yielding_select+set}" = set; then
2413 withval="$with_yielding_select"
2416 for ol_val in auto yes no manual ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2423 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2424 { (exit 1); exit 1; }; }
2426 ol_with_yielding_select="$ol_arg"
2429 ol_with_yielding_select="auto"
2430 fi; # end --with-yielding_select
2432 # OpenLDAP --with-multiple_precision
2434 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2435 if test "${with_multiple_precision+set}" = set; then
2436 withval="$with_multiple_precision"
2439 for ol_val in auto bignum gmp yes no ; do
2440 if test "$withval" = "$ol_val" ; then
2444 if test "$ol_arg" = "invalid" ; then
2445 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2446 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2447 { (exit 1); exit 1; }; }
2449 ol_with_multiple_precision="$ol_arg"
2452 ol_with_multiple_precision="auto"
2453 fi; # end --with-multiple_precision
2457 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2458 if test "${enable_xxslapdoptions+set}" = set; then
2459 enableval="$enable_xxslapdoptions"
2462 # OpenLDAP --enable-slapd
2464 # Check whether --enable-slapd or --disable-slapd was given.
2465 if test "${enable_slapd+set}" = set; then
2466 enableval="$enable_slapd"
2469 for ol_val in auto yes no ; do
2470 if test "$enableval" = "$ol_val" ; then
2474 if test "$ol_arg" = "invalid" ; then
2475 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2476 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2477 { (exit 1); exit 1; }; }
2479 ol_enable_slapd="$ol_arg"
2484 # end --enable-slapd
2485 # OpenLDAP --enable-dynacl
2487 # Check whether --enable-dynacl or --disable-dynacl was given.
2488 if test "${enable_dynacl+set}" = set; then
2489 enableval="$enable_dynacl"
2492 for ol_val in auto yes no ; do
2493 if test "$enableval" = "$ol_val" ; then
2497 if test "$ol_arg" = "invalid" ; then
2498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2499 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2500 { (exit 1); exit 1; }; }
2502 ol_enable_dynacl="$ol_arg"
2507 # end --enable-dynacl
2508 # OpenLDAP --enable-aci
2510 # Check whether --enable-aci or --disable-aci was given.
2511 if test "${enable_aci+set}" = set; then
2512 enableval="$enable_aci"
2515 for ol_val in no yes mod ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_aci="$ol_arg"
2531 # OpenLDAP --enable-cleartext
2533 # Check whether --enable-cleartext or --disable-cleartext was given.
2534 if test "${enable_cleartext+set}" = set; then
2535 enableval="$enable_cleartext"
2538 for ol_val in auto yes no ; do
2539 if test "$enableval" = "$ol_val" ; then
2543 if test "$ol_arg" = "invalid" ; then
2544 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2546 { (exit 1); exit 1; }; }
2548 ol_enable_cleartext="$ol_arg"
2551 ol_enable_cleartext=yes
2553 # end --enable-cleartext
2554 # OpenLDAP --enable-crypt
2556 # Check whether --enable-crypt or --disable-crypt was given.
2557 if test "${enable_crypt+set}" = set; then
2558 enableval="$enable_crypt"
2561 for ol_val in auto yes no ; do
2562 if test "$enableval" = "$ol_val" ; then
2566 if test "$ol_arg" = "invalid" ; then
2567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2569 { (exit 1); exit 1; }; }
2571 ol_enable_crypt="$ol_arg"
2576 # end --enable-crypt
2577 # OpenLDAP --enable-lmpasswd
2579 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2580 if test "${enable_lmpasswd+set}" = set; then
2581 enableval="$enable_lmpasswd"
2584 for ol_val in auto yes no ; do
2585 if test "$enableval" = "$ol_val" ; then
2589 if test "$ol_arg" = "invalid" ; then
2590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2592 { (exit 1); exit 1; }; }
2594 ol_enable_lmpasswd="$ol_arg"
2597 ol_enable_lmpasswd=no
2599 # end --enable-lmpasswd
2600 # OpenLDAP --enable-spasswd
2602 # Check whether --enable-spasswd or --disable-spasswd was given.
2603 if test "${enable_spasswd+set}" = set; then
2604 enableval="$enable_spasswd"
2607 for ol_val in auto yes no ; do
2608 if test "$enableval" = "$ol_val" ; then
2612 if test "$ol_arg" = "invalid" ; then
2613 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2615 { (exit 1); exit 1; }; }
2617 ol_enable_spasswd="$ol_arg"
2620 ol_enable_spasswd=no
2622 # end --enable-spasswd
2623 # OpenLDAP --enable-modules
2625 # Check whether --enable-modules or --disable-modules was given.
2626 if test "${enable_modules+set}" = set; then
2627 enableval="$enable_modules"
2630 for ol_val in auto yes no ; do
2631 if test "$enableval" = "$ol_val" ; then
2635 if test "$ol_arg" = "invalid" ; then
2636 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2638 { (exit 1); exit 1; }; }
2640 ol_enable_modules="$ol_arg"
2643 ol_enable_modules=no
2645 # end --enable-modules
2646 ol_enable_multimaster=${ol_enable_multimaster-no}
2647 # OpenLDAP --enable-rewrite
2649 # Check whether --enable-rewrite or --disable-rewrite was given.
2650 if test "${enable_rewrite+set}" = set; then
2651 enableval="$enable_rewrite"
2654 for ol_val in auto yes no ; do
2655 if test "$enableval" = "$ol_val" ; then
2659 if test "$ol_arg" = "invalid" ; then
2660 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2661 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2662 { (exit 1); exit 1; }; }
2664 ol_enable_rewrite="$ol_arg"
2667 ol_enable_rewrite=auto
2669 # end --enable-rewrite
2670 # OpenLDAP --enable-rlookups
2672 # Check whether --enable-rlookups or --disable-rlookups was given.
2673 if test "${enable_rlookups+set}" = set; then
2674 enableval="$enable_rlookups"
2677 for ol_val in auto yes no ; do
2678 if test "$enableval" = "$ol_val" ; then
2682 if test "$ol_arg" = "invalid" ; then
2683 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2684 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2685 { (exit 1); exit 1; }; }
2687 ol_enable_rlookups="$ol_arg"
2690 ol_enable_rlookups=no
2692 # end --enable-rlookups
2693 # OpenLDAP --enable-slapi
2695 # Check whether --enable-slapi or --disable-slapi was given.
2696 if test "${enable_slapi+set}" = set; then
2697 enableval="$enable_slapi"
2700 for ol_val in auto yes no ; do
2701 if test "$enableval" = "$ol_val" ; then
2705 if test "$ol_arg" = "invalid" ; then
2706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2707 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2708 { (exit 1); exit 1; }; }
2710 ol_enable_slapi="$ol_arg"
2715 # end --enable-slapi
2716 # OpenLDAP --enable-slp
2718 # Check whether --enable-slp or --disable-slp was given.
2719 if test "${enable_slp+set}" = set; then
2720 enableval="$enable_slp"
2723 for ol_val in auto yes no ; do
2724 if test "$enableval" = "$ol_val" ; then
2728 if test "$ol_arg" = "invalid" ; then
2729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2730 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2731 { (exit 1); exit 1; }; }
2733 ol_enable_slp="$ol_arg"
2739 # OpenLDAP --enable-wrappers
2741 # Check whether --enable-wrappers or --disable-wrappers was given.
2742 if test "${enable_wrappers+set}" = set; then
2743 enableval="$enable_wrappers"
2746 for ol_val in auto yes no ; do
2747 if test "$enableval" = "$ol_val" ; then
2751 if test "$ol_arg" = "invalid" ; then
2752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2754 { (exit 1); exit 1; }; }
2756 ol_enable_wrappers="$ol_arg"
2759 ol_enable_wrappers=no
2761 # end --enable-wrappers
2777 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2778 if test "${enable_xxslapbackends+set}" = set; then
2779 enableval="$enable_xxslapbackends"
2783 # OpenLDAP --enable-backends
2785 # Check whether --enable-backends or --disable-backends was given.
2786 if test "${enable_backends+set}" = set; then
2787 enableval="$enable_backends"
2790 for ol_val in no yes mod ; do
2791 if test "$enableval" = "$ol_val" ; then
2795 if test "$ol_arg" = "invalid" ; then
2796 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2797 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2798 { (exit 1); exit 1; }; }
2800 ol_enable_backends="$ol_arg"
2803 # end --enable-backends
2804 # OpenLDAP --enable-bdb
2806 # Check whether --enable-bdb or --disable-bdb was given.
2807 if test "${enable_bdb+set}" = set; then
2808 enableval="$enable_bdb"
2811 for ol_val in no yes mod ; do
2812 if test "$enableval" = "$ol_val" ; then
2816 if test "$ol_arg" = "invalid" ; then
2817 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2818 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2819 { (exit 1); exit 1; }; }
2821 ol_enable_bdb="$ol_arg"
2824 ol_enable_bdb=${ol_enable_backends:-yes}
2827 # OpenLDAP --enable-dnssrv
2829 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2830 if test "${enable_dnssrv+set}" = set; then
2831 enableval="$enable_dnssrv"
2834 for ol_val in no yes mod ; do
2835 if test "$enableval" = "$ol_val" ; then
2839 if test "$ol_arg" = "invalid" ; then
2840 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2841 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2842 { (exit 1); exit 1; }; }
2844 ol_enable_dnssrv="$ol_arg"
2847 ol_enable_dnssrv=${ol_enable_backends:-no}
2849 # end --enable-dnssrv
2850 # OpenLDAP --enable-hdb
2852 # Check whether --enable-hdb or --disable-hdb was given.
2853 if test "${enable_hdb+set}" = set; then
2854 enableval="$enable_hdb"
2857 for ol_val in no yes mod ; do
2858 if test "$enableval" = "$ol_val" ; then
2862 if test "$ol_arg" = "invalid" ; then
2863 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2864 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2865 { (exit 1); exit 1; }; }
2867 ol_enable_hdb="$ol_arg"
2870 ol_enable_hdb=${ol_enable_backends:-yes}
2873 # OpenLDAP --enable-ldap
2875 # Check whether --enable-ldap or --disable-ldap was given.
2876 if test "${enable_ldap+set}" = set; then
2877 enableval="$enable_ldap"
2880 for ol_val in no yes mod ; do
2881 if test "$enableval" = "$ol_val" ; then
2885 if test "$ol_arg" = "invalid" ; then
2886 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2887 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2888 { (exit 1); exit 1; }; }
2890 ol_enable_ldap="$ol_arg"
2893 ol_enable_ldap=${ol_enable_backends:-no}
2896 # OpenLDAP --enable-ldbm
2898 # Check whether --enable-ldbm or --disable-ldbm was given.
2899 if test "${enable_ldbm+set}" = set; then
2900 enableval="$enable_ldbm"
2903 for ol_val in no yes mod ; do
2904 if test "$enableval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_enable_ldbm="$ol_arg"
2916 ol_enable_ldbm=${ol_enable_backends:-no}
2920 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2921 if test "${with_ldbm_api+set}" = set; then
2922 withval="$with_ldbm_api"
2924 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2925 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2926 enable_ldbm_api="$with_ldbm_api"
2928 # OpenLDAP --enable-ldbm_api
2930 # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2931 if test "${enable_ldbm_api+set}" = set; then
2932 enableval="$enable_ldbm_api"
2935 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2936 if test "$enableval" = "$ol_val" ; then
2940 if test "$ol_arg" = "invalid" ; then
2941 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2942 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2943 { (exit 1); exit 1; }; }
2945 ol_enable_ldbm_api="$ol_arg"
2948 ol_enable_ldbm_api=auto
2950 # end --enable-ldbm_api
2953 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2954 if test "${with_ldbm_type+set}" = set; then
2955 withval="$with_ldbm_type"
2957 { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2958 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2959 enable_ldbm_type="$with_ldbm_type"
2961 # OpenLDAP --enable-ldbm_type
2963 # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2964 if test "${enable_ldbm_type+set}" = set; then
2965 enableval="$enable_ldbm_type"
2968 for ol_val in auto btree hash ; do
2969 if test "$enableval" = "$ol_val" ; then
2973 if test "$ol_arg" = "invalid" ; then
2974 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2976 { (exit 1); exit 1; }; }
2978 ol_enable_ldbm_type="$ol_arg"
2981 ol_enable_ldbm_type=auto
2983 # end --enable-ldbm_type
2985 # OpenLDAP --enable-meta
2987 # Check whether --enable-meta or --disable-meta was given.
2988 if test "${enable_meta+set}" = set; then
2989 enableval="$enable_meta"
2992 for ol_val in no yes mod ; do
2993 if test "$enableval" = "$ol_val" ; then
2997 if test "$ol_arg" = "invalid" ; then
2998 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2999 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3000 { (exit 1); exit 1; }; }
3002 ol_enable_meta="$ol_arg"
3005 ol_enable_meta=${ol_enable_backends:-no}
3008 # OpenLDAP --enable-monitor
3010 # Check whether --enable-monitor or --disable-monitor was given.
3011 if test "${enable_monitor+set}" = set; then
3012 enableval="$enable_monitor"
3015 for ol_val in no yes mod ; do
3016 if test "$enableval" = "$ol_val" ; then
3020 if test "$ol_arg" = "invalid" ; then
3021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3022 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3023 { (exit 1); exit 1; }; }
3025 ol_enable_monitor="$ol_arg"
3028 ol_enable_monitor=${ol_enable_backends:-yes}
3030 # end --enable-monitor
3031 # OpenLDAP --enable-null
3033 # Check whether --enable-null or --disable-null was given.
3034 if test "${enable_null+set}" = set; then
3035 enableval="$enable_null"
3038 for ol_val in no yes mod ; do
3039 if test "$enableval" = "$ol_val" ; then
3043 if test "$ol_arg" = "invalid" ; then
3044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3045 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3046 { (exit 1); exit 1; }; }
3048 ol_enable_null="$ol_arg"
3051 ol_enable_null=${ol_enable_backends:-no}
3054 # OpenLDAP --enable-passwd
3056 # Check whether --enable-passwd or --disable-passwd was given.
3057 if test "${enable_passwd+set}" = set; then
3058 enableval="$enable_passwd"
3061 for ol_val in no yes mod ; do
3062 if test "$enableval" = "$ol_val" ; then
3066 if test "$ol_arg" = "invalid" ; then
3067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3068 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3069 { (exit 1); exit 1; }; }
3071 ol_enable_passwd="$ol_arg"
3074 ol_enable_passwd=${ol_enable_backends:-no}
3076 # end --enable-passwd
3077 # OpenLDAP --enable-perl
3079 # Check whether --enable-perl or --disable-perl was given.
3080 if test "${enable_perl+set}" = set; then
3081 enableval="$enable_perl"
3084 for ol_val in no yes mod ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_perl="$ol_arg"
3097 ol_enable_perl=${ol_enable_backends:-no}
3100 # OpenLDAP --enable-relay
3102 # Check whether --enable-relay or --disable-relay was given.
3103 if test "${enable_relay+set}" = set; then
3104 enableval="$enable_relay"
3107 for ol_val in no yes mod ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_relay="$ol_arg"
3120 ol_enable_relay=${ol_enable_backends:-yes}
3122 # end --enable-relay
3123 # OpenLDAP --enable-shell
3125 # Check whether --enable-shell or --disable-shell was given.
3126 if test "${enable_shell+set}" = set; then
3127 enableval="$enable_shell"
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_shell="$ol_arg"
3143 ol_enable_shell=${ol_enable_backends:-no}
3145 # end --enable-shell
3146 # OpenLDAP --enable-sql
3148 # Check whether --enable-sql or --disable-sql was given.
3149 if test "${enable_sql+set}" = set; then
3150 enableval="$enable_sql"
3153 for ol_val in no yes mod ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_sql="$ol_arg"
3166 ol_enable_sql=${ol_enable_backends:-no}
3170 Overlays="accesslog \
3186 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3187 if test "${enable_xxslapoverlays+set}" = set; then
3188 enableval="$enable_xxslapoverlays"
3192 # OpenLDAP --enable-overlays
3194 # Check whether --enable-overlays or --disable-overlays was given.
3195 if test "${enable_overlays+set}" = set; then
3196 enableval="$enable_overlays"
3199 for ol_val in no yes mod ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_overlays="$ol_arg"
3212 # end --enable-overlays
3213 # OpenLDAP --enable-accesslog
3215 # Check whether --enable-accesslog or --disable-accesslog was given.
3216 if test "${enable_accesslog+set}" = set; then
3217 enableval="$enable_accesslog"
3220 for ol_val in no yes mod ; do
3221 if test "$enableval" = "$ol_val" ; then
3225 if test "$ol_arg" = "invalid" ; then
3226 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3228 { (exit 1); exit 1; }; }
3230 ol_enable_accesslog="$ol_arg"
3233 ol_enable_accesslog=${ol_enable_overlays:-no}
3235 # end --enable-accesslog
3237 # OpenLDAP --enable-dds
3239 # Check whether --enable-dds or --disable-dds was given.
3240 if test "${enable_dds+set}" = set; then
3241 enableval="$enable_dds"
3244 for ol_val in no yes mod ; do
3245 if test "$enableval" = "$ol_val" ; then
3249 if test "$ol_arg" = "invalid" ; then
3250 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3251 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3252 { (exit 1); exit 1; }; }
3254 ol_enable_dds="$ol_arg"
3257 ol_enable_dds=${ol_enable_overlays:-no}
3261 # OpenLDAP --enable-denyop
3263 # Check whether --enable-denyop or --disable-denyop was given.
3264 if test "${enable_denyop+set}" = set; then
3265 enableval="$enable_denyop"
3268 for ol_val in no yes mod ; do
3269 if test "$enableval" = "$ol_val" ; then
3273 if test "$ol_arg" = "invalid" ; then
3274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3276 { (exit 1); exit 1; }; }
3278 ol_enable_denyop="$ol_arg"
3281 ol_enable_denyop=${ol_enable_overlays:-no}
3283 # end --enable-denyop
3285 # OpenLDAP --enable-dyngroup
3287 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3288 if test "${enable_dyngroup+set}" = set; then
3289 enableval="$enable_dyngroup"
3292 for ol_val in no yes mod ; do
3293 if test "$enableval" = "$ol_val" ; then
3297 if test "$ol_arg" = "invalid" ; then
3298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3300 { (exit 1); exit 1; }; }
3302 ol_enable_dyngroup="$ol_arg"
3305 ol_enable_dyngroup=${ol_enable_overlays:-no}
3307 # end --enable-dyngroup
3309 # OpenLDAP --enable-dynlist
3311 # Check whether --enable-dynlist or --disable-dynlist was given.
3312 if test "${enable_dynlist+set}" = set; then
3313 enableval="$enable_dynlist"
3316 for ol_val in no yes mod ; do
3317 if test "$enableval" = "$ol_val" ; then
3321 if test "$ol_arg" = "invalid" ; then
3322 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3324 { (exit 1); exit 1; }; }
3326 ol_enable_dynlist="$ol_arg"
3329 ol_enable_dynlist=${ol_enable_overlays:-no}
3331 # end --enable-dynlist
3333 # OpenLDAP --enable-lastmod
3335 # Check whether --enable-lastmod or --disable-lastmod was given.
3336 if test "${enable_lastmod+set}" = set; then
3337 enableval="$enable_lastmod"
3340 for ol_val in no yes mod ; do
3341 if test "$enableval" = "$ol_val" ; then
3345 if test "$ol_arg" = "invalid" ; then
3346 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3347 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3348 { (exit 1); exit 1; }; }
3350 ol_enable_lastmod="$ol_arg"
3353 ol_enable_lastmod=${ol_enable_overlays:-no}
3355 # end --enable-lastmod
3357 # OpenLDAP --enable-ppolicy
3359 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3360 if test "${enable_ppolicy+set}" = set; then
3361 enableval="$enable_ppolicy"
3364 for ol_val in no yes mod ; do
3365 if test "$enableval" = "$ol_val" ; then
3369 if test "$ol_arg" = "invalid" ; then
3370 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3371 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3372 { (exit 1); exit 1; }; }
3374 ol_enable_ppolicy="$ol_arg"
3377 ol_enable_ppolicy=${ol_enable_overlays:-no}
3379 # end --enable-ppolicy
3381 # OpenLDAP --enable-proxycache
3383 # Check whether --enable-proxycache or --disable-proxycache was given.
3384 if test "${enable_proxycache+set}" = set; then
3385 enableval="$enable_proxycache"
3388 for ol_val in no yes mod ; do
3389 if test "$enableval" = "$ol_val" ; then
3393 if test "$ol_arg" = "invalid" ; then
3394 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3395 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3396 { (exit 1); exit 1; }; }
3398 ol_enable_proxycache="$ol_arg"
3401 ol_enable_proxycache=${ol_enable_overlays:-no}
3403 # end --enable-proxycache
3405 # OpenLDAP --enable-refint
3407 # Check whether --enable-refint or --disable-refint was given.
3408 if test "${enable_refint+set}" = set; then
3409 enableval="$enable_refint"
3412 for ol_val in no yes mod ; do
3413 if test "$enableval" = "$ol_val" ; then
3417 if test "$ol_arg" = "invalid" ; then
3418 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3420 { (exit 1); exit 1; }; }
3422 ol_enable_refint="$ol_arg"
3425 ol_enable_refint=${ol_enable_overlays:-no}
3427 # end --enable-refint
3429 # OpenLDAP --enable-retcode
3431 # Check whether --enable-retcode or --disable-retcode was given.
3432 if test "${enable_retcode+set}" = set; then
3433 enableval="$enable_retcode"
3436 for ol_val in no yes mod ; do
3437 if test "$enableval" = "$ol_val" ; then
3441 if test "$ol_arg" = "invalid" ; then
3442 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3443 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3444 { (exit 1); exit 1; }; }
3446 ol_enable_retcode="$ol_arg"
3449 ol_enable_retcode=${ol_enable_overlays:-no}
3451 # end --enable-retcode
3453 # OpenLDAP --enable-rwm
3455 # Check whether --enable-rwm or --disable-rwm was given.
3456 if test "${enable_rwm+set}" = set; then
3457 enableval="$enable_rwm"
3460 for ol_val in no yes mod ; do
3461 if test "$enableval" = "$ol_val" ; then
3465 if test "$ol_arg" = "invalid" ; then
3466 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3467 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3468 { (exit 1); exit 1; }; }
3470 ol_enable_rwm="$ol_arg"
3473 ol_enable_rwm=${ol_enable_overlays:-no}
3477 # OpenLDAP --enable-syncprov
3479 # Check whether --enable-syncprov or --disable-syncprov was given.
3480 if test "${enable_syncprov+set}" = set; then
3481 enableval="$enable_syncprov"
3484 for ol_val in no yes mod ; do
3485 if test "$enableval" = "$ol_val" ; then
3489 if test "$ol_arg" = "invalid" ; then
3490 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3491 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3492 { (exit 1); exit 1; }; }
3494 ol_enable_syncprov="$ol_arg"
3497 ol_enable_syncprov=${ol_enable_overlays:-yes}
3499 # end --enable-syncprov
3501 # OpenLDAP --enable-translucent
3503 # Check whether --enable-translucent or --disable-translucent was given.
3504 if test "${enable_translucent+set}" = set; then
3505 enableval="$enable_translucent"
3508 for ol_val in no yes mod ; do
3509 if test "$enableval" = "$ol_val" ; then
3513 if test "$ol_arg" = "invalid" ; then
3514 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3515 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3516 { (exit 1); exit 1; }; }
3518 ol_enable_translucent="$ol_arg"
3521 ol_enable_translucent=${ol_enable_overlays:-no}
3523 # end --enable-translucent
3525 # OpenLDAP --enable-unique
3527 # Check whether --enable-unique or --disable-unique was given.
3528 if test "${enable_unique+set}" = set; then
3529 enableval="$enable_unique"
3532 for ol_val in no yes mod ; do
3533 if test "$enableval" = "$ol_val" ; then
3537 if test "$ol_arg" = "invalid" ; then
3538 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3539 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3540 { (exit 1); exit 1; }; }
3542 ol_enable_unique="$ol_arg"
3545 ol_enable_unique=${ol_enable_overlays:-no}
3547 # end --enable-unique
3549 # OpenLDAP --enable-valsort
3551 # Check whether --enable-valsort or --disable-valsort was given.
3552 if test "${enable_valsort+set}" = set; then
3553 enableval="$enable_valsort"
3556 for ol_val in no yes mod ; do
3557 if test "$enableval" = "$ol_val" ; then
3561 if test "$ol_arg" = "invalid" ; then
3562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3563 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3564 { (exit 1); exit 1; }; }
3566 ol_enable_valsort="$ol_arg"
3569 ol_enable_valsort=${ol_enable_overlays:-no}
3571 # end --enable-valsort
3574 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3575 if test "${enable_xxslurpdoptions+set}" = set; then
3576 enableval="$enable_xxslurpdoptions"
3579 # OpenLDAP --enable-slurpd
3581 # Check whether --enable-slurpd or --disable-slurpd was given.
3582 if test "${enable_slurpd+set}" = set; then
3583 enableval="$enable_slurpd"
3586 for ol_val in auto yes no ; do
3587 if test "$enableval" = "$ol_val" ; then
3591 if test "$ol_arg" = "invalid" ; then
3592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3593 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3594 { (exit 1); exit 1; }; }
3596 ol_enable_slurpd="$ol_arg"
3599 ol_enable_slurpd=auto
3601 # end --enable-slurpd
3603 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3604 if test "${enable_xxliboptions+set}" = set; then
3605 enableval="$enable_xxliboptions"
3608 # Check whether --enable-static or --disable-static was given.
3609 if test "${enable_static+set}" = set; then
3610 enableval="$enable_static"
3611 p=${PACKAGE-default}
3613 yes) enable_static=yes ;;
3614 no) enable_static=no ;;
3617 # Look at the argument we got. We use all the common list separators.
3618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619 for pkg in $enableval; do
3621 if test "X$pkg" = "X$p"; then
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634 enableval="$enable_shared"
3635 p=${PACKAGE-default}
3637 yes) enable_shared=yes ;;
3638 no) enable_shared=no ;;
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3645 if test "X$pkg" = "X$p"; then
3659 if test $ol_enable_slapd = no ; then
3660 if test $ol_enable_slapi = yes ; then
3661 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3664 case "$ol_enable_backends" in yes | mod)
3665 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3668 for i in $Backends; do
3669 eval "ol_tmp=\$ol_enable_$i"
3670 if test $ol_tmp != no ; then
3671 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3673 eval "ol_enable_$i=no"
3676 if test $ol_enable_modules = yes ; then
3677 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3678 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3680 if test $ol_enable_multimaster = yes ; then
3681 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3682 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3684 if test $ol_enable_wrappers = yes ; then
3685 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3688 if test $ol_enable_rlookups = yes ; then
3689 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3690 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3692 if test $ol_enable_dynacl = yes ; then
3693 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3696 if test $ol_enable_aci != no ; then
3697 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3698 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3700 if test $ol_enable_ldbm_api != auto ; then
3701 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3702 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3704 if test $ol_enable_ldbm_type != auto ; then
3705 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3708 if test $ol_enable_slurpd = yes ; then
3709 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3710 echo "$as_me: error: slurpd requires slapd" >&2;}
3711 { (exit 1); exit 1; }; }
3713 if test $ol_enable_rewrite = yes ; then
3714 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3715 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3717 case "$ol_enable_overlays" in yes | mod)
3718 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3719 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3721 for i in $Overlays; do
3722 eval "ol_tmp=\$ol_enable_$i"
3723 if test $ol_tmp != no ; then
3724 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3725 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3726 eval "ol_enable_$i=no"
3730 # force settings to no
3735 ol_enable_modules=no
3736 ol_enable_multimaster=no
3737 ol_enable_rlookups=no
3740 ol_enable_wrappers=no
3742 ol_enable_ldbm_api=no
3743 ol_enable_ldbm_type=no
3747 ol_enable_rewrite=no
3749 elif test $ol_enable_ldbm = no ; then
3751 if test $ol_enable_ldbm_api != auto ; then
3752 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3753 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3756 if test $ol_enable_ldbm_type != auto ; then
3757 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3758 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3761 if test $ol_enable_modules != yes &&
3762 test $ol_enable_bdb = no &&
3763 test $ol_enable_dnssrv = no &&
3764 test $ol_enable_hdb = no &&
3765 test $ol_enable_ldap = no &&
3766 test $ol_enable_meta = no &&
3767 test $ol_enable_monitor = no &&
3768 test $ol_enable_null = no &&
3769 test $ol_enable_passwd = no &&
3770 test $ol_enable_perl = no &&
3771 test $ol_enable_relay = no &&
3772 test $ol_enable_shell = no &&
3773 test $ol_enable_sql = no ; then
3775 if test $ol_enable_slapd = yes ; then
3776 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3777 echo "$as_me: error: slapd requires a backend" >&2;}
3778 { (exit 1); exit 1; }; }
3780 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3781 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3786 ol_enable_ldbm_api=no
3787 ol_enable_ldbm_type=no
3789 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3790 ol_enable_ldbm_api=berkeley
3794 if test $ol_enable_ldbm_api = gdbm &&
3795 test $ol_enable_ldbm_type = btree ; then
3796 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3797 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3798 { (exit 1); exit 1; }; }
3800 if test $ol_enable_ldbm_api = mdbm &&
3801 test $ol_enable_ldbm_type = btree ; then
3802 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3803 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3804 { (exit 1); exit 1; }; }
3806 if test $ol_enable_ldbm_api = ndbm &&
3807 test $ol_enable_ldbm_type = btree ; then
3808 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3809 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3810 { (exit 1); exit 1; }; }
3813 if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3814 if test $ol_enable_ldbm_api = auto ; then
3815 ol_enable_ldbm_api=berkeley
3816 elif test $ol_enable_ldbm_api != berkeley ; then
3817 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3818 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3819 { (exit 1); exit 1; }; }
3824 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3825 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3826 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3827 { (exit 1); exit 1; }; }
3830 if test $ol_enable_slurpd = yes ; then
3831 if test $ol_with_threads = no ; then
3832 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3833 echo "$as_me: error: slurpd requires threads" >&2;}
3834 { (exit 1); exit 1; }; }
3838 if test $ol_enable_lmpasswd = yes ; then
3839 if test $ol_with_tls = no ; then
3840 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3841 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3842 { (exit 1); exit 1; }; }
3846 if test $ol_enable_kbind = yes ; then
3847 if test $ol_with_kerberos = no ; then
3848 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3849 echo "$as_me: error: options require --with-kerberos" >&2;}
3850 { (exit 1); exit 1; }; }
3851 elif test $ol_with_kerberos = auto ; then
3852 ol_with_kerberos=yes
3855 elif test $ol_enable_kbind = no ; then
3856 if test $ol_with_kerberos = auto ; then
3858 elif test $ol_with_kerberos != no ; then
3859 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3860 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3865 if test $ol_enable_spasswd = yes ; then
3866 if test $ol_with_cyrus_sasl = no ; then
3867 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3868 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3869 { (exit 1); exit 1; }; }
3871 ol_with_cyrus_sasl=yes
3874 echo "$as_me:$LINENO: result: done" >&5
3875 echo "${ECHO_T}done" >&6
3919 BUILD_TRANSLUCENT=no
3923 SLAPD_STATIC_OVERLAYS=
3924 SLAPD_DYNAMIC_OVERLAYS=
3926 SLAPD_MODULES_LDFLAGS=
3927 SLAPD_MODULES_CPPFLAGS=
3929 SLAPD_STATIC_BACKENDS=back-ldif
3930 SLAPD_DYNAMIC_BACKENDS=
3956 cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_MKVERSION 1
3965 *-*-aix*) if test -z "$CC" ; then
3966 case "$ol_with_threads" in
3967 auto | yes | posix) ol_aix_threads=yes ;;
3973 if test $ol_aix_threads = yes ; then
3974 if test -z "${CC}" ; then
3975 for ac_prog in cc_r xlc_r cc
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy $ac_prog; ac_word=$2
3979 echo "$as_me:$LINENO: checking for $ac_word" >&5
3980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981 if test "${ac_cv_prog_CC+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_CC="$ac_prog"
3995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 echo "$as_me:$LINENO: result: $CC" >&5
4006 echo "${ECHO_T}$CC" >&6
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 test -n "$CC" && break
4016 if test "$CC" = cc ; then
4017 if test $ol_with_threads != auto ; then
4018 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4019 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4020 { (exit 1); exit 1; }; }
4022 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4023 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4029 case ${CC} in cc_r | xlc_r)
4030 ol_with_threads=posix
4031 ol_cv_pthread_create=yes
4036 if test -z "${CC}"; then
4037 for ac_prog in cc gcc
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_CC="$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 if test -n "$CC"; then
4067 echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4074 test -n "$CC" && break
4076 test -n "$CC" || CC="missing"
4079 if test "${CC}" = "missing" ; then
4080 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4081 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4082 { (exit 1); exit 1; }; }
4086 if test -z "${AR}"; then
4087 for ac_prog in ar gar
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_prog_AR+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 if test -n "$AR"; then
4097 ac_cv_prog_AR="$AR" # Let the user override the test.
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_AR="$ac_prog"
4107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test -n "$AR"; then
4117 echo "$as_me:$LINENO: result: $AR" >&5
4118 echo "${ECHO_T}$AR" >&6
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4124 test -n "$AR" && break
4126 test -n "$AR" || AR="missing"
4129 if test "${AR}" = "missing" ; then
4130 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4131 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4132 { (exit 1); exit 1; }; }
4140 # Check whether --enable-fast-install or --disable-fast-install was given.
4141 if test "${enable_fast_install+set}" = set; then
4142 enableval="$enable_fast_install"
4143 p=${PACKAGE-default}
4145 yes) enable_fast_install=yes ;;
4146 no) enable_fast_install=no ;;
4148 enable_fast_install=no
4149 # Look at the argument we got. We use all the common list separators.
4150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4151 for pkg in $enableval; do
4153 if test "X$pkg" = "X$p"; then
4154 enable_fast_install=yes
4161 enable_fast_install=yes
4164 DEPDIR="${am__leading_dot}deps"
4166 ac_config_commands="$ac_config_commands depfiles"
4169 am_make=${MAKE-make}
4170 cat > confinc << 'END'
4175 # If we don't find an include directive, just comment out the code.
4176 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4177 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4181 # First try GNU make style include.
4182 echo "include confinc" > confmf
4183 # We grep out `Entering directory' and `Leaving directory'
4184 # messages which can occur if `w' ends up in MAKEFLAGS.
4185 # In particular we don't look at `^make:' because GNU make might
4186 # be invoked under some other name (usually "gmake"), in which
4187 # case it prints its new name instead of `make'.
4188 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4193 # Now try BSD make style include.
4194 if test "$am__include" = "#"; then
4195 echo '.include "confinc"' > confmf
4196 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4197 am__include=.include
4204 echo "$as_me:$LINENO: result: $_am_result" >&5
4205 echo "${ECHO_T}$_am_result" >&6
4206 rm -f confinc confmf
4208 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4209 if test "${enable_dependency_tracking+set}" = set; then
4210 enableval="$enable_dependency_tracking"
4213 if test "x$enable_dependency_tracking" != xno; then
4214 am_depcomp="$ac_aux_dir/depcomp"
4219 if test "x$enable_dependency_tracking" != xno; then
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 if test -n "$ac_tool_prefix"; then
4235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_CC+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 if test -n "$CC"; then
4243 ac_cv_prog_CC="$CC" # Let the user override the test.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 echo "$as_me:$LINENO: result: $CC" >&5
4264 echo "${ECHO_T}$CC" >&6
4266 echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4271 if test -z "$ac_cv_prog_CC"; then
4273 # Extract the first word of "gcc", so it can be a program name with args.
4274 set dummy gcc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$ac_ct_CC"; then
4281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_ac_ct_CC="gcc"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4302 echo "${ECHO_T}$ac_ct_CC" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4313 if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}cc; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_CC+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 if test -n "$CC"; then
4343 echo "$as_me:$LINENO: result: $CC" >&5
4344 echo "${ECHO_T}$CC" >&6
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4351 if test -z "$ac_cv_prog_CC"; then
4353 # Extract the first word of "cc", so it can be a program name with args.
4354 set dummy cc; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 if test -n "$ac_ct_CC"; then
4361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_CC="cc"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4380 if test -n "$ac_ct_CC"; then
4381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4382 echo "${ECHO_T}$ac_ct_CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4394 if test -z "$CC"; then
4395 # Extract the first word of "cc", so it can be a program name with args.
4396 set dummy cc; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4414 ac_prog_rejected=yes
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 if test $ac_prog_rejected = yes; then
4425 # We found a bogon in the path, so make sure we never use it.
4426 set dummy $ac_cv_prog_CC
4428 if test $# != 0; then
4429 # We chose a different compiler from the bogus one.
4430 # However, it has the same basename, so the bogon will be chosen
4431 # first if we set CC to just the basename; use the full file name.
4433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4439 if test -n "$CC"; then
4440 echo "$as_me:$LINENO: result: $CC" >&5
4441 echo "${ECHO_T}$CC" >&6
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4448 if test -z "$CC"; then
4449 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4454 echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456 if test "${ac_cv_prog_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 echo "$as_me:$LINENO: result: $CC" >&5
4481 echo "${ECHO_T}$CC" >&6
4483 echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6
4487 test -n "$CC" && break
4490 if test -z "$CC"; then
4494 # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$ac_ct_CC"; then
4502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_ac_ct_CC="$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4521 if test -n "$ac_ct_CC"; then
4522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4523 echo "${ECHO_T}$ac_ct_CC" >&6
4525 echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6
4529 test -n "$ac_ct_CC" && break
4538 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4539 See \`config.log' for more details." >&5
4540 echo "$as_me: error: no acceptable C compiler found in \$PATH
4541 See \`config.log' for more details." >&2;}
4542 { (exit 1); exit 1; }; }
4544 # Provide some information about the compiler.
4545 echo "$as_me:$LINENO:" \
4546 "checking for C compiler version" >&5
4547 ac_compiler=`set X $ac_compile; echo $2`
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4549 (eval $ac_compiler --version </dev/null >&5) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4554 (eval $ac_compiler -v </dev/null >&5) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4559 (eval $ac_compiler -V </dev/null >&5) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4579 ac_clean_files_save=$ac_clean_files
4580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4581 # Try to create an executable without -o first, disregard a.out.
4582 # It will help us diagnose broken compilers, and finding out an intuition
4584 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4585 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4588 (eval $ac_link_default) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; then
4592 # Find the output, starting from the most likely. This scheme is
4593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4596 # Be careful to initialize this variable, since it used to be cached.
4597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4599 # b.out is created by i960 compilers.
4600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4602 test -f "$ac_file" || continue
4604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4607 # This is the source file.
4610 # We found the default executable, but exeext='' is most
4614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 # FIXME: I believe we export ac_cv_exeext for Libtool,
4616 # but it would be cool to find out if it's true. Does anybody
4617 # maintain Libtool? --akim.
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4629 See \`config.log' for more details." >&5
4630 echo "$as_me: error: C compiler cannot create executables
4631 See \`config.log' for more details." >&2;}
4632 { (exit 77); exit 77; }; }
4635 ac_exeext=$ac_cv_exeext
4636 echo "$as_me:$LINENO: result: $ac_file" >&5
4637 echo "${ECHO_T}$ac_file" >&6
4639 # Check the compiler produces executables we can run. If not, either
4640 # the compiler is broken, or we cross compile.
4641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4644 # If not cross compiling, check that we can run a simple program.
4645 if test "$cross_compiling" != yes; then
4646 if { ac_try='./$ac_file'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4654 if test "$cross_compiling" = maybe; then
4657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4658 If you meant to cross compile, use \`--host'.
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot run C compiled programs.
4661 If you meant to cross compile, use \`--host'.
4662 See \`config.log' for more details." >&2;}
4663 { (exit 1); exit 1; }; }
4667 echo "$as_me:$LINENO: result: yes" >&5
4668 echo "${ECHO_T}yes" >&6
4670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4671 ac_clean_files=$ac_clean_files_save
4672 # Check the compiler produces executables we can run. If not, either
4673 # the compiler is broken, or we cross compile.
4674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4677 echo "${ECHO_T}$cross_compiling" >&6
4679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4682 (eval $ac_link) 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; then
4686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4688 # work properly (i.e., refer to `conftest.exe'), while it won't with
4690 for ac_file in conftest.exe conftest conftest.*; do
4691 test -f "$ac_file" || continue
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4701 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }
4708 rm -f conftest$ac_cv_exeext
4709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4710 echo "${ECHO_T}$ac_cv_exeext" >&6
4712 rm -f conftest.$ac_ext
4713 EXEEXT=$ac_cv_exeext
4715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4717 if test "${ac_cv_objext+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.o conftest.obj
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; then
4741 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4753 See \`config.log' for more details." >&5
4754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4755 See \`config.log' for more details." >&2;}
4756 { (exit 1); exit 1; }; }
4759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4761 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4762 echo "${ECHO_T}$ac_cv_objext" >&6
4763 OBJEXT=$ac_cv_objext
4765 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.$ac_ext <<_ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4822 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4823 GCC=`test $ac_compiler_gnu = yes && echo yes`
4824 ac_test_CFLAGS=${CFLAGS+set}
4825 ac_save_CFLAGS=$CFLAGS
4827 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4829 if test "${ac_cv_prog_cc_g+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4847 rm -f conftest.$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4851 grep -v '^ *+' conftest.er1 >conftest.err
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_c_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4880 if test "$ac_test_CFLAGS" = set; then
4881 CFLAGS=$ac_save_CFLAGS
4882 elif test $ac_cv_prog_cc_g = yes; then
4883 if test "$GCC" = yes; then
4889 if test "$GCC" = yes; then
4895 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4896 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4897 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_cv_prog_cc_stdc=no
4902 cat >conftest.$ac_ext <<_ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4910 #include <sys/types.h>
4911 #include <sys/stat.h>
4912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4913 struct buf { int x; };
4914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915 static char *e (p, i)
4921 static char *f (char * (*g) (char **, int), char **p, ...)
4926 s = g (p, va_arg (v,int));
4931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4932 function prototypes and stuff, but not '\xHH' hex character constants.
4933 These don't provoke an error unfortunately, instead are silently treated
4934 as 'x'. The following induces an error, until -std1 is added to get
4935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4936 array size at least. It's necessary to write '\x00'==0 to get something
4937 that's true only with -std1. */
4938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4940 int test (int i, double x);
4941 struct s1 {int (*f) (int a);};
4942 struct s2 {int (*f) (double a);};
4943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4954 # Don't try gcc -ansi; that turns off useful extensions and
4955 # breaks some systems' header files.
4956 # AIX -qlanglvl=ansi
4957 # Ultrix and OSF/1 -std1
4958 # HP-UX 10.20 and later -Ae
4959 # HP-UX older versions -Aa -D_HPUX_SOURCE
4960 # SVR4 -Xc -D__EXTENSIONS__
4961 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4963 CC="$ac_save_CC $ac_arg"
4964 rm -f conftest.$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_cv_prog_cc_stdc=$ac_arg
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4993 rm -f conftest.err conftest.$ac_objext
4995 rm -f conftest.$ac_ext conftest.$ac_objext
5000 case "x$ac_cv_prog_cc_stdc" in
5002 echo "$as_me:$LINENO: result: none needed" >&5
5003 echo "${ECHO_T}none needed" >&6 ;;
5005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5006 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5007 CC="$CC $ac_cv_prog_cc_stdc" ;;
5010 # Some people use a C++ compiler to compile C. Since we use `exit',
5011 # in C++ we need to declare it. In case someone uses the same compiler
5012 # for both compiling C and C++ we need to have the C++ compiler decide
5013 # the declaration of exit, since it's the most demanding environment.
5014 cat >conftest.$ac_ext <<_ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 for ac_declaration in \
5043 'extern "C" void std::exit (int) throw (); using std::exit;' \
5044 'extern "C" void std::exit (int); using std::exit;' \
5045 'extern "C" void exit (int) throw ();' \
5046 'extern "C" void exit (int);' \
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 cat >conftest.$ac_ext <<_ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest.$ac_objext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5134 echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5141 if test -n "$ac_declaration"; then
5142 echo '#ifdef __cplusplus' >>confdefs.h
5143 echo $ac_declaration >>confdefs.h
5144 echo '#endif' >>confdefs.h
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5159 depcc="$CC" am_compiler_list=
5161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167 # We make a subdir and do the tests there. Otherwise we can end up
5168 # making bogus files that we don't know about and never remove. For
5169 # instance it was reported that on HP-UX the gcc test will end up
5170 # making a dummy file named `D' -- because `-MD' means `put the output
5173 # Copy depcomp to subdir because otherwise we won't find it if we're
5174 # using a relative directory.
5175 cp "$am_depcomp" conftest.dir
5177 # We will build objects and dependencies in a subdirectory because
5178 # it helps to detect inapplicable dependency modes. For instance
5179 # both Tru64's cc and ICC support -MD to output dependencies as a
5180 # side effect of compilation, but ICC will put the dependencies in
5181 # the current directory while Tru64 will put them in the object
5185 am_cv_CC_dependencies_compiler_type=none
5186 if test "$am_compiler_list" = ""; then
5187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201 # Solaris 8's {/usr,}/bin/sh.
5202 touch sub/conftst$i.h
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5208 # after this tag, mechanisms are not by side-effect, so they'll
5209 # only be used when explicitly requested
5210 if test "x$enable_dependency_tracking" = xyes; then
5218 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5219 # mode. It turns out that the SunPro C++ compiler does not properly
5220 # handle `-M -o', and we need to detect this.
5221 if depmode=$depmode \
5222 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5224 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5225 >/dev/null 2>conftest.err &&
5226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5227 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5229 # icc doesn't choke on unknown options, it will just issue warnings
5230 # or remarks (even with -Werror). So we grep stderr for any message
5231 # that says an option was ignored or not supported.
5232 # When given -MP, icc 7.0 and 7.1 complain thusly:
5233 # icc: Command line warning: ignoring option '-M'; no argument required
5234 # The diagnosis changed in icc 8.0:
5235 # icc: Command line remark: option '-MP' not supported
5236 if (grep 'ignoring option' conftest.err ||
5237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5238 am_cv_CC_dependencies_compiler_type=$depmode
5247 am_cv_CC_dependencies_compiler_type=none
5251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5258 test "x$enable_dependency_tracking" != xno \
5259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5261 am__fastdepCC_FALSE='#'
5263 am__fastdepCC_TRUE='#'
5264 am__fastdepCC_FALSE=
5268 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5269 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5270 if test "${lt_cv_path_SED+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 # Loop through the user's path and test for sed and gsed.
5274 # Then use that list of sed's as ones to test for truncation.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for lt_ac_prog in sed gsed; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5290 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5291 # along with /bin/sed that truncates output.
5292 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5293 test ! -f $lt_ac_sed && continue
5294 cat /dev/null > conftest.in
5296 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5297 # Check for GNU sed and select it if it is found.
5298 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5299 lt_cv_path_SED=$lt_ac_sed
5303 cat conftest.in conftest.in >conftest.tmp
5304 mv conftest.tmp conftest.in
5305 cp conftest.in conftest.nl
5307 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5308 cmp -s conftest.out conftest.nl || break
5309 # 10000 chars as input seems more than enough
5310 test $lt_ac_count -gt 10 && break
5311 lt_ac_count=`expr $lt_ac_count + 1`
5312 if test $lt_ac_count -gt $lt_ac_max; then
5313 lt_ac_max=$lt_ac_count
5314 lt_cv_path_SED=$lt_ac_sed
5322 echo "$as_me:$LINENO: result: $SED" >&5
5323 echo "${ECHO_T}$SED" >&6
5325 echo "$as_me:$LINENO: checking for egrep" >&5
5326 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5327 if test "${ac_cv_prog_egrep+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5331 then ac_cv_prog_egrep='grep -E'
5332 else ac_cv_prog_egrep='egrep'
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5336 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5337 EGREP=$ac_cv_prog_egrep
5341 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5342 if test "${with_gnu_ld+set}" = set; then
5343 withval="$with_gnu_ld"
5344 test "$withval" = no || with_gnu_ld=yes
5349 if test "$GCC" = yes; then
5350 # Check if gcc -print-prog-name=ld gives a path.
5351 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5355 # gcc leaves a trailing carriage return which upsets mingw
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5361 # Accept absolute paths.
5363 re_direlt='/[^/][^/]*/\.\./'
5364 # Canonicalize the pathname of ld
5365 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5366 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5367 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5369 test -z "$LD" && LD="$ac_prog"
5372 # If it fails, then pretend we aren't using GCC.
5376 # If it is relative, then search for the first ld in PATH.
5380 elif test "$with_gnu_ld" = yes; then
5381 echo "$as_me:$LINENO: checking for GNU ld" >&5
5382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5384 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5387 if test "${lt_cv_path_LD+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 if test -z "$LD"; then
5391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD="$ac_dir/$ac_prog"
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test "$with_gnu_ld" != no && break
5405 test "$with_gnu_ld" != yes && break
5412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5417 if test -n "$LD"; then
5418 echo "$as_me:$LINENO: result: $LD" >&5
5419 echo "${ECHO_T}$LD" >&6
5421 echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5426 { (exit 1); exit 1; }; }
5427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5433 case `$LD -v 2>&1 </dev/null` in
5434 *GNU* | *'with BFD'*)
5435 lt_cv_prog_gnu_ld=yes
5438 lt_cv_prog_gnu_ld=no
5442 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5444 with_gnu_ld=$lt_cv_prog_gnu_ld
5447 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5448 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5449 if test "${lt_cv_ld_reload_flag+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 lt_cv_ld_reload_flag='-r'
5454 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5455 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5456 reload_flag=$lt_cv_ld_reload_flag
5457 case $reload_flag in
5459 *) reload_flag=" $reload_flag" ;;
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464 if test "$GCC" = yes; then
5465 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5472 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5473 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5474 if test "${lt_cv_path_NM+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 if test -n "$NM"; then
5478 # Let the user override the test.
5481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5482 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5484 test -z "$ac_dir" && ac_dir=.
5485 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5487 # Check to see if the nm accepts a BSD-compat flag.
5488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5489 # nm: unknown option "B" ignored
5490 # Tru64's nm complains that /dev/null is an invalid object file
5491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5492 */dev/null* | *'Invalid file or object type'*)
5493 lt_cv_path_NM="$tmp_nm -B"
5497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5499 lt_cv_path_NM="$tmp_nm -p"
5503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5504 continue # so that we can try to find one that supports BSD flags
5511 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5514 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5515 echo "${ECHO_T}$lt_cv_path_NM" >&6
5518 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5519 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5521 if test "$LN_S" = "ln -s"; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523 echo "${ECHO_T}yes" >&6
5525 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5526 echo "${ECHO_T}no, using $LN_S" >&6
5529 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5530 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5531 if test "${lt_cv_deplibs_check_method+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 lt_cv_file_magic_cmd='$MAGIC_CMD'
5535 lt_cv_file_magic_test_file=
5536 lt_cv_deplibs_check_method='unknown'
5537 # Need to set the preceding variable on all platforms that support
5538 # interlibrary dependencies.
5539 # 'none' -- dependencies not supported.
5540 # `unknown' -- same as none, but documents that we really don't know.
5541 # 'pass_all' -- all dependencies passed with no checks.
5542 # 'test_compile' -- check by making test program.
5543 # 'file_magic [[regex]]' -- check by looking for files in library path
5544 # which responds to the $file_magic_cmd with a given extended regex.
5545 # If you have `file' or equivalent on your system and you're not sure
5546 # whether `pass_all' will *always* work, you probably want this one.
5550 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method=pass_all
5558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5559 lt_cv_file_magic_cmd='/usr/bin/file -L'
5560 lt_cv_file_magic_test_file=/shlib/libc.so
5564 # func_win32_libid is a shell function defined in ltmain.sh
5565 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5566 lt_cv_file_magic_cmd='func_win32_libid'
5570 # Base MSYS/MinGW do not provide the 'file' command needed by
5571 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5572 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5573 lt_cv_file_magic_cmd='$OBJDUMP -f'
5576 darwin* | rhapsody*)
5577 lt_cv_deplibs_check_method=pass_all
5580 freebsd* | kfreebsd*-gnu | dragonfly*)
5581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5584 # Not sure whether the presence of OpenBSD here was a mistake.
5585 # Let's accept both of them until this is cleared up.
5586 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5592 lt_cv_deplibs_check_method=pass_all
5597 lt_cv_deplibs_check_method=pass_all
5600 hpux10.20* | hpux11*)
5601 lt_cv_file_magic_cmd=/usr/bin/file
5604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5605 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5609 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5613 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5618 irix5* | irix6* | nonstopux*)
5620 *-32|*"-32 ") libmagic=32-bit;;
5621 *-n32|*"-n32 ") libmagic=N32;;
5622 *-64|*"-64 ") libmagic=64-bit;;
5623 *) libmagic=never-match;;
5625 lt_cv_deplibs_check_method=pass_all
5628 # This must be Linux ELF.
5630 lt_cv_deplibs_check_method=pass_all
5634 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5648 lt_cv_deplibs_check_method=unknown
5652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5659 osf3* | osf4* | osf5*)
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method=pass_all
5668 lt_cv_deplibs_check_method=pass_all
5671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5672 case $host_vendor in
5674 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]'
5675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5678 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_file_magic_cmd='/bin/file'
5682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5687 lt_cv_file_magic_test_file=/lib/libc.so
5690 lt_cv_deplibs_check_method=pass_all
5695 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5696 lt_cv_deplibs_check_method=pass_all
5701 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5702 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5703 file_magic_cmd=$lt_cv_file_magic_cmd
5704 deplibs_check_method=$lt_cv_deplibs_check_method
5705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5710 # If no C compiler was specified, use CC.
5713 # Allow CC to be a program name with arguments.
5717 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5718 if test "${enable_libtool_lock+set}" = set; then
5719 enableval="$enable_libtool_lock"
5722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5724 # Some flags need to be propagated to the compiler or linker for good
5728 # Find out which ABI we are using.
5729 echo 'int i;' > conftest.$ac_ext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731 (eval $ac_compile) 2>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; then
5735 case `/usr/bin/file conftest.$ac_objext` in
5747 # Find out which ABI we are using.
5748 echo '#line 5748 "configure"' > conftest.$ac_ext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; then
5754 if test "$lt_cv_prog_gnu_ld" = yes; then
5755 case `/usr/bin/file conftest.$ac_objext` in
5757 LD="${LD-ld} -melf32bsmip"
5760 LD="${LD-ld} -melf32bmipn32"
5763 LD="${LD-ld} -melf64bmip"
5767 case `/usr/bin/file conftest.$ac_objext` in
5783 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5784 # Find out which ABI we are using.
5785 echo 'int i;' > conftest.$ac_ext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 case `/usr/bin/file conftest.o` in
5795 LD="${LD-ld} -m elf_i386"
5797 ppc64-*linux*|powerpc64-*linux*)
5798 LD="${LD-ld} -m elf32ppclinux"
5801 LD="${LD-ld} -m elf_s390"
5804 LD="${LD-ld} -m elf32_sparc"
5811 LD="${LD-ld} -m elf_x86_64"
5813 ppc*-*linux*|powerpc*-*linux*)
5814 LD="${LD-ld} -m elf64ppc"
5817 LD="${LD-ld} -m elf64_s390"
5820 LD="${LD-ld} -m elf64_sparc"
5830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831 SAVE_CFLAGS="$CFLAGS"
5832 CFLAGS="$CFLAGS -belf"
5833 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5835 if test "${lt_cv_cc_needs_belf+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861 (eval $ac_link) 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag"
5869 || test ! -s conftest.err'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest$ac_exeext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 lt_cv_cc_needs_belf=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 lt_cv_cc_needs_belf=no
5888 rm -f conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5891 ac_cpp='$CPP $CPPFLAGS'
5892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5901 CFLAGS="$SAVE_CFLAGS"
5904 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 if test -n "$DLLTOOL"; then
5914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 DLLTOOL=$ac_cv_prog_DLLTOOL
5933 if test -n "$DLLTOOL"; then
5934 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5935 echo "${ECHO_T}$DLLTOOL" >&6
5937 echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5942 if test -z "$ac_cv_prog_DLLTOOL"; then
5943 ac_ct_DLLTOOL=$DLLTOOL
5944 # Extract the first word of "dlltool", so it can be a program name with args.
5945 set dummy dlltool; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_DLLTOOL"; then
5952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5971 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5972 if test -n "$ac_ct_DLLTOOL"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5974 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5980 DLLTOOL=$ac_ct_DLLTOOL
5982 DLLTOOL="$ac_cv_prog_DLLTOOL"
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}as; ac_word=$2
5988 echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5990 if test "${ac_cv_prog_AS+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 if test -n "$AS"; then
5994 ac_cv_prog_AS="$AS" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_AS="${ac_tool_prefix}as"
6004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 if test -n "$AS"; then
6014 echo "$as_me:$LINENO: result: $AS" >&5
6015 echo "${ECHO_T}$AS" >&6
6017 echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6022 if test -z "$ac_cv_prog_AS"; then
6024 # Extract the first word of "as", so it can be a program name with args.
6025 set dummy as; ac_word=$2
6026 echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6028 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 if test -n "$ac_ct_AS"; then
6032 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041 ac_cv_prog_ac_ct_AS="as"
6042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6051 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6052 if test -n "$ac_ct_AS"; then
6053 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6054 echo "${ECHO_T}$ac_ct_AS" >&6
6056 echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6
6065 if test -n "$ac_tool_prefix"; then
6066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6068 echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 if test -n "$OBJDUMP"; then
6074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 OBJDUMP=$ac_cv_prog_OBJDUMP
6093 if test -n "$OBJDUMP"; then
6094 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6095 echo "${ECHO_T}$OBJDUMP" >&6
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6102 if test -z "$ac_cv_prog_OBJDUMP"; then
6103 ac_ct_OBJDUMP=$OBJDUMP
6104 # Extract the first word of "objdump", so it can be a program name with args.
6105 set dummy objdump; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$ac_ct_OBJDUMP"; then
6112 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6131 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6132 if test -n "$ac_ct_OBJDUMP"; then
6133 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6134 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6136 echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6140 OBJDUMP=$ac_ct_OBJDUMP
6142 OBJDUMP="$ac_cv_prog_OBJDUMP"
6149 need_locks="$enable_libtool_lock"
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6158 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6159 # On Suns, sometimes $CPP names a directory.
6160 if test -n "$CPP" && test -d "$CPP"; then
6163 if test -z "$CPP"; then
6164 if test "${ac_cv_prog_CPP+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 # Double quotes because CPP needs to be expanded
6168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6171 for ac_c_preproc_warn_flag in '' yes
6173 # Use a header file that comes with gcc, so configuring glibc
6174 # with a fresh cross-compiler works.
6175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176 # <limits.h> exists even on freestanding compilers.
6177 # On the NeXT, cc -E runs the code through the compiler's parser,
6178 # not just through cpp. "Syntax error" is here to catch this case.
6179 cat >conftest.$ac_ext <<_ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h. */
6186 # include <limits.h>
6188 # include <assert.h>
6192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } >/dev/null; then
6200 if test -s conftest.err; then
6201 ac_cpp_err=$ac_c_preproc_warn_flag
6202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6209 if test -z "$ac_cpp_err"; then
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 # Broken: fails on valid input.
6218 rm -f conftest.err conftest.$ac_ext
6220 # OK, works on sane cases. Now check whether non-existent headers
6221 # can be detected and how.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <ac_nonexistent.h>
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null; then
6238 if test -s conftest.err; then
6239 ac_cpp_err=$ac_c_preproc_warn_flag
6240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6247 if test -z "$ac_cpp_err"; then
6248 # Broken: success on invalid input.
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 # Passes both tests.
6258 rm -f conftest.err conftest.$ac_ext
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then
6275 echo "$as_me:$LINENO: result: $CPP" >&5
6276 echo "${ECHO_T}$CPP" >&6
6278 for ac_c_preproc_warn_flag in '' yes
6280 # Use a header file that comes with gcc, so configuring glibc
6281 # with a fresh cross-compiler works.
6282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283 # <limits.h> exists even on freestanding compilers.
6284 # On the NeXT, cc -E runs the code through the compiler's parser,
6285 # not just through cpp. "Syntax error" is here to catch this case.
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6293 # include <limits.h>
6295 # include <assert.h>
6299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } >/dev/null; then
6307 if test -s conftest.err; then
6308 ac_cpp_err=$ac_c_preproc_warn_flag
6309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316 if test -z "$ac_cpp_err"; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 # Broken: fails on valid input.
6325 rm -f conftest.err conftest.$ac_ext
6327 # OK, works on sane cases. Now check whether non-existent headers
6328 # can be detected and how.
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <ac_nonexistent.h>
6337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6340 grep -v '^ *+' conftest.er1 >conftest.err
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } >/dev/null; then
6345 if test -s conftest.err; then
6346 ac_cpp_err=$ac_c_preproc_warn_flag
6347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354 if test -z "$ac_cpp_err"; then
6355 # Broken: success on invalid input.
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 # Passes both tests.
6365 rm -f conftest.err conftest.$ac_ext
6368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6369 rm -f conftest.err conftest.$ac_ext
6370 if $ac_preproc_ok; then
6373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6374 See \`config.log' for more details." >&5
6375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6376 See \`config.log' for more details." >&2;}
6377 { (exit 1); exit 1; }; }
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6388 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6389 if test "${ac_cv_header_stdc+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_header_stdc=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 ac_cv_header_stdc=no
6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test $ac_cv_header_stdc = yes; then
6443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6454 $EGREP "memchr" >/dev/null 2>&1; then
6457 ac_cv_header_stdc=no
6463 if test $ac_cv_header_stdc = yes; then
6464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "free" >/dev/null 2>&1; then
6478 ac_cv_header_stdc=no
6484 if test $ac_cv_header_stdc = yes; then
6485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6486 if test "$cross_compiling" = yes; then
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6496 #if ((' ' & 0x0FF) == 0x020)
6497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6500 # define ISLOWER(c) \
6501 (('a' <= (c) && (c) <= 'i') \
6502 || ('j' <= (c) && (c) <= 'r') \
6503 || ('s' <= (c) && (c) <= 'z'))
6504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6512 for (i = 0; i < 256; i++)
6513 if (XOR (islower (i), ISLOWER (i))
6514 || toupper (i) != TOUPPER (i))
6519 rm -f conftest$ac_exeext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 echo "$as_me: program exited with status $ac_status" >&5
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_header_stdc=no
6539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6543 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6544 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6545 if test $ac_cv_header_stdc = yes; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define STDC_HEADERS 1
6553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6564 inttypes.h stdint.h unistd.h
6566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_header" >&5
6568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6580 #include <$ac_header>
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } &&
6591 { ac_try='test -z "$ac_c_werror_flag"
6592 || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 eval "$as_ac_Header=yes"
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 eval "$as_ac_Header=no"
6611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6616 cat >>confdefs.h <<_ACEOF
6617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6626 for ac_header in dlfcn.h
6628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6630 echo "$as_me:$LINENO: checking for $ac_header" >&5
6631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6638 # Is the header compilable?
6639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 #include <$ac_header>
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6654 grep -v '^ *+' conftest.er1 >conftest.err
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_header_compiler=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_header_compiler=no
6679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6681 echo "${ECHO_T}$ac_header_compiler" >&6
6683 # Is the header present?
6684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <$ac_header>
6694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null; then
6702 if test -s conftest.err; then
6703 ac_cpp_err=$ac_c_preproc_warn_flag
6704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711 if test -z "$ac_cpp_err"; then
6712 ac_header_preproc=yes
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6717 ac_header_preproc=no
6719 rm -f conftest.err conftest.$ac_ext
6720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6721 echo "${ECHO_T}$ac_header_preproc" >&6
6723 # So? What about this header?
6724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6730 ac_header_preproc=yes
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6747 ## --------------------------------------------- ##
6748 ## Report this to <http://www.openldap.org/its/> ##
6749 ## --------------------------------------------- ##
6752 sed "s/^/$as_me: WARNING: /" >&2
6755 echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 eval "$as_ac_Header=\$ac_header_preproc"
6762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6767 cat >>confdefs.h <<_ACEOF
6768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6776 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6778 # find the maximum length of command line arguments
6779 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6780 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6781 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 # On DJGPP, this test can blow up pretty badly due to problems in libc
6790 # (any single argument exceeding 2000 bytes causes a buffer overrun
6791 # during glob expansion). Even if it were fixed, the result of this
6792 # check would be larger than it should be.
6793 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6797 # Under GNU Hurd, this test is not required because there is
6798 # no limit to the length of command line arguments.
6799 # Libtool will interpret -1 as no limit whatsoever
6800 lt_cv_sys_max_cmd_len=-1;
6804 # On Win9x/ME, this test blows up -- it succeeds, but takes
6805 # about 5 minutes as the teststring grows exponentially.
6806 # Worse, since 9x/ME are not pre-emptively multitasking,
6807 # you end up with a "frozen" computer, even though with patience
6808 # the test eventually succeeds (with a max line length of 256k).
6809 # Instead, let's just punt: use the minimum linelength reported by
6810 # all of the supported platforms: 8192 (on NT/2K/XP).
6811 lt_cv_sys_max_cmd_len=8192;
6815 # On AmigaOS with pdksh, this test takes hours, literally.
6816 # So we just punt and use a minimum line length of 8192.
6817 lt_cv_sys_max_cmd_len=8192;
6820 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6821 # This has been around since 386BSD, at least. Likely further.
6822 if test -x /sbin/sysctl; then
6823 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6824 elif test -x /usr/sbin/sysctl; then
6825 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6827 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6829 # And add a safety zone
6830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6836 # nice to cause kernel panics so lets avoid the loop below.
6837 # First set a reasonable default.
6838 lt_cv_sys_max_cmd_len=16384
6840 if test -x /sbin/sysconfig; then
6841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6847 # If test is not a shell built-in, we'll probably end up computing a
6848 # maximum length that is only half of the actual maximum length, but
6850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6851 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6852 = "XX$teststring") >/dev/null 2>&1 &&
6853 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6854 lt_cv_sys_max_cmd_len=$new_result &&
6855 test $i != 17 # 1/2 MB should be enough
6858 teststring=$teststring$teststring
6861 # Add a significant safety factor because C++ compilers can tack on massive
6862 # amounts of additional arguments before passing them to the linker.
6863 # It appears as though 1/2 is a usable value.
6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6870 if test -n $lt_cv_sys_max_cmd_len ; then
6871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6872 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6874 echo "$as_me:$LINENO: result: none" >&5
6875 echo "${ECHO_T}none" >&6
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6883 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Transform an extracted symbol line into a proper C declaration
6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6903 # Define system-specific variables.
6908 cygwin* | mingw* | pw32*)
6909 symcode='[ABCDGISTW]'
6911 hpux*) # Its linker distinguishes data from code symbols
6912 if test "$host_cpu" = ia64; then
6913 symcode='[ABCDEGRST]'
6915 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6916 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6919 if test "$host_cpu" = ia64; then
6920 symcode='[ABCDGIRSTW]'
6921 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6922 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6926 symcode='[BCDEGRST]'
6929 symcode='[BCDEGQRST]'
6939 # Handle CRLF in mingw tool chain
6943 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6947 # If we're using GNU nm, then use its standard symbol codes.
6948 case `$NM -V 2>&1` in
6949 *GNU* | *'with BFD'*)
6950 symcode='[ABCDGIRSTW]' ;;
6953 # Try without a prefix undercore, then with it.
6954 for ac_symprfx in "" "_"; do
6956 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6957 symxfrm="\\1 $ac_symprfx\\2 \\2"
6959 # Write the raw and C identifiers.
6960 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6962 # Check to see that the pipe works correctly.
6966 cat > conftest.$ac_ext <<EOF
6971 void nm_test_func(){}
6975 int main(){nm_test_var='a';nm_test_func();return(0);}
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; then
6983 # Now try to grab the symbols.
6985 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6986 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && test -s "$nlist"; then
6990 # Try sorting and uniquifying the output.
6991 if sort "$nlist" | uniq > "$nlist"T; then
6992 mv -f "$nlist"T "$nlist"
6997 # Make sure that we snagged all the symbols we need.
6998 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6999 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7000 cat <<EOF > conftest.$ac_ext
7006 # Now generate the symbol file.
7007 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7009 cat <<EOF >> conftest.$ac_ext
7010 #if defined (__STDC__) && __STDC__
7011 # define lt_ptr_t void *
7013 # define lt_ptr_t char *
7017 /* The mapping between symbol names and symbols. */
7022 lt_preloaded_symbols[] =
7025 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7026 cat <<\EOF >> conftest.$ac_ext
7034 # Now try linking the two files.
7035 mv conftest.$ac_objext conftstm.$ac_objext
7036 lt_save_LIBS="$LIBS"
7037 lt_save_CFLAGS="$CFLAGS"
7038 LIBS="conftstm.$ac_objext"
7039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7047 LIBS="$lt_save_LIBS"
7048 CFLAGS="$lt_save_CFLAGS"
7050 echo "cannot find nm_test_func in $nlist" >&5
7053 echo "cannot find nm_test_var in $nlist" >&5
7056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7059 echo "$progname: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 rm -f conftest* conftst*
7064 # Do not use the global_symbol_pipe unless it works.
7065 if test "$pipe_works" = yes; then
7068 lt_cv_sys_global_symbol_pipe=
7074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7075 lt_cv_sys_global_symbol_to_cdecl=
7077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7078 echo "$as_me:$LINENO: result: failed" >&5
7079 echo "${ECHO_T}failed" >&6
7081 echo "$as_me:$LINENO: result: ok" >&5
7082 echo "${ECHO_T}ok" >&6
7085 echo "$as_me:$LINENO: checking for objdir" >&5
7086 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7087 if test "${lt_cv_objdir+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 rm -f .libs 2>/dev/null
7091 mkdir .libs 2>/dev/null
7092 if test -d .libs; then
7095 # MS-DOS does not allow filenames that begin with a dot.
7098 rmdir .libs 2>/dev/null
7100 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7101 echo "${ECHO_T}$lt_cv_objdir" >&6
7102 objdir=$lt_cv_objdir
7110 # AIX sometimes has problems with the GCC collect2 program. For some
7111 # reason, if we set the COLLECT_NAMES environment variable, the problems
7112 # vanish in a puff of smoke.
7113 if test "X${COLLECT_NAMES+set}" != Xset; then
7115 export COLLECT_NAMES
7120 # Sed substitution that helps us do robust quoting. It backslashifies
7121 # metacharacters that are still active within double-quoted strings.
7122 Xsed='sed -e 1s/^X//'
7123 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7125 # Same as above, but do not quote variable references.
7126 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7128 # Sed substitution to delay expansion of an escaped shell variable in a
7129 # double_quote_subst'ed string.
7130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7132 # Sed substitution to avoid accidental globbing in evaled expressions
7133 no_glob_subst='s/\*/\\\*/g'
7139 default_ofile=libtool
7140 can_build_shared=yes
7142 # All known linkers require a `.a' archive for static linking (except MSVC,
7143 # which needs '.lib').
7145 ltmain="$ac_aux_dir/ltmain.sh"
7146 ofile="$default_ofile"
7147 with_gnu_ld="$lt_cv_prog_gnu_ld"
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}ar; ac_word=$2
7152 echo "$as_me:$LINENO: checking for $ac_word" >&5
7153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7154 if test "${ac_cv_prog_AR+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 if test -n "$AR"; then
7158 ac_cv_prog_AR="$AR" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_AR="${ac_tool_prefix}ar"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 if test -n "$AR"; then
7178 echo "$as_me:$LINENO: result: $AR" >&5
7179 echo "${ECHO_T}$AR" >&6
7181 echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6
7186 if test -z "$ac_cv_prog_AR"; then
7188 # Extract the first word of "ar", so it can be a program name with args.
7189 set dummy ar; ac_word=$2
7190 echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 if test -n "$ac_ct_AR"; then
7196 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_ac_ct_AR="ar"
7206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7216 if test -n "$ac_ct_AR"; then
7217 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7218 echo "${ECHO_T}$ac_ct_AR" >&6
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7232 echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234 if test "${ac_cv_prog_RANLIB+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 if test -n "$RANLIB"; then
7238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 RANLIB=$ac_cv_prog_RANLIB
7257 if test -n "$RANLIB"; then
7258 echo "$as_me:$LINENO: result: $RANLIB" >&5
7259 echo "${ECHO_T}$RANLIB" >&6
7261 echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7266 if test -z "$ac_cv_prog_RANLIB"; then
7267 ac_ct_RANLIB=$RANLIB
7268 # Extract the first word of "ranlib", so it can be a program name with args.
7269 set dummy ranlib; ac_word=$2
7270 echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7272 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 if test -n "$ac_ct_RANLIB"; then
7276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_RANLIB="ranlib"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7295 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7296 if test -n "$ac_ct_RANLIB"; then
7297 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7298 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7300 echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7304 RANLIB=$ac_ct_RANLIB
7306 RANLIB="$ac_cv_prog_RANLIB"
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}strip; ac_word=$2
7312 echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7314 if test "${ac_cv_prog_STRIP+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 if test -n "$STRIP"; then
7318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 STRIP=$ac_cv_prog_STRIP
7337 if test -n "$STRIP"; then
7338 echo "$as_me:$LINENO: result: $STRIP" >&5
7339 echo "${ECHO_T}$STRIP" >&6
7341 echo "$as_me:$LINENO: result: no" >&5
7342 echo "${ECHO_T}no" >&6
7346 if test -z "$ac_cv_prog_STRIP"; then
7348 # Extract the first word of "strip", so it can be a program name with args.
7349 set dummy strip; ac_word=$2
7350 echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test -n "$ac_ct_STRIP"; then
7356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_ac_ct_STRIP="strip"
7366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7376 if test -n "$ac_ct_STRIP"; then
7377 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7378 echo "${ECHO_T}$ac_ct_STRIP" >&6
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7386 STRIP="$ac_cv_prog_STRIP"
7391 old_CFLAGS="$CFLAGS"
7393 # Set sane defaults for various variables
7394 test -z "$AR" && AR=ar
7395 test -z "$AR_FLAGS" && AR_FLAGS=cru
7396 test -z "$AS" && AS=as
7397 test -z "$CC" && CC=cc
7398 test -z "$LTCC" && LTCC=$CC
7399 test -z "$DLLTOOL" && DLLTOOL=dlltool
7400 test -z "$LD" && LD=ld
7401 test -z "$LN_S" && LN_S="ln -s"
7402 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7403 test -z "$NM" && NM=nm
7404 test -z "$SED" && SED=sed
7405 test -z "$OBJDUMP" && OBJDUMP=objdump
7406 test -z "$RANLIB" && RANLIB=:
7407 test -z "$STRIP" && STRIP=:
7408 test -z "$ac_objext" && ac_objext=o
7410 # Determine commands to create old-style static archives.
7411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7412 old_postinstall_cmds='chmod 644 $oldlib'
7413 old_postuninstall_cmds=
7415 if test -n "$RANLIB"; then
7418 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7421 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7424 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427 for cc_temp in $compiler""; do
7429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7438 # Only perform the check for file, if the check method requires it
7439 case $deplibs_check_method in
7441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7442 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7443 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452 lt_save_MAGIC_CMD="$MAGIC_CMD"
7453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7455 for ac_dir in $ac_dummy; do
7457 test -z "$ac_dir" && ac_dir=.
7458 if test -f $ac_dir/${ac_tool_prefix}file; then
7459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7460 if test -n "$file_magic_test_file"; then
7461 case $deplibs_check_method in
7463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7466 $EGREP "$file_magic_regex" > /dev/null; then
7471 *** Warning: the command libtool uses to detect shared libraries,
7472 *** $file_magic_cmd, produces output that libtool cannot recognize.
7473 *** The result is that libtool may fail to recognize shared libraries
7474 *** as such. This will affect the creation of libtool libraries that
7475 *** depend on shared libraries, but programs linked with such libtool
7476 *** libraries will work regardless of this problem. Nevertheless, you
7477 *** may want to report the problem to your system manager and/or to
7478 *** bug-libtool@gnu.org
7488 MAGIC_CMD="$lt_save_MAGIC_CMD"
7493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494 if test -n "$MAGIC_CMD"; then
7495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7496 echo "${ECHO_T}$MAGIC_CMD" >&6
7498 echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7502 if test -z "$lt_cv_path_MAGIC_CMD"; then
7503 if test -n "$ac_tool_prefix"; then
7504 echo "$as_me:$LINENO: checking for file" >&5
7505 echo $ECHO_N "checking for file... $ECHO_C" >&6
7506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7514 lt_save_MAGIC_CMD="$MAGIC_CMD"
7515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517 for ac_dir in $ac_dummy; do
7519 test -z "$ac_dir" && ac_dir=.
7520 if test -f $ac_dir/file; then
7521 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7522 if test -n "$file_magic_test_file"; then
7523 case $deplibs_check_method in
7525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528 $EGREP "$file_magic_regex" > /dev/null; then
7533 *** Warning: the command libtool uses to detect shared libraries,
7534 *** $file_magic_cmd, produces output that libtool cannot recognize.
7535 *** The result is that libtool may fail to recognize shared libraries
7536 *** as such. This will affect the creation of libtool libraries that
7537 *** depend on shared libraries, but programs linked with such libtool
7538 *** libraries will work regardless of this problem. Nevertheless, you
7539 *** may want to report the problem to your system manager and/or to
7540 *** bug-libtool@gnu.org
7550 MAGIC_CMD="$lt_save_MAGIC_CMD"
7555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556 if test -n "$MAGIC_CMD"; then
7557 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7558 echo "${ECHO_T}$MAGIC_CMD" >&6
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7574 enable_win32_dll=yes
7576 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7577 if test "${enable_libtool_lock+set}" = set; then
7578 enableval="$enable_libtool_lock"
7581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584 # Check whether --with-pic or --without-pic was given.
7585 if test "${with_pic+set}" = set; then
7591 test -z "$pic_mode" && pic_mode=default
7593 # Use C for the default configuration in the libtool script
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603 # Source file extension for C test sources.
7606 # Object file extension for compiled C test sources.
7610 # Code to be used in simple compile tests
7611 lt_simple_compile_test_code="int some_variable = 0;\n"
7613 # Code to be used in simple link tests
7614 lt_simple_link_test_code='int main(){return(0);}\n'
7617 # If no C compiler was specified, use CC.
7620 # Allow CC to be a program name with arguments.
7624 # save warnings/boilerplate of simple test code
7625 ac_outfile=conftest.$ac_objext
7626 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7628 _lt_compiler_boilerplate=`cat conftest.err`
7631 ac_outfile=conftest.$ac_objext
7632 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7634 _lt_linker_boilerplate=`cat conftest.err`
7639 # Check for any special shared library compilation flags.
7642 if test "$GCC" = no; then
7645 lt_prog_cc_shlib='-belf'
7649 if test -n "$lt_prog_cc_shlib"; then
7650 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7651 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7652 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7654 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7655 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7656 lt_cv_prog_cc_can_build_shared=no
7662 # Check to make sure the static flag actually works.
7664 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7665 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7666 if test "${lt_prog_compiler_static_works+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 lt_prog_compiler_static_works=no
7670 save_LDFLAGS="$LDFLAGS"
7671 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7672 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7674 # The linker can only warn and ignore the option if not recognized
7675 # So say no if there are warnings
7676 if test -s conftest.err; then
7677 # Append any errors to the config.log.
7678 cat conftest.err 1>&5
7679 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7680 $SED '/^$/d' conftest.err >conftest.er2
7681 if diff conftest.exp conftest.er2 >/dev/null; then
7682 lt_prog_compiler_static_works=yes
7685 lt_prog_compiler_static_works=yes
7689 LDFLAGS="$save_LDFLAGS"
7692 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7693 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7695 if test x"$lt_prog_compiler_static_works" = xyes; then
7698 lt_prog_compiler_static=
7704 lt_prog_compiler_no_builtin_flag=
7706 if test "$GCC" = yes; then
7707 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7710 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7711 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 lt_cv_prog_compiler_rtti_exceptions=no
7716 ac_outfile=conftest.$ac_objext
7717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7718 lt_compiler_flag="-fno-rtti -fno-exceptions"
7719 # Insert the option either (1) after the last *FLAGS variable, or
7720 # (2) before a word containing "conftest.", or (3) at the end.
7721 # Note that $ac_compile itself does not contain backslashes and begins
7722 # with a dollar sign (not a hyphen), so the echo should work correctly.
7723 # The option is referenced via a variable to avoid confusing sed.
7724 lt_compile=`echo "$ac_compile" | $SED \
7725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7727 -e 's:$: $lt_compiler_flag:'`
7728 (eval echo "\"\$as_me:7728: $lt_compile\"" >&5)
7729 (eval "$lt_compile" 2>conftest.err)
7731 cat conftest.err >&5
7732 echo "$as_me:7732: \$? = $ac_status" >&5
7733 if (exit $ac_status) && test -s "$ac_outfile"; then
7734 # The compiler can only warn and ignore the option if not recognized
7735 # So say no if there are warnings other than the usual output.
7736 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7737 $SED '/^$/d' conftest.err >conftest.er2
7738 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7739 lt_cv_prog_compiler_rtti_exceptions=yes
7745 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7746 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7756 lt_prog_compiler_wl=
7757 lt_prog_compiler_pic=
7758 lt_prog_compiler_static=
7760 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7763 if test "$GCC" = yes; then
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_static='-static'
7769 # All AIX code is PIC.
7770 if test "$host_cpu" = ia64; then
7771 # AIX 5 now supports IA64 processor
7772 lt_prog_compiler_static='-Bstatic'
7777 # FIXME: we need at least 68020 code to build shared libraries, but
7778 # adding the `-m68020' flag to GCC prevents building anything better,
7780 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7783 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7784 # PIC is the default for these OSes.
7787 mingw* | pw32* | os2*)
7788 # This hack is so that the source file can tell whether it is being
7789 # built for inclusion in a dll (and should export symbols for example).
7790 lt_prog_compiler_pic='-DDLL_EXPORT'
7793 darwin* | rhapsody*)
7794 # PIC is the default on this platform
7795 # Common symbols not allowed in MH_DYLIB files
7796 lt_prog_compiler_pic='-fno-common'
7800 # Just because we use GCC doesn't mean we suddenly get shared libraries
7801 # on systems that don't support them.
7802 lt_prog_compiler_can_build_shared=no
7807 if test -d /usr/nec; then
7808 lt_prog_compiler_pic=-Kconform_pic
7813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7820 lt_prog_compiler_pic='-fPIC'
7826 lt_prog_compiler_pic='-fPIC'
7830 # PORTME Check for flag to pass linker flags through the system compiler.
7833 lt_prog_compiler_wl='-Wl,'
7834 if test "$host_cpu" = ia64; then
7835 # AIX 5 now supports IA64 processor
7836 lt_prog_compiler_static='-Bstatic'
7838 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7842 # PIC is the default on this platform
7843 # Common symbols not allowed in MH_DYLIB files
7844 case $cc_basename in
7846 lt_prog_compiler_pic='-qnocommon'
7847 lt_prog_compiler_wl='-Wl,'
7852 mingw* | pw32* | os2*)
7853 # This hack is so that the source file can tell whether it is being
7854 # built for inclusion in a dll (and should export symbols for example).
7855 lt_prog_compiler_pic='-DDLL_EXPORT'
7858 hpux9* | hpux10* | hpux11*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7867 lt_prog_compiler_pic='+Z'
7870 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7871 lt_prog_compiler_static='${wl}-a ${wl}archive'
7874 irix5* | irix6* | nonstopux*)
7875 lt_prog_compiler_wl='-Wl,'
7876 # PIC (with -KPIC) is the default.
7877 lt_prog_compiler_static='-non_shared'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-Bstatic'
7886 case $cc_basename in
7888 lt_prog_compiler_wl='-Wl,'
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-static'
7892 pgcc* | pgf77* | pgf90* | pgf95*)
7893 # Portland Group compilers (*not* the Pentium gcc compiler,
7894 # which looks to be a dead project)
7895 lt_prog_compiler_wl='-Wl,'
7896 lt_prog_compiler_pic='-fpic'
7897 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_wl='-Wl,'
7901 # All Alpha code is PIC.
7902 lt_prog_compiler_static='-non_shared'
7907 osf3* | osf4* | osf5*)
7908 lt_prog_compiler_wl='-Wl,'
7909 # All OSF/1 code is PIC.
7910 lt_prog_compiler_static='-non_shared'
7914 lt_prog_compiler_pic='-Kpic'
7915 lt_prog_compiler_static='-dn'
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7921 case $cc_basename in
7923 lt_prog_compiler_wl='-Qoption ld ';;
7925 lt_prog_compiler_wl='-Wl,';;
7930 lt_prog_compiler_wl='-Qoption ld '
7931 lt_prog_compiler_pic='-PIC'
7932 lt_prog_compiler_static='-Bstatic'
7935 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-KPIC'
7938 lt_prog_compiler_static='-Bstatic'
7942 if test -d /usr/nec ;then
7943 lt_prog_compiler_pic='-Kconform_pic'
7944 lt_prog_compiler_static='-Bstatic'
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_can_build_shared=no
7954 lt_prog_compiler_pic='-pic'
7955 lt_prog_compiler_static='-Bstatic'
7959 lt_prog_compiler_can_build_shared=no
7964 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7965 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7968 # Check to make sure the PIC flag actually works.
7970 if test -n "$lt_prog_compiler_pic"; then
7972 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7973 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7974 if test "${lt_prog_compiler_pic_works+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_prog_compiler_pic_works=no
7978 ac_outfile=conftest.$ac_objext
7979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7981 # Insert the option either (1) after the last *FLAGS variable, or
7982 # (2) before a word containing "conftest.", or (3) at the end.
7983 # Note that $ac_compile itself does not contain backslashes and begins
7984 # with a dollar sign (not a hyphen), so the echo should work correctly.
7985 # The option is referenced via a variable to avoid confusing sed.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>conftest.err)
7993 cat conftest.err >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s "$ac_outfile"; then
7996 # The compiler can only warn and ignore the option if not recognized
7997 # So say no if there are warnings other than the usual output.
7998 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7999 $SED '/^$/d' conftest.err >conftest.er2
8000 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8001 lt_prog_compiler_pic_works=yes
8007 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8008 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8010 if test x"$lt_prog_compiler_pic_works" = xyes; then
8011 case $lt_prog_compiler_pic in
8013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8016 lt_prog_compiler_pic=
8017 lt_prog_compiler_can_build_shared=no
8022 # For platforms which do not support PIC, -DPIC is meaningless:
8024 lt_prog_compiler_pic=
8027 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8031 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8033 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 lt_cv_prog_compiler_c_o=no
8037 $rm -r conftest 2>/dev/null
8041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="-o out/conftest2.$ac_objext"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 lt_compile=`echo "$ac_compile" | $SED \
8049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051 -e 's:$: $lt_compiler_flag:'`
8052 (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053 (eval "$lt_compile" 2>out/conftest.err)
8055 cat out/conftest.err >&5
8056 echo "$as_me:8056: \$? = $ac_status" >&5
8057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8062 $SED '/^$/d' out/conftest.err >out/conftest.er2
8063 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8064 lt_cv_prog_compiler_c_o=yes
8069 # SGI C++ compiler will create directory out/ii_files/ for
8070 # template instantiation
8071 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8072 $rm out/* && rmdir out
8078 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8082 hard_links="nottested"
8083 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8084 # do not overwrite the value of need_locks provided by the user
8085 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8091 ln conftest.a conftest.b 2>&5 || hard_links=no
8092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093 echo "$as_me:$LINENO: result: $hard_links" >&5
8094 echo "${ECHO_T}$hard_links" >&6
8095 if test "$hard_links" = no; then
8096 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8104 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8108 allow_undefined_flag=
8109 enable_shared_with_static_runtimes=no
8111 archive_expsym_cmds=
8112 old_archive_From_new_cmds=
8113 old_archive_from_expsyms_cmds=
8114 export_dynamic_flag_spec=
8115 whole_archive_flag_spec=
8116 thread_safe_flag_spec=
8117 hardcode_libdir_flag_spec=
8118 hardcode_libdir_flag_spec_ld=
8119 hardcode_libdir_separator=
8122 hardcode_shlibpath_var=unsupported
8123 link_all_deplibs=unknown
8124 hardcode_automatic=no
8127 always_export_symbols=no
8128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8129 # include_expsyms should be a list of space-separated symbols to be *always*
8130 # included in the symbol list
8132 # exclude_expsyms can be an extended regexp of symbols to exclude
8133 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8134 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8135 # as well as any symbol that contains `d'.
8136 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8137 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8138 # platforms (ab)use it in PIC code, but their linkers get confused if
8139 # the symbol is explicitly referenced. Since portable code cannot
8140 # rely on this symbol name, it's probably fine to never include it in
8141 # preloaded symbol tables.
8142 extract_expsyms_cmds=
8143 # Just being paranoid about ensuring that cc_basename is set.
8144 for cc_temp in $compiler""; do
8146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8155 cygwin* | mingw* | pw32*)
8156 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8157 # When not using gcc, we currently assume that we are using
8158 # Microsoft Visual C++.
8159 if test "$GCC" != yes; then
8169 if test "$with_gnu_ld" = yes; then
8170 # If archive_cmds runs LD, not CC, wlarc should be empty
8173 # Set some defaults for GNU ld with shared library support. These
8174 # are reset later if shared libraries are not supported. Putting them
8175 # here allows them to be overridden if necessary.
8176 runpath_var=LD_RUN_PATH
8177 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8178 export_dynamic_flag_spec='${wl}--export-dynamic'
8179 # ancient GNU ld didn't support --whole-archive et. al.
8180 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8181 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8183 whole_archive_flag_spec=
8185 supports_anon_versioning=no
8186 case `$LD -v 2>/dev/null` in
8187 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8190 *\ 2.11.*) ;; # other 2.11 versions
8191 *) supports_anon_versioning=yes ;;
8194 # See if GNU ld supports shared libraries.
8196 aix3* | aix4* | aix5*)
8197 # On AIX/PPC, the GNU linker is very broken
8198 if test "$host_cpu" != ia64; then
8202 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8203 *** to be unable to reliably create shared libraries on AIX.
8204 *** Therefore, libtool is disabling shared libraries support. If you
8205 *** really care for shared libraries, you may want to modify your PATH
8206 *** so that a non-GNU linker is found, and then restart.
8213 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)'
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_minus_L=yes
8217 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8218 # that the semantics of dynamic libraries on AmigaOS, at least up
8219 # to version 4, is to share data among multiple programs linked
8220 # with the same dynamic library. Since this doesn't match the
8221 # behavior of shared libraries on other platforms, we can't use
8227 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228 allow_undefined_flag=unsupported
8229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8230 # support --undefined. This deserves some investigation. FIXME
8231 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8237 cygwin* | mingw* | pw32*)
8238 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8239 # as there is no search path for DLLs.
8240 hardcode_libdir_flag_spec='-L$libdir'
8241 allow_undefined_flag=unsupported
8242 always_export_symbols=no
8243 enable_shared_with_static_runtimes=yes
8244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8246 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8248 # If the export-symbols file already is a .def file (1st line
8249 # is EXPORTS), use it as is; otherwise, prepend...
8250 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8251 cp $export_symbols $output_objdir/$soname.def;
8253 echo EXPORTS > $output_objdir/$soname.def;
8254 cat $export_symbols >> $output_objdir/$soname.def;
8256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265 case $cc_basename,$host_cpu in
8266 pgcc*) # Portland Group C compiler
8267 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8268 tmp_addflag=' $pic_flag'
8270 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8271 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8272 tmp_addflag=' $pic_flag -Mnomain' ;;
8273 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8274 tmp_addflag=' -i_dynamic' ;;
8275 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8276 tmp_addflag=' -i_dynamic -nofor_main' ;;
8277 ifc* | ifort*) # Intel Fortran compiler
8278 tmp_addflag=' -nofor_main' ;;
8280 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8282 if test $supports_anon_versioning = yes; then
8283 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8285 $echo "local: *; };" >> $output_objdir/$libname.ver~
8286 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309 *** create shared libraries on Solaris systems. Therefore, libtool
8310 *** is disabling shared libraries support. We urge you to upgrade GNU
8311 *** binutils to release 2.9.1 or newer. Another option is to modify
8312 *** your PATH or compiler configuration so that the native linker is
8313 *** used, and then restart.
8316 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_shlibpath_var=no
8332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8341 if test "$ld_shlibs" = no; then
8343 hardcode_libdir_flag_spec=
8344 export_dynamic_flag_spec=
8345 whole_archive_flag_spec=
8348 # PORTME fill in a description of your system's linker (not GNU ld)
8351 allow_undefined_flag=unsupported
8352 always_export_symbols=yes
8353 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'
8354 # Note: this linker hardcodes the directories in LIBPATH if there
8355 # are no directories specified by -L.
8356 hardcode_minus_L=yes
8357 if test "$GCC" = yes && test -z "$link_static_flag"; then
8358 # Neither direct hardcoding nor static linking is supported with a
8360 hardcode_direct=unsupported
8365 if test "$host_cpu" = ia64; then
8366 # On IA64, the linker does run time linking by default, so we don't
8367 # have to do anything special.
8368 aix_use_runtimelinking=no
8369 exp_sym_flag='-Bexport'
8372 # If we're using GNU nm, then we don't want the "-C" option.
8373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8375 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8377 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8379 aix_use_runtimelinking=no
8381 # Test if we are trying to use run time linking or normal
8382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8383 # need to do runtime linking.
8384 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8385 for ld_flag in $LDFLAGS; do
8386 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8387 aix_use_runtimelinking=yes
8393 exp_sym_flag='-bexport'
8394 no_entry_flag='-bnoentry'
8397 # When large executables or shared objects are built, AIX ld can
8398 # have problems creating the table of contents. If linking a library
8399 # or program results in "error TOC overflow" add -mminimal-toc to
8400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8405 hardcode_libdir_separator=':'
8406 link_all_deplibs=yes
8408 if test "$GCC" = yes; then
8409 case $host_os in aix4.[012]|aix4.[012].*)
8410 # We only want to do this on AIX 4.2 and lower, the check
8411 # below for broken collect2 doesn't work under 4.3+
8412 collect2name=`${CC} -print-prog-name=collect2`
8413 if test -f "$collect2name" && \
8414 strings "$collect2name" | grep resolve_lib_name >/dev/null
8416 # We have reworked collect2
8419 # We have old collect2
8420 hardcode_direct=unsupported
8421 # It fails to find uninstalled libraries when the uninstalled
8422 # path is not listed in the libpath. Setting hardcode_minus_L
8423 # to unsupported forces relinking
8424 hardcode_minus_L=yes
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_libdir_separator=
8429 shared_flag='-shared'
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag="$shared_flag "'${wl}-G'
8435 if test "$host_cpu" = ia64; then
8436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437 # chokes on -Wl,-G. The following line is correct:
8440 if test "$aix_use_runtimelinking" = yes; then
8441 shared_flag='${wl}-G'
8443 shared_flag='${wl}-bM:SRE'
8448 # It seems that -bexpall does not export symbols beginning with
8449 # underscore (_), so it is better to generate a list of symbols to export.
8450 always_export_symbols=yes
8451 if test "$aix_use_runtimelinking" = yes; then
8452 # Warning - without using the other runtime loading flags (-brtl),
8453 # -berok will link without error, but may produce a broken library.
8454 allow_undefined_flag='-berok'
8455 # Determine the default libpath from the value encoded in an empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try='test -s conftest$ac_exeext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8494 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8496 # Check for a 64-bit object if we didn't find anything.
8497 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8504 rm -f conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8509 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"
8511 if test "$host_cpu" = ia64; then
8512 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8513 allow_undefined_flag="-z nodefs"
8514 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8516 # Determine the default libpath from the value encoded in an empty executable.
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8532 rm -f conftest.$ac_objext conftest$ac_exeext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534 (eval $ac_link) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag"
8542 || test ! -s conftest.err'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; }; then
8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8557 # Check for a 64-bit object if we didn't find anything.
8558 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8570 # Warning - without using the other run time loading flags,
8571 # -berok will link without error, but may produce a broken library.
8572 no_undefined_flag=' ${wl}-bernotok'
8573 allow_undefined_flag=' ${wl}-berok'
8574 # -bexpall does not export symbols beginning with underscore (_)
8575 always_export_symbols=yes
8576 # Exported symbols can be pulled into shared objects from archives
8577 whole_archive_flag_spec=' '
8578 archive_cmds_need_lc=yes
8579 # This is similar to how AIX traditionally builds its shared libraries.
8580 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8586 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)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589 # see comment about different semantics on the GNU ld section
8594 export_dynamic_flag_spec=-rdynamic
8597 cygwin* | mingw* | pw32*)
8598 # When not using gcc, we currently assume that we are using
8599 # Microsoft Visual C++.
8600 # hardcode_libdir_flag_spec is actually meaningless, as there is
8601 # no search path for DLLs.
8602 hardcode_libdir_flag_spec=' '
8603 allow_undefined_flag=unsupported
8604 # Tell ltmain to make .lib files, not .a files.
8606 # Tell ltmain to make .dll files, not .so files.
8608 # FIXME: Setting linknames here is a bad hack.
8609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8610 # The linker will automatically build a .lib file if we build a DLL.
8611 old_archive_From_new_cmds='true'
8612 # FIXME: Should let the user specify the lib program.
8613 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8614 fix_srcfile_path='`cygpath -w "$srcfile"`'
8615 enable_shared_with_static_runtimes=yes
8618 darwin* | rhapsody*)
8620 rhapsody* | darwin1.[012])
8621 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8624 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8625 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8627 case ${MACOSX_DEPLOYMENT_TARGET} in
8629 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8632 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8638 archive_cmds_need_lc=no
8640 hardcode_automatic=yes
8641 hardcode_shlibpath_var=unsupported
8642 whole_archive_flag_spec=''
8643 link_all_deplibs=yes
8644 if test "$GCC" = yes ; then
8645 output_verbose_link_cmd='echo'
8646 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8647 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8648 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8649 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8650 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8652 case $cc_basename in
8654 output_verbose_link_cmd='echo'
8655 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8656 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8658 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8659 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec='-L$libdir'
8671 hardcode_shlibpath_var=no
8678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8679 # support. Future versions do this automatically, but an explicit c++rt0.o
8680 # does not break anything, and helps significantly (at the cost of a little
8683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8684 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_shlibpath_var=no
8689 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_minus_L=yes
8694 hardcode_shlibpath_var=no
8697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8698 freebsd* | kfreebsd*-gnu | dragonfly*)
8699 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8700 hardcode_libdir_flag_spec='-R$libdir'
8702 hardcode_shlibpath_var=no
8706 if test "$GCC" = yes; then
8707 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8709 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'
8711 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712 hardcode_libdir_separator=:
8715 # hardcode_minus_L: Not really in the search PATH,
8716 # but as the default location of the library.
8717 hardcode_minus_L=yes
8718 export_dynamic_flag_spec='${wl}-E'
8722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8741 if test "$with_gnu_ld" = no; then
8744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745 hardcode_libdir_flag_spec_ld='+b $libdir'
8746 hardcode_libdir_separator=:
8748 hardcode_shlibpath_var=no
8751 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_shlibpath_var=no
8755 # hardcode_minus_L: Not really in the search PATH,
8756 # but as the default location of the library.
8757 hardcode_minus_L=yes
8760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761 hardcode_libdir_separator=:
8763 export_dynamic_flag_spec='${wl}-E'
8765 # hardcode_minus_L: Not really in the search PATH,
8766 # but as the default location of the library.
8767 hardcode_minus_L=yes
8773 irix5* | irix6* | nonstopux*)
8774 if test "$GCC" = yes; then
8775 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'
8777 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'
8778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 hardcode_libdir_separator=:
8782 link_all_deplibs=yes
8786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8789 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8791 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_shlibpath_var=no
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800 hardcode_libdir_separator=:
8801 hardcode_shlibpath_var=no
8806 hardcode_shlibpath_var=no
8807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811 export_dynamic_flag_spec='${wl}-E'
8814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8816 hardcode_libdir_flag_spec='-R$libdir'
8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_minus_L=yes
8829 allow_undefined_flag=unsupported
8830 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'
8831 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8835 if test "$GCC" = yes; then
8836 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8837 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'
8839 allow_undefined_flag=' -expect_unresolved \*'
8840 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'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 hardcode_libdir_separator=:
8846 osf4* | osf5*) # as osf3* with the addition of -msym flag
8847 if test "$GCC" = yes; then
8848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8849 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'
8850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 allow_undefined_flag=' -expect_unresolved \*'
8853 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'
8854 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8855 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8857 # Both c and cxx compiler support -rpath directly
8858 hardcode_libdir_flag_spec='-rpath $libdir'
8860 hardcode_libdir_separator=:
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_shlibpath_var=no
8866 export_dynamic_flag_spec='${wl}-Bexport'
8867 runpath_var=LD_RUN_PATH
8868 hardcode_runpath_var=yes
8872 no_undefined_flag=' -z text'
8873 if test "$GCC" = yes; then
8875 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8880 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 hardcode_shlibpath_var=no
8887 solaris2.[0-5] | solaris2.[0-5].*) ;;
8889 # The compiler driver will combine linker options so we
8890 # cannot just pass the convience library names through
8891 # without $wl, iff we do not link with $LD.
8892 # Luckily, gcc supports the same syntax we need for Sun Studio.
8893 # Supported since Solaris 2.6 (maybe 2.5.1?)
8896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8898 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8901 link_all_deplibs=yes
8905 if test "x$host_vendor" = xsequent; then
8906 # Use $CC to link under sequent, because it throws in some extra .o
8907 # files that make .init and .fini sections work.
8908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8912 hardcode_libdir_flag_spec='-L$libdir'
8914 hardcode_minus_L=yes
8915 hardcode_shlibpath_var=no
8919 case $host_vendor in
8921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 hardcode_direct=yes # is this really true???
8925 ## LD is ld it makes a PLAMLIB
8926 ## CC just makes a GrossModule.
8927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928 reload_cmds='$CC -r -o $output$reload_objs'
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8936 runpath_var='LD_RUN_PATH'
8937 hardcode_shlibpath_var=no
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_shlibpath_var=no
8943 export_dynamic_flag_spec='-Bexport'
8947 if test -d /usr/nec; then
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_shlibpath_var=no
8950 runpath_var=LD_RUN_PATH
8951 hardcode_runpath_var=yes
8957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_shlibpath_var=no
8961 hardcode_runpath_var=yes
8962 runpath_var=LD_RUN_PATH
8965 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8966 no_undefined_flag='${wl}-z ${wl}text'
8967 if test "$GCC" = yes; then
8968 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8970 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 runpath_var='LD_RUN_PATH'
8973 hardcode_shlibpath_var=no
8977 no_undefined_flag=' -z text'
8978 # $CC -shared without GNU ld will not create a library from C++
8979 # object files and a static libstdc++, better avoid it by now
8980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8983 hardcode_libdir_flag_spec=
8984 hardcode_shlibpath_var=no
8985 runpath_var='LD_RUN_PATH'
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_shlibpath_var=no
9000 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9001 echo "${ECHO_T}$ld_shlibs" >&6
9002 test "$ld_shlibs" = no && can_build_shared=no
9004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9005 if test "$GCC" = yes; then
9006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9010 # Do we need to explicitly link libc?
9012 case "x$archive_cmds_need_lc" in
9014 # Assume -lc should be added
9015 archive_cmds_need_lc=yes
9017 if test "$enable_shared" = yes && test "$GCC" = yes; then
9018 case $archive_cmds in
9020 # FIXME: we may have to deal with multi-command sequences.
9023 # Test whether the compiler implicitly links with -lc since on some
9024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9025 # to ld, don't add -lc before -lgcc.
9026 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } 2>conftest.err; then
9038 libobjs=conftest.$ac_objext
9040 wl=$lt_prog_compiler_wl
9046 lt_save_allow_undefined_flag=$allow_undefined_flag
9047 allow_undefined_flag=
9048 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9049 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }
9054 archive_cmds_need_lc=no
9056 archive_cmds_need_lc=yes
9058 allow_undefined_flag=$lt_save_allow_undefined_flag
9060 cat conftest.err 1>&5
9063 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9064 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9071 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9072 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9074 libname_spec='lib$name'
9082 shlibpath_overrides_runpath=unknown
9084 dynamic_linker="$host_os ld.so"
9085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9086 if test "$GCC" = yes; then
9087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9088 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9089 # if the path contains ";" then we assume it to be the separator
9090 # otherwise default to the standard path separator (i.e. ":") - it is
9091 # assumed that no part of a normal pathname contains ";" but that should
9092 # okay in the real world where ";" in dirpaths is itself problematic.
9093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9098 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100 need_lib_prefix=unknown
9101 hardcode_into_libs=no
9103 # when you set need_version to no, make sure it does not cause -set_version
9104 # flags to be left without arguments
9105 need_version=unknown
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9111 shlibpath_var=LIBPATH
9113 # AIX 3 has no versioning support, so we append a major version to the name.
9114 soname_spec='${libname}${release}${shared_ext}$major'
9121 hardcode_into_libs=yes
9122 if test "$host_cpu" = ia64; then
9123 # AIX 5 supports IA64
9124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9125 shlibpath_var=LD_LIBRARY_PATH
9127 # With GCC up to 2.95.x, collect2 would create an import file
9128 # for dependence libraries. The import file would start with
9129 # the line `#! .'. This would cause the generated library to
9130 # depend on `.', always an invalid library. This was fixed in
9131 # development snapshots of GCC prior to 3.0.
9133 aix4 | aix4.[01] | aix4.[01].*)
9134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9136 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9144 # soname into executable. Probably we can add versioning support to
9145 # collect2, so additional links can be useful in future.
9146 if test "$aix_use_runtimelinking" = yes; then
9147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9148 # instead of lib<name>.a to let people know that these are not
9149 # typical AIX shared libraries.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 # We preserve .a as extension for shared libraries through AIX4.2
9153 # and later when we are not doing run time linking.
9154 library_names_spec='${libname}${release}.a $libname.a'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LIBPATH
9162 library_names_spec='$libname.ixlibrary $libname.a'
9163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9164 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'
9168 library_names_spec='${libname}${shared_ext}'
9169 dynamic_linker="$host_os ld.so"
9170 shlibpath_var=LIBRARY_PATH
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9182 # the default ld.so.conf also contains /usr/contrib/lib and
9183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9184 # libtool to hard-code these into programs
9187 cygwin* | mingw* | pw32*)
9188 version_type=windows
9193 case $GCC,$host_os in
9194 yes,cygwin* | yes,mingw* | yes,pw32*)
9195 library_names_spec='$libname.dll.a'
9196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9197 postinstall_cmds='base_file=`basename \${file}`~
9198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9199 dldir=$destdir/`dirname \$dlpath`~
9200 test -d \$dldir || mkdir -p \$dldir~
9201 $install_prog $dir/$dlname \$dldir/$dlname~
9202 chmod a+x \$dldir/$dlname'
9203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204 dlpath=$dir/\$dldll~
9206 shlibpath_overrides_runpath=yes
9210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215 # MinGW DLLs use traditional 'lib' prefix
9216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219 # It is most probably a Windows format PATH printed by
9220 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221 # path with ; separators, and with drive letters. We can handle the
9222 # drive letters (cygwin fileutils understands them), so leave them,
9223 # especially as we might pass files found there to a mingw objdump,
9224 # which wouldn't understand a cygwinified path. Ahh.
9225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9231 # pw32 DLLs use 'pw' prefix rather than 'lib'
9232 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241 dynamic_linker='Win32 ld.exe'
9242 # FIXME: first we should search . and the directory the executable is in
9246 darwin* | rhapsody*)
9247 dynamic_linker="$host_os dyld"
9251 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252 soname_spec='${libname}${release}${major}$shared_ext'
9253 shlibpath_overrides_runpath=yes
9254 shlibpath_var=DYLD_LIBRARY_PATH
9255 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9256 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9257 if test "$GCC" = yes; then
9258 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9260 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=no
9286 hardcode_into_libs=yes
9287 dynamic_linker='GNU ld.so'
9290 freebsd* | dragonfly*)
9291 # DragonFly does not have aout. When/if they implement a new
9292 # versioning mechanism, adjust this.
9293 if test -x /usr/bin/objformat; then
9294 objformat=`/usr/bin/objformat`
9297 freebsd[123]*) objformat=aout ;;
9301 version_type=freebsd-$objformat
9302 case $version_type in
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9313 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9318 freebsd3.[01]* | freebsdelf3.[01]*)
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9323 shlibpath_overrides_runpath=no
9324 hardcode_into_libs=yes
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 hardcode_into_libs=yes
9339 hpux9* | hpux10* | hpux11*)
9340 # Give a soname corresponding to the major version so that dld.sl refuses to
9341 # link against other versions.
9348 hardcode_into_libs=yes
9349 dynamic_linker="$host_os dld.so"
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 if test "X$HPUX_IA64_MODE" = X32; then
9355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9363 hardcode_into_libs=yes
9364 dynamic_linker="$host_os dld.sl"
9365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9374 dynamic_linker="$host_os dld.sl"
9375 shlibpath_var=SHLIB_PATH
9376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9381 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9382 postinstall_cmds='chmod 555 $lib'
9385 irix5* | irix6* | nonstopux*)
9387 nonstopux*) version_type=nonstopux ;;
9389 if test "$lt_cv_prog_gnu_ld" = yes; then
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9400 irix5* | nonstopux*)
9404 case $LD in # libtool.m4 will add one of these switches to LD
9405 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9406 libsuff= shlibsuff= libmagic=32-bit;;
9407 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9408 libsuff=32 shlibsuff=N32 libmagic=N32;;
9409 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9410 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9411 *) libsuff= shlibsuff= libmagic=never-match;;
9415 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9416 shlibpath_overrides_runpath=no
9417 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9418 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9419 hardcode_into_libs=yes
9422 # No shared lib support for Linux oldld, aout, or coff.
9423 linux*oldld* | linux*aout* | linux*coff*)
9427 # This must be Linux ELF.
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 # This implies no fast_install, which is unacceptable.
9438 # Some rework will be needed to allow for fast_install
9439 # before this can be enabled.
9440 hardcode_into_libs=yes
9442 # Append ld.so.conf contents to the search path
9443 if test -f /etc/ld.so.conf; then
9444 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9448 # We used to test for /lib/ld.so.1 and disable shared libraries on
9449 # powerpc, because MkLinux only supported shared libraries with the
9450 # GNU dynamic linker. Since this was broken with cross compilers,
9451 # most powerpc-linux boxes support dynamic linking these days and
9452 # people can always --disable-shared, the test was removed, and we
9453 # assume the GNU/Linux dynamic linker is in use.
9454 dynamic_linker='GNU/Linux ld.so'
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9466 dynamic_linker='GNU ld.so'
9473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9476 dynamic_linker='NetBSD (a.out) ld.so'
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 dynamic_linker='NetBSD ld.elf_so'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9484 hardcode_into_libs=yes
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=yes
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9510 *) need_version=no ;;
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 openbsd2.[89] | openbsd2.[89].*)
9518 shlibpath_overrides_runpath=no
9521 shlibpath_overrides_runpath=yes
9525 shlibpath_overrides_runpath=yes
9530 libname_spec='$name'
9533 library_names_spec='$libname${shared_ext} $libname.a'
9534 dynamic_linker='OS/2 ld.exe'
9535 shlibpath_var=LIBPATH
9538 osf3* | osf4* | osf5*)
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 shlibpath_var=LD_LIBRARY_PATH
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=yes
9564 hardcode_into_libs=yes
9565 # ldd complains unless libraries are executable
9566 postinstall_cmds='chmod +x $lib'
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=yes
9575 if test "$with_gnu_ld" = yes; then
9581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 case $host_vendor in
9588 shlibpath_overrides_runpath=no
9590 export_dynamic_flag_spec='${wl}-Blargedynsym'
9591 runpath_var=LD_RUN_PATH
9599 shlibpath_overrides_runpath=no
9600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9606 if test -d /usr/nec ;then
9608 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9609 soname_spec='$libname${shared_ext}.$major'
9610 shlibpath_var=LD_LIBRARY_PATH
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 soname_spec='${libname}${release}${shared_ext}$major'
9618 shlibpath_var=LD_LIBRARY_PATH
9625 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9626 echo "${ECHO_T}$dynamic_linker" >&6
9627 test "$dynamic_linker" = no && can_build_shared=no
9629 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9632 if test -n "$hardcode_libdir_flag_spec" || \
9633 test -n "$runpath_var" || \
9634 test "X$hardcode_automatic" = "Xyes" ; then
9636 # We can hardcode non-existant directories.
9637 if test "$hardcode_direct" != no &&
9638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9639 # have to relink, otherwise we might link with an installed library
9640 # when we should be linking with a yet-to-be-installed one
9641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9642 test "$hardcode_minus_L" != no; then
9643 # Linking always hardcodes the temporary library directory.
9644 hardcode_action=relink
9646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9647 hardcode_action=immediate
9650 # We cannot hardcode anything, or else we can only hardcode existing
9652 hardcode_action=unsupported
9654 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9655 echo "${ECHO_T}$hardcode_action" >&6
9657 if test "$hardcode_action" = relink; then
9658 # Fast installation is not supported
9659 enable_fast_install=no
9660 elif test "$shlibpath_overrides_runpath" = yes ||
9661 test "$enable_shared" = no; then
9662 # Fast installation is not necessary
9663 enable_fast_install=needless
9668 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9669 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9670 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9673 echo "$as_me:$LINENO: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 # FIXME - insert some real tests, host_os isn't really good enough
9679 if test -n "$STRIP" ; then
9680 striplib="$STRIP -x"
9681 echo "$as_me:$LINENO: result: yes" >&5
9682 echo "${ECHO_T}yes" >&6
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9689 echo "$as_me:$LINENO: result: no" >&5
9690 echo "${ECHO_T}no" >&6
9695 if test "x$enable_dlopen" != xyes; then
9696 enable_dlopen=unknown
9697 enable_dlopen_self=unknown
9698 enable_dlopen_self_static=unknown
9705 lt_cv_dlopen="load_add_on"
9707 lt_cv_dlopen_self=yes
9711 lt_cv_dlopen="LoadLibrary"
9716 lt_cv_dlopen="dlopen"
9721 # if libdl is installed we need to link against it
9722 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 ac_check_lib_save_LIBS=$LIBS
9729 cat >conftest.$ac_ext <<_ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1 >conftest.err
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_dl_dlopen=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_lib_dl_dlopen=no
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9784 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9785 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9786 if test $ac_cv_lib_dl_dlopen = yes; then
9787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9792 lt_cv_dlopen_self=yes
9799 echo "$as_me:$LINENO: checking for shl_load" >&5
9800 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9801 if test "${ac_cv_func_shl_load+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9804 cat >conftest.$ac_ext <<_ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9812 #define shl_load innocuous_shl_load
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char shl_load (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9820 # include <limits.h>
9822 # include <assert.h>
9827 /* 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. */
9835 /* The GNU C library defines this for functions which it implements
9836 to always fail with ENOSYS. Some functions are actually named
9837 something starting with __ and the normal name is an alias. */
9838 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9841 char (*f) () = shl_load;
9850 return f != shl_load;
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9857 (eval $ac_link) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1 >conftest.err
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_func_shl_load=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_func_shl_load=no
9884 rm -f conftest.err conftest.$ac_objext \
9885 conftest$ac_exeext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9889 if test $ac_cv_func_shl_load = yes; then
9890 lt_cv_dlopen="shl_load"
9892 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9893 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 ac_check_lib_save_LIBS=$LIBS
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9906 /* Override any gcc2 internal prototype to avoid an error. */
9910 /* We use char because int might match the return type of a gcc2
9911 builtin and then its argument prototype would still apply. */
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923 (eval $ac_link) 2>conftest.er1
9925 grep -v '^ *+' conftest.er1 >conftest.err
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_c_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_lib_dld_shl_load=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_lib_dld_shl_load=no
9950 rm -f conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9954 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9956 if test $ac_cv_lib_dld_shl_load = yes; then
9957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9959 echo "$as_me:$LINENO: checking for dlopen" >&5
9960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9961 if test "${ac_cv_func_dlopen+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972 #define dlopen innocuous_dlopen
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char dlopen (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9980 # include <limits.h>
9982 # include <assert.h>
9987 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9995 /* The GNU C library defines this for functions which it implements
9996 to always fail with ENOSYS. Some functions are actually named
9997 something starting with __ and the normal name is an alias. */
9998 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10001 char (*f) () = dlopen;
10010 return f != dlopen;
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017 (eval $ac_link) 2>conftest.er1
10019 grep -v '^ *+' conftest.er1 >conftest.err
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -z "$ac_c_werror_flag"
10025 || test ! -s conftest.err'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; } &&
10031 { ac_try='test -s conftest$ac_exeext'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10037 ac_cv_func_dlopen=yes
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 ac_cv_func_dlopen=no
10044 rm -f conftest.err conftest.$ac_objext \
10045 conftest$ac_exeext conftest.$ac_ext
10047 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10049 if test $ac_cv_func_dlopen = yes; then
10050 lt_cv_dlopen="dlopen"
10052 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10053 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10054 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 ac_check_lib_save_LIBS=$LIBS
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10066 /* Override any gcc2 internal prototype to avoid an error. */
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083 (eval $ac_link) 2>conftest.er1
10085 grep -v '^ *+' conftest.er1 >conftest.err
10087 cat conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -z "$ac_c_werror_flag"
10091 || test ! -s conftest.err'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; } &&
10097 { ac_try='test -s conftest$ac_exeext'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_lib_dl_dlopen=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_cv_lib_dl_dlopen=no
10110 rm -f conftest.err conftest.$ac_objext \
10111 conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10116 if test $ac_cv_lib_dl_dlopen = yes; then
10117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10119 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10120 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lsvld $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10133 /* Override any gcc2 internal prototype to avoid an error. */
10137 /* We use char because int might match the return type of a gcc2
10138 builtin and then its argument prototype would still apply. */
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 ac_cv_lib_svld_dlopen=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10175 ac_cv_lib_svld_dlopen=no
10177 rm -f conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10186 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10187 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10188 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_check_lib_save_LIBS=$LIBS
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10200 /* Override any gcc2 internal prototype to avoid an error. */
10204 /* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>conftest.er1
10219 grep -v '^ *+' conftest.er1 >conftest.err
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -z "$ac_c_werror_flag"
10225 || test ! -s conftest.err'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 ac_cv_lib_dld_dld_link=yes
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 ac_cv_lib_dld_dld_link=no
10244 rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10250 if test $ac_cv_lib_dld_dld_link = yes; then
10251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10272 if test "x$lt_cv_dlopen" != xno; then
10278 case $lt_cv_dlopen in
10280 save_CPPFLAGS="$CPPFLAGS"
10281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10283 save_LDFLAGS="$LDFLAGS"
10284 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10287 LIBS="$lt_cv_dlopen_libs $LIBS"
10289 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10290 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10291 if test "${lt_cv_dlopen_self+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 if test "$cross_compiling" = yes; then :
10295 lt_cv_dlopen_self=cross
10297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298 lt_status=$lt_dlunknown
10299 cat > conftest.$ac_ext <<EOF
10300 #line 10300 "configure"
10301 #include "confdefs.h"
10310 # define LT_DLGLOBAL RTLD_GLOBAL
10313 # define LT_DLGLOBAL DL_GLOBAL
10315 # define LT_DLGLOBAL 0
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320 find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10326 # define LT_DLLAZY_OR_NOW DL_LAZY
10329 # define LT_DLLAZY_OR_NOW RTLD_NOW
10332 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # define LT_DLLAZY_OR_NOW 0
10342 extern "C" void exit (int);
10345 void fnord() { int i=42;}
10348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10349 int status = $lt_dlunknown;
10353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10355 /* dlclose (self); */
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10366 (./conftest; exit; ) >&5 2>/dev/null
10368 case x$lt_status in
10369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10371 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10374 # compilation failed
10375 lt_cv_dlopen_self=no
10382 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10383 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10385 if test "x$lt_cv_dlopen_self" = xyes; then
10386 LDFLAGS="$LDFLAGS $link_static_flag"
10387 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10388 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10389 if test "${lt_cv_dlopen_self_static+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test "$cross_compiling" = yes; then :
10393 lt_cv_dlopen_self_static=cross
10395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10396 lt_status=$lt_dlunknown
10397 cat > conftest.$ac_ext <<EOF
10398 #line 10398 "configure"
10399 #include "confdefs.h"
10408 # define LT_DLGLOBAL RTLD_GLOBAL
10411 # define LT_DLGLOBAL DL_GLOBAL
10413 # define LT_DLGLOBAL 0
10417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10418 find out it does not work in some platform. */
10419 #ifndef LT_DLLAZY_OR_NOW
10421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10424 # define LT_DLLAZY_OR_NOW DL_LAZY
10427 # define LT_DLLAZY_OR_NOW RTLD_NOW
10430 # define LT_DLLAZY_OR_NOW DL_NOW
10432 # define LT_DLLAZY_OR_NOW 0
10440 extern "C" void exit (int);
10443 void fnord() { int i=42;}
10446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10447 int status = $lt_dlunknown;
10451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10453 /* dlclose (self); */
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10464 (./conftest; exit; ) >&5 2>/dev/null
10466 case x$lt_status in
10467 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10468 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10469 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10472 # compilation failed
10473 lt_cv_dlopen_self_static=no
10480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10481 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10484 CPPFLAGS="$save_CPPFLAGS"
10485 LDFLAGS="$save_LDFLAGS"
10490 case $lt_cv_dlopen_self in
10491 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10492 *) enable_dlopen_self=unknown ;;
10495 case $lt_cv_dlopen_self_static in
10496 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10497 *) enable_dlopen_self_static=unknown ;;
10502 # Report which librarie types wil actually be built
10503 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10504 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10505 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10506 echo "${ECHO_T}$can_build_shared" >&6
10508 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10509 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10510 test "$can_build_shared" = "no" && enable_shared=no
10512 # On AIX, shared libraries and static libraries use the same namespace, and
10513 # are all built from PIC.
10516 test "$enable_shared" = yes && enable_static=no
10517 if test -n "$RANLIB"; then
10518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10519 postinstall_cmds='$RANLIB $lib'
10524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10525 test "$enable_shared" = yes && enable_static=no
10529 echo "$as_me:$LINENO: result: $enable_shared" >&5
10530 echo "${ECHO_T}$enable_shared" >&6
10532 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10533 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10534 # Make sure either enable_shared or enable_static is yes.
10535 test "$enable_shared" = yes || enable_static=yes
10536 echo "$as_me:$LINENO: result: $enable_static" >&5
10537 echo "${ECHO_T}$enable_static" >&6
10539 # The else clause should only fire when bootstrapping the
10540 # libtool distribution, otherwise you forgot to ship ltmain.sh
10541 # with your package, and you will get complaints that there are
10542 # no rules to generate ltmain.sh.
10543 if test -f "$ltmain"; then
10544 # See if we are running on zsh, and set the options which allow our commands through
10545 # without removal of \ escapes.
10546 if test -n "${ZSH_VERSION+set}" ; then
10547 setopt NO_GLOB_SUBST
10549 # Now quote all the things that may contain metacharacters while being
10550 # careful not to overquote the AC_SUBSTed values. We take copies of the
10551 # variables and quote the copies for generation of the libtool script.
10552 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10554 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10555 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10556 deplibs_check_method reload_flag reload_cmds need_locks \
10557 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10558 lt_cv_sys_global_symbol_to_c_name_address \
10559 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10560 old_postinstall_cmds old_postuninstall_cmds \
10564 lt_prog_compiler_wl \
10565 lt_prog_compiler_pic \
10566 lt_prog_compiler_static \
10567 lt_prog_compiler_no_builtin_flag \
10568 export_dynamic_flag_spec \
10569 thread_safe_flag_spec \
10570 whole_archive_flag_spec \
10571 enable_shared_with_static_runtimes \
10573 old_archive_from_new_cmds \
10578 compiler_lib_search_path \
10580 archive_expsym_cmds \
10582 postuninstall_cmds \
10583 old_archive_from_expsyms_cmds \
10584 allow_undefined_flag \
10585 no_undefined_flag \
10586 export_symbols_cmds \
10587 hardcode_libdir_flag_spec \
10588 hardcode_libdir_flag_spec_ld \
10589 hardcode_libdir_separator \
10590 hardcode_automatic \
10592 module_expsym_cmds \
10593 lt_cv_prog_compiler_c_o \
10595 include_expsyms; do
10598 old_archive_cmds | \
10599 old_archive_from_new_cmds | \
10601 archive_expsym_cmds | \
10603 module_expsym_cmds | \
10604 old_archive_from_expsyms_cmds | \
10605 export_symbols_cmds | \
10606 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10607 postinstall_cmds | postuninstall_cmds | \
10608 old_postinstall_cmds | old_postuninstall_cmds | \
10609 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10610 # Double-quote double-evaled strings.
10611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10620 *'\$0 --fallback-echo"')
10621 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10625 cfgfile="${ofile}T"
10626 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10628 { echo "$as_me:$LINENO: creating $ofile" >&5
10629 echo "$as_me: creating $ofile" >&6;}
10631 cat <<__EOF__ >> "$cfgfile"
10634 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10635 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10638 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10639 # Free Software Foundation, Inc.
10641 # This file is part of GNU Libtool:
10642 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10644 # This program is free software; you can redistribute it and/or modify
10645 # it under the terms of the GNU General Public License as published by
10646 # the Free Software Foundation; either version 2 of the License, or
10647 # (at your option) any later version.
10649 # This program is distributed in the hope that it will be useful, but
10650 # WITHOUT ANY WARRANTY; without even the implied warranty of
10651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10652 # General Public License for more details.
10654 # You should have received a copy of the GNU General Public License
10655 # along with this program; if not, write to the Free Software
10656 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10658 # As a special exception to the GNU General Public License, if you
10659 # distribute this file as part of a program that contains a
10660 # configuration script generated by Autoconf, you may include it under
10661 # the same distribution terms that you use for the rest of that program.
10663 # A sed program that does not truncate output.
10666 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10667 Xsed="$SED -e 1s/^X//"
10669 # The HP-UX ksh and POSIX shell print the target directory to stdout
10670 # if CDPATH is set.
10671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10673 # The names of the tagged configurations supported by this script.
10676 # ### BEGIN LIBTOOL CONFIG
10678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10680 # Shell to use when invoking shell scripts.
10683 # Whether or not to build shared libraries.
10684 build_libtool_libs=$enable_shared
10686 # Whether or not to build static libraries.
10687 build_old_libs=$enable_static
10689 # Whether or not to add -lc for building shared libraries.
10690 build_libtool_need_lc=$archive_cmds_need_lc
10692 # Whether or not to disallow shared libs when runtime libs are static
10693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10695 # Whether or not to optimize for fast installation.
10696 fast_install=$enable_fast_install
10699 host_alias=$host_alias
10703 # The build system.
10704 build_alias=$build_alias
10708 # An echo program that does not interpret backslashes.
10713 AR_FLAGS=$lt_AR_FLAGS
10718 # A language-specific compiler.
10721 # Is the compiler the GNU C compiler?
10727 # The linker used to build libraries.
10730 # Whether we need hard or soft links.
10733 # A BSD-compatible nm program.
10736 # A symbol stripping program
10739 # Used to examine libraries when file_magic_cmd begins "file"
10740 MAGIC_CMD=$MAGIC_CMD
10742 # Used on cygwin: DLL creation program.
10745 # Used on cygwin: object dumper.
10748 # Used on cygwin: assembler.
10751 # The name of the directory that contains temporary libtool files.
10754 # How to create reloadable object files.
10755 reload_flag=$lt_reload_flag
10756 reload_cmds=$lt_reload_cmds
10758 # How to pass a linker flag through the compiler.
10759 wl=$lt_lt_prog_compiler_wl
10761 # Object file suffix (normally "o").
10762 objext="$ac_objext"
10764 # Old archive suffix (normally "a").
10767 # Shared library suffix (normally ".so").
10768 shrext_cmds='$shrext_cmds'
10770 # Executable file suffix (normally "").
10773 # Additional compiler flags for building library objects.
10774 pic_flag=$lt_lt_prog_compiler_pic
10777 # What is the maximum length of a command?
10778 max_cmd_len=$lt_cv_sys_max_cmd_len
10780 # Does compiler simultaneously support -c and -o options?
10781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10783 # Must we lock files when doing compilation?
10784 need_locks=$lt_need_locks
10786 # Do we need the lib prefix for modules?
10787 need_lib_prefix=$need_lib_prefix
10789 # Do we need a version for libraries?
10790 need_version=$need_version
10792 # Whether dlopen is supported.
10793 dlopen_support=$enable_dlopen
10795 # Whether dlopen of programs is supported.
10796 dlopen_self=$enable_dlopen_self
10798 # Whether dlopen of statically linked programs is supported.
10799 dlopen_self_static=$enable_dlopen_self_static
10801 # Compiler flag to prevent dynamic linking.
10802 link_static_flag=$lt_lt_prog_compiler_static
10804 # Compiler flag to turn off builtin functions.
10805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10807 # Compiler flag to allow reflexive dlopens.
10808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10810 # Compiler flag to generate shared objects directly from archives.
10811 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10813 # Compiler flag to generate thread-safe objects.
10814 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10816 # Library versioning type.
10817 version_type=$version_type
10819 # Format of library name prefix.
10820 libname_spec=$lt_libname_spec
10822 # List of archive names. First name is the real one, the rest are links.
10823 # The last name is the one that the linker finds with -lNAME.
10824 library_names_spec=$lt_library_names_spec
10826 # The coded name of the library, if different from the real name.
10827 soname_spec=$lt_soname_spec
10829 # Commands used to build and install an old-style archive.
10831 old_archive_cmds=$lt_old_archive_cmds
10832 old_postinstall_cmds=$lt_old_postinstall_cmds
10833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10835 # Create an old-style archive from a shared archive.
10836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10838 # Create a temporary old-style archive to link instead of a shared archive.
10839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10841 # Commands used to build and install a shared archive.
10842 archive_cmds=$lt_archive_cmds
10843 archive_expsym_cmds=$lt_archive_expsym_cmds
10844 postinstall_cmds=$lt_postinstall_cmds
10845 postuninstall_cmds=$lt_postuninstall_cmds
10847 # Commands used to build a loadable module (assumed same as above if empty)
10848 module_cmds=$lt_module_cmds
10849 module_expsym_cmds=$lt_module_expsym_cmds
10851 # Commands to strip libraries.
10852 old_striplib=$lt_old_striplib
10853 striplib=$lt_striplib
10855 # Dependencies to place before the objects being linked to create a
10857 predep_objects=$lt_predep_objects
10859 # Dependencies to place after the objects being linked to create a
10861 postdep_objects=$lt_postdep_objects
10863 # Dependencies to place before the objects being linked to create a
10865 predeps=$lt_predeps
10867 # Dependencies to place after the objects being linked to create a
10869 postdeps=$lt_postdeps
10871 # The library search path used internally by the compiler when linking
10872 # a shared library.
10873 compiler_lib_search_path=$lt_compiler_lib_search_path
10875 # Method to check whether dependent libraries are shared objects.
10876 deplibs_check_method=$lt_deplibs_check_method
10878 # Command to use when deplibs_check_method == file_magic.
10879 file_magic_cmd=$lt_file_magic_cmd
10881 # Flag that allows shared libraries with undefined symbols to be built.
10882 allow_undefined_flag=$lt_allow_undefined_flag
10884 # Flag that forces no undefined symbols.
10885 no_undefined_flag=$lt_no_undefined_flag
10887 # Commands used to finish a libtool library installation in a directory.
10888 finish_cmds=$lt_finish_cmds
10890 # Same as above, but a single script fragment to be evaled but not shown.
10891 finish_eval=$lt_finish_eval
10893 # Take the output of nm and produce a listing of raw symbols and C names.
10894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10896 # Transform the output of nm in a proper C declaration
10897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10899 # Transform the output of nm in a C name address pair
10900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10902 # This is the shared library runtime path variable.
10903 runpath_var=$runpath_var
10905 # This is the shared library path variable.
10906 shlibpath_var=$shlibpath_var
10908 # Is shlibpath searched before the hard-coded library search path?
10909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10911 # How to hardcode a shared library path into an executable.
10912 hardcode_action=$hardcode_action
10914 # Whether we should hardcode library paths into libraries.
10915 hardcode_into_libs=$hardcode_into_libs
10917 # Flag to hardcode \$libdir into a binary during linking.
10918 # This must work even if \$libdir does not exist.
10919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10921 # If ld is used when linking, flag to hardcode \$libdir into
10922 # a binary during linking. This must work even if \$libdir does
10924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10926 # Whether we need a single -rpath flag with a separated argument.
10927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10930 # resulting binary.
10931 hardcode_direct=$hardcode_direct
10933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10934 # resulting binary.
10935 hardcode_minus_L=$hardcode_minus_L
10937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10938 # the resulting binary.
10939 hardcode_shlibpath_var=$hardcode_shlibpath_var
10941 # Set to yes if building a shared library automatically hardcodes DIR into the library
10942 # and all subsequent libraries and executables linked against it.
10943 hardcode_automatic=$hardcode_automatic
10945 # Variables whose values should be saved in libtool wrapper scripts and
10946 # restored at relink time.
10947 variables_saved_for_relink="$variables_saved_for_relink"
10949 # Whether libtool must link a program against all its dependency libraries.
10950 link_all_deplibs=$link_all_deplibs
10952 # Compile-time system search path for libraries
10953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10955 # Run-time system search path for libraries
10956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10958 # Fix the shell variable \$srcfile for the compiler.
10959 fix_srcfile_path="$fix_srcfile_path"
10961 # Set to yes if exported symbols are required.
10962 always_export_symbols=$always_export_symbols
10964 # The commands to list exported symbols.
10965 export_symbols_cmds=$lt_export_symbols_cmds
10967 # The commands to extract the exported symbol list from a shared archive.
10968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10970 # Symbols that should not be listed in the preloaded symbols.
10971 exclude_expsyms=$lt_exclude_expsyms
10973 # Symbols that must always be exported.
10974 include_expsyms=$lt_include_expsyms
10976 # ### END LIBTOOL CONFIG
10983 cat <<\EOF >> "$cfgfile"
10985 # AIX sometimes has problems with the GCC collect2 program. For some
10986 # reason, if we set the COLLECT_NAMES environment variable, the problems
10987 # vanish in a puff of smoke.
10988 if test "X${COLLECT_NAMES+set}" != Xset; then
10990 export COLLECT_NAMES
10996 # We use sed instead of cat because bash on DJGPP gets confused if
10997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10998 # text mode, it properly converts lines to CR/LF. This bash problem
10999 # is reportedly fixed, but why not run on old versions too?
11000 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11002 mv -f "$cfgfile" "$ofile" || \
11003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11007 # If there is no Makefile yet, we rely on a make rule to execute
11008 # `config.status --recheck' to rerun these tests and create the
11009 # libtool script then.
11010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11011 if test -f "$ltmain_in"; then
11012 test -f Makefile && make "$ltmain"
11018 ac_cpp='$CPP $CPPFLAGS'
11019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026 # Check whether --with-tags or --without-tags was given.
11027 if test "${with_tags+set}" = set; then
11028 withval="$with_tags"
11029 tagnames="$withval"
11032 if test -f "$ltmain" && test -n "$tagnames"; then
11033 if test ! -f "${ofile}"; then
11034 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11035 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11038 if test -z "$LTCC"; then
11039 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11040 if test -z "$LTCC"; then
11041 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11042 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11045 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11049 # Extract list of available tagged configurations in $ofile.
11050 # Note that this assumes the entire list is on one line.
11051 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11054 for tagname in $tagnames; do
11056 # Check whether tagname contains only valid characters
11057 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11059 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11060 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11061 { (exit 1); exit 1; }; }
11065 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11067 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11068 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11069 { (exit 1); exit 1; }; }
11072 # Update the list of available tags.
11073 if test -n "$tagname"; then
11074 echo appending configuration tag \"$tagname\" to $ofile
11078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11080 (test "X$CXX" != "Xg++"))) ; then
11088 if test -n "$F77" && test "X$F77" != "Xno"; then
11096 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11107 # Source file extension for RC test sources.
11110 # Object file extension for compiled RC test sources.
11114 # Code to be used in simple compile tests
11115 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11117 # Code to be used in simple link tests
11118 lt_simple_link_test_code="$lt_simple_compile_test_code"
11120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11122 # If no C compiler was specified, use CC.
11125 # Allow CC to be a program name with arguments.
11129 # save warnings/boilerplate of simple test code
11130 ac_outfile=conftest.$ac_objext
11131 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11132 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11133 _lt_compiler_boilerplate=`cat conftest.err`
11136 ac_outfile=conftest.$ac_objext
11137 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11138 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11139 _lt_linker_boilerplate=`cat conftest.err`
11143 # Allow CC to be a program name with arguments.
11148 for cc_temp in $compiler""; do
11150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11156 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11158 lt_cv_prog_compiler_c_o_RC=yes
11160 # The else clause should only fire when bootstrapping the
11161 # libtool distribution, otherwise you forgot to ship ltmain.sh
11162 # with your package, and you will get complaints that there are
11163 # no rules to generate ltmain.sh.
11164 if test -f "$ltmain"; then
11165 # See if we are running on zsh, and set the options which allow our commands through
11166 # without removal of \ escapes.
11167 if test -n "${ZSH_VERSION+set}" ; then
11168 setopt NO_GLOB_SUBST
11170 # Now quote all the things that may contain metacharacters while being
11171 # careful not to overquote the AC_SUBSTed values. We take copies of the
11172 # variables and quote the copies for generation of the libtool script.
11173 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11175 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11176 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11177 deplibs_check_method reload_flag reload_cmds need_locks \
11178 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11179 lt_cv_sys_global_symbol_to_c_name_address \
11180 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11181 old_postinstall_cmds old_postuninstall_cmds \
11185 lt_prog_compiler_wl_RC \
11186 lt_prog_compiler_pic_RC \
11187 lt_prog_compiler_static_RC \
11188 lt_prog_compiler_no_builtin_flag_RC \
11189 export_dynamic_flag_spec_RC \
11190 thread_safe_flag_spec_RC \
11191 whole_archive_flag_spec_RC \
11192 enable_shared_with_static_runtimes_RC \
11193 old_archive_cmds_RC \
11194 old_archive_from_new_cmds_RC \
11195 predep_objects_RC \
11196 postdep_objects_RC \
11199 compiler_lib_search_path_RC \
11201 archive_expsym_cmds_RC \
11202 postinstall_cmds_RC \
11203 postuninstall_cmds_RC \
11204 old_archive_from_expsyms_cmds_RC \
11205 allow_undefined_flag_RC \
11206 no_undefined_flag_RC \
11207 export_symbols_cmds_RC \
11208 hardcode_libdir_flag_spec_RC \
11209 hardcode_libdir_flag_spec_ld_RC \
11210 hardcode_libdir_separator_RC \
11211 hardcode_automatic_RC \
11213 module_expsym_cmds_RC \
11214 lt_cv_prog_compiler_c_o_RC \
11215 exclude_expsyms_RC \
11216 include_expsyms_RC; do
11219 old_archive_cmds_RC | \
11220 old_archive_from_new_cmds_RC | \
11221 archive_cmds_RC | \
11222 archive_expsym_cmds_RC | \
11224 module_expsym_cmds_RC | \
11225 old_archive_from_expsyms_cmds_RC | \
11226 export_symbols_cmds_RC | \
11227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11228 postinstall_cmds | postuninstall_cmds | \
11229 old_postinstall_cmds | old_postuninstall_cmds | \
11230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11231 # Double-quote double-evaled strings.
11232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11241 *'\$0 --fallback-echo"')
11242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11248 cat <<__EOF__ >> "$cfgfile"
11249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11253 # Shell to use when invoking shell scripts.
11256 # Whether or not to build shared libraries.
11257 build_libtool_libs=$enable_shared
11259 # Whether or not to build static libraries.
11260 build_old_libs=$enable_static
11262 # Whether or not to add -lc for building shared libraries.
11263 build_libtool_need_lc=$archive_cmds_need_lc_RC
11265 # Whether or not to disallow shared libs when runtime libs are static
11266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11268 # Whether or not to optimize for fast installation.
11269 fast_install=$enable_fast_install
11272 host_alias=$host_alias
11276 # The build system.
11277 build_alias=$build_alias
11281 # An echo program that does not interpret backslashes.
11286 AR_FLAGS=$lt_AR_FLAGS
11291 # A language-specific compiler.
11294 # Is the compiler the GNU C compiler?
11300 # The linker used to build libraries.
11303 # Whether we need hard or soft links.
11306 # A BSD-compatible nm program.
11309 # A symbol stripping program
11312 # Used to examine libraries when file_magic_cmd begins "file"
11313 MAGIC_CMD=$MAGIC_CMD
11315 # Used on cygwin: DLL creation program.
11318 # Used on cygwin: object dumper.
11321 # Used on cygwin: assembler.
11324 # The name of the directory that contains temporary libtool files.
11327 # How to create reloadable object files.
11328 reload_flag=$lt_reload_flag
11329 reload_cmds=$lt_reload_cmds
11331 # How to pass a linker flag through the compiler.
11332 wl=$lt_lt_prog_compiler_wl_RC
11334 # Object file suffix (normally "o").
11335 objext="$ac_objext"
11337 # Old archive suffix (normally "a").
11340 # Shared library suffix (normally ".so").
11341 shrext_cmds='$shrext_cmds'
11343 # Executable file suffix (normally "").
11346 # Additional compiler flags for building library objects.
11347 pic_flag=$lt_lt_prog_compiler_pic_RC
11350 # What is the maximum length of a command?
11351 max_cmd_len=$lt_cv_sys_max_cmd_len
11353 # Does compiler simultaneously support -c and -o options?
11354 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11356 # Must we lock files when doing compilation?
11357 need_locks=$lt_need_locks
11359 # Do we need the lib prefix for modules?
11360 need_lib_prefix=$need_lib_prefix
11362 # Do we need a version for libraries?
11363 need_version=$need_version
11365 # Whether dlopen is supported.
11366 dlopen_support=$enable_dlopen
11368 # Whether dlopen of programs is supported.
11369 dlopen_self=$enable_dlopen_self
11371 # Whether dlopen of statically linked programs is supported.
11372 dlopen_self_static=$enable_dlopen_self_static
11374 # Compiler flag to prevent dynamic linking.
11375 link_static_flag=$lt_lt_prog_compiler_static_RC
11377 # Compiler flag to turn off builtin functions.
11378 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11380 # Compiler flag to allow reflexive dlopens.
11381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11383 # Compiler flag to generate shared objects directly from archives.
11384 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11386 # Compiler flag to generate thread-safe objects.
11387 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11389 # Library versioning type.
11390 version_type=$version_type
11392 # Format of library name prefix.
11393 libname_spec=$lt_libname_spec
11395 # List of archive names. First name is the real one, the rest are links.
11396 # The last name is the one that the linker finds with -lNAME.
11397 library_names_spec=$lt_library_names_spec
11399 # The coded name of the library, if different from the real name.
11400 soname_spec=$lt_soname_spec
11402 # Commands used to build and install an old-style archive.
11404 old_archive_cmds=$lt_old_archive_cmds_RC
11405 old_postinstall_cmds=$lt_old_postinstall_cmds
11406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11408 # Create an old-style archive from a shared archive.
11409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11411 # Create a temporary old-style archive to link instead of a shared archive.
11412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11414 # Commands used to build and install a shared archive.
11415 archive_cmds=$lt_archive_cmds_RC
11416 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11417 postinstall_cmds=$lt_postinstall_cmds
11418 postuninstall_cmds=$lt_postuninstall_cmds
11420 # Commands used to build a loadable module (assumed same as above if empty)
11421 module_cmds=$lt_module_cmds_RC
11422 module_expsym_cmds=$lt_module_expsym_cmds_RC
11424 # Commands to strip libraries.
11425 old_striplib=$lt_old_striplib
11426 striplib=$lt_striplib
11428 # Dependencies to place before the objects being linked to create a
11430 predep_objects=$lt_predep_objects_RC
11432 # Dependencies to place after the objects being linked to create a
11434 postdep_objects=$lt_postdep_objects_RC
11436 # Dependencies to place before the objects being linked to create a
11438 predeps=$lt_predeps_RC
11440 # Dependencies to place after the objects being linked to create a
11442 postdeps=$lt_postdeps_RC
11444 # The library search path used internally by the compiler when linking
11445 # a shared library.
11446 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11448 # Method to check whether dependent libraries are shared objects.
11449 deplibs_check_method=$lt_deplibs_check_method
11451 # Command to use when deplibs_check_method == file_magic.
11452 file_magic_cmd=$lt_file_magic_cmd
11454 # Flag that allows shared libraries with undefined symbols to be built.
11455 allow_undefined_flag=$lt_allow_undefined_flag_RC
11457 # Flag that forces no undefined symbols.
11458 no_undefined_flag=$lt_no_undefined_flag_RC
11460 # Commands used to finish a libtool library installation in a directory.
11461 finish_cmds=$lt_finish_cmds
11463 # Same as above, but a single script fragment to be evaled but not shown.
11464 finish_eval=$lt_finish_eval
11466 # Take the output of nm and produce a listing of raw symbols and C names.
11467 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11469 # Transform the output of nm in a proper C declaration
11470 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11472 # Transform the output of nm in a C name address pair
11473 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11475 # This is the shared library runtime path variable.
11476 runpath_var=$runpath_var
11478 # This is the shared library path variable.
11479 shlibpath_var=$shlibpath_var
11481 # Is shlibpath searched before the hard-coded library search path?
11482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11484 # How to hardcode a shared library path into an executable.
11485 hardcode_action=$hardcode_action_RC
11487 # Whether we should hardcode library paths into libraries.
11488 hardcode_into_libs=$hardcode_into_libs
11490 # Flag to hardcode \$libdir into a binary during linking.
11491 # This must work even if \$libdir does not exist.
11492 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11494 # If ld is used when linking, flag to hardcode \$libdir into
11495 # a binary during linking. This must work even if \$libdir does
11497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11499 # Whether we need a single -rpath flag with a separated argument.
11500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11502 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11503 # resulting binary.
11504 hardcode_direct=$hardcode_direct_RC
11506 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11507 # resulting binary.
11508 hardcode_minus_L=$hardcode_minus_L_RC
11510 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11511 # the resulting binary.
11512 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11514 # Set to yes if building a shared library automatically hardcodes DIR into the library
11515 # and all subsequent libraries and executables linked against it.
11516 hardcode_automatic=$hardcode_automatic_RC
11518 # Variables whose values should be saved in libtool wrapper scripts and
11519 # restored at relink time.
11520 variables_saved_for_relink="$variables_saved_for_relink"
11522 # Whether libtool must link a program against all its dependency libraries.
11523 link_all_deplibs=$link_all_deplibs_RC
11525 # Compile-time system search path for libraries
11526 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11528 # Run-time system search path for libraries
11529 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11531 # Fix the shell variable \$srcfile for the compiler.
11532 fix_srcfile_path="$fix_srcfile_path_RC"
11534 # Set to yes if exported symbols are required.
11535 always_export_symbols=$always_export_symbols_RC
11537 # The commands to list exported symbols.
11538 export_symbols_cmds=$lt_export_symbols_cmds_RC
11540 # The commands to extract the exported symbol list from a shared archive.
11541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11543 # Symbols that should not be listed in the preloaded symbols.
11544 exclude_expsyms=$lt_exclude_expsyms_RC
11546 # Symbols that must always be exported.
11547 include_expsyms=$lt_include_expsyms_RC
11549 # ### END LIBTOOL TAG CONFIG: $tagname
11555 # If there is no Makefile yet, we rely on a make rule to execute
11556 # `config.status --recheck' to rerun these tests and create the
11557 # libtool script then.
11558 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11559 if test -f "$ltmain_in"; then
11560 test -f Makefile && make "$ltmain"
11566 ac_cpp='$CPP $CPPFLAGS'
11567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11576 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11577 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11578 { (exit 1); exit 1; }; }
11582 # Append the new tag name to the list of available tags.
11583 if test -n "$tagname" ; then
11584 available_tags="$available_tags $tagname"
11590 # Now substitute the updated list of available tags.
11591 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11592 mv "${ofile}T" "$ofile"
11596 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11597 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11598 { (exit 1); exit 1; }; }
11604 # This can be used to rebuild libtool when needed
11605 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11607 # Always use our own libtool.
11608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11610 # Prevent multiple expansion
11622 if test $ol_enable_perl != no ; then
11623 # Extract the first word of "perl", so it can be a program name with args.
11624 set dummy perl; ac_word=$2
11625 echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 if test "${ac_cv_path_PERLBIN+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11653 PERLBIN=$ac_cv_path_PERLBIN
11655 if test -n "$PERLBIN"; then
11656 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11657 echo "${ECHO_T}$PERLBIN" >&6
11659 echo "$as_me:$LINENO: result: no" >&5
11660 echo "${ECHO_T}no" >&6
11664 if test "no$PERLBIN" = "no" ; then
11665 if test $ol_enable_perl = yes ; then
11666 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11667 echo "$as_me: error: could not locate perl" >&2;}
11668 { (exit 1); exit 1; }; }
11672 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11673 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11675 if test x"$ol_enable_perl" = "xyes" ; then
11676 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11678 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11685 ac_cpp='$CPP $CPPFLAGS'
11686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11689 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11690 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11691 # On Suns, sometimes $CPP names a directory.
11692 if test -n "$CPP" && test -d "$CPP"; then
11695 if test -z "$CPP"; then
11696 if test "${ac_cv_prog_CPP+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 # Double quotes because CPP needs to be expanded
11700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11702 ac_preproc_ok=false
11703 for ac_c_preproc_warn_flag in '' yes
11705 # Use a header file that comes with gcc, so configuring glibc
11706 # with a fresh cross-compiler works.
11707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 # <limits.h> exists even on freestanding compilers.
11709 # On the NeXT, cc -E runs the code through the compiler's parser,
11710 # not just through cpp. "Syntax error" is here to catch this case.
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11718 # include <limits.h>
11720 # include <assert.h>
11724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } >/dev/null; then
11732 if test -s conftest.err; then
11733 ac_cpp_err=$ac_c_preproc_warn_flag
11734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741 if test -z "$ac_cpp_err"; then
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 # Broken: fails on valid input.
11750 rm -f conftest.err conftest.$ac_ext
11752 # OK, works on sane cases. Now check whether non-existent headers
11753 # can be detected and how.
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 #include <ac_nonexistent.h>
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11779 if test -z "$ac_cpp_err"; then
11780 # Broken: success on invalid input.
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 # Passes both tests.
11790 rm -f conftest.err conftest.$ac_ext
11793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11794 rm -f conftest.err conftest.$ac_ext
11795 if $ac_preproc_ok; then
11800 ac_cv_prog_CPP=$CPP
11803 CPP=$ac_cv_prog_CPP
11805 ac_cv_prog_CPP=$CPP
11807 echo "$as_me:$LINENO: result: $CPP" >&5
11808 echo "${ECHO_T}$CPP" >&6
11809 ac_preproc_ok=false
11810 for ac_c_preproc_warn_flag in '' yes
11812 # Use a header file that comes with gcc, so configuring glibc
11813 # with a fresh cross-compiler works.
11814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 # <limits.h> exists even on freestanding compilers.
11816 # On the NeXT, cc -E runs the code through the compiler's parser,
11817 # not just through cpp. "Syntax error" is here to catch this case.
11818 cat >conftest.$ac_ext <<_ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11825 # include <limits.h>
11827 # include <assert.h>
11831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } >/dev/null; then
11839 if test -s conftest.err; then
11840 ac_cpp_err=$ac_c_preproc_warn_flag
11841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848 if test -z "$ac_cpp_err"; then
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 # Broken: fails on valid input.
11857 rm -f conftest.err conftest.$ac_ext
11859 # OK, works on sane cases. Now check whether non-existent headers
11860 # can be detected and how.
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <ac_nonexistent.h>
11869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } >/dev/null; then
11877 if test -s conftest.err; then
11878 ac_cpp_err=$ac_c_preproc_warn_flag
11879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11886 if test -z "$ac_cpp_err"; then
11887 # Broken: success on invalid input.
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 # Passes both tests.
11897 rm -f conftest.err conftest.$ac_ext
11900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11901 rm -f conftest.err conftest.$ac_ext
11902 if $ac_preproc_ok; then
11905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11908 See \`config.log' for more details." >&2;}
11909 { (exit 1); exit 1; }; }
11913 ac_cpp='$CPP $CPPFLAGS'
11914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11920 *mingw32* ) ac_cv_mingw32=yes ;;
11921 *cygwin* ) ac_cv_cygwin=yes ;;
11927 cat >>confdefs.h <<_ACEOF
11928 #define EXEEXT "${EXEEXT}"
11932 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11933 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11934 if test "${ac_cv_lib_be_be_app+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 ac_check_lib_save_LIBS=$LIBS
11938 LIBS="-lbe -lroot -lnet $LIBS"
11939 cat >conftest.$ac_ext <<_ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 /* Override any gcc2 internal prototype to avoid an error. */
11950 /* We use char because int might match the return type of a gcc2
11951 builtin and then its argument prototype would still apply. */
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11963 (eval $ac_link) 2>conftest.er1
11965 grep -v '^ *+' conftest.er1 >conftest.err
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
11970 { ac_try='test -z "$ac_c_werror_flag"
11971 || test ! -s conftest.err'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; } &&
11977 { ac_try='test -s conftest$ac_exeext'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_be_be_app=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_be_be_app=no
11990 rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11995 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11996 if test $ac_cv_lib_be_be_app = yes; then
11997 LIBS="$LIBS -lbe -lroot -lnet"
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008 if test -n "$ac_tool_prefix"; then
12009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12011 echo "$as_me:$LINENO: checking for $ac_word" >&5
12012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12013 if test "${ac_cv_prog_CC+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 if test -n "$CC"; then
12017 ac_cv_prog_CC="$CC" # Let the user override the test.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 if test -n "$CC"; then
12037 echo "$as_me:$LINENO: result: $CC" >&5
12038 echo "${ECHO_T}$CC" >&6
12040 echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12045 if test -z "$ac_cv_prog_CC"; then
12047 # Extract the first word of "gcc", so it can be a program name with args.
12048 set dummy gcc; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 if test -n "$ac_ct_CC"; then
12055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064 ac_cv_prog_ac_ct_CC="gcc"
12065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12074 if test -n "$ac_ct_CC"; then
12075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12076 echo "${ECHO_T}$ac_ct_CC" >&6
12078 echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12084 CC="$ac_cv_prog_CC"
12087 if test -z "$CC"; then
12088 if test -n "$ac_tool_prefix"; then
12089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12090 set dummy ${ac_tool_prefix}cc; ac_word=$2
12091 echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093 if test "${ac_cv_prog_CC+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 if test -n "$CC"; then
12097 ac_cv_prog_CC="$CC" # Let the user override the test.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_CC="${ac_tool_prefix}cc"
12107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 if test -n "$CC"; then
12117 echo "$as_me:$LINENO: result: $CC" >&5
12118 echo "${ECHO_T}$CC" >&6
12120 echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12125 if test -z "$ac_cv_prog_CC"; then
12127 # Extract the first word of "cc", so it can be a program name with args.
12128 set dummy cc; ac_word=$2
12129 echo "$as_me:$LINENO: checking for $ac_word" >&5
12130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 if test -n "$ac_ct_CC"; then
12135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_ac_ct_CC="cc"
12145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12154 if test -n "$ac_ct_CC"; then
12155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12156 echo "${ECHO_T}$ac_ct_CC" >&6
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12164 CC="$ac_cv_prog_CC"
12168 if test -z "$CC"; then
12169 # Extract the first word of "cc", so it can be a program name with args.
12170 set dummy cc; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 if test -n "$CC"; then
12177 ac_cv_prog_CC="$CC" # Let the user override the test.
12179 ac_prog_rejected=no
12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181 for as_dir in $PATH
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12188 ac_prog_rejected=yes
12192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 if test $ac_prog_rejected = yes; then
12199 # We found a bogon in the path, so make sure we never use it.
12200 set dummy $ac_cv_prog_CC
12202 if test $# != 0; then
12203 # We chose a different compiler from the bogus one.
12204 # However, it has the same basename, so the bogon will be chosen
12205 # first if we set CC to just the basename; use the full file name.
12207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12213 if test -n "$CC"; then
12214 echo "$as_me:$LINENO: result: $CC" >&5
12215 echo "${ECHO_T}$CC" >&6
12217 echo "$as_me:$LINENO: result: no" >&5
12218 echo "${ECHO_T}no" >&6
12222 if test -z "$CC"; then
12223 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12228 echo "$as_me:$LINENO: checking for $ac_word" >&5
12229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230 if test "${ac_cv_prog_CC+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 if test -n "$CC"; then
12234 ac_cv_prog_CC="$CC" # Let the user override the test.
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 if test -n "$CC"; then
12254 echo "$as_me:$LINENO: result: $CC" >&5
12255 echo "${ECHO_T}$CC" >&6
12257 echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12261 test -n "$CC" && break
12264 if test -z "$CC"; then
12268 # Extract the first word of "$ac_prog", so it can be a program name with args.
12269 set dummy $ac_prog; ac_word=$2
12270 echo "$as_me:$LINENO: checking for $ac_word" >&5
12271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 if test -n "$ac_ct_CC"; then
12276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_ac_ct_CC="$ac_prog"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12295 if test -n "$ac_ct_CC"; then
12296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12297 echo "${ECHO_T}$ac_ct_CC" >&6
12299 echo "$as_me:$LINENO: result: no" >&5
12300 echo "${ECHO_T}no" >&6
12303 test -n "$ac_ct_CC" && break
12312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12313 See \`config.log' for more details." >&5
12314 echo "$as_me: error: no acceptable C compiler found in \$PATH
12315 See \`config.log' for more details." >&2;}
12316 { (exit 1); exit 1; }; }
12318 # Provide some information about the compiler.
12319 echo "$as_me:$LINENO:" \
12320 "checking for C compiler version" >&5
12321 ac_compiler=`set X $ac_compile; echo $2`
12322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12323 (eval $ac_compiler --version </dev/null >&5) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }
12327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12328 (eval $ac_compiler -v </dev/null >&5) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }
12332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12333 (eval $ac_compiler -V </dev/null >&5) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }
12338 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_compiler_gnu=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12394 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12395 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12396 GCC=`test $ac_compiler_gnu = yes && echo yes`
12397 ac_test_CFLAGS=${CFLAGS+set}
12398 ac_save_CFLAGS=$CFLAGS
12400 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12401 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12402 if test "${ac_cv_prog_cc_g+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12420 rm -f conftest.$ac_objext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12422 (eval $ac_compile) 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag"
12430 || test ! -s conftest.err'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_cv_prog_cc_g=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12452 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12453 if test "$ac_test_CFLAGS" = set; then
12454 CFLAGS=$ac_save_CFLAGS
12455 elif test $ac_cv_prog_cc_g = yes; then
12456 if test "$GCC" = yes; then
12462 if test "$GCC" = yes; then
12468 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12469 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12470 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 ac_cv_prog_cc_stdc=no
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 #include <stdarg.h>
12483 #include <sys/types.h>
12484 #include <sys/stat.h>
12485 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12486 struct buf { int x; };
12487 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12488 static char *e (p, i)
12494 static char *f (char * (*g) (char **, int), char **p, ...)
12499 s = g (p, va_arg (v,int));
12504 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12505 function prototypes and stuff, but not '\xHH' hex character constants.
12506 These don't provoke an error unfortunately, instead are silently treated
12507 as 'x'. The following induces an error, until -std1 is added to get
12508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12509 array size at least. It's necessary to write '\x00'==0 to get something
12510 that's true only with -std1. */
12511 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12513 int test (int i, double x);
12514 struct s1 {int (*f) (int a);};
12515 struct s2 {int (*f) (double a);};
12516 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12522 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12527 # Don't try gcc -ansi; that turns off useful extensions and
12528 # breaks some systems' header files.
12529 # AIX -qlanglvl=ansi
12530 # Ultrix and OSF/1 -std1
12531 # HP-UX 10.20 and later -Ae
12532 # HP-UX older versions -Aa -D_HPUX_SOURCE
12533 # SVR4 -Xc -D__EXTENSIONS__
12534 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12536 CC="$ac_save_CC $ac_arg"
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_prog_cc_stdc=$ac_arg
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12566 rm -f conftest.err conftest.$ac_objext
12568 rm -f conftest.$ac_ext conftest.$ac_objext
12573 case "x$ac_cv_prog_cc_stdc" in
12575 echo "$as_me:$LINENO: result: none needed" >&5
12576 echo "${ECHO_T}none needed" >&6 ;;
12578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12579 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12580 CC="$CC $ac_cv_prog_cc_stdc" ;;
12583 # Some people use a C++ compiler to compile C. Since we use `exit',
12584 # in C++ we need to declare it. In case someone uses the same compiler
12585 # for both compiling C and C++ we need to have the C++ compiler decide
12586 # the declaration of exit, since it's the most demanding environment.
12587 cat >conftest.$ac_ext <<_ACEOF
12588 #ifndef __cplusplus
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594 (eval $ac_compile) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest.$ac_objext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 for ac_declaration in \
12616 'extern "C" void std::exit (int) throw (); using std::exit;' \
12617 'extern "C" void std::exit (int); using std::exit;' \
12618 'extern "C" void exit (int) throw ();' \
12619 'extern "C" void exit (int);' \
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 #include <stdlib.h>
12638 rm -f conftest.$ac_objext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
12647 { ac_try='test -z "$ac_c_werror_flag"
12648 || test ! -s conftest.err'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12683 rm -f conftest.$ac_objext
12684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12687 grep -v '^ *+' conftest.er1 >conftest.err
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_c_werror_flag"
12693 || test ! -s conftest.err'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714 if test -n "$ac_declaration"; then
12715 echo '#ifdef __cplusplus' >>confdefs.h
12716 echo $ac_declaration >>confdefs.h
12717 echo '#endif' >>confdefs.h
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12727 ac_cpp='$CPP $CPPFLAGS'
12728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732 depcc="$CC" am_compiler_list=
12734 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12735 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12740 # We make a subdir and do the tests there. Otherwise we can end up
12741 # making bogus files that we don't know about and never remove. For
12742 # instance it was reported that on HP-UX the gcc test will end up
12743 # making a dummy file named `D' -- because `-MD' means `put the output
12746 # Copy depcomp to subdir because otherwise we won't find it if we're
12747 # using a relative directory.
12748 cp "$am_depcomp" conftest.dir
12750 # We will build objects and dependencies in a subdirectory because
12751 # it helps to detect inapplicable dependency modes. For instance
12752 # both Tru64's cc and ICC support -MD to output dependencies as a
12753 # side effect of compilation, but ICC will put the dependencies in
12754 # the current directory while Tru64 will put them in the object
12758 am_cv_CC_dependencies_compiler_type=none
12759 if test "$am_compiler_list" = ""; then
12760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12762 for depmode in $am_compiler_list; do
12763 # Setup a source with many dependencies, because some compilers
12764 # like to wrap large dependency lists on column 80 (with \), and
12765 # we should not choose a depcomp mode which is confused by this.
12767 # We need to recreate these files for each test, as the compiler may
12768 # overwrite some of them when testing with obscure command lines.
12769 # This happens at least with the AIX C compiler.
12771 for i in 1 2 3 4 5 6; do
12772 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12774 # Solaris 8's {/usr,}/bin/sh.
12775 touch sub/conftst$i.h
12777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12781 # after this tag, mechanisms are not by side-effect, so they'll
12782 # only be used when explicitly requested
12783 if test "x$enable_dependency_tracking" = xyes; then
12791 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12792 # mode. It turns out that the SunPro C++ compiler does not properly
12793 # handle `-M -o', and we need to detect this.
12794 if depmode=$depmode \
12795 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12797 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12798 >/dev/null 2>conftest.err &&
12799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12800 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12802 # icc doesn't choke on unknown options, it will just issue warnings
12803 # or remarks (even with -Werror). So we grep stderr for any message
12804 # that says an option was ignored or not supported.
12805 # When given -MP, icc 7.0 and 7.1 complain thusly:
12806 # icc: Command line warning: ignoring option '-M'; no argument required
12807 # The diagnosis changed in icc 8.0:
12808 # icc: Command line remark: option '-MP' not supported
12809 if (grep 'ignoring option' conftest.err ||
12810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12811 am_cv_CC_dependencies_compiler_type=$depmode
12818 rm -rf conftest.dir
12820 am_cv_CC_dependencies_compiler_type=none
12824 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12825 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12831 test "x$enable_dependency_tracking" != xno \
12832 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12833 am__fastdepCC_TRUE=
12834 am__fastdepCC_FALSE='#'
12836 am__fastdepCC_TRUE='#'
12837 am__fastdepCC_FALSE=
12841 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12842 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12843 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12844 { (exit 1); exit 1; }; }
12847 # test for make depend flag
12850 if test -z "${MKDEP}"; then
12851 OL_MKDEP="${CC-cc}"
12852 if test -z "${MKDEP_FLAGS}"; then
12853 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12854 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12855 if test "${ol_cv_mkdep+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 for flag in "-M" "-xM"; do
12861 cat > conftest.c <<EOF
12864 if { ac_try='$OL_MKDEP $flag conftest.c'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } \
12870 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12872 if test ! -f conftest."${ac_object}" ; then
12874 OL_MKDEP_FLAGS="$flag"
12882 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12883 echo "${ECHO_T}$ol_cv_mkdep" >&6
12886 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12890 OL_MKDEP="${MKDEP}"
12891 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12896 if test "${ol_cv_mkdep}" = no ; then
12897 # this will soon become an error
12898 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12899 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12902 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12903 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12904 if test "${ac_cv_lib_s_afopen+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 ac_check_lib_save_LIBS=$LIBS
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any gcc2 internal prototype to avoid an error. */
12920 /* We use char because int might match the return type of a gcc2
12921 builtin and then its argument prototype would still apply. */
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_lib_s_afopen=yes
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_cv_lib_s_afopen=no
12960 rm -f conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12962 LIBS=$ac_check_lib_save_LIBS
12964 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12965 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12966 if test $ac_cv_lib_s_afopen = yes; then
12970 cat >>confdefs.h <<\_ACEOF
12971 #define HAVE_AIX_SECURITY 1
12980 ac_cv_func_getopt=no
12982 cat >>confdefs.h <<\_ACEOF
12983 #define BOTH_STRINGS_H 1
12990 WITH_MODULES_ENABLED=no
12991 if test $ol_enable_modules != no ; then
12993 for ac_header in ltdl.h
12995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12997 echo "$as_me:$LINENO: checking for $ac_header" >&5
12998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005 # Is the header compilable?
13006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 #include <$ac_header>
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest.$ac_objext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_header_compiler=yes
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_header_compiler=no
13046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13048 echo "${ECHO_T}$ac_header_compiler" >&6
13050 # Is the header present?
13051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13059 #include <$ac_header>
13061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13064 grep -v '^ *+' conftest.er1 >conftest.err
13066 cat conftest.err >&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); } >/dev/null; then
13069 if test -s conftest.err; then
13070 ac_cpp_err=$ac_c_preproc_warn_flag
13071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13078 if test -z "$ac_cpp_err"; then
13079 ac_header_preproc=yes
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 ac_header_preproc=no
13086 rm -f conftest.err conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13088 echo "${ECHO_T}$ac_header_preproc" >&6
13090 # So? What about this header?
13091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13097 ac_header_preproc=yes
13100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13114 ## --------------------------------------------- ##
13115 ## Report this to <http://www.openldap.org/its/> ##
13116 ## --------------------------------------------- ##
13119 sed "s/^/$as_me: WARNING: /" >&2
13122 echo "$as_me:$LINENO: checking for $ac_header" >&5
13123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 eval "$as_ac_Header=\$ac_header_preproc"
13129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13143 if test $ac_cv_header_ltdl_h = no ; then
13144 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13145 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13146 { (exit 1); exit 1; }; }
13149 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13150 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13151 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 ac_check_lib_save_LIBS=$LIBS
13155 LIBS="-lltdl $LIBS"
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13163 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_ltdl_lt_dlinit=yes
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_ltdl_lt_dlinit=no
13207 rm -f conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13212 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13213 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13215 MODULES_LIBS=-lltdl
13217 cat >>confdefs.h <<\_ACEOF
13218 #define HAVE_LIBLTDL 1
13225 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13226 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13227 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13228 { (exit 1); exit 1; }; }
13230 ol_link_modules=yes
13231 WITH_MODULES_ENABLED=yes
13234 for i in $Backends; do
13235 eval "ol_tmp=\$ol_enable_$i"
13236 if test $ol_tmp = mod ; then
13237 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13238 echo "$as_me: WARNING: building static $i backend" >&2;}
13239 eval "ol_enable_$i=yes"
13242 for i in $Overlays; do
13243 eval "ol_tmp=\$ol_enable_$i"
13244 if test $ol_tmp = mod ; then
13245 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13246 echo "$as_me: WARNING: building static $i overlay" >&2;}
13247 eval "ol_enable_$i=yes"
13253 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13254 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13255 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13267 #include <__ASCII__/generate_error.h>
13271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } >/dev/null; then
13279 if test -s conftest.err; then
13280 ac_cpp_err=$ac_c_preproc_warn_flag
13281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13288 if test -z "$ac_cpp_err"; then
13289 ol_cv_cpp_ebcdic=yes
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ol_cv_cpp_ebcdic=no
13296 rm -f conftest.err conftest.$ac_ext
13298 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13299 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13300 if test $ol_cv_cpp_ebcdic = yes ; then
13302 cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_EBCDIC 1
13308 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13310 if test "${ol_cv_header_stdc+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 cat >conftest.$ac_ext <<_ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 #include <stdlib.h>
13320 #include <stdarg.h>
13321 #include <string.h>
13324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } >/dev/null; then
13332 if test -s conftest.err; then
13333 ac_cpp_err=$ac_c_preproc_warn_flag
13334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13341 if test -z "$ac_cpp_err"; then
13342 ol_cv_header_stdc=yes
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ol_cv_header_stdc=no
13349 rm -f conftest.err conftest.$ac_ext
13351 if test $ol_cv_header_stdc = yes; then
13352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <string.h>
13362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "memchr" >/dev/null 2>&1; then
13366 ol_cv_header_stdc=no
13372 if test $ol_cv_header_stdc = yes; then
13373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <stdlib.h>
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 $EGREP "free" >/dev/null 2>&1; then
13387 ol_cv_header_stdc=no
13393 if test $ol_cv_header_stdc = yes; then
13394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13395 if test "$cross_compiling" = yes; then
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13405 #ifndef HAVE_EBCDIC
13406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13409 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13410 || ('j' <= (c) && (c) <= 'r') \
13411 || ('s' <= (c) && (c) <= 'z'))
13412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13415 int main () { int i; for (i = 0; i < 256; i++)
13416 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13420 rm -f conftest$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13433 echo "$as_me: program exited with status $ac_status" >&5
13434 echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ( exit $ac_status )
13438 ol_cv_header_stdc=no
13440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13445 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13446 if test $ol_cv_header_stdc = yes; then
13447 cat >>confdefs.h <<\_ACEOF
13448 #define STDC_HEADERS 1
13452 ac_cv_header_stdc=disable
13455 if test $ol_cv_header_stdc != yes; then
13456 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13457 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13465 ac_header_dirent=no
13466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13467 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest.$ac_objext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 eval "$as_ac_Header=yes"
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 eval "$as_ac_Header=no"
13520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525 cat >>confdefs.h <<_ACEOF
13526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13529 ac_header_dirent=$ac_hdr; break
13533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13534 if test $ac_header_dirent = dirent.h; then
13535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13537 if test "${ac_cv_search_opendir+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_func_search_save_LIBS=$LIBS
13541 ac_cv_search_opendir=no
13542 cat >conftest.$ac_ext <<_ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13549 /* Override any gcc2 internal prototype to avoid an error. */
13553 /* We use char because int might match the return type of a gcc2
13554 builtin and then its argument prototype would still apply. */
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13566 (eval $ac_link) 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } &&
13573 { ac_try='test -z "$ac_c_werror_flag"
13574 || test ! -s conftest.err'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586 ac_cv_search_opendir="none required"
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13592 rm -f conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 if test "$ac_cv_search_opendir" = no; then
13595 for ac_lib in dir; do
13596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>conftest.er1
13623 grep -v '^ *+' conftest.er1 >conftest.err
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag"
13629 || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_search_opendir="-l$ac_lib"
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_func_search_save_LIBS
13654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13656 if test "$ac_cv_search_opendir" != no; then
13657 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13662 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13664 if test "${ac_cv_search_opendir+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_func_search_save_LIBS=$LIBS
13668 ac_cv_search_opendir=no
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any gcc2 internal prototype to avoid an error. */
13680 /* We use char because int might match the return type of a gcc2
13681 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_c_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_search_opendir="none required"
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13719 rm -f conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 if test "$ac_cv_search_opendir" = no; then
13722 for ac_lib in x; do
13723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any gcc2 internal prototype to avoid an error. */
13735 /* We use char because int might match the return type of a gcc2
13736 builtin and then its argument prototype would still apply. */
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13748 (eval $ac_link) 2>conftest.er1
13750 grep -v '^ *+' conftest.er1 >conftest.err
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag"
13756 || test ! -s conftest.err'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_search_opendir="-l$ac_lib"
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13779 LIBS=$ac_func_search_save_LIBS
13781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13783 if test "$ac_cv_search_opendir" != no; then
13784 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13790 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13791 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13792 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 #include <sys/types.h>
13802 #include <sys/wait.h>
13803 #ifndef WEXITSTATUS
13804 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13807 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13815 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_header_sys_wait_h=yes
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_cv_header_sys_wait_h=no
13849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13851 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13852 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13853 if test $ac_cv_header_sys_wait_h = yes; then
13855 cat >>confdefs.h <<\_ACEOF
13856 #define HAVE_SYS_WAIT_H 1
13861 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13862 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13863 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <termios.h>
13879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13880 $EGREP "yes" >/dev/null 2>&1; then
13881 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13883 ac_cv_sys_tiocgwinsz_in_termios_h=no
13888 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13889 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13891 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13892 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13893 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13894 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 #include <sys/types.h>
13904 #include <sys/ioctl.h>
13910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13911 $EGREP "yes" >/dev/null 2>&1; then
13912 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13914 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13919 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13920 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13922 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13924 cat >>confdefs.h <<\_ACEOF
13925 #define GWINSZ_IN_SYS_IOCTL 1
14027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14029 echo "$as_me:$LINENO: checking for $ac_header" >&5
14030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14037 # Is the header compilable?
14038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 #include <$ac_header>
14049 rm -f conftest.$ac_objext
14050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14051 (eval $ac_compile) 2>conftest.er1
14053 grep -v '^ *+' conftest.er1 >conftest.err
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -z "$ac_c_werror_flag"
14059 || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest.$ac_objext'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_header_compiler=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_compiler=no
14078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14080 echo "${ECHO_T}$ac_header_compiler" >&6
14082 # Is the header present?
14083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14085 cat >conftest.$ac_ext <<_ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h. */
14091 #include <$ac_header>
14093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } >/dev/null; then
14101 if test -s conftest.err; then
14102 ac_cpp_err=$ac_c_preproc_warn_flag
14103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14110 if test -z "$ac_cpp_err"; then
14111 ac_header_preproc=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14118 rm -f conftest.err conftest.$ac_ext
14119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14120 echo "${ECHO_T}$ac_header_preproc" >&6
14122 # So? What about this header?
14123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14129 ac_header_preproc=yes
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14146 ## --------------------------------------------- ##
14147 ## Report this to <http://www.openldap.org/its/> ##
14148 ## --------------------------------------------- ##
14151 sed "s/^/$as_me: WARNING: /" >&2
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 eval "$as_ac_Header=\$ac_header_preproc"
14161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14166 cat >>confdefs.h <<_ACEOF
14167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14176 for ac_header in resolv.h
14178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14179 echo "$as_me:$LINENO: checking for $ac_header" >&5
14180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14184 cat >conftest.$ac_ext <<_ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h. */
14190 $ac_includes_default
14191 #include <netinet/in.h>
14194 #include <$ac_header>
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest.$ac_objext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_Header=yes"
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.$ac_ext >&5
14223 eval "$as_ac_Header=no"
14225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14240 for ac_header in netinet/tcp.h
14242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14243 echo "$as_me:$LINENO: checking for $ac_header" >&5
14244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14255 #include <netinet/in.h>
14258 #include <$ac_header>
14260 rm -f conftest.$ac_objext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14262 (eval $ac_compile) 2>conftest.er1
14264 grep -v '^ *+' conftest.er1 >conftest.err
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_c_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest.$ac_objext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 eval "$as_ac_Header=yes"
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14287 eval "$as_ac_Header=no"
14289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14304 for ac_header in sys/ucred.h
14306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 $ac_includes_default
14319 #ifdef HAVE_SYS_PARAM_H
14320 #include <sys/param.h>
14324 #include <$ac_header>
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 eval "$as_ac_Header=yes"
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 eval "$as_ac_Header=no"
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14360 cat >>confdefs.h <<_ACEOF
14361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14372 for ac_func in sigaction sigset
14374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14375 echo "$as_me:$LINENO: checking for $ac_func" >&5
14376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14377 if eval "test \"\${$as_ac_var+set}\" = set"; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14388 #define $ac_func innocuous_$ac_func
14390 /* System header to define __stub macros and hopefully few prototypes,
14391 which can conflict with char $ac_func (); below.
14392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14393 <limits.h> exists even on freestanding compilers. */
14396 # include <limits.h>
14398 # include <assert.h>
14403 /* Override any gcc2 internal prototype to avoid an error. */
14408 /* We use char because int might match the return type of a gcc2
14409 builtin and then its argument prototype would still apply. */
14411 /* The GNU C library defines this for functions which it implements
14412 to always fail with ENOSYS. Some functions are actually named
14413 something starting with __ and the normal name is an alias. */
14414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14417 char (*f) () = $ac_func;
14426 return f != $ac_func;
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433 (eval $ac_link) 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag"
14441 || test ! -s conftest.err'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest$ac_exeext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 eval "$as_ac_var=yes"
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 eval "$as_ac_var=no"
14460 rm -f conftest.err conftest.$ac_objext \
14461 conftest$ac_exeext conftest.$ac_ext
14463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14465 if test `eval echo '${'$as_ac_var'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14474 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14476 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14477 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14478 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 ac_check_lib_save_LIBS=$LIBS
14483 cat >conftest.$ac_ext <<_ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14490 /* Override any gcc2 internal prototype to avoid an error. */
14494 /* We use char because int might match the return type of a gcc2
14495 builtin and then its argument prototype would still apply. */
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14507 (eval $ac_link) 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 ac_cv_lib_V3_sigset=yes
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_cv_lib_V3_sigset=no
14534 rm -f conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536 LIBS=$ac_check_lib_save_LIBS
14538 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14539 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14540 if test $ac_cv_lib_V3_sigset = yes; then
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_LIBV3 1
14551 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14552 echo "$as_me:$LINENO: checking for winsock" >&5
14553 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14554 if test "${ol_cv_winsock+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 for curlib in ws2_32 wsock32; do
14559 LIBS="$LIBS -l$curlib"
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <winsock.h>
14573 select(0,NULL,NULL,NULL,NULL);
14575 gethostname(NULL,0);
14581 rm -f conftest.$ac_objext conftest$ac_exeext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14583 (eval $ac_link) 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest$ac_exeext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14610 rm -f conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14613 if test $ol_cv_winsock = yes; then
14615 cat >>confdefs.h <<\_ACEOF
14616 #define HAVE_WINSOCK 1
14619 ac_cv_func_socket=yes
14620 ac_cv_func_select=yes
14621 ac_cv_func_closesocket=yes
14622 ac_cv_func_gethostname=yes
14623 if test $curlib = ws2_32; then
14624 ol_cv_winsock=winsock2
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_WINSOCK2 1
14636 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14637 echo "${ECHO_T}$ol_cv_winsock" >&6
14641 echo "$as_me:$LINENO: checking for socket" >&5
14642 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14643 if test "${ac_cv_func_socket+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14654 #define socket innocuous_socket
14656 /* System header to define __stub macros and hopefully few prototypes,
14657 which can conflict with char socket (); below.
14658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14659 <limits.h> exists even on freestanding compilers. */
14662 # include <limits.h>
14664 # include <assert.h>
14669 /* Override any gcc2 internal prototype to avoid an error. */
14674 /* We use char because int might match the return type of a gcc2
14675 builtin and then its argument prototype would still apply. */
14677 /* The GNU C library defines this for functions which it implements
14678 to always fail with ENOSYS. Some functions are actually named
14679 something starting with __ and the normal name is an alias. */
14680 #if defined (__stub_socket) || defined (__stub___socket)
14683 char (*f) () = socket;
14692 return f != socket;
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14699 (eval $ac_link) 2>conftest.er1
14701 grep -v '^ *+' conftest.er1 >conftest.err
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } &&
14706 { ac_try='test -z "$ac_c_werror_flag"
14707 || test ! -s conftest.err'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_func_socket=yes
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_func_socket=no
14726 rm -f conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14729 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14730 echo "${ECHO_T}$ac_cv_func_socket" >&6
14731 if test $ac_cv_func_socket = yes; then
14736 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14737 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14738 if test "${ac_cv_lib_socket_main+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-lsocket $LIBS"
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761 (eval $ac_link) 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 ac_cv_lib_socket_main=yes
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_lib_socket_main=no
14788 rm -f conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14793 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14794 if test $ac_cv_lib_socket_main = yes; then
14795 cat >>confdefs.h <<_ACEOF
14796 #define HAVE_LIBSOCKET 1
14799 LIBS="-lsocket $LIBS"
14804 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14805 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14806 if test "${ac_cv_lib_net_main+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS=$LIBS
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14827 rm -f conftest.$ac_objext conftest$ac_exeext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14829 (eval $ac_link) 2>conftest.er1
14831 grep -v '^ *+' conftest.er1 >conftest.err
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } &&
14836 { ac_try='test -z "$ac_c_werror_flag"
14837 || test ! -s conftest.err'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest$ac_exeext'
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then
14849 ac_cv_lib_net_main=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_net_main=no
14856 rm -f conftest.err conftest.$ac_objext \
14857 conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14861 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14862 if test $ac_cv_lib_net_main = yes; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_LIBNET 1
14872 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14873 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14874 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lnsl_s $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_nsl_s_main=yes
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ac_cv_lib_nsl_s_main=no
14924 rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14928 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14929 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14930 if test $ac_cv_lib_nsl_s_main = yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBNSL_S 1
14935 LIBS="-lnsl_s $LIBS"
14940 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14941 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14942 if test "${ac_cv_lib_nsl_main+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS=$LIBS
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_nsl_main=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_nsl_main=no
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14998 if test $ac_cv_lib_nsl_main = yes; then
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBNSL 1
15008 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15009 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_inet_socket+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS=$LIBS
15014 LIBS="-linet $LIBS"
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15022 /* Override any gcc2 internal prototype to avoid an error. */
15026 /* We use char because int might match the return type of a gcc2
15027 builtin and then its argument prototype would still apply. */
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest$ac_exeext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_lib_inet_socket=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_cv_lib_inet_socket=no
15066 rm -f conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS=$ac_check_lib_save_LIBS
15070 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15071 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15072 if test $ac_cv_lib_inet_socket = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_LIBINET 1
15077 LIBS="-linet $LIBS"
15082 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15083 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15084 if test "${ac_cv_lib_gen_main+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_check_lib_save_LIBS=$LIBS
15089 cat >conftest.$ac_ext <<_ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15107 (eval $ac_link) 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } &&
15114 { ac_try='test -z "$ac_c_werror_flag"
15115 || test ! -s conftest.err'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_lib_gen_main=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_gen_main=no
15134 rm -f conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_check_lib_save_LIBS
15138 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15139 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15140 if test $ac_cv_lib_gen_main = yes; then
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_LIBGEN 1
15153 echo "$as_me:$LINENO: checking for select" >&5
15154 echo $ECHO_N "checking for select... $ECHO_C" >&6
15155 if test "${ac_cv_func_select+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15161 cat confdefs.h >>conftest.$ac_ext
15162 cat >>conftest.$ac_ext <<_ACEOF
15163 /* end confdefs.h. */
15164 /* Define select to an innocuous variant, in case <limits.h> declares select.
15165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15166 #define select innocuous_select
15168 /* System header to define __stub macros and hopefully few prototypes,
15169 which can conflict with char select (); below.
15170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15171 <limits.h> exists even on freestanding compilers. */
15174 # include <limits.h>
15176 # include <assert.h>
15181 /* Override any gcc2 internal prototype to avoid an error. */
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15189 /* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192 #if defined (__stub_select) || defined (__stub___select)
15195 char (*f) () = select;
15204 return f != select;
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>conftest.er1
15213 grep -v '^ *+' conftest.er1 >conftest.err
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag"
15219 || test ! -s conftest.err'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_func_select=yes
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_cv_func_select=no
15238 rm -f conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15241 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15242 echo "${ECHO_T}$ac_cv_func_select" >&6
15243 if test $ac_cv_func_select = yes; then
15246 { { echo "$as_me:$LINENO: error: select() required." >&5
15247 echo "$as_me: error: select() required." >&2;}
15248 { (exit 1); exit 1; }; }
15252 if test "${ac_cv_header_winsock_h}" != yes; then
15255 for ac_header in sys/select.h sys/socket.h
15257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15267 # Is the header compilable?
15268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 $ac_includes_default
15277 #include <$ac_header>
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15283 grep -v '^ *+' conftest.er1 >conftest.err
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15301 ac_header_compiler=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_header_compiler=no
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15310 echo "${ECHO_T}$ac_header_compiler" >&6
15312 # Is the header present?
15313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 #include <$ac_header>
15323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } >/dev/null; then
15331 if test -s conftest.err; then
15332 ac_cpp_err=$ac_c_preproc_warn_flag
15333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 if test -z "$ac_cpp_err"; then
15341 ac_header_preproc=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_header_preproc=no
15348 rm -f conftest.err conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350 echo "${ECHO_T}$ac_header_preproc" >&6
15352 # So? What about this header?
15353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359 ac_header_preproc=yes
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15376 ## --------------------------------------------- ##
15377 ## Report this to <http://www.openldap.org/its/> ##
15378 ## --------------------------------------------- ##
15381 sed "s/^/$as_me: WARNING: /" >&2
15384 echo "$as_me:$LINENO: checking for $ac_header" >&5
15385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 eval "$as_ac_Header=\$ac_header_preproc"
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15405 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15406 if test "${ac_cv_func_select_args+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15410 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15411 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 $ac_includes_default
15419 #if HAVE_SYS_SELECT_H
15420 # include <sys/select.h>
15422 #if HAVE_SYS_SOCKET_H
15423 # include <sys/socket.h>
15429 extern int select ($ac_arg1,
15430 $ac_arg234, $ac_arg234, $ac_arg234,
15436 rm -f conftest.$ac_objext
15437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15438 (eval $ac_compile) 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -z "$ac_c_werror_flag"
15446 || test ! -s conftest.err'
15447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448 (eval $ac_try) 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); }; } &&
15452 { ac_try='test -s conftest.$ac_objext'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; }; then
15458 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15468 # Provide a safe default value.
15469 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15472 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15473 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15474 ac_save_IFS=$IFS; IFS=','
15475 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15479 cat >>confdefs.h <<_ACEOF
15480 #define SELECT_TYPE_ARG1 $1
15484 cat >>confdefs.h <<_ACEOF
15485 #define SELECT_TYPE_ARG234 ($2)
15489 cat >>confdefs.h <<_ACEOF
15490 #define SELECT_TYPE_ARG5 ($3)
15499 for ac_func in poll
15501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15502 echo "$as_me:$LINENO: checking for $ac_func" >&5
15503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15504 if eval "test \"\${$as_ac_var+set}\" = set"; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 cat >conftest.$ac_ext <<_ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15515 #define $ac_func innocuous_$ac_func
15517 /* System header to define __stub macros and hopefully few prototypes,
15518 which can conflict with char $ac_func (); below.
15519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520 <limits.h> exists even on freestanding compilers. */
15523 # include <limits.h>
15525 # include <assert.h>
15530 /* Override any gcc2 internal prototype to avoid an error. */
15535 /* We use char because int might match the return type of a gcc2
15536 builtin and then its argument prototype would still apply. */
15538 /* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 char (*f) () = $ac_func;
15553 return f != $ac_func;
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15560 (eval $ac_link) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -z "$ac_c_werror_flag"
15568 || test ! -s conftest.err'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 eval "$as_ac_var=yes"
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 eval "$as_ac_var=no"
15587 rm -f conftest.err conftest.$ac_objext \
15588 conftest$ac_exeext conftest.$ac_ext
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15592 if test `eval echo '${'$as_ac_var'}'` = yes; then
15593 cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15601 for ac_header in poll.h
15603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15605 echo "$as_me:$LINENO: checking for $ac_header" >&5
15606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15613 # Is the header compilable?
15614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #include <$ac_header>
15625 rm -f conftest.$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627 (eval $ac_compile) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest.$ac_objext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_header_compiler=no
15654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656 echo "${ECHO_T}$ac_header_compiler" >&6
15658 # Is the header present?
15659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <$ac_header>
15669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_header_preproc=no
15694 rm -f conftest.err conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696 echo "${ECHO_T}$ac_header_preproc" >&6
15698 # So? What about this header?
15699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15705 ac_header_preproc=yes
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15722 ## --------------------------------------------- ##
15723 ## Report this to <http://www.openldap.org/its/> ##
15724 ## --------------------------------------------- ##
15727 sed "s/^/$as_me: WARNING: /" >&2
15730 echo "$as_me:$LINENO: checking for $ac_header" >&5
15731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 eval "$as_ac_Header=\$ac_header_preproc"
15737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15742 cat >>confdefs.h <<_ACEOF
15743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15752 for ac_header in sys/epoll.h
15754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15756 echo "$as_me:$LINENO: checking for $ac_header" >&5
15757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15764 # Is the header compilable?
15765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15767 cat >conftest.$ac_ext <<_ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 $ac_includes_default
15774 #include <$ac_header>
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_header_compiler=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_compiler=no
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6
15809 # Is the header present?
15810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <$ac_header>
15820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } >/dev/null; then
15828 if test -s conftest.err; then
15829 ac_cpp_err=$ac_c_preproc_warn_flag
15830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15837 if test -z "$ac_cpp_err"; then
15838 ac_header_preproc=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_preproc=no
15845 rm -f conftest.err conftest.$ac_ext
15846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15847 echo "${ECHO_T}$ac_header_preproc" >&6
15849 # So? What about this header?
15850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15856 ac_header_preproc=yes
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15873 ## --------------------------------------------- ##
15874 ## Report this to <http://www.openldap.org/its/> ##
15875 ## --------------------------------------------- ##
15878 sed "s/^/$as_me: WARNING: /" >&2
15881 echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15884 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 eval "$as_ac_Header=\$ac_header_preproc"
15888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15902 echo "$as_me:$LINENO: checking for epoll system call" >&5
15903 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15904 if test "$cross_compiling" = yes; then
15905 echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 int main(int argc, char *argv)
15916 int epfd = epoll_create(256);
15917 exit (epfd == -1 ? 1 : 0);
15920 rm -f conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15934 cat >>confdefs.h <<\_ACEOF
15935 #define HAVE_EPOLL 1
15939 echo "$as_me: program exited with status $ac_status" >&5
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ( exit $ac_status )
15944 echo "$as_me:$LINENO: result: no" >&5
15945 echo "${ECHO_T}no" >&6
15947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15953 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15954 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 cat >conftest.$ac_ext <<_ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15966 #include <sys/types.h>
15969 #include <stdlib.h>
15974 char *c = (char *) *sys_errlist
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ol_cv_dcl_sys_errlist=yes
16002 ol_cv_have_sys_errlist=yes
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ol_cv_dcl_sys_errlist=no
16009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16012 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16014 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16015 if test $ol_cv_dcl_sys_errlist = no ; then
16017 cat >>confdefs.h <<\_ACEOF
16018 #define DECL_SYS_ERRLIST 1
16022 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16023 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16024 if test "${ol_cv_have_sys_errlist+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16038 char *c = (char *) *sys_errlist
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ol_cv_have_sys_errlist=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ol_cv_have_sys_errlist=no
16072 rm -f conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16076 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16078 if test $ol_cv_have_sys_errlist = yes ; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_SYS_ERRLIST 1
16087 for ac_func in strerror strerror_r
16089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16092 if eval "test \"\${$as_ac_var+set}\" = set"; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16111 # include <limits.h>
16113 # include <assert.h>
16118 /* Override any gcc2 internal prototype to avoid an error. */
16123 /* We use char because int might match the return type of a gcc2
16124 builtin and then its argument prototype would still apply. */
16126 /* The GNU C library defines this for functions which it implements
16127 to always fail with ENOSYS. Some functions are actually named
16128 something starting with __ and the normal name is an alias. */
16129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132 char (*f) () = $ac_func;
16141 return f != $ac_func;
16146 rm -f conftest.$ac_objext conftest$ac_exeext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16148 (eval $ac_link) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1 >conftest.err
16152 cat conftest.err >&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try='test -z "$ac_c_werror_flag"
16156 || test ! -s conftest.err'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; } &&
16162 { ac_try='test -s conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 eval "$as_ac_var=yes"
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 eval "$as_ac_var=no"
16175 rm -f conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16180 if test `eval echo '${'$as_ac_var'}'` = yes; then
16181 cat >>confdefs.h <<_ACEOF
16182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16188 ol_cv_func_strerror_r=no
16189 if test "${ac_cv_func_strerror_r}" = yes ; then
16190 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16191 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16192 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <string.h>
16204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16205 $EGREP "strerror_r" >/dev/null 2>&1; then
16206 ol_decl_strerror_r=yes
16208 ol_decl_strerror_r=no
16212 if test $ol_decl_strerror_r = yes ; then
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <string.h>
16223 /* from autoconf 2.59 */
16225 char x = *strerror_r (0, buf, sizeof buf);
16226 char *p = strerror_r (0, buf, sizeof buf);
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16254 ol_cv_nonposix_strerror_r=yes
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16259 ol_cv_nonposix_strerror_r=no
16261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263 if test "$cross_compiling" = yes; then
16264 ol_cv_nonposix_strerror=no
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16276 strerror_r( 1, buf, sizeof buf );
16277 exit( buf[0] == 0 );
16281 rm -f conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ol_cv_nonposix_strerror_r=yes
16294 echo "$as_me: program exited with status $ac_status" >&5
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ( exit $ac_status )
16299 ol_cv_nonposix_strerror=no
16301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16307 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16308 if test $ol_cv_nonposix_strerror_r = yes ; then
16310 cat >>confdefs.h <<\_ACEOF
16311 #define HAVE_NONPOSIX_STRERROR_R 1
16316 elif test "${ac_cv_func_strerror}" = no ; then
16317 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16318 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16319 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 cat >conftest.$ac_ext <<_ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16331 #include <sys/types.h>
16334 #include <stdlib.h>
16339 char *c = (char *) *sys_errlist
16344 rm -f conftest.$ac_objext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest.$ac_objext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 ol_cv_dcl_sys_errlist=yes
16367 ol_cv_have_sys_errlist=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ol_cv_dcl_sys_errlist=no
16374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16376 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16377 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16379 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16380 if test $ol_cv_dcl_sys_errlist = no ; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define DECL_SYS_ERRLIST 1
16387 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16388 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16389 if test "${ol_cv_have_sys_errlist+set}" = set; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16403 char *c = (char *) *sys_errlist
16408 rm -f conftest.$ac_objext conftest$ac_exeext
16409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16410 (eval $ac_link) 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag"
16418 || test ! -s conftest.err'
16419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16420 (eval $ac_try) 2>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 ol_cv_have_sys_errlist=yes
16432 echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ol_cv_have_sys_errlist=no
16437 rm -f conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16440 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16441 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16443 if test $ol_cv_have_sys_errlist = yes ; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_SYS_ERRLIST 1
16455 for ac_header in regex.h
16457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16459 echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16467 # Is the header compilable?
16468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 $ac_includes_default
16477 #include <$ac_header>
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_header_compiler=yes
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_header_compiler=no
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510 echo "${ECHO_T}$ac_header_compiler" >&6
16512 # Is the header present?
16513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 #include <$ac_header>
16523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
16532 ac_cpp_err=$ac_c_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16540 if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_header_preproc=no
16548 rm -f conftest.err conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550 echo "${ECHO_T}$ac_header_preproc" >&6
16552 # So? What about this header?
16553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16559 ac_header_preproc=yes
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16576 ## --------------------------------------------- ##
16577 ## Report this to <http://www.openldap.org/its/> ##
16578 ## --------------------------------------------- ##
16581 sed "s/^/$as_me: WARNING: /" >&2
16584 echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 eval "$as_ac_Header=\$ac_header_preproc"
16591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16604 if test "$ac_cv_header_regex_h" != yes ; then
16605 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16606 echo "$as_me: error: POSIX regex.h required." >&2;}
16607 { (exit 1); exit 1; }; }
16609 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16610 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16611 if test "${ac_cv_search_regfree+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 ac_func_search_save_LIBS=$LIBS
16615 ac_cv_search_regfree=no
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16623 /* Override any gcc2 internal prototype to avoid an error. */
16627 /* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_search_regfree="none required"
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16666 rm -f conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext conftest.$ac_ext
16668 if test "$ac_cv_search_regfree" = no; then
16669 for ac_lib in regex gnuregex; do
16670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 /* Override any gcc2 internal prototype to avoid an error. */
16682 /* We use char because int might match the return type of a gcc2
16683 builtin and then its argument prototype would still apply. */
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695 (eval $ac_link) 2>conftest.er1
16697 grep -v '^ *+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -z "$ac_c_werror_flag"
16703 || test ! -s conftest.err'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest$ac_exeext'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_search_regfree="-l$ac_lib"
16718 echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16722 rm -f conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16726 LIBS=$ac_func_search_save_LIBS
16728 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16729 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16730 if test "$ac_cv_search_regfree" != no; then
16731 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16734 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16735 echo "$as_me: error: POSIX regex required." >&2;}
16736 { (exit 1); exit 1; }; }
16741 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16742 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16743 if test "${ol_cv_c_posix_regex+set}" = set; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 if test "$cross_compiling" = yes; then
16748 ol_cv_c_posix_regex=cross
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16757 #include <sys/types.h>
16759 static char *pattern, *string;
16767 if(regcomp(&re, pattern, 0)) {
16771 string = "ALL MATCH";
16773 rc = regexec(&re, string, 0, (void*)0, 0);
16780 rm -f conftest$ac_exeext
16781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16782 (eval $ac_link) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ol_cv_c_posix_regex=yes
16793 echo "$as_me: program exited with status $ac_status" >&5
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ( exit $ac_status )
16798 ol_cv_c_posix_regex=no
16800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16803 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16804 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16806 if test "$ol_cv_c_posix_regex" = no ; then
16807 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16808 echo "$as_me: error: broken POSIX regex!" >&2;}
16809 { (exit 1); exit 1; }; }
16815 for ac_header in sys/uuid.h
16817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819 echo "$as_me:$LINENO: checking for $ac_header" >&5
16820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16827 # Is the header compilable?
16828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16830 cat >conftest.$ac_ext <<_ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 $ac_includes_default
16837 #include <$ac_header>
16839 rm -f conftest.$ac_objext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16841 (eval $ac_compile) 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag"
16849 || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest.$ac_objext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_header_compiler=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_header_compiler=no
16868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16870 echo "${ECHO_T}$ac_header_compiler" >&6
16872 # Is the header present?
16873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 #include <$ac_header>
16883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16886 grep -v '^ *+' conftest.er1 >conftest.err
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } >/dev/null; then
16891 if test -s conftest.err; then
16892 ac_cpp_err=$ac_c_preproc_warn_flag
16893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16900 if test -z "$ac_cpp_err"; then
16901 ac_header_preproc=yes
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_header_preproc=no
16908 rm -f conftest.err conftest.$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16910 echo "${ECHO_T}$ac_header_preproc" >&6
16912 # So? What about this header?
16913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16919 ac_header_preproc=yes
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16936 ## --------------------------------------------- ##
16937 ## Report this to <http://www.openldap.org/its/> ##
16938 ## --------------------------------------------- ##
16941 sed "s/^/$as_me: WARNING: /" >&2
16944 echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 eval "$as_ac_Header=\$ac_header_preproc"
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16956 cat >>confdefs.h <<_ACEOF
16957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16964 if test $ac_cv_header_sys_uuid_h = yes ; then
16966 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 ac_func_search_save_LIBS=$LIBS
16972 ac_cv_search_uuid_to_str=no
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16980 /* Override any gcc2 internal prototype to avoid an error. */
16984 /* We use char because int might match the return type of a gcc2
16985 builtin and then its argument prototype would still apply. */
16986 char uuid_to_str ();
16995 rm -f conftest.$ac_objext conftest$ac_exeext
16996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag"
17005 || test ! -s conftest.err'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_search_uuid_to_str="none required"
17019 echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17023 rm -f conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17025 if test "$ac_cv_search_uuid_to_str" = no; then
17026 for ac_lib in uuid; do
17027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17035 /* Override any gcc2 internal prototype to avoid an error. */
17039 /* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17041 char uuid_to_str ();
17050 rm -f conftest.$ac_objext conftest$ac_exeext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag"
17060 || test ! -s conftest.err'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17068 (eval $ac_try) 2>&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; }; then
17072 ac_cv_search_uuid_to_str="-l$ac_lib"
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17079 rm -f conftest.err conftest.$ac_objext \
17080 conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_func_search_save_LIBS
17085 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17086 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17087 if test "$ac_cv_search_uuid_to_str" != no; then
17088 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17096 if test have_uuid = yes ; then
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_UUID_TO_STR 1
17103 test "$ac_cv_search_uuid_to_str" = "none required" || \
17104 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17108 if test $have_uuid = no ; then
17109 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17110 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17112 LIBS="$LIBS -lrpcrt4"
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 int __stdcall UuidCreate(void *);
17121 int __stdcall UuidToStringA(void *,void **);
17128 UuidToStringA(0,0);
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136 (eval $ac_link) 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -z "$ac_c_werror_flag"
17144 || test ! -s conftest.err'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17163 rm -f conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17165 if test $need_rpcrt = yes; then
17166 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17169 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17170 echo "${ECHO_T}$need_rpcrt" >&6
17173 ol_cv_lib_resolver=no
17174 if test $ol_cv_lib_resolver = no ; then
17175 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17176 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17177 if test "${ol_cv_resolver_none+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 LIBS="$ol_RESOLVER_LIB $LIBS"
17185 cat >conftest.$ac_ext <<_ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 #ifdef HAVE_SYS_TYPES_H
17193 # include <sys/types.h>
17195 #include <netinet/in.h>
17196 #ifdef HAVE_ARPA_NAMESER_H
17197 # include <arpa/nameser.h>
17199 #ifdef HAVE_RESOLV_H
17200 # include <resolv.h>
17208 char *request = NULL;
17209 unsigned char reply[64*1024];
17210 unsigned char host[64*1024];
17214 /* Bind 8/9 interface */
17215 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17217 /* Bind 4 interface */
17221 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17225 /* Bind 8/9 interface */
17227 #elif defined(HFIXEDSZ)
17228 /* Bind 4 interface w/ HFIXEDSZ */
17231 /* Bind 4 interface w/o HFIXEDSZ */
17232 p += sizeof(HEADER);
17234 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242 (eval $ac_link) 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag"
17250 || test ! -s conftest.err'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; } &&
17256 { ac_try='test -s conftest$ac_exeext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 ol_cv_resolver_none=yes
17264 echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ol_cv_resolver_none=no
17269 rm -f conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17275 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17276 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17278 if test $ol_cv_resolver_none = yes ; then
17279 ol_cv_lib_resolver=yes
17283 if test $ol_cv_lib_resolver = no ; then
17284 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17285 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17286 if test "${ol_cv_resolver_resolv+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 ol_RESOLVER_LIB=-lresolv
17292 LIBS="$ol_RESOLVER_LIB $LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17301 #ifdef HAVE_SYS_TYPES_H
17302 # include <sys/types.h>
17304 #include <netinet/in.h>
17305 #ifdef HAVE_ARPA_NAMESER_H
17306 # include <arpa/nameser.h>
17308 #ifdef HAVE_RESOLV_H
17309 # include <resolv.h>
17317 char *request = NULL;
17318 unsigned char reply[64*1024];
17319 unsigned char host[64*1024];
17323 /* Bind 8/9 interface */
17324 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17326 /* Bind 4 interface */
17330 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17334 /* Bind 8/9 interface */
17336 #elif defined(HFIXEDSZ)
17337 /* Bind 4 interface w/ HFIXEDSZ */
17340 /* Bind 4 interface w/o HFIXEDSZ */
17341 p += sizeof(HEADER);
17343 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351 (eval $ac_link) 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag"
17359 || test ! -s conftest.err'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ol_cv_resolver_resolv=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ol_cv_resolver_resolv=no
17378 rm -f conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17384 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17385 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17387 if test $ol_cv_resolver_resolv = yes ; then
17388 ol_cv_lib_resolver=-lresolv
17392 if test $ol_cv_lib_resolver = no ; then
17393 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17394 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17395 if test "${ol_cv_resolver_bind+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 ol_RESOLVER_LIB=-lbind
17401 LIBS="$ol_RESOLVER_LIB $LIBS"
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17410 #ifdef HAVE_SYS_TYPES_H
17411 # include <sys/types.h>
17413 #include <netinet/in.h>
17414 #ifdef HAVE_ARPA_NAMESER_H
17415 # include <arpa/nameser.h>
17417 #ifdef HAVE_RESOLV_H
17418 # include <resolv.h>
17426 char *request = NULL;
17427 unsigned char reply[64*1024];
17428 unsigned char host[64*1024];
17432 /* Bind 8/9 interface */
17433 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17435 /* Bind 4 interface */
17439 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17443 /* Bind 8/9 interface */
17445 #elif defined(HFIXEDSZ)
17446 /* Bind 4 interface w/ HFIXEDSZ */
17449 /* Bind 4 interface w/o HFIXEDSZ */
17450 p += sizeof(HEADER);
17452 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ol_cv_resolver_bind=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ol_cv_resolver_bind=no
17487 rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17493 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17494 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17496 if test $ol_cv_resolver_bind = yes ; then
17497 ol_cv_lib_resolver=-lbind
17504 if test "$ol_cv_lib_resolver" != no ; then
17506 cat >>confdefs.h <<\_ACEOF
17507 #define HAVE_RES_QUERY 1
17511 if test "$ol_enable_dnssrv" != no ; then
17515 if test "$ol_cv_lib_resolver" != yes ; then
17516 LIBS="$ol_cv_lib_resolver $LIBS"
17520 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17521 if test "$ol_link_dnssrv" = no ; then
17522 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17523 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17524 { (exit 1); exit 1; }; }
17527 ol_enable_dnssrv=no
17531 for ac_func in hstrerror
17533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17534 echo "$as_me:$LINENO: checking for $ac_func" >&5
17535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17536 if eval "test \"\${$as_ac_var+set}\" = set"; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17547 #define $ac_func innocuous_$ac_func
17549 /* System header to define __stub macros and hopefully few prototypes,
17550 which can conflict with char $ac_func (); below.
17551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17552 <limits.h> exists even on freestanding compilers. */
17555 # include <limits.h>
17557 # include <assert.h>
17562 /* Override any gcc2 internal prototype to avoid an error. */
17567 /* We use char because int might match the return type of a gcc2
17568 builtin and then its argument prototype would still apply. */
17570 /* The GNU C library defines this for functions which it implements
17571 to always fail with ENOSYS. Some functions are actually named
17572 something starting with __ and the normal name is an alias. */
17573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17576 char (*f) () = $ac_func;
17585 return f != $ac_func;
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>conftest.er1
17594 grep -v '^ *+' conftest.er1 >conftest.err
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17619 rm -f conftest.err conftest.$ac_objext \
17620 conftest$ac_exeext conftest.$ac_ext
17622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17624 if test `eval echo '${'$as_ac_var'}'` = yes; then
17625 cat >>confdefs.h <<_ACEOF
17626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17637 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17640 echo "$as_me:$LINENO: checking for $ac_func" >&5
17641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17642 if eval "test \"\${$as_ac_var+set}\" = set"; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17645 cat >conftest.$ac_ext <<_ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17653 #define $ac_func innocuous_$ac_func
17655 /* System header to define __stub macros and hopefully few prototypes,
17656 which can conflict with char $ac_func (); below.
17657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17658 <limits.h> exists even on freestanding compilers. */
17661 # include <limits.h>
17663 # include <assert.h>
17668 /* Override any gcc2 internal prototype to avoid an error. */
17673 /* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17676 /* The GNU C library defines this for functions which it implements
17677 to always fail with ENOSYS. Some functions are actually named
17678 something starting with __ and the normal name is an alias. */
17679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17682 char (*f) () = $ac_func;
17691 return f != $ac_func;
17696 rm -f conftest.$ac_objext conftest$ac_exeext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17698 (eval $ac_link) 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
17705 { ac_try='test -z "$ac_c_werror_flag"
17706 || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 eval "$as_ac_var=yes"
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17723 eval "$as_ac_var=no"
17725 rm -f conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17730 if test `eval echo '${'$as_ac_var'}'` = yes; then
17731 cat >>confdefs.h <<_ACEOF
17732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17741 if test $ol_enable_ipv6 = yes ; then
17742 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17743 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17744 { (exit 1); exit 1; }; }
17746 elif test $ol_enable_ipv6 != no ; then
17747 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17748 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17749 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17760 # include <netinet/in.h>
17761 # ifdef INET6_ADDRSTRLEN
17762 __has_inet6_addrstrlen__;
17766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17767 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17768 ol_cv_inet6_addrstrlen=yes
17770 ol_cv_inet6_addrstrlen=no
17775 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17776 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17779 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17780 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17781 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 cat >conftest.$ac_ext <<_ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17792 #include <sys/types.h>
17793 #include <sys/socket.h>
17799 struct sockaddr_storage ss;
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ol_cv_struct_sockaddr_storage=yes
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ol_cv_struct_sockaddr_storage=no
17834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17837 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17839 if test $ol_cv_inet6_addrstrlen = yes &&
17840 test $ol_cv_struct_sockaddr_storage = yes ; then
17842 elif test $ol_enable_ipv6 = yes &&
17843 test $ol_cv_inet6_addrstrlen = no ; then
17844 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17845 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17846 { (exit 1); exit 1; }; }
17847 elif test $ol_enable_ipv6 = yes &&
17848 test $ol_cv_struct_sockaddr_storage = no ; then
17849 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17850 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17851 { (exit 1); exit 1; }; }
17855 if test $ol_enable_local != no ; then
17857 for ac_header in sys/un.h
17859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17861 echo "$as_me:$LINENO: checking for $ac_header" >&5
17862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17869 # Is the header compilable?
17870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 $ac_includes_default
17879 #include <$ac_header>
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>conftest.er1
17885 grep -v '^ *+' conftest.er1 >conftest.err
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -z "$ac_c_werror_flag"
17891 || test ! -s conftest.err'
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 ac_header_compiler=yes
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ac_header_compiler=no
17910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6
17914 # Is the header present?
17915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <$ac_header>
17925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } >/dev/null; then
17933 if test -s conftest.err; then
17934 ac_cpp_err=$ac_c_preproc_warn_flag
17935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17942 if test -z "$ac_cpp_err"; then
17943 ac_header_preproc=yes
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 ac_header_preproc=no
17950 rm -f conftest.err conftest.$ac_ext
17951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17952 echo "${ECHO_T}$ac_header_preproc" >&6
17954 # So? What about this header?
17955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17961 ac_header_preproc=yes
17964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17978 ## --------------------------------------------- ##
17979 ## Report this to <http://www.openldap.org/its/> ##
17980 ## --------------------------------------------- ##
17983 sed "s/^/$as_me: WARNING: /" >&2
17986 echo "$as_me:$LINENO: checking for $ac_header" >&5
17987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 eval "$as_ac_Header=\$ac_header_preproc"
17993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18007 if test $ol_enable_local = auto ; then
18008 ol_enable_local=$ac_cv_header_sys_un_h
18009 elif test $ac_cv_header_sys_un_h = no ; then
18010 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18011 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18012 { (exit 1); exit 1; }; }
18020 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18023 for ac_header in krb5.h
18025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo "$as_me:$LINENO: checking for $ac_header" >&5
18028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18035 # Is the header compilable?
18036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 $ac_includes_default
18045 #include <$ac_header>
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1 >conftest.err
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_header_compiler=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18074 ac_header_compiler=no
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <$ac_header>
18091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } >/dev/null; then
18099 if test -s conftest.err; then
18100 ac_cpp_err=$ac_c_preproc_warn_flag
18101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18108 if test -z "$ac_cpp_err"; then
18109 ac_header_preproc=yes
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18114 ac_header_preproc=no
18116 rm -f conftest.err conftest.$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18120 # So? What about this header?
18121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127 ac_header_preproc=yes
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18144 ## --------------------------------------------- ##
18145 ## Report this to <http://www.openldap.org/its/> ##
18146 ## --------------------------------------------- ##
18149 sed "s/^/$as_me: WARNING: /" >&2
18152 echo "$as_me:$LINENO: checking for $ac_header" >&5
18153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 eval "$as_ac_Header=\$ac_header_preproc"
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18173 if test $ac_cv_header_krb5_h = yes ; then
18175 for ac_header in heim_err.h
18177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18179 echo "$as_me:$LINENO: checking for $ac_header" >&5
18180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18187 # Is the header compilable?
18188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 $ac_includes_default
18197 #include <$ac_header>
18199 rm -f conftest.$ac_objext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_header_compiler=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_header_compiler=no
18228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18230 echo "${ECHO_T}$ac_header_compiler" >&6
18232 # Is the header present?
18233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18241 #include <$ac_header>
18243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } >/dev/null; then
18251 if test -s conftest.err; then
18252 ac_cpp_err=$ac_c_preproc_warn_flag
18253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18260 if test -z "$ac_cpp_err"; then
18261 ac_header_preproc=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 ac_header_preproc=no
18268 rm -f conftest.err conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6
18272 # So? What about this header?
18273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18279 ac_header_preproc=yes
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18296 ## --------------------------------------------- ##
18297 ## Report this to <http://www.openldap.org/its/> ##
18298 ## --------------------------------------------- ##
18301 sed "s/^/$as_me: WARNING: /" >&2
18304 echo "$as_me:$LINENO: checking for $ac_header" >&5
18305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 eval "$as_ac_Header=\$ac_header_preproc"
18311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18316 cat >>confdefs.h <<_ACEOF
18317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18324 if test $ac_cv_header_heim_err_h = yes ; then
18330 if test $krb5_impl = mit; then
18331 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18332 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18333 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lk5crypto $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_k5crypto_main=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_k5crypto_main=no
18383 rm -f conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18388 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18389 if test $ac_cv_lib_k5crypto_main = yes; then
18390 krb5crypto=k5crypto
18396 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18397 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18398 if test "${ac_cv_lib_krb5_main+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_cv_lib_krb5_main=yes
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_cv_lib_krb5_main=no
18448 rm -f conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18453 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18454 if test $ac_cv_lib_krb5_main = yes; then
18456 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18462 elif test $krb5_impl = heimdal; then
18463 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18464 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18465 if test "${ac_cv_lib_des_main+set}" = set; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 ac_check_lib_save_LIBS=$LIBS
18470 cat >conftest.$ac_ext <<_ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h. */
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488 (eval $ac_link) 2>conftest.er1
18490 grep -v '^ *+' conftest.er1 >conftest.err
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
18495 { ac_try='test -z "$ac_c_werror_flag"
18496 || test ! -s conftest.err'
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest$ac_exeext'
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 ac_cv_lib_des_main=yes
18510 echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ac_cv_lib_des_main=no
18515 rm -f conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18519 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18520 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18521 if test $ac_cv_lib_des_main = yes; then
18528 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18529 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18530 if test "${ac_cv_lib_krb5_main+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18533 ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18553 (eval $ac_link) 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } &&
18560 { ac_try='test -z "$ac_c_werror_flag"
18561 || test ! -s conftest.err'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest$ac_exeext'
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_cv_lib_krb5_main=yes
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_cv_lib_krb5_main=no
18580 rm -f conftest.err conftest.$ac_objext \
18581 conftest$ac_exeext conftest.$ac_ext
18582 LIBS=$ac_check_lib_save_LIBS
18584 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18585 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18586 if test $ac_cv_lib_krb5_main = yes; then
18588 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18595 cat >>confdefs.h <<\_ACEOF
18596 #define HAVE_HEIMDAL_KERBEROS 1
18602 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18603 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18606 if test $have_krb5 = yes ; then
18610 cat >>confdefs.h <<\_ACEOF
18611 #define HAVE_KRB5 1
18615 if test $ol_with_kerberos = k5only ; then
18616 ol_with_kerberos=found
18619 elif test $ol_with_kerberos != auto ; then
18620 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18621 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18622 { (exit 1); exit 1; }; }
18629 if test $ol_link_krb5 = yes &&
18630 { test $ol_with_kerberos = yes ||
18631 test $ol_with_kerberos = auto ||
18632 test $ol_with_kerberos = k425; }; then
18636 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18640 echo "$as_me:$LINENO: checking for $ac_header" >&5
18641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18648 # Is the header compilable?
18649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <$ac_header>
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag"
18670 || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_header_compiler=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.$ac_ext >&5
18687 ac_header_compiler=no
18689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18691 echo "${ECHO_T}$ac_header_compiler" >&6
18693 # Is the header present?
18694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <$ac_header>
18704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1 >conftest.err
18709 cat conftest.err >&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } >/dev/null; then
18712 if test -s conftest.err; then
18713 ac_cpp_err=$ac_c_preproc_warn_flag
18714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18721 if test -z "$ac_cpp_err"; then
18722 ac_header_preproc=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 ac_header_preproc=no
18729 rm -f conftest.err conftest.$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18731 echo "${ECHO_T}$ac_header_preproc" >&6
18733 # So? What about this header?
18734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18740 ac_header_preproc=yes
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18757 ## --------------------------------------------- ##
18758 ## Report this to <http://www.openldap.org/its/> ##
18759 ## --------------------------------------------- ##
18762 sed "s/^/$as_me: WARNING: /" >&2
18765 echo "$as_me:$LINENO: checking for $ac_header" >&5
18766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 eval "$as_ac_Header=\$ac_header_preproc"
18772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777 cat >>confdefs.h <<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18786 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18787 if test $krb5_impl = mit; then
18788 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18789 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18790 if test "${ac_cv_lib_krb4_main+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813 (eval $ac_link) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_lib_krb4_main=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_cv_lib_krb4_main=no
18840 rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842 LIBS=$ac_check_lib_save_LIBS
18844 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18845 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18846 if test $ac_cv_lib_krb4_main = yes; then
18848 KRB4_LIBS="-lkrb4 -ldes425"
18854 elif test $krb5_impl = heimdal; then
18855 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18856 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18857 if test "${ac_cv_lib_krb4_main+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag"
18888 || test ! -s conftest.err'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_cv_lib_krb4_main=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_lib_krb4_main=no
18907 rm -f conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18911 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18912 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18913 if test $ac_cv_lib_krb4_main = yes; then
18923 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18924 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18927 if test $have_k425 = yes ; then
18928 ol_with_kerberos=found
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE_KRB425 1
18937 cat >>confdefs.h <<\_ACEOF
18938 #define HAVE_KRB4 1
18942 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18943 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18944 if test "${ol_cv_var_des_debug+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18957 #include <kerberosIV/krb.h>
18958 #include <kerberosIV/des.h>
18959 extern int des_debug;
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973 (eval $ac_link) 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag"
18981 || test ! -s conftest.err'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; } &&
18987 { ac_try='test -s conftest$ac_exeext'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ol_cv_var_des_debug=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ol_cv_var_des_debug=no
19000 rm -f conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19006 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19008 if test $ol_cv_var_des_debug = yes ; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_DES_DEBUG 1
19021 if test $ol_link_krb5 = yes ; then
19022 ol_with_kerberos=found
19025 case $ol_with_kerberos in yes | auto | k4 | kth)
19030 for ac_header in krb.h des.h krb-archaeology.h
19032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19034 echo "$as_me:$LINENO: checking for $ac_header" >&5
19035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19042 # Is the header compilable?
19043 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 $ac_includes_default
19052 #include <$ac_header>
19054 rm -f conftest.$ac_objext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19056 (eval $ac_compile) 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } &&
19063 { ac_try='test -z "$ac_c_werror_flag"
19064 || test ! -s conftest.err'
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_header_compiler=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_header_compiler=no
19083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19085 echo "${ECHO_T}$ac_header_compiler" >&6
19087 # Is the header present?
19088 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <$ac_header>
19098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19101 grep -v '^ *+' conftest.er1 >conftest.err
19103 cat conftest.err >&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } >/dev/null; then
19106 if test -s conftest.err; then
19107 ac_cpp_err=$ac_c_preproc_warn_flag
19108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19115 if test -z "$ac_cpp_err"; then
19116 ac_header_preproc=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_header_preproc=no
19123 rm -f conftest.err conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19125 echo "${ECHO_T}$ac_header_preproc" >&6
19127 # So? What about this header?
19128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19134 ac_header_preproc=yes
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19151 ## --------------------------------------------- ##
19152 ## Report this to <http://www.openldap.org/its/> ##
19153 ## --------------------------------------------- ##
19156 sed "s/^/$as_me: WARNING: /" >&2
19159 echo "$as_me:$LINENO: checking for $ac_header" >&5
19160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 eval "$as_ac_Header=\$ac_header_preproc"
19166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19180 if test $ac_cv_header_krb_h = yes ; then
19181 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19182 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19183 if test "${ac_cv_lib_krb_main+set}" = set; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_check_lib_save_LIBS=$LIBS
19187 LIBS="-lkrb -ldes $LIBS"
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206 (eval $ac_link) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_lib_krb_main=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_cv_lib_krb_main=no
19233 rm -f conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19238 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19239 if test $ac_cv_lib_krb_main = yes; then
19246 if test $have_k4 = yes ; then
19247 ol_with_kerberos=found
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_KRB4 1
19256 KRB4_LIBS="-lkrb -ldes"
19258 if test $ac_cv_header_krb_archaeology_h = yes ; then
19260 cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_KTH_KERBEROS 1
19270 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19273 elif test $ol_enable_kbind = yes ; then
19274 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19275 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19276 { (exit 1); exit 1; }; }
19279 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19281 cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_KERBEROS 1
19286 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19287 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19288 echo "$as_me: error: Kerberos detection failed" >&2;}
19289 { (exit 1); exit 1; }; }
19294 if test $ol_with_tls != no ; then
19296 for ac_header in openssl/ssl.h
19298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19300 echo "$as_me:$LINENO: checking for $ac_header" >&5
19301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308 # Is the header compilable?
19309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 $ac_includes_default
19318 #include <$ac_header>
19320 rm -f conftest.$ac_objext
19321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19322 (eval $ac_compile) 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -z "$ac_c_werror_flag"
19330 || test ! -s conftest.err'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } &&
19336 { ac_try='test -s conftest.$ac_objext'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_header_compiler=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_header_compiler=no
19349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19351 echo "${ECHO_T}$ac_header_compiler" >&6
19353 # Is the header present?
19354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 #include <$ac_header>
19364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } >/dev/null; then
19372 if test -s conftest.err; then
19373 ac_cpp_err=$ac_c_preproc_warn_flag
19374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19381 if test -z "$ac_cpp_err"; then
19382 ac_header_preproc=yes
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_header_preproc=no
19389 rm -f conftest.err conftest.$ac_ext
19390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19391 echo "${ECHO_T}$ac_header_preproc" >&6
19393 # So? What about this header?
19394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19400 ac_header_preproc=yes
19403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19417 ## --------------------------------------------- ##
19418 ## Report this to <http://www.openldap.org/its/> ##
19419 ## --------------------------------------------- ##
19422 sed "s/^/$as_me: WARNING: /" >&2
19425 echo "$as_me:$LINENO: checking for $ac_header" >&5
19426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 eval "$as_ac_Header=\$ac_header_preproc"
19432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19446 if test $ac_cv_header_openssl_ssl_h = yes ; then
19447 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19448 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19449 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 ac_check_lib_save_LIBS=$LIBS
19453 LIBS="-lssl -lcrypto $LIBS"
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19461 /* Override any gcc2 internal prototype to avoid an error. */
19465 /* We use char because int might match the return type of a gcc2
19466 builtin and then its argument prototype would still apply. */
19467 char SSL_library_init ();
19471 SSL_library_init ();
19476 rm -f conftest.$ac_objext conftest$ac_exeext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19478 (eval $ac_link) 2>conftest.er1
19480 grep -v '^ *+' conftest.er1 >conftest.err
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
19485 { ac_try='test -z "$ac_c_werror_flag"
19486 || test ! -s conftest.err'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest$ac_exeext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_cv_lib_ssl_SSL_library_init=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_cv_lib_ssl_SSL_library_init=no
19505 rm -f conftest.err conftest.$ac_objext \
19506 conftest$ac_exeext conftest.$ac_ext
19507 LIBS=$ac_check_lib_save_LIBS
19509 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19510 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19511 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19519 if test $have_openssl = no ; then
19520 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19521 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19522 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19523 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 /* Override any gcc2 internal prototype to avoid an error. */
19538 /* We use char because int might match the return type of a gcc2
19539 builtin and then its argument prototype would still apply. */
19540 char ssl3_accept ();
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19551 (eval $ac_link) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest$ac_exeext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_ssl_ssl3_accept=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_ssl_ssl3_accept=no
19578 rm -f conftest.err conftest.$ac_objext \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19583 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19584 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19593 if test $have_openssl = yes ; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_OPENSSL 1
19603 if test $need_rsaref = yes; then
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_RSAREF 1
19610 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19612 TLS_LIBS="-lssl -lcrypto"
19615 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19616 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19617 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 #ifdef HAVE_OPENSSL_SSL_H
19629 #include <openssl/ssl.h>
19634 /* Require 0.9.7d+ */
19635 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19636 char *__ssl_compat = "0.9.7d";
19640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19641 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19642 ol_cv_ssl_crl_compat=yes
19644 ol_cv_ssl_crl_compat=no
19649 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19650 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19652 if test $ol_cv_ssl_crl_compat = no ; then
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_OPENSSL_CRL 1
19664 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19665 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19669 if test $ol_link_tls = yes ; then
19671 cat >>confdefs.h <<\_ACEOF
19677 elif test $ol_with_tls = auto ; then
19678 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19679 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19681 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19683 elif test $ol_with_tls != no ; then
19684 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19685 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19686 { (exit 1); exit 1; }; }
19689 if test $ol_enable_lmpasswd != no; then
19690 if test $ol_link_tls != yes ; then
19691 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19692 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19693 { (exit 1); exit 1; }; }
19697 cat >>confdefs.h <<\_ACEOF
19698 #define SLAPD_LMHASH 1
19705 case $ol_with_threads in auto | yes | nt)
19708 echo "$as_me:$LINENO: checking for _beginthread" >&5
19709 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19710 if test "${ac_cv_func__beginthread+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19721 #define _beginthread innocuous__beginthread
19723 /* System header to define __stub macros and hopefully few prototypes,
19724 which can conflict with char _beginthread (); below.
19725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726 <limits.h> exists even on freestanding compilers. */
19729 # include <limits.h>
19731 # include <assert.h>
19734 #undef _beginthread
19736 /* Override any gcc2 internal prototype to avoid an error. */
19741 /* We use char because int might match the return type of a gcc2
19742 builtin and then its argument prototype would still apply. */
19743 char _beginthread ();
19744 /* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19750 char (*f) () = _beginthread;
19759 return f != _beginthread;
19764 rm -f conftest.$ac_objext conftest$ac_exeext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19766 (eval $ac_link) 2>conftest.er1
19768 grep -v '^ *+' conftest.er1 >conftest.err
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_c_werror_flag"
19774 || test ! -s conftest.err'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_func__beginthread=yes
19788 echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19791 ac_cv_func__beginthread=no
19793 rm -f conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19796 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19797 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19800 if test $ac_cv_func__beginthread = yes ; then
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_NT_THREADS 1
19806 ol_cv_nt_threads=yes
19810 if test "$ol_cv_nt_threads" = yes ; then
19812 ol_with_threads=found
19813 ol_with_yielding_select=yes
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_NT_SERVICE_MANAGER 1
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_NT_EVENT_LOG 1
19827 if test $ol_with_threads = nt ; then
19828 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19829 echo "$as_me: error: could not locate NT Threads" >&2;}
19830 { (exit 1); exit 1; }; }
19835 case $ol_with_threads in auto | yes | posix)
19838 for ac_header in pthread.h
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <$ac_header>
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_header_compiler=no
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893 echo "${ECHO_T}$ac_header_compiler" >&6
19895 # Is the header present?
19896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 #include <$ac_header>
19906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
19916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19923 if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_header_preproc=no
19931 rm -f conftest.err conftest.$ac_ext
19932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933 echo "${ECHO_T}$ac_header_preproc" >&6
19935 # So? What about this header?
19936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
19945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19959 ## --------------------------------------------- ##
19960 ## Report this to <http://www.openldap.org/its/> ##
19961 ## --------------------------------------------- ##
19964 sed "s/^/$as_me: WARNING: /" >&2
19967 echo "$as_me:$LINENO: checking for $ac_header" >&5
19968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 eval "$as_ac_Header=\$ac_header_preproc"
19974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19988 if test $ac_cv_header_pthread_h = yes ; then
19989 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19990 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19991 if test "${ol_cv_pthread_version+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20002 # include <pthread.h>
20008 int i = PTHREAD_CREATE_JOINABLE;
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016 (eval $ac_compile) 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; } &&
20030 { ac_try='test -s conftest.$ac_objext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20043 #include <pthread.h>
20046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20047 $EGREP "pthread_detach" >/dev/null 2>&1; then
20048 ol_cv_pthread_version=10
20050 ol_cv_pthread_version=8
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20066 # include <pthread.h>
20067 # ifdef PTHREAD_CREATE_UNDETACHED
20072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20073 $EGREP "draft7" >/dev/null 2>&1; then
20074 ol_cv_pthread_version=7
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <pthread.h>
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20088 ol_cv_pthread_version=6
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 # include <pthread.h>
20099 #ifdef PTHREAD_MUTEX_INITIALIZER
20104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20105 $EGREP "draft5" >/dev/null 2>&1; then
20106 ol_cv_pthread_version=5
20108 ol_cv_pthread_version=4
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20123 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20126 if test $ol_cv_pthread_version != 0 ; then
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_PTHREADS $ol_cv_pthread_version
20133 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20134 echo "$as_me: error: unknown pthread version" >&2;}
20135 { (exit 1); exit 1; }; }
20138 # consider threads found
20139 ol_with_threads=found
20142 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20143 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20144 if test "${ol_cv_header_linux_threads+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 #include <pthread.h>
20155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20156 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20157 ol_cv_header_linux_threads=yes
20159 ol_cv_header_linux_threads=no
20165 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20166 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20167 if test $ol_cv_header_linux_threads = yes; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_LINUX_THREADS 1
20176 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20177 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20178 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <pthread.h>
20188 #ifdef _POSIX_THREAD_IS_GNU_PTH
20193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20194 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20195 ol_cv_header_gnu_pth_pthread_h=yes
20197 ol_cv_header_gnu_pth_pthread_h=no
20203 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20204 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20207 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20209 for ac_header in sched.h
20211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo "$as_me:$LINENO: checking for $ac_header" >&5
20214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20221 # Is the header compilable?
20222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h. */
20230 $ac_includes_default
20231 #include <$ac_header>
20233 rm -f conftest.$ac_objext
20234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20235 (eval $ac_compile) 2>conftest.er1
20237 grep -v '^ *+' conftest.er1 >conftest.err
20239 cat conftest.err >&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -z "$ac_c_werror_flag"
20243 || test ! -s conftest.err'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_header_compiler=yes
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 ac_header_compiler=no
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20264 echo "${ECHO_T}$ac_header_compiler" >&6
20266 # Is the header present?
20267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20275 #include <$ac_header>
20277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } >/dev/null; then
20285 if test -s conftest.err; then
20286 ac_cpp_err=$ac_c_preproc_warn_flag
20287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20294 if test -z "$ac_cpp_err"; then
20295 ac_header_preproc=yes
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_header_preproc=no
20302 rm -f conftest.err conftest.$ac_ext
20303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6
20306 # So? What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313 ac_header_preproc=yes
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330 ## --------------------------------------------- ##
20331 ## Report this to <http://www.openldap.org/its/> ##
20332 ## --------------------------------------------- ##
20335 sed "s/^/$as_me: WARNING: /" >&2
20338 echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 eval "$as_ac_Header=\$ac_header_preproc"
20345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20361 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20362 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20363 if test "${ol_cv_pthread_create+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 if test "$cross_compiling" = yes; then
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 /* pthread test headers */
20376 #include <pthread.h>
20377 #if HAVE_PTHREADS < 7
20381 #define NULL (void*)0
20384 static void *task(p)
20387 return (void *) (p == NULL);
20394 /* pthread test function */
20395 #ifndef PTHREAD_CREATE_DETACHED
20396 #define PTHREAD_CREATE_DETACHED 1
20400 int detach = PTHREAD_CREATE_DETACHED;
20402 #if HAVE_PTHREADS > 4
20403 /* Final pthreads */
20404 pthread_attr_t attr;
20406 status = pthread_attr_init(&attr);
20407 if( status ) return status;
20409 #if HAVE_PTHREADS < 7
20410 status = pthread_attr_setdetachstate(&attr, &detach);
20411 if( status < 0 ) status = errno;
20413 status = pthread_attr_setdetachstate(&attr, detach);
20415 if( status ) return status;
20416 status = pthread_create( &t, &attr, task, NULL );
20417 #if HAVE_PTHREADS < 7
20418 if( status < 0 ) status = errno;
20420 if( status ) return status;
20422 /* Draft 4 pthreads */
20423 status = pthread_create( &t, pthread_attr_default, task, NULL );
20424 if( status ) return errno;
20426 /* give thread a chance to complete */
20427 /* it should remain joinable and hence detachable */
20430 status = pthread_detach( &t );
20431 if( status ) return errno;
20434 #ifdef HAVE_LINUX_THREADS
20435 pthread_kill_other_threads_np();
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest$ac_exeext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ol_cv_pthread_create=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ol_cv_pthread_create=no
20473 rm -f conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20483 /* pthread test headers */
20484 #include <pthread.h>
20485 #if HAVE_PTHREADS < 7
20489 #define NULL (void*)0
20492 static void *task(p)
20495 return (void *) (p == NULL);
20499 int main(argc, argv)
20504 /* pthread test function */
20505 #ifndef PTHREAD_CREATE_DETACHED
20506 #define PTHREAD_CREATE_DETACHED 1
20510 int detach = PTHREAD_CREATE_DETACHED;
20512 #if HAVE_PTHREADS > 4
20513 /* Final pthreads */
20514 pthread_attr_t attr;
20516 status = pthread_attr_init(&attr);
20517 if( status ) return status;
20519 #if HAVE_PTHREADS < 7
20520 status = pthread_attr_setdetachstate(&attr, &detach);
20521 if( status < 0 ) status = errno;
20523 status = pthread_attr_setdetachstate(&attr, detach);
20525 if( status ) return status;
20526 status = pthread_create( &t, &attr, task, NULL );
20527 #if HAVE_PTHREADS < 7
20528 if( status < 0 ) status = errno;
20530 if( status ) return status;
20532 /* Draft 4 pthreads */
20533 status = pthread_create( &t, pthread_attr_default, task, NULL );
20534 if( status ) return errno;
20536 /* give thread a chance to complete */
20537 /* it should remain joinable and hence detachable */
20540 status = pthread_detach( &t );
20541 if( status ) return errno;
20544 #ifdef HAVE_LINUX_THREADS
20545 pthread_kill_other_threads_np();
20553 rm -f conftest$ac_exeext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20555 (eval $ac_link) 2>&5
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ol_cv_pthread_create=yes
20566 echo "$as_me: program exited with status $ac_status" >&5
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20570 ( exit $ac_status )
20571 ol_cv_pthread_create=no
20573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20577 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20579 if test $ol_cv_pthread_create != no ; then
20580 ol_link_threads=posix
20581 ol_link_pthreads=""
20584 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20585 if test "$ol_link_threads" = no ; then
20587 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20588 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20589 if test "${ol_cv_pthread_kthread+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 LIBS="-kthread $LIBS"
20597 if test "$cross_compiling" = yes; then
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20605 /* pthread test headers */
20606 #include <pthread.h>
20607 #if HAVE_PTHREADS < 7
20611 #define NULL (void*)0
20614 static void *task(p)
20617 return (void *) (p == NULL);
20624 /* pthread test function */
20625 #ifndef PTHREAD_CREATE_DETACHED
20626 #define PTHREAD_CREATE_DETACHED 1
20630 int detach = PTHREAD_CREATE_DETACHED;
20632 #if HAVE_PTHREADS > 4
20633 /* Final pthreads */
20634 pthread_attr_t attr;
20636 status = pthread_attr_init(&attr);
20637 if( status ) return status;
20639 #if HAVE_PTHREADS < 7
20640 status = pthread_attr_setdetachstate(&attr, &detach);
20641 if( status < 0 ) status = errno;
20643 status = pthread_attr_setdetachstate(&attr, detach);
20645 if( status ) return status;
20646 status = pthread_create( &t, &attr, task, NULL );
20647 #if HAVE_PTHREADS < 7
20648 if( status < 0 ) status = errno;
20650 if( status ) return status;
20652 /* Draft 4 pthreads */
20653 status = pthread_create( &t, pthread_attr_default, task, NULL );
20654 if( status ) return errno;
20656 /* give thread a chance to complete */
20657 /* it should remain joinable and hence detachable */
20660 status = pthread_detach( &t );
20661 if( status ) return errno;
20664 #ifdef HAVE_LINUX_THREADS
20665 pthread_kill_other_threads_np();
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20676 (eval $ac_link) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest$ac_exeext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ol_cv_pthread_kthread=yes
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ol_cv_pthread_kthread=no
20703 rm -f conftest.err conftest.$ac_objext \
20704 conftest$ac_exeext conftest.$ac_ext
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20713 /* pthread test headers */
20714 #include <pthread.h>
20715 #if HAVE_PTHREADS < 7
20719 #define NULL (void*)0
20722 static void *task(p)
20725 return (void *) (p == NULL);
20729 int main(argc, argv)
20734 /* pthread test function */
20735 #ifndef PTHREAD_CREATE_DETACHED
20736 #define PTHREAD_CREATE_DETACHED 1
20740 int detach = PTHREAD_CREATE_DETACHED;
20742 #if HAVE_PTHREADS > 4
20743 /* Final pthreads */
20744 pthread_attr_t attr;
20746 status = pthread_attr_init(&attr);
20747 if( status ) return status;
20749 #if HAVE_PTHREADS < 7
20750 status = pthread_attr_setdetachstate(&attr, &detach);
20751 if( status < 0 ) status = errno;
20753 status = pthread_attr_setdetachstate(&attr, detach);
20755 if( status ) return status;
20756 status = pthread_create( &t, &attr, task, NULL );
20757 #if HAVE_PTHREADS < 7
20758 if( status < 0 ) status = errno;
20760 if( status ) return status;
20762 /* Draft 4 pthreads */
20763 status = pthread_create( &t, pthread_attr_default, task, NULL );
20764 if( status ) return errno;
20766 /* give thread a chance to complete */
20767 /* it should remain joinable and hence detachable */
20770 status = pthread_detach( &t );
20771 if( status ) return errno;
20774 #ifdef HAVE_LINUX_THREADS
20775 pthread_kill_other_threads_np();
20783 rm -f conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ol_cv_pthread_kthread=yes
20796 echo "$as_me: program exited with status $ac_status" >&5
20797 echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ( exit $ac_status )
20801 ol_cv_pthread_kthread=no
20803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20810 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20811 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20813 if test $ol_cv_pthread_kthread = yes ; then
20814 ol_link_pthreads="-kthread"
20815 ol_link_threads=posix
20819 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20820 if test "$ol_link_threads" = no ; then
20822 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20823 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20824 if test "${ol_cv_pthread_pthread+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 LIBS="-pthread $LIBS"
20832 if test "$cross_compiling" = yes; then
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20840 /* pthread test headers */
20841 #include <pthread.h>
20842 #if HAVE_PTHREADS < 7
20846 #define NULL (void*)0
20849 static void *task(p)
20852 return (void *) (p == NULL);
20859 /* pthread test function */
20860 #ifndef PTHREAD_CREATE_DETACHED
20861 #define PTHREAD_CREATE_DETACHED 1
20865 int detach = PTHREAD_CREATE_DETACHED;
20867 #if HAVE_PTHREADS > 4
20868 /* Final pthreads */
20869 pthread_attr_t attr;
20871 status = pthread_attr_init(&attr);
20872 if( status ) return status;
20874 #if HAVE_PTHREADS < 7
20875 status = pthread_attr_setdetachstate(&attr, &detach);
20876 if( status < 0 ) status = errno;
20878 status = pthread_attr_setdetachstate(&attr, detach);
20880 if( status ) return status;
20881 status = pthread_create( &t, &attr, task, NULL );
20882 #if HAVE_PTHREADS < 7
20883 if( status < 0 ) status = errno;
20885 if( status ) return status;
20887 /* Draft 4 pthreads */
20888 status = pthread_create( &t, pthread_attr_default, task, NULL );
20889 if( status ) return errno;
20891 /* give thread a chance to complete */
20892 /* it should remain joinable and hence detachable */
20895 status = pthread_detach( &t );
20896 if( status ) return errno;
20899 #ifdef HAVE_LINUX_THREADS
20900 pthread_kill_other_threads_np();
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20911 (eval $ac_link) 2>conftest.er1
20913 grep -v '^ *+' conftest.er1 >conftest.err
20915 cat conftest.err >&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); } &&
20918 { ac_try='test -z "$ac_c_werror_flag"
20919 || test ! -s conftest.err'
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest$ac_exeext'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ol_cv_pthread_pthread=yes
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ol_cv_pthread_pthread=no
20938 rm -f conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20941 cat >conftest.$ac_ext <<_ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h. */
20948 /* pthread test headers */
20949 #include <pthread.h>
20950 #if HAVE_PTHREADS < 7
20954 #define NULL (void*)0
20957 static void *task(p)
20960 return (void *) (p == NULL);
20964 int main(argc, argv)
20969 /* pthread test function */
20970 #ifndef PTHREAD_CREATE_DETACHED
20971 #define PTHREAD_CREATE_DETACHED 1
20975 int detach = PTHREAD_CREATE_DETACHED;
20977 #if HAVE_PTHREADS > 4
20978 /* Final pthreads */
20979 pthread_attr_t attr;
20981 status = pthread_attr_init(&attr);
20982 if( status ) return status;
20984 #if HAVE_PTHREADS < 7
20985 status = pthread_attr_setdetachstate(&attr, &detach);
20986 if( status < 0 ) status = errno;
20988 status = pthread_attr_setdetachstate(&attr, detach);
20990 if( status ) return status;
20991 status = pthread_create( &t, &attr, task, NULL );
20992 #if HAVE_PTHREADS < 7
20993 if( status < 0 ) status = errno;
20995 if( status ) return status;
20997 /* Draft 4 pthreads */
20998 status = pthread_create( &t, pthread_attr_default, task, NULL );
20999 if( status ) return errno;
21001 /* give thread a chance to complete */
21002 /* it should remain joinable and hence detachable */
21005 status = pthread_detach( &t );
21006 if( status ) return errno;
21009 #ifdef HAVE_LINUX_THREADS
21010 pthread_kill_other_threads_np();
21018 rm -f conftest$ac_exeext
21019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21020 (eval $ac_link) 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025 (eval $ac_try) 2>&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); }; }; then
21029 ol_cv_pthread_pthread=yes
21031 echo "$as_me: program exited with status $ac_status" >&5
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ( exit $ac_status )
21036 ol_cv_pthread_pthread=no
21038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21046 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21048 if test $ol_cv_pthread_pthread = yes ; then
21049 ol_link_pthreads="-pthread"
21050 ol_link_threads=posix
21054 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21055 if test "$ol_link_threads" = no ; then
21057 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21058 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21059 if test "${ol_cv_pthread_pthreads+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 LIBS="-pthreads $LIBS"
21067 if test "$cross_compiling" = yes; then
21068 cat >conftest.$ac_ext <<_ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h. */
21075 /* pthread test headers */
21076 #include <pthread.h>
21077 #if HAVE_PTHREADS < 7
21081 #define NULL (void*)0
21084 static void *task(p)
21087 return (void *) (p == NULL);
21094 /* pthread test function */
21095 #ifndef PTHREAD_CREATE_DETACHED
21096 #define PTHREAD_CREATE_DETACHED 1
21100 int detach = PTHREAD_CREATE_DETACHED;
21102 #if HAVE_PTHREADS > 4
21103 /* Final pthreads */
21104 pthread_attr_t attr;
21106 status = pthread_attr_init(&attr);
21107 if( status ) return status;
21109 #if HAVE_PTHREADS < 7
21110 status = pthread_attr_setdetachstate(&attr, &detach);
21111 if( status < 0 ) status = errno;
21113 status = pthread_attr_setdetachstate(&attr, detach);
21115 if( status ) return status;
21116 status = pthread_create( &t, &attr, task, NULL );
21117 #if HAVE_PTHREADS < 7
21118 if( status < 0 ) status = errno;
21120 if( status ) return status;
21122 /* Draft 4 pthreads */
21123 status = pthread_create( &t, pthread_attr_default, task, NULL );
21124 if( status ) return errno;
21126 /* give thread a chance to complete */
21127 /* it should remain joinable and hence detachable */
21130 status = pthread_detach( &t );
21131 if( status ) return errno;
21134 #ifdef HAVE_LINUX_THREADS
21135 pthread_kill_other_threads_np();
21144 rm -f conftest.$ac_objext conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } &&
21153 { ac_try='test -z "$ac_c_werror_flag"
21154 || test ! -s conftest.err'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; } &&
21160 { ac_try='test -s conftest$ac_exeext'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; }; then
21166 ol_cv_pthread_pthreads=yes
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ol_cv_pthread_pthreads=no
21173 rm -f conftest.err conftest.$ac_objext \
21174 conftest$ac_exeext conftest.$ac_ext
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21183 /* pthread test headers */
21184 #include <pthread.h>
21185 #if HAVE_PTHREADS < 7
21189 #define NULL (void*)0
21192 static void *task(p)
21195 return (void *) (p == NULL);
21199 int main(argc, argv)
21204 /* pthread test function */
21205 #ifndef PTHREAD_CREATE_DETACHED
21206 #define PTHREAD_CREATE_DETACHED 1
21210 int detach = PTHREAD_CREATE_DETACHED;
21212 #if HAVE_PTHREADS > 4
21213 /* Final pthreads */
21214 pthread_attr_t attr;
21216 status = pthread_attr_init(&attr);
21217 if( status ) return status;
21219 #if HAVE_PTHREADS < 7
21220 status = pthread_attr_setdetachstate(&attr, &detach);
21221 if( status < 0 ) status = errno;
21223 status = pthread_attr_setdetachstate(&attr, detach);
21225 if( status ) return status;
21226 status = pthread_create( &t, &attr, task, NULL );
21227 #if HAVE_PTHREADS < 7
21228 if( status < 0 ) status = errno;
21230 if( status ) return status;
21232 /* Draft 4 pthreads */
21233 status = pthread_create( &t, pthread_attr_default, task, NULL );
21234 if( status ) return errno;
21236 /* give thread a chance to complete */
21237 /* it should remain joinable and hence detachable */
21240 status = pthread_detach( &t );
21241 if( status ) return errno;
21244 #ifdef HAVE_LINUX_THREADS
21245 pthread_kill_other_threads_np();
21253 rm -f conftest$ac_exeext
21254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21255 (eval $ac_link) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ol_cv_pthread_pthreads=yes
21266 echo "$as_me: program exited with status $ac_status" >&5
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 ( exit $ac_status )
21271 ol_cv_pthread_pthreads=no
21273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21281 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21283 if test $ol_cv_pthread_pthreads = yes ; then
21284 ol_link_pthreads="-pthreads"
21285 ol_link_threads=posix
21289 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21290 if test "$ol_link_threads" = no ; then
21292 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21293 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21294 if test "${ol_cv_pthread_mthreads+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 LIBS="-mthreads $LIBS"
21302 if test "$cross_compiling" = yes; then
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21310 /* pthread test headers */
21311 #include <pthread.h>
21312 #if HAVE_PTHREADS < 7
21316 #define NULL (void*)0
21319 static void *task(p)
21322 return (void *) (p == NULL);
21329 /* pthread test function */
21330 #ifndef PTHREAD_CREATE_DETACHED
21331 #define PTHREAD_CREATE_DETACHED 1
21335 int detach = PTHREAD_CREATE_DETACHED;
21337 #if HAVE_PTHREADS > 4
21338 /* Final pthreads */
21339 pthread_attr_t attr;
21341 status = pthread_attr_init(&attr);
21342 if( status ) return status;
21344 #if HAVE_PTHREADS < 7
21345 status = pthread_attr_setdetachstate(&attr, &detach);
21346 if( status < 0 ) status = errno;
21348 status = pthread_attr_setdetachstate(&attr, detach);
21350 if( status ) return status;
21351 status = pthread_create( &t, &attr, task, NULL );
21352 #if HAVE_PTHREADS < 7
21353 if( status < 0 ) status = errno;
21355 if( status ) return status;
21357 /* Draft 4 pthreads */
21358 status = pthread_create( &t, pthread_attr_default, task, NULL );
21359 if( status ) return errno;
21361 /* give thread a chance to complete */
21362 /* it should remain joinable and hence detachable */
21365 status = pthread_detach( &t );
21366 if( status ) return errno;
21369 #ifdef HAVE_LINUX_THREADS
21370 pthread_kill_other_threads_np();
21379 rm -f conftest.$ac_objext conftest$ac_exeext
21380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21381 (eval $ac_link) 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } &&
21388 { ac_try='test -z "$ac_c_werror_flag"
21389 || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest$ac_exeext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ol_cv_pthread_mthreads=yes
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ol_cv_pthread_mthreads=no
21408 rm -f conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext conftest.$ac_ext
21411 cat >conftest.$ac_ext <<_ACEOF
21414 cat confdefs.h >>conftest.$ac_ext
21415 cat >>conftest.$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21418 /* pthread test headers */
21419 #include <pthread.h>
21420 #if HAVE_PTHREADS < 7
21424 #define NULL (void*)0
21427 static void *task(p)
21430 return (void *) (p == NULL);
21434 int main(argc, argv)
21439 /* pthread test function */
21440 #ifndef PTHREAD_CREATE_DETACHED
21441 #define PTHREAD_CREATE_DETACHED 1
21445 int detach = PTHREAD_CREATE_DETACHED;
21447 #if HAVE_PTHREADS > 4
21448 /* Final pthreads */
21449 pthread_attr_t attr;
21451 status = pthread_attr_init(&attr);
21452 if( status ) return status;
21454 #if HAVE_PTHREADS < 7
21455 status = pthread_attr_setdetachstate(&attr, &detach);
21456 if( status < 0 ) status = errno;
21458 status = pthread_attr_setdetachstate(&attr, detach);
21460 if( status ) return status;
21461 status = pthread_create( &t, &attr, task, NULL );
21462 #if HAVE_PTHREADS < 7
21463 if( status < 0 ) status = errno;
21465 if( status ) return status;
21467 /* Draft 4 pthreads */
21468 status = pthread_create( &t, pthread_attr_default, task, NULL );
21469 if( status ) return errno;
21471 /* give thread a chance to complete */
21472 /* it should remain joinable and hence detachable */
21475 status = pthread_detach( &t );
21476 if( status ) return errno;
21479 #ifdef HAVE_LINUX_THREADS
21480 pthread_kill_other_threads_np();
21488 rm -f conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490 (eval $ac_link) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ol_cv_pthread_mthreads=yes
21501 echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ( exit $ac_status )
21506 ol_cv_pthread_mthreads=no
21508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21516 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21518 if test $ol_cv_pthread_mthreads = yes ; then
21519 ol_link_pthreads="-mthreads"
21520 ol_link_threads=posix
21524 # Pthread try link: -thread (ol_cv_pthread_thread)
21525 if test "$ol_link_threads" = no ; then
21527 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21528 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21529 if test "${ol_cv_pthread_thread+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21535 LIBS="-thread $LIBS"
21537 if test "$cross_compiling" = yes; then
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21545 /* pthread test headers */
21546 #include <pthread.h>
21547 #if HAVE_PTHREADS < 7
21551 #define NULL (void*)0
21554 static void *task(p)
21557 return (void *) (p == NULL);
21564 /* pthread test function */
21565 #ifndef PTHREAD_CREATE_DETACHED
21566 #define PTHREAD_CREATE_DETACHED 1
21570 int detach = PTHREAD_CREATE_DETACHED;
21572 #if HAVE_PTHREADS > 4
21573 /* Final pthreads */
21574 pthread_attr_t attr;
21576 status = pthread_attr_init(&attr);
21577 if( status ) return status;
21579 #if HAVE_PTHREADS < 7
21580 status = pthread_attr_setdetachstate(&attr, &detach);
21581 if( status < 0 ) status = errno;
21583 status = pthread_attr_setdetachstate(&attr, detach);
21585 if( status ) return status;
21586 status = pthread_create( &t, &attr, task, NULL );
21587 #if HAVE_PTHREADS < 7
21588 if( status < 0 ) status = errno;
21590 if( status ) return status;
21592 /* Draft 4 pthreads */
21593 status = pthread_create( &t, pthread_attr_default, task, NULL );
21594 if( status ) return errno;
21596 /* give thread a chance to complete */
21597 /* it should remain joinable and hence detachable */
21600 status = pthread_detach( &t );
21601 if( status ) return errno;
21604 #ifdef HAVE_LINUX_THREADS
21605 pthread_kill_other_threads_np();
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616 (eval $ac_link) 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } &&
21623 { ac_try='test -z "$ac_c_werror_flag"
21624 || test ! -s conftest.err'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; } &&
21630 { ac_try='test -s conftest$ac_exeext'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ol_cv_pthread_thread=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ol_cv_pthread_thread=no
21643 rm -f conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21646 cat >conftest.$ac_ext <<_ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h. */
21653 /* pthread test headers */
21654 #include <pthread.h>
21655 #if HAVE_PTHREADS < 7
21659 #define NULL (void*)0
21662 static void *task(p)
21665 return (void *) (p == NULL);
21669 int main(argc, argv)
21674 /* pthread test function */
21675 #ifndef PTHREAD_CREATE_DETACHED
21676 #define PTHREAD_CREATE_DETACHED 1
21680 int detach = PTHREAD_CREATE_DETACHED;
21682 #if HAVE_PTHREADS > 4
21683 /* Final pthreads */
21684 pthread_attr_t attr;
21686 status = pthread_attr_init(&attr);
21687 if( status ) return status;
21689 #if HAVE_PTHREADS < 7
21690 status = pthread_attr_setdetachstate(&attr, &detach);
21691 if( status < 0 ) status = errno;
21693 status = pthread_attr_setdetachstate(&attr, detach);
21695 if( status ) return status;
21696 status = pthread_create( &t, &attr, task, NULL );
21697 #if HAVE_PTHREADS < 7
21698 if( status < 0 ) status = errno;
21700 if( status ) return status;
21702 /* Draft 4 pthreads */
21703 status = pthread_create( &t, pthread_attr_default, task, NULL );
21704 if( status ) return errno;
21706 /* give thread a chance to complete */
21707 /* it should remain joinable and hence detachable */
21710 status = pthread_detach( &t );
21711 if( status ) return errno;
21714 #ifdef HAVE_LINUX_THREADS
21715 pthread_kill_other_threads_np();
21723 rm -f conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725 (eval $ac_link) 2>&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ol_cv_pthread_thread=yes
21736 echo "$as_me: program exited with status $ac_status" >&5
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ( exit $ac_status )
21741 ol_cv_pthread_thread=no
21743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21751 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21753 if test $ol_cv_pthread_thread = yes ; then
21754 ol_link_pthreads="-thread"
21755 ol_link_threads=posix
21760 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21761 if test "$ol_link_threads" = no ; then
21762 # try -lpthread -lmach -lexc -lc_r
21763 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21764 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21765 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21773 if test "$cross_compiling" = yes; then
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21781 /* pthread test headers */
21782 #include <pthread.h>
21783 #if HAVE_PTHREADS < 7
21787 #define NULL (void*)0
21790 static void *task(p)
21793 return (void *) (p == NULL);
21800 /* pthread test function */
21801 #ifndef PTHREAD_CREATE_DETACHED
21802 #define PTHREAD_CREATE_DETACHED 1
21806 int detach = PTHREAD_CREATE_DETACHED;
21808 #if HAVE_PTHREADS > 4
21809 /* Final pthreads */
21810 pthread_attr_t attr;
21812 status = pthread_attr_init(&attr);
21813 if( status ) return status;
21815 #if HAVE_PTHREADS < 7
21816 status = pthread_attr_setdetachstate(&attr, &detach);
21817 if( status < 0 ) status = errno;
21819 status = pthread_attr_setdetachstate(&attr, detach);
21821 if( status ) return status;
21822 status = pthread_create( &t, &attr, task, NULL );
21823 #if HAVE_PTHREADS < 7
21824 if( status < 0 ) status = errno;
21826 if( status ) return status;
21828 /* Draft 4 pthreads */
21829 status = pthread_create( &t, pthread_attr_default, task, NULL );
21830 if( status ) return errno;
21832 /* give thread a chance to complete */
21833 /* it should remain joinable and hence detachable */
21836 status = pthread_detach( &t );
21837 if( status ) return errno;
21840 #ifdef HAVE_LINUX_THREADS
21841 pthread_kill_other_threads_np();
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
21859 { ac_try='test -z "$ac_c_werror_flag"
21860 || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21872 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21879 rm -f conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext conftest.$ac_ext
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21889 /* pthread test headers */
21890 #include <pthread.h>
21891 #if HAVE_PTHREADS < 7
21895 #define NULL (void*)0
21898 static void *task(p)
21901 return (void *) (p == NULL);
21905 int main(argc, argv)
21910 /* pthread test function */
21911 #ifndef PTHREAD_CREATE_DETACHED
21912 #define PTHREAD_CREATE_DETACHED 1
21916 int detach = PTHREAD_CREATE_DETACHED;
21918 #if HAVE_PTHREADS > 4
21919 /* Final pthreads */
21920 pthread_attr_t attr;
21922 status = pthread_attr_init(&attr);
21923 if( status ) return status;
21925 #if HAVE_PTHREADS < 7
21926 status = pthread_attr_setdetachstate(&attr, &detach);
21927 if( status < 0 ) status = errno;
21929 status = pthread_attr_setdetachstate(&attr, detach);
21931 if( status ) return status;
21932 status = pthread_create( &t, &attr, task, NULL );
21933 #if HAVE_PTHREADS < 7
21934 if( status < 0 ) status = errno;
21936 if( status ) return status;
21938 /* Draft 4 pthreads */
21939 status = pthread_create( &t, pthread_attr_default, task, NULL );
21940 if( status ) return errno;
21942 /* give thread a chance to complete */
21943 /* it should remain joinable and hence detachable */
21946 status = pthread_detach( &t );
21947 if( status ) return errno;
21950 #ifdef HAVE_LINUX_THREADS
21951 pthread_kill_other_threads_np();
21959 rm -f conftest$ac_exeext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21961 (eval $ac_link) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21972 echo "$as_me: program exited with status $ac_status" >&5
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ( exit $ac_status )
21977 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21987 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21989 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21990 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21991 ol_link_threads=posix
21995 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21996 if test "$ol_link_threads" = no ; then
21997 # try -lpthread -lmach -lexc
21998 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21999 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22000 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 LIBS="-lpthread -lmach -lexc $LIBS"
22008 if test "$cross_compiling" = yes; then
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 /* pthread test headers */
22017 #include <pthread.h>
22018 #if HAVE_PTHREADS < 7
22022 #define NULL (void*)0
22025 static void *task(p)
22028 return (void *) (p == NULL);
22035 /* pthread test function */
22036 #ifndef PTHREAD_CREATE_DETACHED
22037 #define PTHREAD_CREATE_DETACHED 1
22041 int detach = PTHREAD_CREATE_DETACHED;
22043 #if HAVE_PTHREADS > 4
22044 /* Final pthreads */
22045 pthread_attr_t attr;
22047 status = pthread_attr_init(&attr);
22048 if( status ) return status;
22050 #if HAVE_PTHREADS < 7
22051 status = pthread_attr_setdetachstate(&attr, &detach);
22052 if( status < 0 ) status = errno;
22054 status = pthread_attr_setdetachstate(&attr, detach);
22056 if( status ) return status;
22057 status = pthread_create( &t, &attr, task, NULL );
22058 #if HAVE_PTHREADS < 7
22059 if( status < 0 ) status = errno;
22061 if( status ) return status;
22063 /* Draft 4 pthreads */
22064 status = pthread_create( &t, pthread_attr_default, task, NULL );
22065 if( status ) return errno;
22067 /* give thread a chance to complete */
22068 /* it should remain joinable and hence detachable */
22071 status = pthread_detach( &t );
22072 if( status ) return errno;
22075 #ifdef HAVE_LINUX_THREADS
22076 pthread_kill_other_threads_np();
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22087 (eval $ac_link) 2>conftest.er1
22089 grep -v '^ *+' conftest.er1 >conftest.err
22091 cat conftest.err >&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -z "$ac_c_werror_flag"
22095 || test ! -s conftest.err'
22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22097 (eval $ac_try) 2>&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); }; } &&
22101 { ac_try='test -s conftest$ac_exeext'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22107 ol_cv_pthread_lpthread_lmach_lexc=yes
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ol_cv_pthread_lpthread_lmach_lexc=no
22114 rm -f conftest.err conftest.$ac_objext \
22115 conftest$ac_exeext conftest.$ac_ext
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22124 /* pthread test headers */
22125 #include <pthread.h>
22126 #if HAVE_PTHREADS < 7
22130 #define NULL (void*)0
22133 static void *task(p)
22136 return (void *) (p == NULL);
22140 int main(argc, argv)
22145 /* pthread test function */
22146 #ifndef PTHREAD_CREATE_DETACHED
22147 #define PTHREAD_CREATE_DETACHED 1
22151 int detach = PTHREAD_CREATE_DETACHED;
22153 #if HAVE_PTHREADS > 4
22154 /* Final pthreads */
22155 pthread_attr_t attr;
22157 status = pthread_attr_init(&attr);
22158 if( status ) return status;
22160 #if HAVE_PTHREADS < 7
22161 status = pthread_attr_setdetachstate(&attr, &detach);
22162 if( status < 0 ) status = errno;
22164 status = pthread_attr_setdetachstate(&attr, detach);
22166 if( status ) return status;
22167 status = pthread_create( &t, &attr, task, NULL );
22168 #if HAVE_PTHREADS < 7
22169 if( status < 0 ) status = errno;
22171 if( status ) return status;
22173 /* Draft 4 pthreads */
22174 status = pthread_create( &t, pthread_attr_default, task, NULL );
22175 if( status ) return errno;
22177 /* give thread a chance to complete */
22178 /* it should remain joinable and hence detachable */
22181 status = pthread_detach( &t );
22182 if( status ) return errno;
22185 #ifdef HAVE_LINUX_THREADS
22186 pthread_kill_other_threads_np();
22194 rm -f conftest$ac_exeext
22195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22196 (eval $ac_link) 2>&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 ol_cv_pthread_lpthread_lmach_lexc=yes
22207 echo "$as_me: program exited with status $ac_status" >&5
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ( exit $ac_status )
22212 ol_cv_pthread_lpthread_lmach_lexc=no
22214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22222 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22224 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22225 ol_link_pthreads="-lpthread -lmach -lexc"
22226 ol_link_threads=posix
22231 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22232 if test "$ol_link_threads" = no ; then
22233 # try -lpthread -Wl,-woff,85
22234 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22235 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22236 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22244 if test "$cross_compiling" = yes; then
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 /* pthread test headers */
22253 #include <pthread.h>
22254 #if HAVE_PTHREADS < 7
22258 #define NULL (void*)0
22261 static void *task(p)
22264 return (void *) (p == NULL);
22271 /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22277 int detach = PTHREAD_CREATE_DETACHED;
22279 #if HAVE_PTHREADS > 4
22280 /* Final pthreads */
22281 pthread_attr_t attr;
22283 status = pthread_attr_init(&attr);
22284 if( status ) return status;
22286 #if HAVE_PTHREADS < 7
22287 status = pthread_attr_setdetachstate(&attr, &detach);
22288 if( status < 0 ) status = errno;
22290 status = pthread_attr_setdetachstate(&attr, detach);
22292 if( status ) return status;
22293 status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295 if( status < 0 ) status = errno;
22297 if( status ) return status;
22299 /* Draft 4 pthreads */
22300 status = pthread_create( &t, pthread_attr_default, task, NULL );
22301 if( status ) return errno;
22303 /* give thread a chance to complete */
22304 /* it should remain joinable and hence detachable */
22307 status = pthread_detach( &t );
22308 if( status ) return errno;
22311 #ifdef HAVE_LINUX_THREADS
22312 pthread_kill_other_threads_np();
22321 rm -f conftest.$ac_objext conftest$ac_exeext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323 (eval $ac_link) 2>conftest.er1
22325 grep -v '^ *+' conftest.er1 >conftest.err
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } &&
22330 { ac_try='test -z "$ac_c_werror_flag"
22331 || test ! -s conftest.err'
22332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333 (eval $ac_try) 2>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); }; } &&
22337 { ac_try='test -s conftest$ac_exeext'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; }; then
22343 ol_cv_pthread_lib_lpthread_woff=yes
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ol_cv_pthread_lib_lpthread_woff=no
22350 rm -f conftest.err conftest.$ac_objext \
22351 conftest$ac_exeext conftest.$ac_ext
22353 cat >conftest.$ac_ext <<_ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 /* pthread test headers */
22361 #include <pthread.h>
22362 #if HAVE_PTHREADS < 7
22366 #define NULL (void*)0
22369 static void *task(p)
22372 return (void *) (p == NULL);
22376 int main(argc, argv)
22381 /* pthread test function */
22382 #ifndef PTHREAD_CREATE_DETACHED
22383 #define PTHREAD_CREATE_DETACHED 1
22387 int detach = PTHREAD_CREATE_DETACHED;
22389 #if HAVE_PTHREADS > 4
22390 /* Final pthreads */
22391 pthread_attr_t attr;
22393 status = pthread_attr_init(&attr);
22394 if( status ) return status;
22396 #if HAVE_PTHREADS < 7
22397 status = pthread_attr_setdetachstate(&attr, &detach);
22398 if( status < 0 ) status = errno;
22400 status = pthread_attr_setdetachstate(&attr, detach);
22402 if( status ) return status;
22403 status = pthread_create( &t, &attr, task, NULL );
22404 #if HAVE_PTHREADS < 7
22405 if( status < 0 ) status = errno;
22407 if( status ) return status;
22409 /* Draft 4 pthreads */
22410 status = pthread_create( &t, pthread_attr_default, task, NULL );
22411 if( status ) return errno;
22413 /* give thread a chance to complete */
22414 /* it should remain joinable and hence detachable */
22417 status = pthread_detach( &t );
22418 if( status ) return errno;
22421 #ifdef HAVE_LINUX_THREADS
22422 pthread_kill_other_threads_np();
22430 rm -f conftest$ac_exeext
22431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22432 (eval $ac_link) 2>&5
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437 (eval $ac_try) 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); }; }; then
22441 ol_cv_pthread_lib_lpthread_woff=yes
22443 echo "$as_me: program exited with status $ac_status" >&5
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ( exit $ac_status )
22448 ol_cv_pthread_lib_lpthread_woff=no
22450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22457 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22458 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22460 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22461 ol_link_pthreads="-lpthread -Wl,-woff,85"
22462 ol_link_threads=posix
22467 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22468 if test "$ol_link_threads" = no ; then
22470 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22471 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22472 if test "${ol_cv_pthread_lpthread+set}" = set; then
22473 echo $ECHO_N "(cached) $ECHO_C" >&6
22478 LIBS="-lpthread $LIBS"
22480 if test "$cross_compiling" = yes; then
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22488 /* pthread test headers */
22489 #include <pthread.h>
22490 #if HAVE_PTHREADS < 7
22494 #define NULL (void*)0
22497 static void *task(p)
22500 return (void *) (p == NULL);
22507 /* pthread test function */
22508 #ifndef PTHREAD_CREATE_DETACHED
22509 #define PTHREAD_CREATE_DETACHED 1
22513 int detach = PTHREAD_CREATE_DETACHED;
22515 #if HAVE_PTHREADS > 4
22516 /* Final pthreads */
22517 pthread_attr_t attr;
22519 status = pthread_attr_init(&attr);
22520 if( status ) return status;
22522 #if HAVE_PTHREADS < 7
22523 status = pthread_attr_setdetachstate(&attr, &detach);
22524 if( status < 0 ) status = errno;
22526 status = pthread_attr_setdetachstate(&attr, detach);
22528 if( status ) return status;
22529 status = pthread_create( &t, &attr, task, NULL );
22530 #if HAVE_PTHREADS < 7
22531 if( status < 0 ) status = errno;
22533 if( status ) return status;
22535 /* Draft 4 pthreads */
22536 status = pthread_create( &t, pthread_attr_default, task, NULL );
22537 if( status ) return errno;
22539 /* give thread a chance to complete */
22540 /* it should remain joinable and hence detachable */
22543 status = pthread_detach( &t );
22544 if( status ) return errno;
22547 #ifdef HAVE_LINUX_THREADS
22548 pthread_kill_other_threads_np();
22557 rm -f conftest.$ac_objext conftest$ac_exeext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22559 (eval $ac_link) 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -z "$ac_c_werror_flag"
22567 || test ! -s conftest.err'
22568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569 (eval $ac_try) 2>&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); }; } &&
22573 { ac_try='test -s conftest$ac_exeext'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 ol_cv_pthread_lpthread=yes
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22584 ol_cv_pthread_lpthread=no
22586 rm -f conftest.err conftest.$ac_objext \
22587 conftest$ac_exeext conftest.$ac_ext
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22596 /* pthread test headers */
22597 #include <pthread.h>
22598 #if HAVE_PTHREADS < 7
22602 #define NULL (void*)0
22605 static void *task(p)
22608 return (void *) (p == NULL);
22612 int main(argc, argv)
22617 /* pthread test function */
22618 #ifndef PTHREAD_CREATE_DETACHED
22619 #define PTHREAD_CREATE_DETACHED 1
22623 int detach = PTHREAD_CREATE_DETACHED;
22625 #if HAVE_PTHREADS > 4
22626 /* Final pthreads */
22627 pthread_attr_t attr;
22629 status = pthread_attr_init(&attr);
22630 if( status ) return status;
22632 #if HAVE_PTHREADS < 7
22633 status = pthread_attr_setdetachstate(&attr, &detach);
22634 if( status < 0 ) status = errno;
22636 status = pthread_attr_setdetachstate(&attr, detach);
22638 if( status ) return status;
22639 status = pthread_create( &t, &attr, task, NULL );
22640 #if HAVE_PTHREADS < 7
22641 if( status < 0 ) status = errno;
22643 if( status ) return status;
22645 /* Draft 4 pthreads */
22646 status = pthread_create( &t, pthread_attr_default, task, NULL );
22647 if( status ) return errno;
22649 /* give thread a chance to complete */
22650 /* it should remain joinable and hence detachable */
22653 status = pthread_detach( &t );
22654 if( status ) return errno;
22657 #ifdef HAVE_LINUX_THREADS
22658 pthread_kill_other_threads_np();
22666 rm -f conftest$ac_exeext
22667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22668 (eval $ac_link) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22677 ol_cv_pthread_lpthread=yes
22679 echo "$as_me: program exited with status $ac_status" >&5
22680 echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22683 ( exit $ac_status )
22684 ol_cv_pthread_lpthread=no
22686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22693 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22694 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22696 if test $ol_cv_pthread_lpthread = yes ; then
22697 ol_link_pthreads="-lpthread"
22698 ol_link_threads=posix
22702 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22703 if test "$ol_link_threads" = no ; then
22705 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22706 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22707 if test "${ol_cv_pthread_lc_r+set}" = set; then
22708 echo $ECHO_N "(cached) $ECHO_C" >&6
22715 if test "$cross_compiling" = yes; then
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22723 /* pthread test headers */
22724 #include <pthread.h>
22725 #if HAVE_PTHREADS < 7
22729 #define NULL (void*)0
22732 static void *task(p)
22735 return (void *) (p == NULL);
22742 /* pthread test function */
22743 #ifndef PTHREAD_CREATE_DETACHED
22744 #define PTHREAD_CREATE_DETACHED 1
22748 int detach = PTHREAD_CREATE_DETACHED;
22750 #if HAVE_PTHREADS > 4
22751 /* Final pthreads */
22752 pthread_attr_t attr;
22754 status = pthread_attr_init(&attr);
22755 if( status ) return status;
22757 #if HAVE_PTHREADS < 7
22758 status = pthread_attr_setdetachstate(&attr, &detach);
22759 if( status < 0 ) status = errno;
22761 status = pthread_attr_setdetachstate(&attr, detach);
22763 if( status ) return status;
22764 status = pthread_create( &t, &attr, task, NULL );
22765 #if HAVE_PTHREADS < 7
22766 if( status < 0 ) status = errno;
22768 if( status ) return status;
22770 /* Draft 4 pthreads */
22771 status = pthread_create( &t, pthread_attr_default, task, NULL );
22772 if( status ) return errno;
22774 /* give thread a chance to complete */
22775 /* it should remain joinable and hence detachable */
22778 status = pthread_detach( &t );
22779 if( status ) return errno;
22782 #ifdef HAVE_LINUX_THREADS
22783 pthread_kill_other_threads_np();
22792 rm -f conftest.$ac_objext conftest$ac_exeext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22794 (eval $ac_link) 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag"
22802 || test ! -s conftest.err'
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; } &&
22808 { ac_try='test -s conftest$ac_exeext'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; }; then
22814 ol_cv_pthread_lc_r=yes
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819 ol_cv_pthread_lc_r=no
22821 rm -f conftest.err conftest.$ac_objext \
22822 conftest$ac_exeext conftest.$ac_ext
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22831 /* pthread test headers */
22832 #include <pthread.h>
22833 #if HAVE_PTHREADS < 7
22837 #define NULL (void*)0
22840 static void *task(p)
22843 return (void *) (p == NULL);
22847 int main(argc, argv)
22852 /* pthread test function */
22853 #ifndef PTHREAD_CREATE_DETACHED
22854 #define PTHREAD_CREATE_DETACHED 1
22858 int detach = PTHREAD_CREATE_DETACHED;
22860 #if HAVE_PTHREADS > 4
22861 /* Final pthreads */
22862 pthread_attr_t attr;
22864 status = pthread_attr_init(&attr);
22865 if( status ) return status;
22867 #if HAVE_PTHREADS < 7
22868 status = pthread_attr_setdetachstate(&attr, &detach);
22869 if( status < 0 ) status = errno;
22871 status = pthread_attr_setdetachstate(&attr, detach);
22873 if( status ) return status;
22874 status = pthread_create( &t, &attr, task, NULL );
22875 #if HAVE_PTHREADS < 7
22876 if( status < 0 ) status = errno;
22878 if( status ) return status;
22880 /* Draft 4 pthreads */
22881 status = pthread_create( &t, pthread_attr_default, task, NULL );
22882 if( status ) return errno;
22884 /* give thread a chance to complete */
22885 /* it should remain joinable and hence detachable */
22888 status = pthread_detach( &t );
22889 if( status ) return errno;
22892 #ifdef HAVE_LINUX_THREADS
22893 pthread_kill_other_threads_np();
22901 rm -f conftest$ac_exeext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22903 (eval $ac_link) 2>&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; }; then
22912 ol_cv_pthread_lc_r=yes
22914 echo "$as_me: program exited with status $ac_status" >&5
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ( exit $ac_status )
22919 ol_cv_pthread_lc_r=no
22921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22928 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22929 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22931 if test $ol_cv_pthread_lc_r = yes ; then
22932 ol_link_pthreads="-lc_r"
22933 ol_link_threads=posix
22938 # Pthread try link: -threads (ol_cv_pthread_threads)
22939 if test "$ol_link_threads" = no ; then
22941 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22942 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22943 if test "${ol_cv_pthread_threads+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22949 LIBS="-threads $LIBS"
22951 if test "$cross_compiling" = yes; then
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22959 /* pthread test headers */
22960 #include <pthread.h>
22961 #if HAVE_PTHREADS < 7
22965 #define NULL (void*)0
22968 static void *task(p)
22971 return (void *) (p == NULL);
22978 /* pthread test function */
22979 #ifndef PTHREAD_CREATE_DETACHED
22980 #define PTHREAD_CREATE_DETACHED 1
22984 int detach = PTHREAD_CREATE_DETACHED;
22986 #if HAVE_PTHREADS > 4
22987 /* Final pthreads */
22988 pthread_attr_t attr;
22990 status = pthread_attr_init(&attr);
22991 if( status ) return status;
22993 #if HAVE_PTHREADS < 7
22994 status = pthread_attr_setdetachstate(&attr, &detach);
22995 if( status < 0 ) status = errno;
22997 status = pthread_attr_setdetachstate(&attr, detach);
22999 if( status ) return status;
23000 status = pthread_create( &t, &attr, task, NULL );
23001 #if HAVE_PTHREADS < 7
23002 if( status < 0 ) status = errno;
23004 if( status ) return status;
23006 /* Draft 4 pthreads */
23007 status = pthread_create( &t, pthread_attr_default, task, NULL );
23008 if( status ) return errno;
23010 /* give thread a chance to complete */
23011 /* it should remain joinable and hence detachable */
23014 status = pthread_detach( &t );
23015 if( status ) return errno;
23018 #ifdef HAVE_LINUX_THREADS
23019 pthread_kill_other_threads_np();
23028 rm -f conftest.$ac_objext conftest$ac_exeext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23030 (eval $ac_link) 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
23037 { ac_try='test -z "$ac_c_werror_flag"
23038 || test ! -s conftest.err'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; } &&
23044 { ac_try='test -s conftest$ac_exeext'
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ol_cv_pthread_threads=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ol_cv_pthread_threads=no
23057 rm -f conftest.err conftest.$ac_objext \
23058 conftest$ac_exeext conftest.$ac_ext
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23067 /* pthread test headers */
23068 #include <pthread.h>
23069 #if HAVE_PTHREADS < 7
23073 #define NULL (void*)0
23076 static void *task(p)
23079 return (void *) (p == NULL);
23083 int main(argc, argv)
23088 /* pthread test function */
23089 #ifndef PTHREAD_CREATE_DETACHED
23090 #define PTHREAD_CREATE_DETACHED 1
23094 int detach = PTHREAD_CREATE_DETACHED;
23096 #if HAVE_PTHREADS > 4
23097 /* Final pthreads */
23098 pthread_attr_t attr;
23100 status = pthread_attr_init(&attr);
23101 if( status ) return status;
23103 #if HAVE_PTHREADS < 7
23104 status = pthread_attr_setdetachstate(&attr, &detach);
23105 if( status < 0 ) status = errno;
23107 status = pthread_attr_setdetachstate(&attr, detach);
23109 if( status ) return status;
23110 status = pthread_create( &t, &attr, task, NULL );
23111 #if HAVE_PTHREADS < 7
23112 if( status < 0 ) status = errno;
23114 if( status ) return status;
23116 /* Draft 4 pthreads */
23117 status = pthread_create( &t, pthread_attr_default, task, NULL );
23118 if( status ) return errno;
23120 /* give thread a chance to complete */
23121 /* it should remain joinable and hence detachable */
23124 status = pthread_detach( &t );
23125 if( status ) return errno;
23128 #ifdef HAVE_LINUX_THREADS
23129 pthread_kill_other_threads_np();
23137 rm -f conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139 (eval $ac_link) 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23144 (eval $ac_try) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); }; }; then
23148 ol_cv_pthread_threads=yes
23150 echo "$as_me: program exited with status $ac_status" >&5
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 ( exit $ac_status )
23155 ol_cv_pthread_threads=no
23157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23165 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23167 if test $ol_cv_pthread_threads = yes ; then
23168 ol_link_pthreads="-threads"
23169 ol_link_threads=posix
23174 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23175 if test "$ol_link_threads" = no ; then
23176 # try -lpthreads -lmach -lexc -lc_r
23177 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23178 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23179 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23185 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23187 if test "$cross_compiling" = yes; then
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23195 /* pthread test headers */
23196 #include <pthread.h>
23197 #if HAVE_PTHREADS < 7
23201 #define NULL (void*)0
23204 static void *task(p)
23207 return (void *) (p == NULL);
23214 /* pthread test function */
23215 #ifndef PTHREAD_CREATE_DETACHED
23216 #define PTHREAD_CREATE_DETACHED 1
23220 int detach = PTHREAD_CREATE_DETACHED;
23222 #if HAVE_PTHREADS > 4
23223 /* Final pthreads */
23224 pthread_attr_t attr;
23226 status = pthread_attr_init(&attr);
23227 if( status ) return status;
23229 #if HAVE_PTHREADS < 7
23230 status = pthread_attr_setdetachstate(&attr, &detach);
23231 if( status < 0 ) status = errno;
23233 status = pthread_attr_setdetachstate(&attr, detach);
23235 if( status ) return status;
23236 status = pthread_create( &t, &attr, task, NULL );
23237 #if HAVE_PTHREADS < 7
23238 if( status < 0 ) status = errno;
23240 if( status ) return status;
23242 /* Draft 4 pthreads */
23243 status = pthread_create( &t, pthread_attr_default, task, NULL );
23244 if( status ) return errno;
23246 /* give thread a chance to complete */
23247 /* it should remain joinable and hence detachable */
23250 status = pthread_detach( &t );
23251 if( status ) return errno;
23254 #ifdef HAVE_LINUX_THREADS
23255 pthread_kill_other_threads_np();
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag"
23274 || test ! -s conftest.err'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; } &&
23280 { ac_try='test -s conftest$ac_exeext'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23293 rm -f conftest.err conftest.$ac_objext \
23294 conftest$ac_exeext conftest.$ac_ext
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23303 /* pthread test headers */
23304 #include <pthread.h>
23305 #if HAVE_PTHREADS < 7
23309 #define NULL (void*)0
23312 static void *task(p)
23315 return (void *) (p == NULL);
23319 int main(argc, argv)
23324 /* pthread test function */
23325 #ifndef PTHREAD_CREATE_DETACHED
23326 #define PTHREAD_CREATE_DETACHED 1
23330 int detach = PTHREAD_CREATE_DETACHED;
23332 #if HAVE_PTHREADS > 4
23333 /* Final pthreads */
23334 pthread_attr_t attr;
23336 status = pthread_attr_init(&attr);
23337 if( status ) return status;
23339 #if HAVE_PTHREADS < 7
23340 status = pthread_attr_setdetachstate(&attr, &detach);
23341 if( status < 0 ) status = errno;
23343 status = pthread_attr_setdetachstate(&attr, detach);
23345 if( status ) return status;
23346 status = pthread_create( &t, &attr, task, NULL );
23347 #if HAVE_PTHREADS < 7
23348 if( status < 0 ) status = errno;
23350 if( status ) return status;
23352 /* Draft 4 pthreads */
23353 status = pthread_create( &t, pthread_attr_default, task, NULL );
23354 if( status ) return errno;
23356 /* give thread a chance to complete */
23357 /* it should remain joinable and hence detachable */
23360 status = pthread_detach( &t );
23361 if( status ) return errno;
23364 #ifdef HAVE_LINUX_THREADS
23365 pthread_kill_other_threads_np();
23373 rm -f conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375 (eval $ac_link) 2>&5
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23386 echo "$as_me: program exited with status $ac_status" >&5
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23390 ( exit $ac_status )
23391 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23400 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23401 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23403 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23404 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23405 ol_link_threads=posix
23409 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23410 if test "$ol_link_threads" = no ; then
23411 # try -lpthreads -lmach -lexc
23412 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23413 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23414 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23420 LIBS="-lpthreads -lmach -lexc $LIBS"
23422 if test "$cross_compiling" = yes; then
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23430 /* pthread test headers */
23431 #include <pthread.h>
23432 #if HAVE_PTHREADS < 7
23436 #define NULL (void*)0
23439 static void *task(p)
23442 return (void *) (p == NULL);
23449 /* pthread test function */
23450 #ifndef PTHREAD_CREATE_DETACHED
23451 #define PTHREAD_CREATE_DETACHED 1
23455 int detach = PTHREAD_CREATE_DETACHED;
23457 #if HAVE_PTHREADS > 4
23458 /* Final pthreads */
23459 pthread_attr_t attr;
23461 status = pthread_attr_init(&attr);
23462 if( status ) return status;
23464 #if HAVE_PTHREADS < 7
23465 status = pthread_attr_setdetachstate(&attr, &detach);
23466 if( status < 0 ) status = errno;
23468 status = pthread_attr_setdetachstate(&attr, detach);
23470 if( status ) return status;
23471 status = pthread_create( &t, &attr, task, NULL );
23472 #if HAVE_PTHREADS < 7
23473 if( status < 0 ) status = errno;
23475 if( status ) return status;
23477 /* Draft 4 pthreads */
23478 status = pthread_create( &t, pthread_attr_default, task, NULL );
23479 if( status ) return errno;
23481 /* give thread a chance to complete */
23482 /* it should remain joinable and hence detachable */
23485 status = pthread_detach( &t );
23486 if( status ) return errno;
23489 #ifdef HAVE_LINUX_THREADS
23490 pthread_kill_other_threads_np();
23499 rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501 (eval $ac_link) 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -z "$ac_c_werror_flag"
23509 || test ! -s conftest.err'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; } &&
23515 { ac_try='test -s conftest$ac_exeext'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521 ol_cv_pthread_lpthreads_lmach_lexc=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ol_cv_pthread_lpthreads_lmach_lexc=no
23528 rm -f conftest.err conftest.$ac_objext \
23529 conftest$ac_exeext conftest.$ac_ext
23531 cat >conftest.$ac_ext <<_ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h. */
23538 /* pthread test headers */
23539 #include <pthread.h>
23540 #if HAVE_PTHREADS < 7
23544 #define NULL (void*)0
23547 static void *task(p)
23550 return (void *) (p == NULL);
23554 int main(argc, argv)
23559 /* pthread test function */
23560 #ifndef PTHREAD_CREATE_DETACHED
23561 #define PTHREAD_CREATE_DETACHED 1
23565 int detach = PTHREAD_CREATE_DETACHED;
23567 #if HAVE_PTHREADS > 4
23568 /* Final pthreads */
23569 pthread_attr_t attr;
23571 status = pthread_attr_init(&attr);
23572 if( status ) return status;
23574 #if HAVE_PTHREADS < 7
23575 status = pthread_attr_setdetachstate(&attr, &detach);
23576 if( status < 0 ) status = errno;
23578 status = pthread_attr_setdetachstate(&attr, detach);
23580 if( status ) return status;
23581 status = pthread_create( &t, &attr, task, NULL );
23582 #if HAVE_PTHREADS < 7
23583 if( status < 0 ) status = errno;
23585 if( status ) return status;
23587 /* Draft 4 pthreads */
23588 status = pthread_create( &t, pthread_attr_default, task, NULL );
23589 if( status ) return errno;
23591 /* give thread a chance to complete */
23592 /* it should remain joinable and hence detachable */
23595 status = pthread_detach( &t );
23596 if( status ) return errno;
23599 #ifdef HAVE_LINUX_THREADS
23600 pthread_kill_other_threads_np();
23608 rm -f conftest$ac_exeext
23609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23610 (eval $ac_link) 2>&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 ol_cv_pthread_lpthreads_lmach_lexc=yes
23621 echo "$as_me: program exited with status $ac_status" >&5
23622 echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23625 ( exit $ac_status )
23626 ol_cv_pthread_lpthreads_lmach_lexc=no
23628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23635 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23636 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23638 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23639 ol_link_pthreads="-lpthreads -lmach -lexc"
23640 ol_link_threads=posix
23644 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23645 if test "$ol_link_threads" = no ; then
23646 # try -lpthreads -lexc
23647 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23648 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23649 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23655 LIBS="-lpthreads -lexc $LIBS"
23657 if test "$cross_compiling" = yes; then
23658 cat >conftest.$ac_ext <<_ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23665 /* pthread test headers */
23666 #include <pthread.h>
23667 #if HAVE_PTHREADS < 7
23671 #define NULL (void*)0
23674 static void *task(p)
23677 return (void *) (p == NULL);
23684 /* pthread test function */
23685 #ifndef PTHREAD_CREATE_DETACHED
23686 #define PTHREAD_CREATE_DETACHED 1
23690 int detach = PTHREAD_CREATE_DETACHED;
23692 #if HAVE_PTHREADS > 4
23693 /* Final pthreads */
23694 pthread_attr_t attr;
23696 status = pthread_attr_init(&attr);
23697 if( status ) return status;
23699 #if HAVE_PTHREADS < 7
23700 status = pthread_attr_setdetachstate(&attr, &detach);
23701 if( status < 0 ) status = errno;
23703 status = pthread_attr_setdetachstate(&attr, detach);
23705 if( status ) return status;
23706 status = pthread_create( &t, &attr, task, NULL );
23707 #if HAVE_PTHREADS < 7
23708 if( status < 0 ) status = errno;
23710 if( status ) return status;
23712 /* Draft 4 pthreads */
23713 status = pthread_create( &t, pthread_attr_default, task, NULL );
23714 if( status ) return errno;
23716 /* give thread a chance to complete */
23717 /* it should remain joinable and hence detachable */
23720 status = pthread_detach( &t );
23721 if( status ) return errno;
23724 #ifdef HAVE_LINUX_THREADS
23725 pthread_kill_other_threads_np();
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736 (eval $ac_link) 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag"
23744 || test ! -s conftest.err'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; } &&
23750 { ac_try='test -s conftest$ac_exeext'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 ol_cv_pthread_lpthreads_lexc=yes
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ol_cv_pthread_lpthreads_lexc=no
23763 rm -f conftest.err conftest.$ac_objext \
23764 conftest$ac_exeext conftest.$ac_ext
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23773 /* pthread test headers */
23774 #include <pthread.h>
23775 #if HAVE_PTHREADS < 7
23779 #define NULL (void*)0
23782 static void *task(p)
23785 return (void *) (p == NULL);
23789 int main(argc, argv)
23794 /* pthread test function */
23795 #ifndef PTHREAD_CREATE_DETACHED
23796 #define PTHREAD_CREATE_DETACHED 1
23800 int detach = PTHREAD_CREATE_DETACHED;
23802 #if HAVE_PTHREADS > 4
23803 /* Final pthreads */
23804 pthread_attr_t attr;
23806 status = pthread_attr_init(&attr);
23807 if( status ) return status;
23809 #if HAVE_PTHREADS < 7
23810 status = pthread_attr_setdetachstate(&attr, &detach);
23811 if( status < 0 ) status = errno;
23813 status = pthread_attr_setdetachstate(&attr, detach);
23815 if( status ) return status;
23816 status = pthread_create( &t, &attr, task, NULL );
23817 #if HAVE_PTHREADS < 7
23818 if( status < 0 ) status = errno;
23820 if( status ) return status;
23822 /* Draft 4 pthreads */
23823 status = pthread_create( &t, pthread_attr_default, task, NULL );
23824 if( status ) return errno;
23826 /* give thread a chance to complete */
23827 /* it should remain joinable and hence detachable */
23830 status = pthread_detach( &t );
23831 if( status ) return errno;
23834 #ifdef HAVE_LINUX_THREADS
23835 pthread_kill_other_threads_np();
23843 rm -f conftest$ac_exeext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845 (eval $ac_link) 2>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854 ol_cv_pthread_lpthreads_lexc=yes
23856 echo "$as_me: program exited with status $ac_status" >&5
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 ( exit $ac_status )
23861 ol_cv_pthread_lpthreads_lexc=no
23863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23870 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23871 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23873 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23874 ol_link_pthreads="-lpthreads -lexc"
23875 ol_link_threads=posix
23880 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23881 if test "$ol_link_threads" = no ; then
23883 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23884 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23885 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23886 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 LIBS="-lpthreads $LIBS"
23893 if test "$cross_compiling" = yes; then
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23901 /* pthread test headers */
23902 #include <pthread.h>
23903 #if HAVE_PTHREADS < 7
23907 #define NULL (void*)0
23910 static void *task(p)
23913 return (void *) (p == NULL);
23920 /* pthread test function */
23921 #ifndef PTHREAD_CREATE_DETACHED
23922 #define PTHREAD_CREATE_DETACHED 1
23926 int detach = PTHREAD_CREATE_DETACHED;
23928 #if HAVE_PTHREADS > 4
23929 /* Final pthreads */
23930 pthread_attr_t attr;
23932 status = pthread_attr_init(&attr);
23933 if( status ) return status;
23935 #if HAVE_PTHREADS < 7
23936 status = pthread_attr_setdetachstate(&attr, &detach);
23937 if( status < 0 ) status = errno;
23939 status = pthread_attr_setdetachstate(&attr, detach);
23941 if( status ) return status;
23942 status = pthread_create( &t, &attr, task, NULL );
23943 #if HAVE_PTHREADS < 7
23944 if( status < 0 ) status = errno;
23946 if( status ) return status;
23948 /* Draft 4 pthreads */
23949 status = pthread_create( &t, pthread_attr_default, task, NULL );
23950 if( status ) return errno;
23952 /* give thread a chance to complete */
23953 /* it should remain joinable and hence detachable */
23956 status = pthread_detach( &t );
23957 if( status ) return errno;
23960 #ifdef HAVE_LINUX_THREADS
23961 pthread_kill_other_threads_np();
23970 rm -f conftest.$ac_objext conftest$ac_exeext
23971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23972 (eval $ac_link) 2>conftest.er1
23974 grep -v '^ *+' conftest.er1 >conftest.err
23976 cat conftest.err >&5
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
23979 { ac_try='test -z "$ac_c_werror_flag"
23980 || test ! -s conftest.err'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; } &&
23986 { ac_try='test -s conftest$ac_exeext'
23987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23988 (eval $ac_try) 2>&5
23990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); }; }; then
23992 ol_cv_pthread_lib_lpthreads=yes
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 ol_cv_pthread_lib_lpthreads=no
23999 rm -f conftest.err conftest.$ac_objext \
24000 conftest$ac_exeext conftest.$ac_ext
24002 cat >conftest.$ac_ext <<_ACEOF
24005 cat confdefs.h >>conftest.$ac_ext
24006 cat >>conftest.$ac_ext <<_ACEOF
24007 /* end confdefs.h. */
24009 /* pthread test headers */
24010 #include <pthread.h>
24011 #if HAVE_PTHREADS < 7
24015 #define NULL (void*)0
24018 static void *task(p)
24021 return (void *) (p == NULL);
24025 int main(argc, argv)
24030 /* pthread test function */
24031 #ifndef PTHREAD_CREATE_DETACHED
24032 #define PTHREAD_CREATE_DETACHED 1
24036 int detach = PTHREAD_CREATE_DETACHED;
24038 #if HAVE_PTHREADS > 4
24039 /* Final pthreads */
24040 pthread_attr_t attr;
24042 status = pthread_attr_init(&attr);
24043 if( status ) return status;
24045 #if HAVE_PTHREADS < 7
24046 status = pthread_attr_setdetachstate(&attr, &detach);
24047 if( status < 0 ) status = errno;
24049 status = pthread_attr_setdetachstate(&attr, detach);
24051 if( status ) return status;
24052 status = pthread_create( &t, &attr, task, NULL );
24053 #if HAVE_PTHREADS < 7
24054 if( status < 0 ) status = errno;
24056 if( status ) return status;
24058 /* Draft 4 pthreads */
24059 status = pthread_create( &t, pthread_attr_default, task, NULL );
24060 if( status ) return errno;
24062 /* give thread a chance to complete */
24063 /* it should remain joinable and hence detachable */
24066 status = pthread_detach( &t );
24067 if( status ) return errno;
24070 #ifdef HAVE_LINUX_THREADS
24071 pthread_kill_other_threads_np();
24079 rm -f conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081 (eval $ac_link) 2>&5
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24086 (eval $ac_try) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); }; }; then
24090 ol_cv_pthread_lib_lpthreads=yes
24092 echo "$as_me: program exited with status $ac_status" >&5
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24096 ( exit $ac_status )
24097 ol_cv_pthread_lib_lpthreads=no
24099 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24106 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24107 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24109 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24110 ol_link_pthreads="-lpthreads"
24111 ol_link_threads=posix
24116 if test $ol_link_threads != no ; then
24117 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24119 save_CPPFLAGS="$CPPFLAGS"
24121 LIBS="$LTHREAD_LIBS $LIBS"
24126 for ac_func in sched_yield pthread_yield thr_yield
24128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24129 echo "$as_me:$LINENO: checking for $ac_func" >&5
24130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24131 if eval "test \"\${$as_ac_var+set}\" = set"; then
24132 echo $ECHO_N "(cached) $ECHO_C" >&6
24134 cat >conftest.$ac_ext <<_ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24142 #define $ac_func innocuous_$ac_func
24144 /* System header to define __stub macros and hopefully few prototypes,
24145 which can conflict with char $ac_func (); below.
24146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24147 <limits.h> exists even on freestanding compilers. */
24150 # include <limits.h>
24152 # include <assert.h>
24157 /* Override any gcc2 internal prototype to avoid an error. */
24162 /* We use char because int might match the return type of a gcc2
24163 builtin and then its argument prototype would still apply. */
24165 /* The GNU C library defines this for functions which it implements
24166 to always fail with ENOSYS. Some functions are actually named
24167 something starting with __ and the normal name is an alias. */
24168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24171 char (*f) () = $ac_func;
24180 return f != $ac_func;
24185 rm -f conftest.$ac_objext conftest$ac_exeext
24186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest$ac_exeext'
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 eval "$as_ac_var=yes"
24209 echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24212 eval "$as_ac_var=no"
24214 rm -f conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
24217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24219 if test `eval echo '${'$as_ac_var'}'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24228 if test $ac_cv_func_sched_yield = no &&
24229 test $ac_cv_func_pthread_yield = no &&
24230 test $ac_cv_func_thr_yield = no ; then
24231 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24232 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24233 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24234 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 ac_check_lib_save_LIBS=$LIBS
24238 cat >conftest.$ac_ext <<_ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h. */
24245 /* Override any gcc2 internal prototype to avoid an error. */
24249 /* We use char because int might match the return type of a gcc2
24250 builtin and then its argument prototype would still apply. */
24251 char sched_yield ();
24260 rm -f conftest.$ac_objext conftest$ac_exeext
24261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24262 (eval $ac_link) 2>conftest.er1
24264 grep -v '^ *+' conftest.er1 >conftest.err
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
24269 { ac_try='test -z "$ac_c_werror_flag"
24270 || test ! -s conftest.err'
24271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272 (eval $ac_try) 2>&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); }; } &&
24276 { ac_try='test -s conftest$ac_exeext'
24277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24278 (eval $ac_try) 2>&5
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); }; }; then
24282 ac_cv_lib_rt_sched_yield=yes
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ac_cv_lib_rt_sched_yield=no
24289 rm -f conftest.err conftest.$ac_objext \
24290 conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24293 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24294 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24295 if test $ac_cv_lib_rt_sched_yield = yes; then
24296 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24298 cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_SCHED_YIELD 1
24302 ac_cv_func_sched_yield=yes
24304 ac_cv_func_sched_yield=no
24308 if test $ac_cv_func_sched_yield = no &&
24309 test $ac_cv_func_pthread_yield = no &&
24310 test "$ac_cv_func_thr_yield" = no ; then
24311 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24312 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24317 for ac_func in pthread_kill pthread_rwlock_destroy
24319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24320 echo "$as_me:$LINENO: checking for $ac_func" >&5
24321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24322 if eval "test \"\${$as_ac_var+set}\" = set"; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24333 #define $ac_func innocuous_$ac_func
24335 /* System header to define __stub macros and hopefully few prototypes,
24336 which can conflict with char $ac_func (); below.
24337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338 <limits.h> exists even on freestanding compilers. */
24341 # include <limits.h>
24343 # include <assert.h>
24348 /* Override any gcc2 internal prototype to avoid an error. */
24353 /* We use char because int might match the return type of a gcc2
24354 builtin and then its argument prototype would still apply. */
24356 /* The GNU C library defines this for functions which it implements
24357 to always fail with ENOSYS. Some functions are actually named
24358 something starting with __ and the normal name is an alias. */
24359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24362 char (*f) () = $ac_func;
24371 return f != $ac_func;
24376 rm -f conftest.$ac_objext conftest$ac_exeext
24377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24378 (eval $ac_link) 2>conftest.er1
24380 grep -v '^ *+' conftest.er1 >conftest.err
24382 cat conftest.err >&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } &&
24385 { ac_try='test -z "$ac_c_werror_flag"
24386 || test ! -s conftest.err'
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; } &&
24392 { ac_try='test -s conftest$ac_exeext'
24393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394 (eval $ac_try) 2>&5
24396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397 (exit $ac_status); }; }; then
24398 eval "$as_ac_var=yes"
24400 echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24403 eval "$as_ac_var=no"
24405 rm -f conftest.err conftest.$ac_objext \
24406 conftest$ac_exeext conftest.$ac_ext
24408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24410 if test `eval echo '${'$as_ac_var'}'` = yes; then
24411 cat >>confdefs.h <<_ACEOF
24412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24419 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24420 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24421 if test "${ol_cv_func_pthread_detach+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24432 #include <pthread.h>
24434 #define NULL (void*)0
24440 pthread_detach(NULL);
24445 rm -f conftest.$ac_objext conftest$ac_exeext
24446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24447 (eval $ac_link) 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } &&
24454 { ac_try='test -z "$ac_c_werror_flag"
24455 || test ! -s conftest.err'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest$ac_exeext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24467 ol_cv_func_pthread_detach=yes
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ol_cv_func_pthread_detach=no
24474 rm -f conftest.err conftest.$ac_objext \
24475 conftest$ac_exeext conftest.$ac_ext
24478 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24479 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24481 if test $ol_cv_func_pthread_detach = no ; then
24482 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24483 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24484 { (exit 1); exit 1; }; }
24488 cat >>confdefs.h <<\_ACEOF
24489 #define HAVE_PTHREAD_DETACH 1
24498 pthread_setconcurrency \
24499 pthread_getconcurrency \
24500 thr_setconcurrency \
24501 thr_getconcurrency \
24504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24505 echo "$as_me:$LINENO: checking for $ac_func" >&5
24506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24507 if eval "test \"\${$as_ac_var+set}\" = set"; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 cat >conftest.$ac_ext <<_ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24518 #define $ac_func innocuous_$ac_func
24520 /* System header to define __stub macros and hopefully few prototypes,
24521 which can conflict with char $ac_func (); below.
24522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24523 <limits.h> exists even on freestanding compilers. */
24526 # include <limits.h>
24528 # include <assert.h>
24533 /* Override any gcc2 internal prototype to avoid an error. */
24538 /* We use char because int might match the return type of a gcc2
24539 builtin and then its argument prototype would still apply. */
24541 /* The GNU C library defines this for functions which it implements
24542 to always fail with ENOSYS. Some functions are actually named
24543 something starting with __ and the normal name is an alias. */
24544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24547 char (*f) () = $ac_func;
24556 return f != $ac_func;
24561 rm -f conftest.$ac_objext conftest$ac_exeext
24562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24563 (eval $ac_link) 2>conftest.er1
24565 grep -v '^ *+' conftest.er1 >conftest.err
24567 cat conftest.err >&5
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); } &&
24570 { ac_try='test -z "$ac_c_werror_flag"
24571 || test ! -s conftest.err'
24572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24573 (eval $ac_try) 2>&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; } &&
24577 { ac_try='test -s conftest$ac_exeext'
24578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24579 (eval $ac_try) 2>&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 eval "$as_ac_var=yes"
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24588 eval "$as_ac_var=no"
24590 rm -f conftest.err conftest.$ac_objext \
24591 conftest$ac_exeext conftest.$ac_ext
24593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24595 if test `eval echo '${'$as_ac_var'}'` = yes; then
24596 cat >>confdefs.h <<_ACEOF
24597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24606 for ac_func in pthread_kill_other_threads_np
24608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24609 echo "$as_me:$LINENO: checking for $ac_func" >&5
24610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24611 if eval "test \"\${$as_ac_var+set}\" = set"; then
24612 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 cat >conftest.$ac_ext <<_ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h. */
24620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24622 #define $ac_func innocuous_$ac_func
24624 /* System header to define __stub macros and hopefully few prototypes,
24625 which can conflict with char $ac_func (); below.
24626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24627 <limits.h> exists even on freestanding compilers. */
24630 # include <limits.h>
24632 # include <assert.h>
24637 /* Override any gcc2 internal prototype to avoid an error. */
24642 /* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24645 /* The GNU C library defines this for functions which it implements
24646 to always fail with ENOSYS. Some functions are actually named
24647 something starting with __ and the normal name is an alias. */
24648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24651 char (*f) () = $ac_func;
24660 return f != $ac_func;
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24667 (eval $ac_link) 2>conftest.er1
24669 grep -v '^ *+' conftest.er1 >conftest.err
24671 cat conftest.err >&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } &&
24674 { ac_try='test -z "$ac_c_werror_flag"
24675 || test ! -s conftest.err'
24676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24677 (eval $ac_try) 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; } &&
24681 { ac_try='test -s conftest$ac_exeext'
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
24687 eval "$as_ac_var=yes"
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 eval "$as_ac_var=no"
24694 rm -f conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
24697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24699 if test `eval echo '${'$as_ac_var'}'` = yes; then
24700 cat >>confdefs.h <<_ACEOF
24701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24707 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24708 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24709 if test "${ol_cv_sys_linux_threads+set}" = set; then
24710 echo $ECHO_N "(cached) $ECHO_C" >&6
24712 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24714 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24715 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24720 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24721 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24722 if test "${ol_cv_linux_threads+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 if test $ol_cv_header_linux_threads = yes &&
24727 test $ol_cv_sys_linux_threads = yes; then
24728 ol_cv_linux_threads=yes
24729 elif test $ol_cv_header_linux_threads = no &&
24730 test $ol_cv_sys_linux_threads = no; then
24731 ol_cv_linux_threads=no
24733 ol_cv_linux_threads=error
24737 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24738 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24741 if test $ol_cv_linux_threads = error; then
24742 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24743 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24744 { (exit 1); exit 1; }; };
24747 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24748 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24749 if test "${ol_cv_pthread_create_works+set}" = set; then
24750 echo $ECHO_N "(cached) $ECHO_C" >&6
24753 if test "$cross_compiling" = yes; then
24754 ol_cv_pthread_create_works=yes
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24763 /* pthread test headers */
24764 #include <pthread.h>
24765 #if HAVE_PTHREADS < 7
24769 #define NULL (void*)0
24772 static void *task(p)
24775 return (void *) (p == NULL);
24779 int main(argc, argv)
24784 /* pthread test function */
24785 #ifndef PTHREAD_CREATE_DETACHED
24786 #define PTHREAD_CREATE_DETACHED 1
24790 int detach = PTHREAD_CREATE_DETACHED;
24792 #if HAVE_PTHREADS > 4
24793 /* Final pthreads */
24794 pthread_attr_t attr;
24796 status = pthread_attr_init(&attr);
24797 if( status ) return status;
24799 #if HAVE_PTHREADS < 7
24800 status = pthread_attr_setdetachstate(&attr, &detach);
24801 if( status < 0 ) status = errno;
24803 status = pthread_attr_setdetachstate(&attr, detach);
24805 if( status ) return status;
24806 status = pthread_create( &t, &attr, task, NULL );
24807 #if HAVE_PTHREADS < 7
24808 if( status < 0 ) status = errno;
24810 if( status ) return status;
24812 /* Draft 4 pthreads */
24813 status = pthread_create( &t, pthread_attr_default, task, NULL );
24814 if( status ) return errno;
24816 /* give thread a chance to complete */
24817 /* it should remain joinable and hence detachable */
24820 status = pthread_detach( &t );
24821 if( status ) return errno;
24824 #ifdef HAVE_LINUX_THREADS
24825 pthread_kill_other_threads_np();
24833 rm -f conftest$ac_exeext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24835 (eval $ac_link) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; }; then
24844 ol_cv_pthread_create_works=yes
24846 echo "$as_me: program exited with status $ac_status" >&5
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ( exit $ac_status )
24851 ol_cv_pthread_create_works=no
24853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24857 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24859 if test $ol_cv_pthread_create_works = no ; then
24860 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24861 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24862 { (exit 1); exit 1; }; }
24865 ol_replace_broken_yield=no
24868 ol_replace_broken_yield=yes
24872 if test $ol_replace_broken_yield = yes ; then
24874 cat >>confdefs.h <<\_ACEOF
24875 #define REPLACE_BROKEN_YIELD 1
24880 if test $ol_with_yielding_select = auto ; then
24881 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24882 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24883 if test "${ol_cv_pthread_select_yields+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 if test "$cross_compiling" = yes; then
24888 ol_cv_pthread_select_yields=cross
24890 cat >conftest.$ac_ext <<_ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24897 #include <sys/types.h>
24898 #include <sys/time.h>
24899 #include <unistd.h>
24900 #include <pthread.h>
24902 #define NULL (void*) 0
24905 static int fildes[2];
24907 static void *task(p)
24919 FD_SET(fildes[0], &rfds);
24921 /* we're not interested in any fds */
24922 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24929 exit(0); /* if we exit here, the select blocked the whole process */
24932 int main(argc, argv)
24938 /* create a pipe to select */
24939 if(pipe(&fildes[0])) {
24944 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24945 (void) pthread_setconcurrency(2);
24947 #ifdef HAVE_THR_SETCONCURRENCY
24948 /* Set Solaris LWP concurrency to 2 */
24949 thr_setconcurrency(2);
24953 #if HAVE_PTHREADS < 6
24954 pthread_create(&t, pthread_attr_default, task, NULL);
24956 pthread_create(&t, NULL, task, NULL);
24959 /* make sure task runs first */
24962 #elif defined( HAVE_SCHED_YIELD )
24964 #elif defined( HAVE_PTHREAD_YIELD )
24971 rm -f conftest$ac_exeext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24973 (eval $ac_link) 2>&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24978 (eval $ac_try) 2>&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); }; }; then
24982 ol_cv_pthread_select_yields=no
24984 echo "$as_me: program exited with status $ac_status" >&5
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ( exit $ac_status )
24989 ol_cv_pthread_select_yields=yes
24991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24995 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24997 if test $ol_cv_pthread_select_yields = cross ; then
24998 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24999 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25000 { (exit 1); exit 1; }; }
25003 if test $ol_cv_pthread_select_yields = yes ; then
25004 ol_with_yielding_select=yes
25008 CPPFLAGS="$save_CPPFLAGS"
25011 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25012 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25013 { (exit 1); exit 1; }; }
25017 if test $ol_with_threads = posix ; then
25018 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25019 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25020 { (exit 1); exit 1; }; }
25025 case $ol_with_threads in auto | yes | mach)
25029 for ac_header in mach/cthreads.h cthreads.h
25031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25033 echo "$as_me:$LINENO: checking for $ac_header" >&5
25034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25036 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25041 # Is the header compilable?
25042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25044 cat >conftest.$ac_ext <<_ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h. */
25050 $ac_includes_default
25051 #include <$ac_header>
25053 rm -f conftest.$ac_objext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25055 (eval $ac_compile) 2>conftest.er1
25057 grep -v '^ *+' conftest.er1 >conftest.err
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest.$ac_objext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 ac_header_compiler=yes
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25080 ac_header_compiler=no
25082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25084 echo "${ECHO_T}$ac_header_compiler" >&6
25086 # Is the header present?
25087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25089 cat >conftest.$ac_ext <<_ACEOF
25092 cat confdefs.h >>conftest.$ac_ext
25093 cat >>conftest.$ac_ext <<_ACEOF
25094 /* end confdefs.h. */
25095 #include <$ac_header>
25097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25100 grep -v '^ *+' conftest.er1 >conftest.err
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } >/dev/null; then
25105 if test -s conftest.err; then
25106 ac_cpp_err=$ac_c_preproc_warn_flag
25107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25114 if test -z "$ac_cpp_err"; then
25115 ac_header_preproc=yes
25117 echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25120 ac_header_preproc=no
25122 rm -f conftest.err conftest.$ac_ext
25123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25124 echo "${ECHO_T}$ac_header_preproc" >&6
25126 # So? What about this header?
25127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25133 ac_header_preproc=yes
25136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25150 ## --------------------------------------------- ##
25151 ## Report this to <http://www.openldap.org/its/> ##
25152 ## --------------------------------------------- ##
25155 sed "s/^/$as_me: WARNING: /" >&2
25158 echo "$as_me:$LINENO: checking for $ac_header" >&5
25159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 eval "$as_ac_Header=\$ac_header_preproc"
25165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25170 cat >>confdefs.h <<_ACEOF
25171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25178 if test $ac_cv_header_mach_cthreads_h = yes ; then
25179 ol_with_threads=found
25181 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25182 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25183 if test "${ac_cv_func_cthread_fork+set}" = set; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25194 #define cthread_fork innocuous_cthread_fork
25196 /* System header to define __stub macros and hopefully few prototypes,
25197 which can conflict with char cthread_fork (); below.
25198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25199 <limits.h> exists even on freestanding compilers. */
25202 # include <limits.h>
25204 # include <assert.h>
25207 #undef cthread_fork
25209 /* Override any gcc2 internal prototype to avoid an error. */
25214 /* We use char because int might match the return type of a gcc2
25215 builtin and then its argument prototype would still apply. */
25216 char cthread_fork ();
25217 /* The GNU C library defines this for functions which it implements
25218 to always fail with ENOSYS. Some functions are actually named
25219 something starting with __ and the normal name is an alias. */
25220 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25223 char (*f) () = cthread_fork;
25232 return f != cthread_fork;
25237 rm -f conftest.$ac_objext conftest$ac_exeext
25238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25239 (eval $ac_link) 2>conftest.er1
25241 grep -v '^ *+' conftest.er1 >conftest.err
25243 cat conftest.err >&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } &&
25246 { ac_try='test -z "$ac_c_werror_flag"
25247 || test ! -s conftest.err'
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest$ac_exeext'
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_cv_func_cthread_fork=yes
25261 echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25264 ac_cv_func_cthread_fork=no
25266 rm -f conftest.err conftest.$ac_objext \
25267 conftest$ac_exeext conftest.$ac_ext
25269 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25270 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25271 if test $ac_cv_func_cthread_fork = yes; then
25272 ol_link_threads=yes
25276 if test $ol_link_threads = no ; then
25277 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25278 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25279 if test "${ol_cv_cthread_all_load+set}" = set; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 LIBS="-all_load $LIBS"
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 #include <mach/cthreads.h>
25296 cthread_fork((void *)0, (void *)0);
25302 rm -f conftest.$ac_objext conftest$ac_exeext
25303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25304 (eval $ac_link) 2>conftest.er1
25306 grep -v '^ *+' conftest.er1 >conftest.err
25308 cat conftest.err >&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); } &&
25311 { ac_try='test -z "$ac_c_werror_flag"
25312 || test ! -s conftest.err'
25313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25314 (eval $ac_try) 2>&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); }; } &&
25318 { ac_try='test -s conftest$ac_exeext'
25319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25320 (eval $ac_try) 2>&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); }; }; then
25324 ol_cv_cthread_all_load=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25329 ol_cv_cthread_all_load=no
25331 rm -f conftest.err conftest.$ac_objext \
25332 conftest$ac_exeext conftest.$ac_ext
25336 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25337 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25339 if test $ol_cv_cthread_all_load = yes ; then
25340 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25341 ol_link_threads=mach
25342 ol_with_threads=found
25346 elif test $ac_cv_header_cthreads_h = yes ; then
25348 ol_with_threads=found
25351 LIBS="$LIBS -lthreads"
25352 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25353 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25354 if test "${ac_cv_func_cthread_fork+set}" = set; then
25355 echo $ECHO_N "(cached) $ECHO_C" >&6
25357 cat >conftest.$ac_ext <<_ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h. */
25363 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25365 #define cthread_fork innocuous_cthread_fork
25367 /* System header to define __stub macros and hopefully few prototypes,
25368 which can conflict with char cthread_fork (); below.
25369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25370 <limits.h> exists even on freestanding compilers. */
25373 # include <limits.h>
25375 # include <assert.h>
25378 #undef cthread_fork
25380 /* Override any gcc2 internal prototype to avoid an error. */
25385 /* We use char because int might match the return type of a gcc2
25386 builtin and then its argument prototype would still apply. */
25387 char cthread_fork ();
25388 /* The GNU C library defines this for functions which it implements
25389 to always fail with ENOSYS. Some functions are actually named
25390 something starting with __ and the normal name is an alias. */
25391 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25394 char (*f) () = cthread_fork;
25403 return f != cthread_fork;
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25410 (eval $ac_link) 2>conftest.er1
25412 grep -v '^ *+' conftest.er1 >conftest.err
25414 cat conftest.err >&5
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } &&
25417 { ac_try='test -z "$ac_c_werror_flag"
25418 || test ! -s conftest.err'
25419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423 (exit $ac_status); }; } &&
25424 { ac_try='test -s conftest$ac_exeext'
25425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25426 (eval $ac_try) 2>&5
25428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); }; }; then
25430 ac_cv_func_cthread_fork=yes
25432 echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25435 ac_cv_func_cthread_fork=no
25437 rm -f conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
25440 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25441 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25442 if test $ac_cv_func_cthread_fork = yes; then
25443 ol_link_threads=yes
25448 if test $ol_link_threads = yes ; then
25449 LTHREAD_LIBS="-lthreads"
25450 ol_link_threads=mach
25451 ol_with_threads=found
25453 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25454 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25455 { (exit 1); exit 1; }; }
25458 elif test $ol_with_threads = mach ; then
25459 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25460 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25461 { (exit 1); exit 1; }; }
25464 if test $ol_link_threads = mach ; then
25466 cat >>confdefs.h <<\_ACEOF
25467 #define HAVE_MACH_CTHREADS 1
25470 elif test $ol_with_threads = found ; then
25471 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25472 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25473 { (exit 1); exit 1; }; }
25478 case $ol_with_threads in auto | yes | pth)
25481 for ac_header in pth.h
25483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25485 echo "$as_me:$LINENO: checking for $ac_header" >&5
25486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25488 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25493 # Is the header compilable?
25494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 $ac_includes_default
25503 #include <$ac_header>
25505 rm -f conftest.$ac_objext
25506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25507 (eval $ac_compile) 2>conftest.er1
25509 grep -v '^ *+' conftest.er1 >conftest.err
25511 cat conftest.err >&5
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); } &&
25514 { ac_try='test -z "$ac_c_werror_flag"
25515 || test ! -s conftest.err'
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; } &&
25521 { ac_try='test -s conftest.$ac_objext'
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; }; then
25527 ac_header_compiler=yes
25529 echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25532 ac_header_compiler=no
25534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25536 echo "${ECHO_T}$ac_header_compiler" >&6
25538 # Is the header present?
25539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 #include <$ac_header>
25549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25552 grep -v '^ *+' conftest.er1 >conftest.err
25554 cat conftest.err >&5
25555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556 (exit $ac_status); } >/dev/null; then
25557 if test -s conftest.err; then
25558 ac_cpp_err=$ac_c_preproc_warn_flag
25559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25566 if test -z "$ac_cpp_err"; then
25567 ac_header_preproc=yes
25569 echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25572 ac_header_preproc=no
25574 rm -f conftest.err conftest.$ac_ext
25575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25576 echo "${ECHO_T}$ac_header_preproc" >&6
25578 # So? What about this header?
25579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25585 ac_header_preproc=yes
25588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25602 ## --------------------------------------------- ##
25603 ## Report this to <http://www.openldap.org/its/> ##
25604 ## --------------------------------------------- ##
25607 sed "s/^/$as_me: WARNING: /" >&2
25610 echo "$as_me:$LINENO: checking for $ac_header" >&5
25611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 eval "$as_ac_Header=\$ac_header_preproc"
25617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25622 cat >>confdefs.h <<_ACEOF
25623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25631 if test $ac_cv_header_pth_h = yes ; then
25632 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25633 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25634 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25635 echo $ECHO_N "(cached) $ECHO_C" >&6
25637 ac_check_lib_save_LIBS=$LIBS
25639 cat >conftest.$ac_ext <<_ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h. */
25646 /* Override any gcc2 internal prototype to avoid an error. */
25650 /* We use char because int might match the return type of a gcc2
25651 builtin and then its argument prototype would still apply. */
25652 char pth_version ();
25661 rm -f conftest.$ac_objext conftest$ac_exeext
25662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25663 (eval $ac_link) 2>conftest.er1
25665 grep -v '^ *+' conftest.er1 >conftest.err
25667 cat conftest.err >&5
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } &&
25670 { ac_try='test -z "$ac_c_werror_flag"
25671 || test ! -s conftest.err'
25672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673 (eval $ac_try) 2>&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; } &&
25677 { ac_try='test -s conftest$ac_exeext'
25678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25679 (eval $ac_try) 2>&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; }; then
25683 ac_cv_lib_pth_pth_version=yes
25685 echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25688 ac_cv_lib_pth_pth_version=no
25690 rm -f conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25694 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25695 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25696 if test $ac_cv_lib_pth_pth_version = yes; then
25703 if test $have_pth = yes ; then
25705 cat >>confdefs.h <<\_ACEOF
25706 #define HAVE_GNU_PTH 1
25709 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25710 ol_link_threads=pth
25711 ol_with_threads=found
25713 if test $ol_with_yielding_select = auto ; then
25714 ol_with_yielding_select=yes
25721 case $ol_with_threads in auto | yes | lwp)
25725 for ac_header in thread.h synch.h
25727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25729 echo "$as_me:$LINENO: checking for $ac_header" >&5
25730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25737 # Is the header compilable?
25738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 $ac_includes_default
25747 #include <$ac_header>
25749 rm -f conftest.$ac_objext
25750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25751 (eval $ac_compile) 2>conftest.er1
25753 grep -v '^ *+' conftest.er1 >conftest.err
25755 cat conftest.err >&5
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
25758 { ac_try='test -z "$ac_c_werror_flag"
25759 || test ! -s conftest.err'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; } &&
25765 { ac_try='test -s conftest.$ac_objext'
25766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767 (eval $ac_try) 2>&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); }; }; then
25771 ac_header_compiler=yes
25773 echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25776 ac_header_compiler=no
25778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25780 echo "${ECHO_T}$ac_header_compiler" >&6
25782 # Is the header present?
25783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25791 #include <$ac_header>
25793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25796 grep -v '^ *+' conftest.er1 >conftest.err
25798 cat conftest.err >&5
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } >/dev/null; then
25801 if test -s conftest.err; then
25802 ac_cpp_err=$ac_c_preproc_warn_flag
25803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25810 if test -z "$ac_cpp_err"; then
25811 ac_header_preproc=yes
25813 echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25816 ac_header_preproc=no
25818 rm -f conftest.err conftest.$ac_ext
25819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25820 echo "${ECHO_T}$ac_header_preproc" >&6
25822 # So? What about this header?
25823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25829 ac_header_preproc=yes
25832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25846 ## --------------------------------------------- ##
25847 ## Report this to <http://www.openldap.org/its/> ##
25848 ## --------------------------------------------- ##
25851 sed "s/^/$as_me: WARNING: /" >&2
25854 echo "$as_me:$LINENO: checking for $ac_header" >&5
25855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 eval "$as_ac_Header=\$ac_header_preproc"
25861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25866 cat >>confdefs.h <<_ACEOF
25867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25874 if test $ac_cv_header_thread_h = yes &&
25875 test $ac_cv_header_synch_h = yes ; then
25876 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25877 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25878 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25879 echo $ECHO_N "(cached) $ECHO_C" >&6
25881 ac_check_lib_save_LIBS=$LIBS
25882 LIBS="-lthread $LIBS"
25883 cat >conftest.$ac_ext <<_ACEOF
25886 cat confdefs.h >>conftest.$ac_ext
25887 cat >>conftest.$ac_ext <<_ACEOF
25888 /* end confdefs.h. */
25890 /* Override any gcc2 internal prototype to avoid an error. */
25894 /* We use char because int might match the return type of a gcc2
25895 builtin and then its argument prototype would still apply. */
25896 char thr_create ();
25905 rm -f conftest.$ac_objext conftest$ac_exeext
25906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25907 (eval $ac_link) 2>conftest.er1
25909 grep -v '^ *+' conftest.er1 >conftest.err
25911 cat conftest.err >&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } &&
25914 { ac_try='test -z "$ac_c_werror_flag"
25915 || test ! -s conftest.err'
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; } &&
25921 { ac_try='test -s conftest$ac_exeext'
25922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25923 (eval $ac_try) 2>&5
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); }; }; then
25927 ac_cv_lib_thread_thr_create=yes
25929 echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25932 ac_cv_lib_thread_thr_create=no
25934 rm -f conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
25936 LIBS=$ac_check_lib_save_LIBS
25938 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25939 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25940 if test $ac_cv_lib_thread_thr_create = yes; then
25947 if test $have_thr = yes ; then
25949 cat >>confdefs.h <<\_ACEOF
25953 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25954 ol_link_threads=thr
25956 if test $ol_with_yielding_select = auto ; then
25957 ol_with_yielding_select=yes
25963 thr_setconcurrency \
25964 thr_getconcurrency \
25967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25968 echo "$as_me:$LINENO: checking for $ac_func" >&5
25969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25970 if eval "test \"\${$as_ac_var+set}\" = set"; then
25971 echo $ECHO_N "(cached) $ECHO_C" >&6
25973 cat >conftest.$ac_ext <<_ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h. */
25979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25981 #define $ac_func innocuous_$ac_func
25983 /* System header to define __stub macros and hopefully few prototypes,
25984 which can conflict with char $ac_func (); below.
25985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25986 <limits.h> exists even on freestanding compilers. */
25989 # include <limits.h>
25991 # include <assert.h>
25996 /* Override any gcc2 internal prototype to avoid an error. */
26001 /* We use char because int might match the return type of a gcc2
26002 builtin and then its argument prototype would still apply. */
26004 /* The GNU C library defines this for functions which it implements
26005 to always fail with ENOSYS. Some functions are actually named
26006 something starting with __ and the normal name is an alias. */
26007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26010 char (*f) () = $ac_func;
26019 return f != $ac_func;
26024 rm -f conftest.$ac_objext conftest$ac_exeext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26026 (eval $ac_link) 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest$ac_exeext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 eval "$as_ac_var=yes"
26048 echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26051 eval "$as_ac_var=no"
26053 rm -f conftest.err conftest.$ac_objext \
26054 conftest$ac_exeext conftest.$ac_ext
26056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26058 if test `eval echo '${'$as_ac_var'}'` = yes; then
26059 cat >>confdefs.h <<_ACEOF
26060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26070 for ac_header in lwp/lwp.h
26072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26074 echo "$as_me:$LINENO: checking for $ac_header" >&5
26075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26077 echo $ECHO_N "(cached) $ECHO_C" >&6
26079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26082 # Is the header compilable?
26083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26085 cat >conftest.$ac_ext <<_ACEOF
26088 cat confdefs.h >>conftest.$ac_ext
26089 cat >>conftest.$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 $ac_includes_default
26092 #include <$ac_header>
26094 rm -f conftest.$ac_objext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096 (eval $ac_compile) 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } &&
26103 { ac_try='test -z "$ac_c_werror_flag"
26104 || test ! -s conftest.err'
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; } &&
26110 { ac_try='test -s conftest.$ac_objext'
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 ac_header_compiler=yes
26118 echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26121 ac_header_compiler=no
26123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26125 echo "${ECHO_T}$ac_header_compiler" >&6
26127 # Is the header present?
26128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26130 cat >conftest.$ac_ext <<_ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 #include <$ac_header>
26138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26141 grep -v '^ *+' conftest.er1 >conftest.err
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } >/dev/null; then
26146 if test -s conftest.err; then
26147 ac_cpp_err=$ac_c_preproc_warn_flag
26148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26155 if test -z "$ac_cpp_err"; then
26156 ac_header_preproc=yes
26158 echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26161 ac_header_preproc=no
26163 rm -f conftest.err conftest.$ac_ext
26164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26165 echo "${ECHO_T}$ac_header_preproc" >&6
26167 # So? What about this header?
26168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26174 ac_header_preproc=yes
26177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26191 ## --------------------------------------------- ##
26192 ## Report this to <http://www.openldap.org/its/> ##
26193 ## --------------------------------------------- ##
26196 sed "s/^/$as_me: WARNING: /" >&2
26199 echo "$as_me:$LINENO: checking for $ac_header" >&5
26200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26202 echo $ECHO_N "(cached) $ECHO_C" >&6
26204 eval "$as_ac_Header=\$ac_header_preproc"
26206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26211 cat >>confdefs.h <<_ACEOF
26212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26219 if test $ac_cv_header_lwp_lwp_h = yes ; then
26220 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26221 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26222 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26223 echo $ECHO_N "(cached) $ECHO_C" >&6
26225 ac_check_lib_save_LIBS=$LIBS
26227 cat >conftest.$ac_ext <<_ACEOF
26230 cat confdefs.h >>conftest.$ac_ext
26231 cat >>conftest.$ac_ext <<_ACEOF
26232 /* end confdefs.h. */
26234 /* Override any gcc2 internal prototype to avoid an error. */
26238 /* We use char because int might match the return type of a gcc2
26239 builtin and then its argument prototype would still apply. */
26240 char lwp_create ();
26249 rm -f conftest.$ac_objext conftest$ac_exeext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26251 (eval $ac_link) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest$ac_exeext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 ac_cv_lib_lwp_lwp_create=yes
26273 echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26276 ac_cv_lib_lwp_lwp_create=no
26278 rm -f conftest.err conftest.$ac_objext \
26279 conftest$ac_exeext conftest.$ac_ext
26280 LIBS=$ac_check_lib_save_LIBS
26282 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26283 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26284 if test $ac_cv_lib_lwp_lwp_create = yes; then
26291 if test $have_lwp = yes ; then
26293 cat >>confdefs.h <<\_ACEOF
26297 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26298 ol_link_threads=lwp
26300 if test $ol_with_yielding_select = auto ; then
26301 ol_with_yielding_select=no
26308 if test $ol_with_yielding_select = yes ; then
26310 cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_YIELDING_SELECT 1
26316 if test $ol_with_threads = manual ; then
26317 ol_link_threads=yes
26319 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26320 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26324 for ac_header in pthread.h sched.h
26326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26328 echo "$as_me:$LINENO: checking for $ac_header" >&5
26329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26336 # Is the header compilable?
26337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26339 cat >conftest.$ac_ext <<_ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26345 $ac_includes_default
26346 #include <$ac_header>
26348 rm -f conftest.$ac_objext
26349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26350 (eval $ac_compile) 2>conftest.er1
26352 grep -v '^ *+' conftest.er1 >conftest.err
26354 cat conftest.err >&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } &&
26357 { ac_try='test -z "$ac_c_werror_flag"
26358 || test ! -s conftest.err'
26359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26360 (eval $ac_try) 2>&5
26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26363 (exit $ac_status); }; } &&
26364 { ac_try='test -s conftest.$ac_objext'
26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26366 (eval $ac_try) 2>&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); }; }; then
26370 ac_header_compiler=yes
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26375 ac_header_compiler=no
26377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26379 echo "${ECHO_T}$ac_header_compiler" >&6
26381 # Is the header present?
26382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26384 cat >conftest.$ac_ext <<_ACEOF
26387 cat confdefs.h >>conftest.$ac_ext
26388 cat >>conftest.$ac_ext <<_ACEOF
26389 /* end confdefs.h. */
26390 #include <$ac_header>
26392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26395 grep -v '^ *+' conftest.er1 >conftest.err
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); } >/dev/null; then
26400 if test -s conftest.err; then
26401 ac_cpp_err=$ac_c_preproc_warn_flag
26402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26409 if test -z "$ac_cpp_err"; then
26410 ac_header_preproc=yes
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 ac_header_preproc=no
26417 rm -f conftest.err conftest.$ac_ext
26418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26419 echo "${ECHO_T}$ac_header_preproc" >&6
26421 # So? What about this header?
26422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26428 ac_header_preproc=yes
26431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26445 ## --------------------------------------------- ##
26446 ## Report this to <http://www.openldap.org/its/> ##
26447 ## --------------------------------------------- ##
26450 sed "s/^/$as_me: WARNING: /" >&2
26453 echo "$as_me:$LINENO: checking for $ac_header" >&5
26454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26456 echo $ECHO_N "(cached) $ECHO_C" >&6
26458 eval "$as_ac_Header=\$ac_header_preproc"
26460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26465 cat >>confdefs.h <<_ACEOF
26466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26475 for ac_func in sched_yield pthread_yield
26477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26478 echo "$as_me:$LINENO: checking for $ac_func" >&5
26479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26480 if eval "test \"\${$as_ac_var+set}\" = set"; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26491 #define $ac_func innocuous_$ac_func
26493 /* System header to define __stub macros and hopefully few prototypes,
26494 which can conflict with char $ac_func (); below.
26495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26496 <limits.h> exists even on freestanding compilers. */
26499 # include <limits.h>
26501 # include <assert.h>
26506 /* Override any gcc2 internal prototype to avoid an error. */
26511 /* We use char because int might match the return type of a gcc2
26512 builtin and then its argument prototype would still apply. */
26514 /* The GNU C library defines this for functions which it implements
26515 to always fail with ENOSYS. Some functions are actually named
26516 something starting with __ and the normal name is an alias. */
26517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26520 char (*f) () = $ac_func;
26529 return f != $ac_func;
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536 (eval $ac_link) 2>conftest.er1
26538 grep -v '^ *+' conftest.er1 >conftest.err
26540 cat conftest.err >&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
26543 { ac_try='test -z "$ac_c_werror_flag"
26544 || test ! -s conftest.err'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; } &&
26550 { ac_try='test -s conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 eval "$as_ac_var=yes"
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 eval "$as_ac_var=no"
26563 rm -f conftest.err conftest.$ac_objext \
26564 conftest$ac_exeext conftest.$ac_ext
26566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26568 if test `eval echo '${'$as_ac_var'}'` = yes; then
26569 cat >>confdefs.h <<_ACEOF
26570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26577 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26578 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26579 if test "${ol_cv_header_linux_threads+set}" = set; then
26580 echo $ECHO_N "(cached) $ECHO_C" >&6
26582 cat >conftest.$ac_ext <<_ACEOF
26585 cat confdefs.h >>conftest.$ac_ext
26586 cat >>conftest.$ac_ext <<_ACEOF
26587 /* end confdefs.h. */
26588 #include <pthread.h>
26590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26591 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26592 ol_cv_header_linux_threads=yes
26594 ol_cv_header_linux_threads=no
26600 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26601 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26602 if test $ol_cv_header_linux_threads = yes; then
26604 cat >>confdefs.h <<\_ACEOF
26605 #define HAVE_LINUX_THREADS 1
26612 for ac_header in mach/cthreads.h
26614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26616 echo "$as_me:$LINENO: checking for $ac_header" >&5
26617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26624 # Is the header compilable?
26625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 $ac_includes_default
26634 #include <$ac_header>
26636 rm -f conftest.$ac_objext
26637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26638 (eval $ac_compile) 2>conftest.er1
26640 grep -v '^ *+' conftest.er1 >conftest.err
26642 cat conftest.err >&5
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } &&
26645 { ac_try='test -z "$ac_c_werror_flag"
26646 || test ! -s conftest.err'
26647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648 (eval $ac_try) 2>&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; } &&
26652 { ac_try='test -s conftest.$ac_objext'
26653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654 (eval $ac_try) 2>&5
26656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); }; }; then
26658 ac_header_compiler=yes
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 ac_header_compiler=no
26665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26667 echo "${ECHO_T}$ac_header_compiler" >&6
26669 # Is the header present?
26670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26672 cat >conftest.$ac_ext <<_ACEOF
26675 cat confdefs.h >>conftest.$ac_ext
26676 cat >>conftest.$ac_ext <<_ACEOF
26677 /* end confdefs.h. */
26678 #include <$ac_header>
26680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } >/dev/null; then
26688 if test -s conftest.err; then
26689 ac_cpp_err=$ac_c_preproc_warn_flag
26690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26697 if test -z "$ac_cpp_err"; then
26698 ac_header_preproc=yes
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_header_preproc=no
26705 rm -f conftest.err conftest.$ac_ext
26706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26707 echo "${ECHO_T}$ac_header_preproc" >&6
26709 # So? What about this header?
26710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26716 ac_header_preproc=yes
26719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26733 ## --------------------------------------------- ##
26734 ## Report this to <http://www.openldap.org/its/> ##
26735 ## --------------------------------------------- ##
26738 sed "s/^/$as_me: WARNING: /" >&2
26741 echo "$as_me:$LINENO: checking for $ac_header" >&5
26742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26744 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 eval "$as_ac_Header=\$ac_header_preproc"
26748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26753 cat >>confdefs.h <<_ACEOF
26754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26762 for ac_header in lwp/lwp.h
26764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26766 echo "$as_me:$LINENO: checking for $ac_header" >&5
26767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26769 echo $ECHO_N "(cached) $ECHO_C" >&6
26771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26774 # Is the header compilable?
26775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26777 cat >conftest.$ac_ext <<_ACEOF
26780 cat confdefs.h >>conftest.$ac_ext
26781 cat >>conftest.$ac_ext <<_ACEOF
26782 /* end confdefs.h. */
26783 $ac_includes_default
26784 #include <$ac_header>
26786 rm -f conftest.$ac_objext
26787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26788 (eval $ac_compile) 2>conftest.er1
26790 grep -v '^ *+' conftest.er1 >conftest.err
26792 cat conftest.err >&5
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); } &&
26795 { ac_try='test -z "$ac_c_werror_flag"
26796 || test ! -s conftest.err'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; } &&
26802 { ac_try='test -s conftest.$ac_objext'
26803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
26808 ac_header_compiler=yes
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26813 ac_header_compiler=no
26815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26817 echo "${ECHO_T}$ac_header_compiler" >&6
26819 # Is the header present?
26820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26822 cat >conftest.$ac_ext <<_ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h. */
26828 #include <$ac_header>
26830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26833 grep -v '^ *+' conftest.er1 >conftest.err
26835 cat conftest.err >&5
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } >/dev/null; then
26838 if test -s conftest.err; then
26839 ac_cpp_err=$ac_c_preproc_warn_flag
26840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26847 if test -z "$ac_cpp_err"; then
26848 ac_header_preproc=yes
26850 echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26853 ac_header_preproc=no
26855 rm -f conftest.err conftest.$ac_ext
26856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26857 echo "${ECHO_T}$ac_header_preproc" >&6
26859 # So? What about this header?
26860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26866 ac_header_preproc=yes
26869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26883 ## --------------------------------------------- ##
26884 ## Report this to <http://www.openldap.org/its/> ##
26885 ## --------------------------------------------- ##
26888 sed "s/^/$as_me: WARNING: /" >&2
26891 echo "$as_me:$LINENO: checking for $ac_header" >&5
26892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26896 eval "$as_ac_Header=\$ac_header_preproc"
26898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26903 cat >>confdefs.h <<_ACEOF
26904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26913 for ac_header in thread.h synch.h
26915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26917 echo "$as_me:$LINENO: checking for $ac_header" >&5
26918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26925 # Is the header compilable?
26926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26928 cat >conftest.$ac_ext <<_ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h. */
26934 $ac_includes_default
26935 #include <$ac_header>
26937 rm -f conftest.$ac_objext
26938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26939 (eval $ac_compile) 2>conftest.er1
26941 grep -v '^ *+' conftest.er1 >conftest.err
26943 cat conftest.err >&5
26944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945 (exit $ac_status); } &&
26946 { ac_try='test -z "$ac_c_werror_flag"
26947 || test ! -s conftest.err'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest.$ac_objext'
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; }; then
26959 ac_header_compiler=yes
26961 echo "$as_me: failed program was:" >&5
26962 sed 's/^/| /' conftest.$ac_ext >&5
26964 ac_header_compiler=no
26966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26968 echo "${ECHO_T}$ac_header_compiler" >&6
26970 # Is the header present?
26971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26973 cat >conftest.$ac_ext <<_ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h. */
26979 #include <$ac_header>
26981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26984 grep -v '^ *+' conftest.er1 >conftest.err
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } >/dev/null; then
26989 if test -s conftest.err; then
26990 ac_cpp_err=$ac_c_preproc_warn_flag
26991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26998 if test -z "$ac_cpp_err"; then
26999 ac_header_preproc=yes
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_header_preproc=no
27006 rm -f conftest.err conftest.$ac_ext
27007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27008 echo "${ECHO_T}$ac_header_preproc" >&6
27010 # So? What about this header?
27011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27017 ac_header_preproc=yes
27020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27034 ## --------------------------------------------- ##
27035 ## Report this to <http://www.openldap.org/its/> ##
27036 ## --------------------------------------------- ##
27039 sed "s/^/$as_me: WARNING: /" >&2
27042 echo "$as_me:$LINENO: checking for $ac_header" >&5
27043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27045 echo $ECHO_N "(cached) $ECHO_C" >&6
27047 eval "$as_ac_Header=\$ac_header_preproc"
27049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27054 cat >>confdefs.h <<_ACEOF
27055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27064 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27065 cat >>confdefs.h <<\_ACEOF
27066 #define REENTRANT 1
27069 cat >>confdefs.h <<\_ACEOF
27070 #define _REENTRANT 1
27073 cat >>confdefs.h <<\_ACEOF
27074 #define THREAD_SAFE 1
27077 cat >>confdefs.h <<\_ACEOF
27078 #define _THREAD_SAFE 1
27081 cat >>confdefs.h <<\_ACEOF
27082 #define THREADSAFE 1
27085 cat >>confdefs.h <<\_ACEOF
27086 #define _THREADSAFE 1
27089 cat >>confdefs.h <<\_ACEOF
27090 #define _SGI_MP_SOURCE 1
27094 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27095 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27096 if test "${ol_cv_errno_thread_specific+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27100 cat >conftest.$ac_ext <<_ACEOF
27103 cat confdefs.h >>conftest.$ac_ext
27104 cat >>conftest.$ac_ext <<_ACEOF
27105 /* end confdefs.h. */
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117 (eval $ac_link) 2>conftest.er1
27119 grep -v '^ *+' conftest.er1 >conftest.err
27121 cat conftest.err >&5
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
27124 { ac_try='test -z "$ac_c_werror_flag"
27125 || test ! -s conftest.err'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest$ac_exeext'
27132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133 (eval $ac_try) 2>&5
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
27137 ol_cv_errno_thread_specific=yes
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 ol_cv_errno_thread_specific=no
27144 rm -f conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext conftest.$ac_ext
27148 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27149 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27151 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27152 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27153 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27154 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 cat >conftest.$ac_ext <<_ACEOF
27160 cat confdefs.h >>conftest.$ac_ext
27161 cat >>conftest.$ac_ext <<_ACEOF
27162 /* end confdefs.h. */
27172 rm -f conftest.$ac_objext conftest$ac_exeext
27173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27174 (eval $ac_link) 2>conftest.er1
27176 grep -v '^ *+' conftest.er1 >conftest.err
27178 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag"
27182 || test ! -s conftest.err'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; } &&
27188 { ac_try='test -s conftest$ac_exeext'
27189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190 (eval $ac_try) 2>&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; }; then
27194 ol_cv_h_errno_thread_specific=yes
27196 echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27199 ol_cv_h_errno_thread_specific=no
27201 rm -f conftest.err conftest.$ac_objext \
27202 conftest$ac_exeext conftest.$ac_ext
27205 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27206 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27208 if test $ol_cv_errno_thread_specific != yes ||
27209 test $ol_cv_h_errno_thread_specific != yes ; then
27210 LIBS="$LTHREAD_LIBS $LIBS"
27216 if test $ol_link_threads = no ; then
27217 if test $ol_with_threads = yes ; then
27218 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27219 echo "$as_me: error: no suitable thread support" >&2;}
27220 { (exit 1); exit 1; }; }
27223 if test $ol_with_threads = auto ; then
27224 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27225 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27230 cat >>confdefs.h <<\_ACEOF
27231 #define NO_THREADS 1
27240 if test $ol_link_threads != no ; then
27242 cat >>confdefs.h <<\_ACEOF
27243 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27253 gethostbyname_r gethostbyaddr_r \
27256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27257 echo "$as_me:$LINENO: checking for $ac_func" >&5
27258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27259 if eval "test \"\${$as_ac_var+set}\" = set"; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27262 cat >conftest.$ac_ext <<_ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27270 #define $ac_func innocuous_$ac_func
27272 /* System header to define __stub macros and hopefully few prototypes,
27273 which can conflict with char $ac_func (); below.
27274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27275 <limits.h> exists even on freestanding compilers. */
27278 # include <limits.h>
27280 # include <assert.h>
27285 /* Override any gcc2 internal prototype to avoid an error. */
27290 /* We use char because int might match the return type of a gcc2
27291 builtin and then its argument prototype would still apply. */
27293 /* The GNU C library defines this for functions which it implements
27294 to always fail with ENOSYS. Some functions are actually named
27295 something starting with __ and the normal name is an alias. */
27296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27299 char (*f) () = $ac_func;
27308 return f != $ac_func;
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27315 (eval $ac_link) 2>conftest.er1
27317 grep -v '^ *+' conftest.er1 >conftest.err
27319 cat conftest.err >&5
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); } &&
27322 { ac_try='test -z "$ac_c_werror_flag"
27323 || test ! -s conftest.err'
27324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325 (eval $ac_try) 2>&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest$ac_exeext'
27330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331 (eval $ac_try) 2>&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); }; }; then
27335 eval "$as_ac_var=yes"
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 eval "$as_ac_var=no"
27342 rm -f conftest.err conftest.$ac_objext \
27343 conftest$ac_exeext conftest.$ac_ext
27345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27347 if test `eval echo '${'$as_ac_var'}'` = yes; then
27348 cat >>confdefs.h <<_ACEOF
27349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27356 if test "$ac_cv_func_ctime_r" = no ; then
27357 ol_cv_func_ctime_r_nargs=0
27359 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27360 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27361 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27374 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27379 rm -f conftest.$ac_objext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27381 (eval $ac_compile) 2>conftest.er1
27383 grep -v '^ *+' conftest.er1 >conftest.err
27385 cat conftest.err >&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); } &&
27388 { ac_try='test -z "$ac_c_werror_flag"
27389 || test ! -s conftest.err'
27390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391 (eval $ac_try) 2>&5
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); }; } &&
27395 { ac_try='test -s conftest.$ac_objext'
27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397 (eval $ac_try) 2>&5
27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400 (exit $ac_status); }; }; then
27401 ol_cv_func_ctime_r_nargs3=yes
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ol_cv_func_ctime_r_nargs3=no
27408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27410 cat >conftest.$ac_ext <<_ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27420 time_t ti; char *buffer; ctime_r(&ti,buffer);
27425 rm -f conftest.$ac_objext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27427 (eval $ac_compile) 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
27434 { ac_try='test -z "$ac_c_werror_flag"
27435 || test ! -s conftest.err'
27436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27437 (eval $ac_try) 2>&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); }; } &&
27441 { ac_try='test -s conftest.$ac_objext'
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; }; then
27447 ol_cv_func_ctime_r_nargs2=yes
27449 echo "$as_me: failed program was:" >&5
27450 sed 's/^/| /' conftest.$ac_ext >&5
27452 ol_cv_func_ctime_r_nargs2=no
27454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27457 test $ol_cv_func_ctime_r_nargs2 = no ; then
27459 ol_cv_func_ctime_r_nargs=3
27461 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27462 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27464 ol_cv_func_ctime_r_nargs=2
27467 ol_cv_func_ctime_r_nargs=0
27471 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27472 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27474 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27476 cat >>confdefs.h <<_ACEOF
27477 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27484 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27485 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27486 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27487 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 cat >conftest.$ac_ext <<_ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h. */
27496 #include <sys/types.h>
27497 #include <sys/socket.h>
27498 #include <netinet/in.h>
27500 #define BUFSIZE (sizeof(struct hostent)+10)
27504 struct hostent hent; char buffer[BUFSIZE];
27505 int bufsize=BUFSIZE;int h_errno;
27506 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27507 buffer, bufsize, &h_errno);
27512 rm -f conftest.$ac_objext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27514 (eval $ac_compile) 2>conftest.er1
27516 grep -v '^ *+' conftest.er1 >conftest.err
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } &&
27521 { ac_try='test -z "$ac_c_werror_flag"
27522 || test ! -s conftest.err'
27523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524 (eval $ac_try) 2>&5
27526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527 (exit $ac_status); }; } &&
27528 { ac_try='test -s conftest.$ac_objext'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
27534 ol_cv_func_gethostbyname_r_nargs5=yes
27536 echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27539 ol_cv_func_gethostbyname_r_nargs5=no
27541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27543 cat >conftest.$ac_ext <<_ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27549 #include <sys/types.h>
27550 #include <sys/socket.h>
27551 #include <netinet/in.h>
27553 #define BUFSIZE (sizeof(struct hostent)+10)
27557 struct hostent hent;struct hostent *rhent;
27558 char buffer[BUFSIZE];
27559 int bufsize=BUFSIZE;int h_errno;
27560 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27566 rm -f conftest.$ac_objext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568 (eval $ac_compile) 2>conftest.er1
27570 grep -v '^ *+' conftest.er1 >conftest.err
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag"
27576 || test ! -s conftest.err'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; } &&
27582 { ac_try='test -s conftest.$ac_objext'
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 ol_cv_func_gethostbyname_r_nargs6=yes
27590 echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27593 ol_cv_func_gethostbyname_r_nargs6=no
27595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27597 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27598 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27600 ol_cv_func_gethostbyname_r_nargs=5
27602 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27603 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27605 ol_cv_func_gethostbyname_r_nargs=6
27608 ol_cv_func_gethostbyname_r_nargs=0
27612 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27613 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27614 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27616 cat >>confdefs.h <<_ACEOF
27617 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27623 ol_cv_func_gethostbyname_r_nargs=0
27626 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27627 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27628 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27629 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27630 echo $ECHO_N "(cached) $ECHO_C" >&6
27632 cat >conftest.$ac_ext <<_ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h. */
27638 #include <sys/types.h>
27639 #include <sys/socket.h>
27640 #include <netinet/in.h>
27642 #define BUFSIZE (sizeof(struct hostent)+10)
27646 struct hostent hent; char buffer[BUFSIZE];
27647 struct in_addr add;
27648 size_t alen=sizeof(struct in_addr);
27649 int bufsize=BUFSIZE;int h_errno;
27650 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27651 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27656 rm -f conftest.$ac_objext
27657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27658 (eval $ac_compile) 2>conftest.er1
27660 grep -v '^ *+' conftest.er1 >conftest.err
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); } &&
27665 { ac_try='test -z "$ac_c_werror_flag"
27666 || test ! -s conftest.err'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; } &&
27672 { ac_try='test -s conftest.$ac_objext'
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; }; then
27678 ol_cv_func_gethostbyaddr_r_nargs7=yes
27680 echo "$as_me: failed program was:" >&5
27681 sed 's/^/| /' conftest.$ac_ext >&5
27683 ol_cv_func_gethostbyaddr_r_nargs7=no
27685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27693 #include <sys/types.h>
27694 #include <sys/socket.h>
27695 #include <netinet/in.h>
27697 #define BUFSIZE (sizeof(struct hostent)+10)
27701 struct hostent hent;
27702 struct hostent *rhent; char buffer[BUFSIZE];
27703 struct in_addr add;
27704 size_t alen=sizeof(struct in_addr);
27705 int bufsize=BUFSIZE;int h_errno;
27706 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27707 alen, AF_INET, &hent, buffer, bufsize,
27713 rm -f conftest.$ac_objext
27714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27715 (eval $ac_compile) 2>conftest.er1
27717 grep -v '^ *+' conftest.er1 >conftest.err
27719 cat conftest.err >&5
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } &&
27722 { ac_try='test -z "$ac_c_werror_flag"
27723 || test ! -s conftest.err'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; } &&
27729 { ac_try='test -s conftest.$ac_objext'
27730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731 (eval $ac_try) 2>&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); }; }; then
27735 ol_cv_func_gethostbyaddr_r_nargs8=yes
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27740 ol_cv_func_gethostbyaddr_r_nargs8=no
27742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27744 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27745 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27747 ol_cv_func_gethostbyaddr_r_nargs=7
27749 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27750 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27752 ol_cv_func_gethostbyaddr_r_nargs=8
27755 ol_cv_func_gethostbyaddr_r_nargs=0
27759 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27760 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27761 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27763 cat >>confdefs.h <<_ACEOF
27764 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27770 ol_cv_func_gethostbyaddr_r_nargs=0
27775 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27777 if test $ol_enable_ldbm_api = bcompat; then \
27780 for ac_header in db_185.h db.h
27782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27784 echo "$as_me:$LINENO: checking for $ac_header" >&5
27785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
27789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27792 # Is the header compilable?
27793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27795 cat >conftest.$ac_ext <<_ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h. */
27801 $ac_includes_default
27802 #include <$ac_header>
27804 rm -f conftest.$ac_objext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27806 (eval $ac_compile) 2>conftest.er1
27808 grep -v '^ *+' conftest.er1 >conftest.err
27810 cat conftest.err >&5
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); } &&
27813 { ac_try='test -z "$ac_c_werror_flag"
27814 || test ! -s conftest.err'
27815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816 (eval $ac_try) 2>&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); }; } &&
27820 { ac_try='test -s conftest.$ac_objext'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; }; then
27826 ac_header_compiler=yes
27828 echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27831 ac_header_compiler=no
27833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27835 echo "${ECHO_T}$ac_header_compiler" >&6
27837 # Is the header present?
27838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27846 #include <$ac_header>
27848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27851 grep -v '^ *+' conftest.er1 >conftest.err
27853 cat conftest.err >&5
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); } >/dev/null; then
27856 if test -s conftest.err; then
27857 ac_cpp_err=$ac_c_preproc_warn_flag
27858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27865 if test -z "$ac_cpp_err"; then
27866 ac_header_preproc=yes
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27871 ac_header_preproc=no
27873 rm -f conftest.err conftest.$ac_ext
27874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27875 echo "${ECHO_T}$ac_header_preproc" >&6
27877 # So? What about this header?
27878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27884 ac_header_preproc=yes
27887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27901 ## --------------------------------------------- ##
27902 ## Report this to <http://www.openldap.org/its/> ##
27903 ## --------------------------------------------- ##
27906 sed "s/^/$as_me: WARNING: /" >&2
27909 echo "$as_me:$LINENO: checking for $ac_header" >&5
27910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27912 echo $ECHO_N "(cached) $ECHO_C" >&6
27914 eval "$as_ac_Header=\$ac_header_preproc"
27916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27921 cat >>confdefs.h <<_ACEOF
27922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27929 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27930 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27931 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27932 if test "${ol_cv_header_db1+set}" = set; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27936 cat >conftest.$ac_ext <<_ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27944 # include <db_185.h>
27949 /* this check could be improved */
27950 #ifndef DB_VERSION_MAJOR
27951 # define DB_VERSION_MAJOR 1
27954 #if DB_VERSION_MAJOR == 1
27959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27960 $EGREP "__db_version_1" >/dev/null 2>&1; then
27961 ol_cv_header_db1=yes
27963 ol_cv_header_db1=no
27968 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27969 echo "${ECHO_T}$ol_cv_header_db1" >&6
27971 if test $ol_cv_header_db1 = yes ; then
27974 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27975 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27976 if test "${ol_cv_bdb_major+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27981 if test $ol_cv_bdb_major = 0 ; then
27982 cat >conftest.$ac_ext <<_ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h. */
27990 #ifndef DB_VERSION_MAJOR
27991 # define DB_VERSION_MAJOR 1
27993 #if DB_VERSION_MAJOR == 4
27998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27999 $EGREP "__db_version" >/dev/null 2>&1; then
28007 if test $ol_cv_bdb_major = 0 ; then
28008 cat >conftest.$ac_ext <<_ACEOF
28011 cat confdefs.h >>conftest.$ac_ext
28012 cat >>conftest.$ac_ext <<_ACEOF
28013 /* end confdefs.h. */
28016 #ifndef DB_VERSION_MAJOR
28017 # define DB_VERSION_MAJOR 1
28019 #if DB_VERSION_MAJOR == 3
28024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28025 $EGREP "__db_version" >/dev/null 2>&1; then
28033 if test $ol_cv_bdb_major = 0 ; then
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28042 #ifndef DB_VERSION_MAJOR
28043 # define DB_VERSION_MAJOR 1
28045 #if DB_VERSION_MAJOR == 2
28050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28051 $EGREP "__db_version" >/dev/null 2>&1; then
28059 if test $ol_cv_bdb_major = 0 ; then
28060 cat >conftest.$ac_ext <<_ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h. */
28068 #ifndef DB_VERSION_MAJOR
28069 # define DB_VERSION_MAJOR 1
28071 #if DB_VERSION_MAJOR == 1
28076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28077 $EGREP "__db_version" >/dev/null 2>&1; then
28086 if test $ol_cv_bdb_major = 0 ; then
28087 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28088 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28089 { (exit 1); exit 1; }; }
28093 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28094 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28096 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28097 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28098 if test "${ol_cv_bdb_minor+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28103 if test $ol_cv_bdb_minor = 0 ; then
28104 cat >conftest.$ac_ext <<_ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28112 #ifndef DB_VERSION_MINOR
28113 # define DB_VERSION_MINOR 0
28115 #if DB_VERSION_MINOR == 9
28120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28121 $EGREP "__db_version" >/dev/null 2>&1; then
28129 if test $ol_cv_bdb_minor = 0 ; then
28130 cat >conftest.$ac_ext <<_ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28138 #ifndef DB_VERSION_MINOR
28139 # define DB_VERSION_MINOR 0
28141 #if DB_VERSION_MINOR == 8
28146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28147 $EGREP "__db_version" >/dev/null 2>&1; then
28155 if test $ol_cv_bdb_minor = 0 ; then
28156 cat >conftest.$ac_ext <<_ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28164 #ifndef DB_VERSION_MINOR
28165 # define DB_VERSION_MINOR 0
28167 #if DB_VERSION_MINOR == 7
28172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28173 $EGREP "__db_version" >/dev/null 2>&1; then
28181 if test $ol_cv_bdb_minor = 0 ; then
28182 cat >conftest.$ac_ext <<_ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28190 #ifndef DB_VERSION_MINOR
28191 # define DB_VERSION_MINOR 0
28193 #if DB_VERSION_MINOR == 6
28198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28199 $EGREP "__db_version" >/dev/null 2>&1; then
28207 if test $ol_cv_bdb_minor = 0 ; then
28208 cat >conftest.$ac_ext <<_ACEOF
28211 cat confdefs.h >>conftest.$ac_ext
28212 cat >>conftest.$ac_ext <<_ACEOF
28213 /* end confdefs.h. */
28216 #ifndef DB_VERSION_MINOR
28217 # define DB_VERSION_MINOR 0
28219 #if DB_VERSION_MINOR == 5
28224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28225 $EGREP "__db_version" >/dev/null 2>&1; then
28233 if test $ol_cv_bdb_minor = 0 ; then
28234 cat >conftest.$ac_ext <<_ACEOF
28237 cat confdefs.h >>conftest.$ac_ext
28238 cat >>conftest.$ac_ext <<_ACEOF
28239 /* end confdefs.h. */
28242 #ifndef DB_VERSION_MINOR
28243 # define DB_VERSION_MINOR 0
28245 #if DB_VERSION_MINOR == 4
28250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28251 $EGREP "__db_version" >/dev/null 2>&1; then
28259 if test $ol_cv_bdb_minor = 0 ; then
28260 cat >conftest.$ac_ext <<_ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h. */
28268 #ifndef DB_VERSION_MINOR
28269 # define DB_VERSION_MINOR 0
28271 #if DB_VERSION_MINOR == 3
28276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28277 $EGREP "__db_version" >/dev/null 2>&1; then
28285 if test $ol_cv_bdb_minor = 0 ; then
28286 cat >conftest.$ac_ext <<_ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28294 #ifndef DB_VERSION_MINOR
28295 # define DB_VERSION_MINOR 0
28297 #if DB_VERSION_MINOR == 2
28302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28303 $EGREP "__db_version" >/dev/null 2>&1; then
28311 if test $ol_cv_bdb_minor = 0 ; then
28312 cat >conftest.$ac_ext <<_ACEOF
28315 cat confdefs.h >>conftest.$ac_ext
28316 cat >>conftest.$ac_ext <<_ACEOF
28317 /* end confdefs.h. */
28320 #ifndef DB_VERSION_MINOR
28321 # define DB_VERSION_MINOR 0
28323 #if DB_VERSION_MINOR == 1
28328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28329 $EGREP "__db_version" >/dev/null 2>&1; then
28339 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28340 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28342 if test $ol_cv_bdb_major = 4 ; then
28343 if test $ol_cv_bdb_minor = 4 ; then
28344 if test $ol_cv_lib_db = no ; then
28345 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28346 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28347 if test "${ol_cv_db_db44+set}" = set; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28353 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28355 cat >conftest.$ac_ext <<_ACEOF
28358 cat confdefs.h >>conftest.$ac_ext
28359 cat >>conftest.$ac_ext <<_ACEOF
28360 /* end confdefs.h. */
28362 #ifdef HAVE_DB_185_H
28363 # include <db_185.h>
28368 #ifndef DB_VERSION_MAJOR
28369 # define DB_VERSION_MAJOR 1
28373 #define NULL ((void*)0)
28380 #if DB_VERSION_MAJOR > 1
28383 int major, minor, patch;
28385 version = db_version( &major, &minor, &patch );
28387 if( major != DB_VERSION_MAJOR ||
28388 minor < DB_VERSION_MINOR )
28390 printf("Berkeley DB version mismatch\n"
28391 "\theader: %s\n\tlibrary: %s\n",
28392 DB_VERSION_STRING, version);
28398 #if DB_VERSION_MAJOR > 2
28399 db_env_create( NULL, 0 );
28400 #elif DB_VERSION_MAJOR > 1
28401 db_appexit( NULL );
28403 (void) dbopen( NULL, 0, 0, 0, NULL);
28410 rm -f conftest.$ac_objext conftest$ac_exeext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28412 (eval $ac_link) 2>conftest.er1
28414 grep -v '^ *+' conftest.er1 >conftest.err
28416 cat conftest.err >&5
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
28419 { ac_try='test -z "$ac_c_werror_flag"
28420 || test ! -s conftest.err'
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest$ac_exeext'
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
28434 echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28439 rm -f conftest.err conftest.$ac_objext \
28440 conftest$ac_exeext conftest.$ac_ext
28445 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28446 echo "${ECHO_T}$ol_cv_db_db44" >&6
28448 if test $ol_cv_db_db44 = yes ; then
28449 ol_cv_lib_db=-ldb44
28453 if test $ol_cv_lib_db = no ; then
28454 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28455 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28456 if test "${ol_cv_db_db_44+set}" = set; then
28457 echo $ECHO_N "(cached) $ECHO_C" >&6
28462 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28464 cat >conftest.$ac_ext <<_ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h. */
28471 #ifdef HAVE_DB_185_H
28472 # include <db_185.h>
28477 #ifndef DB_VERSION_MAJOR
28478 # define DB_VERSION_MAJOR 1
28482 #define NULL ((void*)0)
28489 #if DB_VERSION_MAJOR > 1
28492 int major, minor, patch;
28494 version = db_version( &major, &minor, &patch );
28496 if( major != DB_VERSION_MAJOR ||
28497 minor < DB_VERSION_MINOR )
28499 printf("Berkeley DB version mismatch\n"
28500 "\theader: %s\n\tlibrary: %s\n",
28501 DB_VERSION_STRING, version);
28507 #if DB_VERSION_MAJOR > 2
28508 db_env_create( NULL, 0 );
28509 #elif DB_VERSION_MAJOR > 1
28510 db_appexit( NULL );
28512 (void) dbopen( NULL, 0, 0, 0, NULL);
28519 rm -f conftest.$ac_objext conftest$ac_exeext
28520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28521 (eval $ac_link) 2>conftest.er1
28523 grep -v '^ *+' conftest.er1 >conftest.err
28525 cat conftest.err >&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); } &&
28528 { ac_try='test -z "$ac_c_werror_flag"
28529 || test ! -s conftest.err'
28530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531 (eval $ac_try) 2>&5
28533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534 (exit $ac_status); }; } &&
28535 { ac_try='test -s conftest$ac_exeext'
28536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537 (eval $ac_try) 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); }; }; then
28543 echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28548 rm -f conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
28554 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28555 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28557 if test $ol_cv_db_db_44 = yes ; then
28558 ol_cv_lib_db=-ldb-44
28562 if test $ol_cv_lib_db = no ; then
28563 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28564 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28565 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28566 echo $ECHO_N "(cached) $ECHO_C" >&6
28571 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28573 cat >conftest.$ac_ext <<_ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h. */
28580 #ifdef HAVE_DB_185_H
28581 # include <db_185.h>
28586 #ifndef DB_VERSION_MAJOR
28587 # define DB_VERSION_MAJOR 1
28591 #define NULL ((void*)0)
28598 #if DB_VERSION_MAJOR > 1
28601 int major, minor, patch;
28603 version = db_version( &major, &minor, &patch );
28605 if( major != DB_VERSION_MAJOR ||
28606 minor < DB_VERSION_MINOR )
28608 printf("Berkeley DB version mismatch\n"
28609 "\theader: %s\n\tlibrary: %s\n",
28610 DB_VERSION_STRING, version);
28616 #if DB_VERSION_MAJOR > 2
28617 db_env_create( NULL, 0 );
28618 #elif DB_VERSION_MAJOR > 1
28619 db_appexit( NULL );
28621 (void) dbopen( NULL, 0, 0, 0, NULL);
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630 (eval $ac_link) 2>conftest.er1
28632 grep -v '^ *+' conftest.er1 >conftest.err
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest$ac_exeext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ol_cv_db_db_4_dot_4=yes
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28655 ol_cv_db_db_4_dot_4=no
28657 rm -f conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext conftest.$ac_ext
28663 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28664 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28666 if test $ol_cv_db_db_4_dot_4 = yes ; then
28667 ol_cv_lib_db=-ldb-4.4
28671 if test $ol_cv_lib_db = no ; then
28672 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28673 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28674 if test "${ol_cv_db_db_4_4+set}" = set; then
28675 echo $ECHO_N "(cached) $ECHO_C" >&6
28680 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28682 cat >conftest.$ac_ext <<_ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h. */
28689 #ifdef HAVE_DB_185_H
28690 # include <db_185.h>
28695 #ifndef DB_VERSION_MAJOR
28696 # define DB_VERSION_MAJOR 1
28700 #define NULL ((void*)0)
28707 #if DB_VERSION_MAJOR > 1
28710 int major, minor, patch;
28712 version = db_version( &major, &minor, &patch );
28714 if( major != DB_VERSION_MAJOR ||
28715 minor < DB_VERSION_MINOR )
28717 printf("Berkeley DB version mismatch\n"
28718 "\theader: %s\n\tlibrary: %s\n",
28719 DB_VERSION_STRING, version);
28725 #if DB_VERSION_MAJOR > 2
28726 db_env_create( NULL, 0 );
28727 #elif DB_VERSION_MAJOR > 1
28728 db_appexit( NULL );
28730 (void) dbopen( NULL, 0, 0, 0, NULL);
28737 rm -f conftest.$ac_objext conftest$ac_exeext
28738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28739 (eval $ac_link) 2>conftest.er1
28741 grep -v '^ *+' conftest.er1 >conftest.err
28743 cat conftest.err >&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); } &&
28746 { ac_try='test -z "$ac_c_werror_flag"
28747 || test ! -s conftest.err'
28748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749 (eval $ac_try) 2>&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); }; } &&
28753 { ac_try='test -s conftest$ac_exeext'
28754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 (eval $ac_try) 2>&5
28757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 (exit $ac_status); }; }; then
28759 ol_cv_db_db_4_4=yes
28761 echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28766 rm -f conftest.err conftest.$ac_objext \
28767 conftest$ac_exeext conftest.$ac_ext
28772 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28773 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28775 if test $ol_cv_db_db_4_4 = yes ; then
28776 ol_cv_lib_db=-ldb-4-4
28780 elif test $ol_cv_bdb_minor = 3 ; then
28781 if test $ol_cv_lib_db = no ; then
28782 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28783 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28784 if test "${ol_cv_db_db43+set}" = set; then
28785 echo $ECHO_N "(cached) $ECHO_C" >&6
28790 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28799 #ifdef HAVE_DB_185_H
28800 # include <db_185.h>
28805 #ifndef DB_VERSION_MAJOR
28806 # define DB_VERSION_MAJOR 1
28810 #define NULL ((void*)0)
28817 #if DB_VERSION_MAJOR > 1
28820 int major, minor, patch;
28822 version = db_version( &major, &minor, &patch );
28824 if( major != DB_VERSION_MAJOR ||
28825 minor < DB_VERSION_MINOR )
28827 printf("Berkeley DB version mismatch\n"
28828 "\theader: %s\n\tlibrary: %s\n",
28829 DB_VERSION_STRING, version);
28835 #if DB_VERSION_MAJOR > 2
28836 db_env_create( NULL, 0 );
28837 #elif DB_VERSION_MAJOR > 1
28838 db_appexit( NULL );
28840 (void) dbopen( NULL, 0, 0, 0, NULL);
28847 rm -f conftest.$ac_objext conftest$ac_exeext
28848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28849 (eval $ac_link) 2>conftest.er1
28851 grep -v '^ *+' conftest.er1 >conftest.err
28853 cat conftest.err >&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } &&
28856 { ac_try='test -z "$ac_c_werror_flag"
28857 || test ! -s conftest.err'
28858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28859 (eval $ac_try) 2>&5
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; } &&
28863 { ac_try='test -s conftest$ac_exeext'
28864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865 (eval $ac_try) 2>&5
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); }; }; then
28871 echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28876 rm -f conftest.err conftest.$ac_objext \
28877 conftest$ac_exeext conftest.$ac_ext
28882 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28883 echo "${ECHO_T}$ol_cv_db_db43" >&6
28885 if test $ol_cv_db_db43 = yes ; then
28886 ol_cv_lib_db=-ldb43
28890 if test $ol_cv_lib_db = no ; then
28891 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28892 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28893 if test "${ol_cv_db_db_43+set}" = set; then
28894 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28901 cat >conftest.$ac_ext <<_ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h. */
28908 #ifdef HAVE_DB_185_H
28909 # include <db_185.h>
28914 #ifndef DB_VERSION_MAJOR
28915 # define DB_VERSION_MAJOR 1
28919 #define NULL ((void*)0)
28926 #if DB_VERSION_MAJOR > 1
28929 int major, minor, patch;
28931 version = db_version( &major, &minor, &patch );
28933 if( major != DB_VERSION_MAJOR ||
28934 minor < DB_VERSION_MINOR )
28936 printf("Berkeley DB version mismatch\n"
28937 "\theader: %s\n\tlibrary: %s\n",
28938 DB_VERSION_STRING, version);
28944 #if DB_VERSION_MAJOR > 2
28945 db_env_create( NULL, 0 );
28946 #elif DB_VERSION_MAJOR > 1
28947 db_appexit( NULL );
28949 (void) dbopen( NULL, 0, 0, 0, NULL);
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958 (eval $ac_link) 2>conftest.er1
28960 grep -v '^ *+' conftest.er1 >conftest.err
28962 cat conftest.err >&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } &&
28965 { ac_try='test -z "$ac_c_werror_flag"
28966 || test ! -s conftest.err'
28967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968 (eval $ac_try) 2>&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; } &&
28972 { ac_try='test -s conftest$ac_exeext'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28980 echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28985 rm -f conftest.err conftest.$ac_objext \
28986 conftest$ac_exeext conftest.$ac_ext
28991 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28992 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28994 if test $ol_cv_db_db_43 = yes ; then
28995 ol_cv_lib_db=-ldb-43
28999 if test $ol_cv_lib_db = no ; then
29000 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29001 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29002 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29003 echo $ECHO_N "(cached) $ECHO_C" >&6
29008 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29010 cat >conftest.$ac_ext <<_ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29017 #ifdef HAVE_DB_185_H
29018 # include <db_185.h>
29023 #ifndef DB_VERSION_MAJOR
29024 # define DB_VERSION_MAJOR 1
29028 #define NULL ((void*)0)
29035 #if DB_VERSION_MAJOR > 1
29038 int major, minor, patch;
29040 version = db_version( &major, &minor, &patch );
29042 if( major != DB_VERSION_MAJOR ||
29043 minor < DB_VERSION_MINOR )
29045 printf("Berkeley DB version mismatch\n"
29046 "\theader: %s\n\tlibrary: %s\n",
29047 DB_VERSION_STRING, version);
29053 #if DB_VERSION_MAJOR > 2
29054 db_env_create( NULL, 0 );
29055 #elif DB_VERSION_MAJOR > 1
29056 db_appexit( NULL );
29058 (void) dbopen( NULL, 0, 0, 0, NULL);
29065 rm -f conftest.$ac_objext conftest$ac_exeext
29066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29067 (eval $ac_link) 2>conftest.er1
29069 grep -v '^ *+' conftest.er1 >conftest.err
29071 cat conftest.err >&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); } &&
29074 { ac_try='test -z "$ac_c_werror_flag"
29075 || test ! -s conftest.err'
29076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077 (eval $ac_try) 2>&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; } &&
29081 { ac_try='test -s conftest$ac_exeext'
29082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083 (eval $ac_try) 2>&5
29085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086 (exit $ac_status); }; }; then
29087 ol_cv_db_db_4_dot_3=yes
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29092 ol_cv_db_db_4_dot_3=no
29094 rm -f conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
29100 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29101 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29103 if test $ol_cv_db_db_4_dot_3 = yes ; then
29104 ol_cv_lib_db=-ldb-4.3
29108 if test $ol_cv_lib_db = no ; then
29109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29110 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29111 if test "${ol_cv_db_db_4_3+set}" = set; then
29112 echo $ECHO_N "(cached) $ECHO_C" >&6
29117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29126 #ifdef HAVE_DB_185_H
29127 # include <db_185.h>
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29137 #define NULL ((void*)0)
29144 #if DB_VERSION_MAJOR > 1
29147 int major, minor, patch;
29149 version = db_version( &major, &minor, &patch );
29151 if( major != DB_VERSION_MAJOR ||
29152 minor < DB_VERSION_MINOR )
29154 printf("Berkeley DB version mismatch\n"
29155 "\theader: %s\n\tlibrary: %s\n",
29156 DB_VERSION_STRING, version);
29162 #if DB_VERSION_MAJOR > 2
29163 db_env_create( NULL, 0 );
29164 #elif DB_VERSION_MAJOR > 1
29165 db_appexit( NULL );
29167 (void) dbopen( NULL, 0, 0, 0, NULL);
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29176 (eval $ac_link) 2>conftest.er1
29178 grep -v '^ *+' conftest.er1 >conftest.err
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } &&
29183 { ac_try='test -z "$ac_c_werror_flag"
29184 || test ! -s conftest.err'
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest$ac_exeext'
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 ol_cv_db_db_4_3=yes
29198 echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29203 rm -f conftest.err conftest.$ac_objext \
29204 conftest$ac_exeext conftest.$ac_ext
29209 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29210 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29212 if test $ol_cv_db_db_4_3 = yes ; then
29213 ol_cv_lib_db=-ldb-4-3
29217 elif test $ol_cv_bdb_minor = 2 ; then
29218 if test $ol_cv_lib_db = no ; then
29219 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29220 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29221 if test "${ol_cv_db_db42+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29229 cat >conftest.$ac_ext <<_ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h. */
29236 #ifdef HAVE_DB_185_H
29237 # include <db_185.h>
29242 #ifndef DB_VERSION_MAJOR
29243 # define DB_VERSION_MAJOR 1
29247 #define NULL ((void*)0)
29254 #if DB_VERSION_MAJOR > 1
29257 int major, minor, patch;
29259 version = db_version( &major, &minor, &patch );
29261 if( major != DB_VERSION_MAJOR ||
29262 minor < DB_VERSION_MINOR )
29264 printf("Berkeley DB version mismatch\n"
29265 "\theader: %s\n\tlibrary: %s\n",
29266 DB_VERSION_STRING, version);
29272 #if DB_VERSION_MAJOR > 2
29273 db_env_create( NULL, 0 );
29274 #elif DB_VERSION_MAJOR > 1
29275 db_appexit( NULL );
29277 (void) dbopen( NULL, 0, 0, 0, NULL);
29284 rm -f conftest.$ac_objext conftest$ac_exeext
29285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29286 (eval $ac_link) 2>conftest.er1
29288 grep -v '^ *+' conftest.er1 >conftest.err
29290 cat conftest.err >&5
29291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 (exit $ac_status); } &&
29293 { ac_try='test -z "$ac_c_werror_flag"
29294 || test ! -s conftest.err'
29295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29296 (eval $ac_try) 2>&5
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); }; } &&
29300 { ac_try='test -s conftest$ac_exeext'
29301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302 (eval $ac_try) 2>&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; }; then
29308 echo "$as_me: failed program was:" >&5
29309 sed 's/^/| /' conftest.$ac_ext >&5
29313 rm -f conftest.err conftest.$ac_objext \
29314 conftest$ac_exeext conftest.$ac_ext
29319 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29320 echo "${ECHO_T}$ol_cv_db_db42" >&6
29322 if test $ol_cv_db_db42 = yes ; then
29323 ol_cv_lib_db=-ldb42
29327 if test $ol_cv_lib_db = no ; then
29328 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29329 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29330 if test "${ol_cv_db_db_42+set}" = set; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29336 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29338 cat >conftest.$ac_ext <<_ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29345 #ifdef HAVE_DB_185_H
29346 # include <db_185.h>
29351 #ifndef DB_VERSION_MAJOR
29352 # define DB_VERSION_MAJOR 1
29356 #define NULL ((void*)0)
29363 #if DB_VERSION_MAJOR > 1
29366 int major, minor, patch;
29368 version = db_version( &major, &minor, &patch );
29370 if( major != DB_VERSION_MAJOR ||
29371 minor < DB_VERSION_MINOR )
29373 printf("Berkeley DB version mismatch\n"
29374 "\theader: %s\n\tlibrary: %s\n",
29375 DB_VERSION_STRING, version);
29381 #if DB_VERSION_MAJOR > 2
29382 db_env_create( NULL, 0 );
29383 #elif DB_VERSION_MAJOR > 1
29384 db_appexit( NULL );
29386 (void) dbopen( NULL, 0, 0, 0, NULL);
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395 (eval $ac_link) 2>conftest.er1
29397 grep -v '^ *+' conftest.er1 >conftest.err
29399 cat conftest.err >&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
29402 { ac_try='test -z "$ac_c_werror_flag"
29403 || test ! -s conftest.err'
29404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 (eval $ac_try) 2>&5
29407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 (exit $ac_status); }; } &&
29409 { ac_try='test -s conftest$ac_exeext'
29410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411 (eval $ac_try) 2>&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); }; }; then
29417 echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29422 rm -f conftest.err conftest.$ac_objext \
29423 conftest$ac_exeext conftest.$ac_ext
29428 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29429 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29431 if test $ol_cv_db_db_42 = yes ; then
29432 ol_cv_lib_db=-ldb-42
29436 if test $ol_cv_lib_db = no ; then
29437 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29438 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29439 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29445 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29447 cat >conftest.$ac_ext <<_ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h. */
29454 #ifdef HAVE_DB_185_H
29455 # include <db_185.h>
29460 #ifndef DB_VERSION_MAJOR
29461 # define DB_VERSION_MAJOR 1
29465 #define NULL ((void*)0)
29472 #if DB_VERSION_MAJOR > 1
29475 int major, minor, patch;
29477 version = db_version( &major, &minor, &patch );
29479 if( major != DB_VERSION_MAJOR ||
29480 minor < DB_VERSION_MINOR )
29482 printf("Berkeley DB version mismatch\n"
29483 "\theader: %s\n\tlibrary: %s\n",
29484 DB_VERSION_STRING, version);
29490 #if DB_VERSION_MAJOR > 2
29491 db_env_create( NULL, 0 );
29492 #elif DB_VERSION_MAJOR > 1
29493 db_appexit( NULL );
29495 (void) dbopen( NULL, 0, 0, 0, NULL);
29502 rm -f conftest.$ac_objext conftest$ac_exeext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29504 (eval $ac_link) 2>conftest.er1
29506 grep -v '^ *+' conftest.er1 >conftest.err
29508 cat conftest.err >&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); } &&
29511 { ac_try='test -z "$ac_c_werror_flag"
29512 || test ! -s conftest.err'
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest$ac_exeext'
29519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520 (eval $ac_try) 2>&5
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; }; then
29524 ol_cv_db_db_4_dot_2=yes
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 ol_cv_db_db_4_dot_2=no
29531 rm -f conftest.err conftest.$ac_objext \
29532 conftest$ac_exeext conftest.$ac_ext
29537 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29538 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29540 if test $ol_cv_db_db_4_dot_2 = yes ; then
29541 ol_cv_lib_db=-ldb-4.2
29545 if test $ol_cv_lib_db = no ; then
29546 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29547 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29548 if test "${ol_cv_db_db_4_2+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29554 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29556 cat >conftest.$ac_ext <<_ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h. */
29563 #ifdef HAVE_DB_185_H
29564 # include <db_185.h>
29569 #ifndef DB_VERSION_MAJOR
29570 # define DB_VERSION_MAJOR 1
29574 #define NULL ((void*)0)
29581 #if DB_VERSION_MAJOR > 1
29584 int major, minor, patch;
29586 version = db_version( &major, &minor, &patch );
29588 if( major != DB_VERSION_MAJOR ||
29589 minor < DB_VERSION_MINOR )
29591 printf("Berkeley DB version mismatch\n"
29592 "\theader: %s\n\tlibrary: %s\n",
29593 DB_VERSION_STRING, version);
29599 #if DB_VERSION_MAJOR > 2
29600 db_env_create( NULL, 0 );
29601 #elif DB_VERSION_MAJOR > 1
29602 db_appexit( NULL );
29604 (void) dbopen( NULL, 0, 0, 0, NULL);
29611 rm -f conftest.$ac_objext conftest$ac_exeext
29612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29613 (eval $ac_link) 2>conftest.er1
29615 grep -v '^ *+' conftest.er1 >conftest.err
29617 cat conftest.err >&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); } &&
29620 { ac_try='test -z "$ac_c_werror_flag"
29621 || test ! -s conftest.err'
29622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623 (eval $ac_try) 2>&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; } &&
29627 { ac_try='test -s conftest$ac_exeext'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; }; then
29633 ol_cv_db_db_4_2=yes
29635 echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29640 rm -f conftest.err conftest.$ac_objext \
29641 conftest$ac_exeext conftest.$ac_ext
29646 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29647 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29649 if test $ol_cv_db_db_4_2 = yes ; then
29650 ol_cv_lib_db=-ldb-4-2
29654 elif test $ol_cv_bdb_minor = 1 ; then
29655 if test $ol_cv_lib_db = no ; then
29656 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29657 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29658 if test "${ol_cv_db_db41+set}" = set; then
29659 echo $ECHO_N "(cached) $ECHO_C" >&6
29664 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29666 cat >conftest.$ac_ext <<_ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29673 #ifdef HAVE_DB_185_H
29674 # include <db_185.h>
29679 #ifndef DB_VERSION_MAJOR
29680 # define DB_VERSION_MAJOR 1
29684 #define NULL ((void*)0)
29691 #if DB_VERSION_MAJOR > 1
29694 int major, minor, patch;
29696 version = db_version( &major, &minor, &patch );
29698 if( major != DB_VERSION_MAJOR ||
29699 minor < DB_VERSION_MINOR )
29701 printf("Berkeley DB version mismatch\n"
29702 "\theader: %s\n\tlibrary: %s\n",
29703 DB_VERSION_STRING, version);
29709 #if DB_VERSION_MAJOR > 2
29710 db_env_create( NULL, 0 );
29711 #elif DB_VERSION_MAJOR > 1
29712 db_appexit( NULL );
29714 (void) dbopen( NULL, 0, 0, 0, NULL);
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723 (eval $ac_link) 2>conftest.er1
29725 grep -v '^ *+' conftest.er1 >conftest.err
29727 cat conftest.err >&5
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); } &&
29730 { ac_try='test -z "$ac_c_werror_flag"
29731 || test ! -s conftest.err'
29732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733 (eval $ac_try) 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; } &&
29737 { ac_try='test -s conftest$ac_exeext'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29745 echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29750 rm -f conftest.err conftest.$ac_objext \
29751 conftest$ac_exeext conftest.$ac_ext
29756 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29757 echo "${ECHO_T}$ol_cv_db_db41" >&6
29759 if test $ol_cv_db_db41 = yes ; then
29760 ol_cv_lib_db=-ldb41
29764 if test $ol_cv_lib_db = no ; then
29765 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29766 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29767 if test "${ol_cv_db_db_41+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29773 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29775 cat >conftest.$ac_ext <<_ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h. */
29782 #ifdef HAVE_DB_185_H
29783 # include <db_185.h>
29788 #ifndef DB_VERSION_MAJOR
29789 # define DB_VERSION_MAJOR 1
29793 #define NULL ((void*)0)
29800 #if DB_VERSION_MAJOR > 1
29803 int major, minor, patch;
29805 version = db_version( &major, &minor, &patch );
29807 if( major != DB_VERSION_MAJOR ||
29808 minor < DB_VERSION_MINOR )
29810 printf("Berkeley DB version mismatch\n"
29811 "\theader: %s\n\tlibrary: %s\n",
29812 DB_VERSION_STRING, version);
29818 #if DB_VERSION_MAJOR > 2
29819 db_env_create( NULL, 0 );
29820 #elif DB_VERSION_MAJOR > 1
29821 db_appexit( NULL );
29823 (void) dbopen( NULL, 0, 0, 0, NULL);
29830 rm -f conftest.$ac_objext conftest$ac_exeext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29832 (eval $ac_link) 2>conftest.er1
29834 grep -v '^ *+' conftest.er1 >conftest.err
29836 cat conftest.err >&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); } &&
29839 { ac_try='test -z "$ac_c_werror_flag"
29840 || test ! -s conftest.err'
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest$ac_exeext'
29847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848 (eval $ac_try) 2>&5
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; }; then
29854 echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29859 rm -f conftest.err conftest.$ac_objext \
29860 conftest$ac_exeext conftest.$ac_ext
29865 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29866 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29868 if test $ol_cv_db_db_41 = yes ; then
29869 ol_cv_lib_db=-ldb-41
29873 if test $ol_cv_lib_db = no ; then
29874 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29875 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29876 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29882 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29884 cat >conftest.$ac_ext <<_ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h. */
29891 #ifdef HAVE_DB_185_H
29892 # include <db_185.h>
29897 #ifndef DB_VERSION_MAJOR
29898 # define DB_VERSION_MAJOR 1
29902 #define NULL ((void*)0)
29909 #if DB_VERSION_MAJOR > 1
29912 int major, minor, patch;
29914 version = db_version( &major, &minor, &patch );
29916 if( major != DB_VERSION_MAJOR ||
29917 minor < DB_VERSION_MINOR )
29919 printf("Berkeley DB version mismatch\n"
29920 "\theader: %s\n\tlibrary: %s\n",
29921 DB_VERSION_STRING, version);
29927 #if DB_VERSION_MAJOR > 2
29928 db_env_create( NULL, 0 );
29929 #elif DB_VERSION_MAJOR > 1
29930 db_appexit( NULL );
29932 (void) dbopen( NULL, 0, 0, 0, NULL);
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29941 (eval $ac_link) 2>conftest.er1
29943 grep -v '^ *+' conftest.er1 >conftest.err
29945 cat conftest.err >&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } &&
29948 { ac_try='test -z "$ac_c_werror_flag"
29949 || test ! -s conftest.err'
29950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951 (eval $ac_try) 2>&5
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); }; } &&
29955 { ac_try='test -s conftest$ac_exeext'
29956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957 (eval $ac_try) 2>&5
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; }; then
29961 ol_cv_db_db_4_dot_1=yes
29963 echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29966 ol_cv_db_db_4_dot_1=no
29968 rm -f conftest.err conftest.$ac_objext \
29969 conftest$ac_exeext conftest.$ac_ext
29974 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29975 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29977 if test $ol_cv_db_db_4_dot_1 = yes ; then
29978 ol_cv_lib_db=-ldb-4.1
29982 if test $ol_cv_lib_db = no ; then
29983 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29984 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29985 if test "${ol_cv_db_db_4_1+set}" = set; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29991 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29993 cat >conftest.$ac_ext <<_ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h. */
30000 #ifdef HAVE_DB_185_H
30001 # include <db_185.h>
30006 #ifndef DB_VERSION_MAJOR
30007 # define DB_VERSION_MAJOR 1
30011 #define NULL ((void*)0)
30018 #if DB_VERSION_MAJOR > 1
30021 int major, minor, patch;
30023 version = db_version( &major, &minor, &patch );
30025 if( major != DB_VERSION_MAJOR ||
30026 minor < DB_VERSION_MINOR )
30028 printf("Berkeley DB version mismatch\n"
30029 "\theader: %s\n\tlibrary: %s\n",
30030 DB_VERSION_STRING, version);
30036 #if DB_VERSION_MAJOR > 2
30037 db_env_create( NULL, 0 );
30038 #elif DB_VERSION_MAJOR > 1
30039 db_appexit( NULL );
30041 (void) dbopen( NULL, 0, 0, 0, NULL);
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30050 (eval $ac_link) 2>conftest.er1
30052 grep -v '^ *+' conftest.er1 >conftest.err
30054 cat conftest.err >&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); } &&
30057 { ac_try='test -z "$ac_c_werror_flag"
30058 || test ! -s conftest.err'
30059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060 (eval $ac_try) 2>&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; } &&
30064 { ac_try='test -s conftest$ac_exeext'
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; }; then
30070 ol_cv_db_db_4_1=yes
30072 echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30077 rm -f conftest.err conftest.$ac_objext \
30078 conftest$ac_exeext conftest.$ac_ext
30083 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30084 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30086 if test $ol_cv_db_db_4_1 = yes ; then
30087 ol_cv_lib_db=-ldb-4-1
30092 if test $ol_cv_lib_db = no ; then
30093 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30094 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30095 if test "${ol_cv_db_db_4+set}" = set; then
30096 echo $ECHO_N "(cached) $ECHO_C" >&6
30101 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30103 cat >conftest.$ac_ext <<_ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30110 #ifdef HAVE_DB_185_H
30111 # include <db_185.h>
30116 #ifndef DB_VERSION_MAJOR
30117 # define DB_VERSION_MAJOR 1
30121 #define NULL ((void*)0)
30128 #if DB_VERSION_MAJOR > 1
30131 int major, minor, patch;
30133 version = db_version( &major, &minor, &patch );
30135 if( major != DB_VERSION_MAJOR ||
30136 minor < DB_VERSION_MINOR )
30138 printf("Berkeley DB version mismatch\n"
30139 "\theader: %s\n\tlibrary: %s\n",
30140 DB_VERSION_STRING, version);
30146 #if DB_VERSION_MAJOR > 2
30147 db_env_create( NULL, 0 );
30148 #elif DB_VERSION_MAJOR > 1
30149 db_appexit( NULL );
30151 (void) dbopen( NULL, 0, 0, 0, NULL);
30158 rm -f conftest.$ac_objext conftest$ac_exeext
30159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30160 (eval $ac_link) 2>conftest.er1
30162 grep -v '^ *+' conftest.er1 >conftest.err
30164 cat conftest.err >&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } &&
30167 { ac_try='test -z "$ac_c_werror_flag"
30168 || test ! -s conftest.err'
30169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170 (eval $ac_try) 2>&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); }; } &&
30174 { ac_try='test -s conftest$ac_exeext'
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; }; then
30182 echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30187 rm -f conftest.err conftest.$ac_objext \
30188 conftest$ac_exeext conftest.$ac_ext
30193 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30194 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30196 if test $ol_cv_db_db_4 = yes ; then
30197 ol_cv_lib_db=-ldb-4
30201 if test $ol_cv_lib_db = no ; then
30202 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30203 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30204 if test "${ol_cv_db_db4+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30212 cat >conftest.$ac_ext <<_ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h. */
30219 #ifdef HAVE_DB_185_H
30220 # include <db_185.h>
30225 #ifndef DB_VERSION_MAJOR
30226 # define DB_VERSION_MAJOR 1
30230 #define NULL ((void*)0)
30237 #if DB_VERSION_MAJOR > 1
30240 int major, minor, patch;
30242 version = db_version( &major, &minor, &patch );
30244 if( major != DB_VERSION_MAJOR ||
30245 minor < DB_VERSION_MINOR )
30247 printf("Berkeley DB version mismatch\n"
30248 "\theader: %s\n\tlibrary: %s\n",
30249 DB_VERSION_STRING, version);
30255 #if DB_VERSION_MAJOR > 2
30256 db_env_create( NULL, 0 );
30257 #elif DB_VERSION_MAJOR > 1
30258 db_appexit( NULL );
30260 (void) dbopen( NULL, 0, 0, 0, NULL);
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269 (eval $ac_link) 2>conftest.er1
30271 grep -v '^ *+' conftest.er1 >conftest.err
30273 cat conftest.err >&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); } &&
30276 { ac_try='test -z "$ac_c_werror_flag"
30277 || test ! -s conftest.err'
30278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279 (eval $ac_try) 2>&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest$ac_exeext'
30284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285 (eval $ac_try) 2>&5
30287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288 (exit $ac_status); }; }; then
30291 echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30296 rm -f conftest.err conftest.$ac_objext \
30297 conftest$ac_exeext conftest.$ac_ext
30302 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30303 echo "${ECHO_T}$ol_cv_db_db4" >&6
30305 if test $ol_cv_db_db4 = yes ; then
30310 if test $ol_cv_lib_db = no ; then
30311 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30312 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30313 if test "${ol_cv_db_db+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30319 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30321 cat >conftest.$ac_ext <<_ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h. */
30328 #ifdef HAVE_DB_185_H
30329 # include <db_185.h>
30334 #ifndef DB_VERSION_MAJOR
30335 # define DB_VERSION_MAJOR 1
30339 #define NULL ((void*)0)
30346 #if DB_VERSION_MAJOR > 1
30349 int major, minor, patch;
30351 version = db_version( &major, &minor, &patch );
30353 if( major != DB_VERSION_MAJOR ||
30354 minor < DB_VERSION_MINOR )
30356 printf("Berkeley DB version mismatch\n"
30357 "\theader: %s\n\tlibrary: %s\n",
30358 DB_VERSION_STRING, version);
30364 #if DB_VERSION_MAJOR > 2
30365 db_env_create( NULL, 0 );
30366 #elif DB_VERSION_MAJOR > 1
30367 db_appexit( NULL );
30369 (void) dbopen( NULL, 0, 0, 0, NULL);
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378 (eval $ac_link) 2>conftest.er1
30380 grep -v '^ *+' conftest.er1 >conftest.err
30382 cat conftest.err >&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try='test -z "$ac_c_werror_flag"
30386 || test ! -s conftest.err'
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest$ac_exeext'
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30405 rm -f conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30411 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30412 echo "${ECHO_T}$ol_cv_db_db" >&6
30414 if test $ol_cv_db_db = yes ; then
30420 elif test $ol_cv_bdb_major = 3 ; then
30421 if test $ol_cv_lib_db = no ; then
30422 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30423 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30424 if test "${ol_cv_db_db3+set}" = set; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30430 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30432 cat >conftest.$ac_ext <<_ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30439 #ifdef HAVE_DB_185_H
30440 # include <db_185.h>
30445 #ifndef DB_VERSION_MAJOR
30446 # define DB_VERSION_MAJOR 1
30450 #define NULL ((void*)0)
30457 #if DB_VERSION_MAJOR > 1
30460 int major, minor, patch;
30462 version = db_version( &major, &minor, &patch );
30464 if( major != DB_VERSION_MAJOR ||
30465 minor < DB_VERSION_MINOR )
30467 printf("Berkeley DB version mismatch\n"
30468 "\theader: %s\n\tlibrary: %s\n",
30469 DB_VERSION_STRING, version);
30475 #if DB_VERSION_MAJOR > 2
30476 db_env_create( NULL, 0 );
30477 #elif DB_VERSION_MAJOR > 1
30478 db_appexit( NULL );
30480 (void) dbopen( NULL, 0, 0, 0, NULL);
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489 (eval $ac_link) 2>conftest.er1
30491 grep -v '^ *+' conftest.er1 >conftest.err
30493 cat conftest.err >&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
30496 { ac_try='test -z "$ac_c_werror_flag"
30497 || test ! -s conftest.err'
30498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30499 (eval $ac_try) 2>&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); }; } &&
30503 { ac_try='test -s conftest$ac_exeext'
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; }; then
30511 echo "$as_me: failed program was:" >&5
30512 sed 's/^/| /' conftest.$ac_ext >&5
30516 rm -f conftest.err conftest.$ac_objext \
30517 conftest$ac_exeext conftest.$ac_ext
30522 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30523 echo "${ECHO_T}$ol_cv_db_db3" >&6
30525 if test $ol_cv_db_db3 = yes ; then
30530 if test $ol_cv_lib_db = no ; then
30531 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30532 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30533 if test "${ol_cv_db_db_3+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30541 cat >conftest.$ac_ext <<_ACEOF
30544 cat confdefs.h >>conftest.$ac_ext
30545 cat >>conftest.$ac_ext <<_ACEOF
30546 /* end confdefs.h. */
30548 #ifdef HAVE_DB_185_H
30549 # include <db_185.h>
30554 #ifndef DB_VERSION_MAJOR
30555 # define DB_VERSION_MAJOR 1
30559 #define NULL ((void*)0)
30566 #if DB_VERSION_MAJOR > 1
30569 int major, minor, patch;
30571 version = db_version( &major, &minor, &patch );
30573 if( major != DB_VERSION_MAJOR ||
30574 minor < DB_VERSION_MINOR )
30576 printf("Berkeley DB version mismatch\n"
30577 "\theader: %s\n\tlibrary: %s\n",
30578 DB_VERSION_STRING, version);
30584 #if DB_VERSION_MAJOR > 2
30585 db_env_create( NULL, 0 );
30586 #elif DB_VERSION_MAJOR > 1
30587 db_appexit( NULL );
30589 (void) dbopen( NULL, 0, 0, 0, NULL);
30596 rm -f conftest.$ac_objext conftest$ac_exeext
30597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30598 (eval $ac_link) 2>conftest.er1
30600 grep -v '^ *+' conftest.er1 >conftest.err
30602 cat conftest.err >&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); } &&
30605 { ac_try='test -z "$ac_c_werror_flag"
30606 || test ! -s conftest.err'
30607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 (eval $ac_try) 2>&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; } &&
30612 { ac_try='test -s conftest$ac_exeext'
30613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614 (eval $ac_try) 2>&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30625 rm -f conftest.err conftest.$ac_objext \
30626 conftest$ac_exeext conftest.$ac_ext
30631 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30632 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30634 if test $ol_cv_db_db_3 = yes ; then
30635 ol_cv_lib_db=-ldb-3
30640 elif test $ol_cv_bdb_major = 2 ; then
30641 if test $ol_cv_lib_db = no ; then
30642 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30643 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30644 if test "${ol_cv_db_db2+set}" = set; then
30645 echo $ECHO_N "(cached) $ECHO_C" >&6
30650 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30652 cat >conftest.$ac_ext <<_ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h. */
30659 #ifdef HAVE_DB_185_H
30660 # include <db_185.h>
30665 #ifndef DB_VERSION_MAJOR
30666 # define DB_VERSION_MAJOR 1
30670 #define NULL ((void*)0)
30677 #if DB_VERSION_MAJOR > 1
30680 int major, minor, patch;
30682 version = db_version( &major, &minor, &patch );
30684 if( major != DB_VERSION_MAJOR ||
30685 minor < DB_VERSION_MINOR )
30687 printf("Berkeley DB version mismatch\n"
30688 "\theader: %s\n\tlibrary: %s\n",
30689 DB_VERSION_STRING, version);
30695 #if DB_VERSION_MAJOR > 2
30696 db_env_create( NULL, 0 );
30697 #elif DB_VERSION_MAJOR > 1
30698 db_appexit( NULL );
30700 (void) dbopen( NULL, 0, 0, 0, NULL);
30707 rm -f conftest.$ac_objext conftest$ac_exeext
30708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30709 (eval $ac_link) 2>conftest.er1
30711 grep -v '^ *+' conftest.er1 >conftest.err
30713 cat conftest.err >&5
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } &&
30716 { ac_try='test -z "$ac_c_werror_flag"
30717 || test ! -s conftest.err'
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; }; then
30731 echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30736 rm -f conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
30742 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30743 echo "${ECHO_T}$ol_cv_db_db2" >&6
30745 if test $ol_cv_db_db2 = yes ; then
30750 if test $ol_cv_lib_db = no ; then
30751 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30752 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30753 if test "${ol_cv_db_db_2+set}" = set; then
30754 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30761 cat >conftest.$ac_ext <<_ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h. */
30768 #ifdef HAVE_DB_185_H
30769 # include <db_185.h>
30774 #ifndef DB_VERSION_MAJOR
30775 # define DB_VERSION_MAJOR 1
30779 #define NULL ((void*)0)
30786 #if DB_VERSION_MAJOR > 1
30789 int major, minor, patch;
30791 version = db_version( &major, &minor, &patch );
30793 if( major != DB_VERSION_MAJOR ||
30794 minor < DB_VERSION_MINOR )
30796 printf("Berkeley DB version mismatch\n"
30797 "\theader: %s\n\tlibrary: %s\n",
30798 DB_VERSION_STRING, version);
30804 #if DB_VERSION_MAJOR > 2
30805 db_env_create( NULL, 0 );
30806 #elif DB_VERSION_MAJOR > 1
30807 db_appexit( NULL );
30809 (void) dbopen( NULL, 0, 0, 0, NULL);
30816 rm -f conftest.$ac_objext conftest$ac_exeext
30817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30818 (eval $ac_link) 2>conftest.er1
30820 grep -v '^ *+' conftest.er1 >conftest.err
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } &&
30825 { ac_try='test -z "$ac_c_werror_flag"
30826 || test ! -s conftest.err'
30827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828 (eval $ac_try) 2>&5
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest$ac_exeext'
30833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834 (eval $ac_try) 2>&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; }; then
30840 echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30845 rm -f conftest.err conftest.$ac_objext \
30846 conftest$ac_exeext conftest.$ac_ext
30851 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30852 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30854 if test $ol_cv_db_db_2 = yes ; then
30855 ol_cv_lib_db=-ldb-2
30860 elif test $ol_cv_bdb_major = 1 ; then
30861 if test $ol_cv_lib_db = no ; then
30862 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30863 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30864 if test "${ol_cv_db_db1+set}" = set; then
30865 echo $ECHO_N "(cached) $ECHO_C" >&6
30870 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30872 cat >conftest.$ac_ext <<_ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30879 #ifdef HAVE_DB_185_H
30880 # include <db_185.h>
30885 #ifndef DB_VERSION_MAJOR
30886 # define DB_VERSION_MAJOR 1
30890 #define NULL ((void*)0)
30897 #if DB_VERSION_MAJOR > 1
30900 int major, minor, patch;
30902 version = db_version( &major, &minor, &patch );
30904 if( major != DB_VERSION_MAJOR ||
30905 minor < DB_VERSION_MINOR )
30907 printf("Berkeley DB version mismatch\n"
30908 "\theader: %s\n\tlibrary: %s\n",
30909 DB_VERSION_STRING, version);
30915 #if DB_VERSION_MAJOR > 2
30916 db_env_create( NULL, 0 );
30917 #elif DB_VERSION_MAJOR > 1
30918 db_appexit( NULL );
30920 (void) dbopen( NULL, 0, 0, 0, NULL);
30927 rm -f conftest.$ac_objext conftest$ac_exeext
30928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30929 (eval $ac_link) 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag"
30937 || test ! -s conftest.err'
30938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939 (eval $ac_try) 2>&5
30941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942 (exit $ac_status); }; } &&
30943 { ac_try='test -s conftest$ac_exeext'
30944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30945 (eval $ac_try) 2>&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); }; }; then
30951 echo "$as_me: failed program was:" >&5
30952 sed 's/^/| /' conftest.$ac_ext >&5
30956 rm -f conftest.err conftest.$ac_objext \
30957 conftest$ac_exeext conftest.$ac_ext
30962 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30963 echo "${ECHO_T}$ol_cv_db_db1" >&6
30965 if test $ol_cv_db_db1 = yes ; then
30970 if test $ol_cv_lib_db = no ; then
30971 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30972 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30973 if test "${ol_cv_db_db_1+set}" = set; then
30974 echo $ECHO_N "(cached) $ECHO_C" >&6
30979 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30981 cat >conftest.$ac_ext <<_ACEOF
30984 cat confdefs.h >>conftest.$ac_ext
30985 cat >>conftest.$ac_ext <<_ACEOF
30986 /* end confdefs.h. */
30988 #ifdef HAVE_DB_185_H
30989 # include <db_185.h>
30994 #ifndef DB_VERSION_MAJOR
30995 # define DB_VERSION_MAJOR 1
30999 #define NULL ((void*)0)
31006 #if DB_VERSION_MAJOR > 1
31009 int major, minor, patch;
31011 version = db_version( &major, &minor, &patch );
31013 if( major != DB_VERSION_MAJOR ||
31014 minor < DB_VERSION_MINOR )
31016 printf("Berkeley DB version mismatch\n"
31017 "\theader: %s\n\tlibrary: %s\n",
31018 DB_VERSION_STRING, version);
31024 #if DB_VERSION_MAJOR > 2
31025 db_env_create( NULL, 0 );
31026 #elif DB_VERSION_MAJOR > 1
31027 db_appexit( NULL );
31029 (void) dbopen( NULL, 0, 0, 0, NULL);
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038 (eval $ac_link) 2>conftest.er1
31040 grep -v '^ *+' conftest.er1 >conftest.err
31042 cat conftest.err >&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
31045 { ac_try='test -z "$ac_c_werror_flag"
31046 || test ! -s conftest.err'
31047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048 (eval $ac_try) 2>&5
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; } &&
31052 { ac_try='test -s conftest$ac_exeext'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31060 echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31065 rm -f conftest.err conftest.$ac_objext \
31066 conftest$ac_exeext conftest.$ac_ext
31071 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31072 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31074 if test $ol_cv_db_db_1 = yes ; then
31075 ol_cv_lib_db=-ldb-1
31080 if test $ol_cv_lib_db = no ; then
31081 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31082 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31083 if test "${ol_cv_db_none+set}" = set; then
31084 echo $ECHO_N "(cached) $ECHO_C" >&6
31089 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31091 cat >conftest.$ac_ext <<_ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h. */
31098 #ifdef HAVE_DB_185_H
31099 # include <db_185.h>
31104 #ifndef DB_VERSION_MAJOR
31105 # define DB_VERSION_MAJOR 1
31109 #define NULL ((void*)0)
31116 #if DB_VERSION_MAJOR > 1
31119 int major, minor, patch;
31121 version = db_version( &major, &minor, &patch );
31123 if( major != DB_VERSION_MAJOR ||
31124 minor < DB_VERSION_MINOR )
31126 printf("Berkeley DB version mismatch\n"
31127 "\theader: %s\n\tlibrary: %s\n",
31128 DB_VERSION_STRING, version);
31134 #if DB_VERSION_MAJOR > 2
31135 db_env_create( NULL, 0 );
31136 #elif DB_VERSION_MAJOR > 1
31137 db_appexit( NULL );
31139 (void) dbopen( NULL, 0, 0, 0, NULL);
31146 rm -f conftest.$ac_objext conftest$ac_exeext
31147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31148 (eval $ac_link) 2>conftest.er1
31150 grep -v '^ *+' conftest.er1 >conftest.err
31152 cat conftest.err >&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
31155 { ac_try='test -z "$ac_c_werror_flag"
31156 || test ! -s conftest.err'
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; } &&
31162 { ac_try='test -s conftest$ac_exeext'
31163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31164 (eval $ac_try) 2>&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); }; }; then
31170 echo "$as_me: failed program was:" >&5
31171 sed 's/^/| /' conftest.$ac_ext >&5
31175 rm -f conftest.err conftest.$ac_objext \
31176 conftest$ac_exeext conftest.$ac_ext
31181 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31182 echo "${ECHO_T}$ol_cv_db_none" >&6
31184 if test $ol_cv_db_none = yes ; then
31190 if test "$ol_cv_lib_db" != no ; then
31191 ol_cv_berkeley_db=yes
31197 ol_cv_berkeley_db=no
31199 for ac_header in db.h
31201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31203 echo "$as_me:$LINENO: checking for $ac_header" >&5
31204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
31208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31211 # Is the header compilable?
31212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31214 cat >conftest.$ac_ext <<_ACEOF
31217 cat confdefs.h >>conftest.$ac_ext
31218 cat >>conftest.$ac_ext <<_ACEOF
31219 /* end confdefs.h. */
31220 $ac_includes_default
31221 #include <$ac_header>
31223 rm -f conftest.$ac_objext
31224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31225 (eval $ac_compile) 2>conftest.er1
31227 grep -v '^ *+' conftest.er1 >conftest.err
31229 cat conftest.err >&5
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } &&
31232 { ac_try='test -z "$ac_c_werror_flag"
31233 || test ! -s conftest.err'
31234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235 (eval $ac_try) 2>&5
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest.$ac_objext'
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; }; then
31245 ac_header_compiler=yes
31247 echo "$as_me: failed program was:" >&5
31248 sed 's/^/| /' conftest.$ac_ext >&5
31250 ac_header_compiler=no
31252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31254 echo "${ECHO_T}$ac_header_compiler" >&6
31256 # Is the header present?
31257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31259 cat >conftest.$ac_ext <<_ACEOF
31262 cat confdefs.h >>conftest.$ac_ext
31263 cat >>conftest.$ac_ext <<_ACEOF
31264 /* end confdefs.h. */
31265 #include <$ac_header>
31267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31270 grep -v '^ *+' conftest.er1 >conftest.err
31272 cat conftest.err >&5
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); } >/dev/null; then
31275 if test -s conftest.err; then
31276 ac_cpp_err=$ac_c_preproc_warn_flag
31277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31284 if test -z "$ac_cpp_err"; then
31285 ac_header_preproc=yes
31287 echo "$as_me: failed program was:" >&5
31288 sed 's/^/| /' conftest.$ac_ext >&5
31290 ac_header_preproc=no
31292 rm -f conftest.err conftest.$ac_ext
31293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31294 echo "${ECHO_T}$ac_header_preproc" >&6
31296 # So? What about this header?
31297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31303 ac_header_preproc=yes
31306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31320 ## --------------------------------------------- ##
31321 ## Report this to <http://www.openldap.org/its/> ##
31322 ## --------------------------------------------- ##
31325 sed "s/^/$as_me: WARNING: /" >&2
31328 echo "$as_me:$LINENO: checking for $ac_header" >&5
31329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31331 echo $ECHO_N "(cached) $ECHO_C" >&6
31333 eval "$as_ac_Header=\$ac_header_preproc"
31335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31348 if test $ac_cv_header_db_h = yes; then
31351 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31352 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31353 if test "${ol_cv_bdb_major+set}" = set; then
31354 echo $ECHO_N "(cached) $ECHO_C" >&6
31358 if test $ol_cv_bdb_major = 0 ; then
31359 cat >conftest.$ac_ext <<_ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h. */
31367 #ifndef DB_VERSION_MAJOR
31368 # define DB_VERSION_MAJOR 1
31370 #if DB_VERSION_MAJOR == 4
31375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31376 $EGREP "__db_version" >/dev/null 2>&1; then
31384 if test $ol_cv_bdb_major = 0 ; then
31385 cat >conftest.$ac_ext <<_ACEOF
31388 cat confdefs.h >>conftest.$ac_ext
31389 cat >>conftest.$ac_ext <<_ACEOF
31390 /* end confdefs.h. */
31393 #ifndef DB_VERSION_MAJOR
31394 # define DB_VERSION_MAJOR 1
31396 #if DB_VERSION_MAJOR == 3
31401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31402 $EGREP "__db_version" >/dev/null 2>&1; then
31410 if test $ol_cv_bdb_major = 0 ; then
31411 cat >conftest.$ac_ext <<_ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h. */
31419 #ifndef DB_VERSION_MAJOR
31420 # define DB_VERSION_MAJOR 1
31422 #if DB_VERSION_MAJOR == 2
31427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31428 $EGREP "__db_version" >/dev/null 2>&1; then
31436 if test $ol_cv_bdb_major = 0 ; then
31437 cat >conftest.$ac_ext <<_ACEOF
31440 cat confdefs.h >>conftest.$ac_ext
31441 cat >>conftest.$ac_ext <<_ACEOF
31442 /* end confdefs.h. */
31445 #ifndef DB_VERSION_MAJOR
31446 # define DB_VERSION_MAJOR 1
31448 #if DB_VERSION_MAJOR == 1
31453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31454 $EGREP "__db_version" >/dev/null 2>&1; then
31463 if test $ol_cv_bdb_major = 0 ; then
31464 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31465 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31466 { (exit 1); exit 1; }; }
31470 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31471 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31473 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31474 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31475 if test "${ol_cv_bdb_minor+set}" = set; then
31476 echo $ECHO_N "(cached) $ECHO_C" >&6
31480 if test $ol_cv_bdb_minor = 0 ; then
31481 cat >conftest.$ac_ext <<_ACEOF
31484 cat confdefs.h >>conftest.$ac_ext
31485 cat >>conftest.$ac_ext <<_ACEOF
31486 /* end confdefs.h. */
31489 #ifndef DB_VERSION_MINOR
31490 # define DB_VERSION_MINOR 0
31492 #if DB_VERSION_MINOR == 9
31497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31498 $EGREP "__db_version" >/dev/null 2>&1; then
31506 if test $ol_cv_bdb_minor = 0 ; then
31507 cat >conftest.$ac_ext <<_ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h. */
31515 #ifndef DB_VERSION_MINOR
31516 # define DB_VERSION_MINOR 0
31518 #if DB_VERSION_MINOR == 8
31523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31524 $EGREP "__db_version" >/dev/null 2>&1; then
31532 if test $ol_cv_bdb_minor = 0 ; then
31533 cat >conftest.$ac_ext <<_ACEOF
31536 cat confdefs.h >>conftest.$ac_ext
31537 cat >>conftest.$ac_ext <<_ACEOF
31538 /* end confdefs.h. */
31541 #ifndef DB_VERSION_MINOR
31542 # define DB_VERSION_MINOR 0
31544 #if DB_VERSION_MINOR == 7
31549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31550 $EGREP "__db_version" >/dev/null 2>&1; then
31558 if test $ol_cv_bdb_minor = 0 ; then
31559 cat >conftest.$ac_ext <<_ACEOF
31562 cat confdefs.h >>conftest.$ac_ext
31563 cat >>conftest.$ac_ext <<_ACEOF
31564 /* end confdefs.h. */
31567 #ifndef DB_VERSION_MINOR
31568 # define DB_VERSION_MINOR 0
31570 #if DB_VERSION_MINOR == 6
31575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31576 $EGREP "__db_version" >/dev/null 2>&1; then
31584 if test $ol_cv_bdb_minor = 0 ; then
31585 cat >conftest.$ac_ext <<_ACEOF
31588 cat confdefs.h >>conftest.$ac_ext
31589 cat >>conftest.$ac_ext <<_ACEOF
31590 /* end confdefs.h. */
31593 #ifndef DB_VERSION_MINOR
31594 # define DB_VERSION_MINOR 0
31596 #if DB_VERSION_MINOR == 5
31601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31602 $EGREP "__db_version" >/dev/null 2>&1; then
31610 if test $ol_cv_bdb_minor = 0 ; then
31611 cat >conftest.$ac_ext <<_ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h. */
31619 #ifndef DB_VERSION_MINOR
31620 # define DB_VERSION_MINOR 0
31622 #if DB_VERSION_MINOR == 4
31627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31628 $EGREP "__db_version" >/dev/null 2>&1; then
31636 if test $ol_cv_bdb_minor = 0 ; then
31637 cat >conftest.$ac_ext <<_ACEOF
31640 cat confdefs.h >>conftest.$ac_ext
31641 cat >>conftest.$ac_ext <<_ACEOF
31642 /* end confdefs.h. */
31645 #ifndef DB_VERSION_MINOR
31646 # define DB_VERSION_MINOR 0
31648 #if DB_VERSION_MINOR == 3
31653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31654 $EGREP "__db_version" >/dev/null 2>&1; then
31662 if test $ol_cv_bdb_minor = 0 ; then
31663 cat >conftest.$ac_ext <<_ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31671 #ifndef DB_VERSION_MINOR
31672 # define DB_VERSION_MINOR 0
31674 #if DB_VERSION_MINOR == 2
31679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31680 $EGREP "__db_version" >/dev/null 2>&1; then
31688 if test $ol_cv_bdb_minor = 0 ; then
31689 cat >conftest.$ac_ext <<_ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31697 #ifndef DB_VERSION_MINOR
31698 # define DB_VERSION_MINOR 0
31700 #if DB_VERSION_MINOR == 1
31705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31706 $EGREP "__db_version" >/dev/null 2>&1; then
31716 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31717 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31719 if test $ol_cv_bdb_major = 4 ; then
31720 if test $ol_cv_bdb_minor = 4 ; then
31721 if test $ol_cv_lib_db = no ; then
31722 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31723 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31724 if test "${ol_cv_db_db44+set}" = set; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31730 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31732 cat >conftest.$ac_ext <<_ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h. */
31739 #ifdef HAVE_DB_185_H
31740 # include <db_185.h>
31745 #ifndef DB_VERSION_MAJOR
31746 # define DB_VERSION_MAJOR 1
31750 #define NULL ((void*)0)
31757 #if DB_VERSION_MAJOR > 1
31760 int major, minor, patch;
31762 version = db_version( &major, &minor, &patch );
31764 if( major != DB_VERSION_MAJOR ||
31765 minor < DB_VERSION_MINOR )
31767 printf("Berkeley DB version mismatch\n"
31768 "\theader: %s\n\tlibrary: %s\n",
31769 DB_VERSION_STRING, version);
31775 #if DB_VERSION_MAJOR > 2
31776 db_env_create( NULL, 0 );
31777 #elif DB_VERSION_MAJOR > 1
31778 db_appexit( NULL );
31780 (void) dbopen( NULL, 0, 0, 0, NULL);
31787 rm -f conftest.$ac_objext conftest$ac_exeext
31788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31789 (eval $ac_link) 2>conftest.er1
31791 grep -v '^ *+' conftest.er1 >conftest.err
31793 cat conftest.err >&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); } &&
31796 { ac_try='test -z "$ac_c_werror_flag"
31797 || test ! -s conftest.err'
31798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799 (eval $ac_try) 2>&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802 (exit $ac_status); }; } &&
31803 { ac_try='test -s conftest$ac_exeext'
31804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805 (eval $ac_try) 2>&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; }; then
31811 echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.$ac_ext >&5
31816 rm -f conftest.err conftest.$ac_objext \
31817 conftest$ac_exeext conftest.$ac_ext
31822 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31823 echo "${ECHO_T}$ol_cv_db_db44" >&6
31825 if test $ol_cv_db_db44 = yes ; then
31826 ol_cv_lib_db=-ldb44
31830 if test $ol_cv_lib_db = no ; then
31831 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31832 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31833 if test "${ol_cv_db_db_44+set}" = set; then
31834 echo $ECHO_N "(cached) $ECHO_C" >&6
31839 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31841 cat >conftest.$ac_ext <<_ACEOF
31844 cat confdefs.h >>conftest.$ac_ext
31845 cat >>conftest.$ac_ext <<_ACEOF
31846 /* end confdefs.h. */
31848 #ifdef HAVE_DB_185_H
31849 # include <db_185.h>
31854 #ifndef DB_VERSION_MAJOR
31855 # define DB_VERSION_MAJOR 1
31859 #define NULL ((void*)0)
31866 #if DB_VERSION_MAJOR > 1
31869 int major, minor, patch;
31871 version = db_version( &major, &minor, &patch );
31873 if( major != DB_VERSION_MAJOR ||
31874 minor < DB_VERSION_MINOR )
31876 printf("Berkeley DB version mismatch\n"
31877 "\theader: %s\n\tlibrary: %s\n",
31878 DB_VERSION_STRING, version);
31884 #if DB_VERSION_MAJOR > 2
31885 db_env_create( NULL, 0 );
31886 #elif DB_VERSION_MAJOR > 1
31887 db_appexit( NULL );
31889 (void) dbopen( NULL, 0, 0, 0, NULL);
31896 rm -f conftest.$ac_objext conftest$ac_exeext
31897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31898 (eval $ac_link) 2>conftest.er1
31900 grep -v '^ *+' conftest.er1 >conftest.err
31902 cat conftest.err >&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } &&
31905 { ac_try='test -z "$ac_c_werror_flag"
31906 || test ! -s conftest.err'
31907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908 (eval $ac_try) 2>&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; } &&
31912 { ac_try='test -s conftest$ac_exeext'
31913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914 (eval $ac_try) 2>&5
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; }; then
31920 echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31925 rm -f conftest.err conftest.$ac_objext \
31926 conftest$ac_exeext conftest.$ac_ext
31931 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31932 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31934 if test $ol_cv_db_db_44 = yes ; then
31935 ol_cv_lib_db=-ldb-44
31939 if test $ol_cv_lib_db = no ; then
31940 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31941 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31942 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31943 echo $ECHO_N "(cached) $ECHO_C" >&6
31948 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31950 cat >conftest.$ac_ext <<_ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h. */
31957 #ifdef HAVE_DB_185_H
31958 # include <db_185.h>
31963 #ifndef DB_VERSION_MAJOR
31964 # define DB_VERSION_MAJOR 1
31968 #define NULL ((void*)0)
31975 #if DB_VERSION_MAJOR > 1
31978 int major, minor, patch;
31980 version = db_version( &major, &minor, &patch );
31982 if( major != DB_VERSION_MAJOR ||
31983 minor < DB_VERSION_MINOR )
31985 printf("Berkeley DB version mismatch\n"
31986 "\theader: %s\n\tlibrary: %s\n",
31987 DB_VERSION_STRING, version);
31993 #if DB_VERSION_MAJOR > 2
31994 db_env_create( NULL, 0 );
31995 #elif DB_VERSION_MAJOR > 1
31996 db_appexit( NULL );
31998 (void) dbopen( NULL, 0, 0, 0, NULL);
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32007 (eval $ac_link) 2>conftest.er1
32009 grep -v '^ *+' conftest.er1 >conftest.err
32011 cat conftest.err >&5
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); } &&
32014 { ac_try='test -z "$ac_c_werror_flag"
32015 || test ! -s conftest.err'
32016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32017 (eval $ac_try) 2>&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32023 (eval $ac_try) 2>&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ol_cv_db_db_4_dot_4=yes
32029 echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32032 ol_cv_db_db_4_dot_4=no
32034 rm -f conftest.err conftest.$ac_objext \
32035 conftest$ac_exeext conftest.$ac_ext
32040 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32041 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32043 if test $ol_cv_db_db_4_dot_4 = yes ; then
32044 ol_cv_lib_db=-ldb-4.4
32048 if test $ol_cv_lib_db = no ; then
32049 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32050 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32051 if test "${ol_cv_db_db_4_4+set}" = set; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32059 cat >conftest.$ac_ext <<_ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h. */
32066 #ifdef HAVE_DB_185_H
32067 # include <db_185.h>
32072 #ifndef DB_VERSION_MAJOR
32073 # define DB_VERSION_MAJOR 1
32077 #define NULL ((void*)0)
32084 #if DB_VERSION_MAJOR > 1
32087 int major, minor, patch;
32089 version = db_version( &major, &minor, &patch );
32091 if( major != DB_VERSION_MAJOR ||
32092 minor < DB_VERSION_MINOR )
32094 printf("Berkeley DB version mismatch\n"
32095 "\theader: %s\n\tlibrary: %s\n",
32096 DB_VERSION_STRING, version);
32102 #if DB_VERSION_MAJOR > 2
32103 db_env_create( NULL, 0 );
32104 #elif DB_VERSION_MAJOR > 1
32105 db_appexit( NULL );
32107 (void) dbopen( NULL, 0, 0, 0, NULL);
32114 rm -f conftest.$ac_objext conftest$ac_exeext
32115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32116 (eval $ac_link) 2>conftest.er1
32118 grep -v '^ *+' conftest.er1 >conftest.err
32120 cat conftest.err >&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
32123 { ac_try='test -z "$ac_c_werror_flag"
32124 || test ! -s conftest.err'
32125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126 (eval $ac_try) 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; } &&
32130 { ac_try='test -s conftest$ac_exeext'
32131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32132 (eval $ac_try) 2>&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); }; }; then
32136 ol_cv_db_db_4_4=yes
32138 echo "$as_me: failed program was:" >&5
32139 sed 's/^/| /' conftest.$ac_ext >&5
32143 rm -f conftest.err conftest.$ac_objext \
32144 conftest$ac_exeext conftest.$ac_ext
32149 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32150 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32152 if test $ol_cv_db_db_4_4 = yes ; then
32153 ol_cv_lib_db=-ldb-4-4
32157 elif test $ol_cv_bdb_minor = 3 ; then
32158 if test $ol_cv_lib_db = no ; then
32159 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32160 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32161 if test "${ol_cv_db_db43+set}" = set; then
32162 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32169 cat >conftest.$ac_ext <<_ACEOF
32172 cat confdefs.h >>conftest.$ac_ext
32173 cat >>conftest.$ac_ext <<_ACEOF
32174 /* end confdefs.h. */
32176 #ifdef HAVE_DB_185_H
32177 # include <db_185.h>
32182 #ifndef DB_VERSION_MAJOR
32183 # define DB_VERSION_MAJOR 1
32187 #define NULL ((void*)0)
32194 #if DB_VERSION_MAJOR > 1
32197 int major, minor, patch;
32199 version = db_version( &major, &minor, &patch );
32201 if( major != DB_VERSION_MAJOR ||
32202 minor < DB_VERSION_MINOR )
32204 printf("Berkeley DB version mismatch\n"
32205 "\theader: %s\n\tlibrary: %s\n",
32206 DB_VERSION_STRING, version);
32212 #if DB_VERSION_MAJOR > 2
32213 db_env_create( NULL, 0 );
32214 #elif DB_VERSION_MAJOR > 1
32215 db_appexit( NULL );
32217 (void) dbopen( NULL, 0, 0, 0, NULL);
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32226 (eval $ac_link) 2>conftest.er1
32228 grep -v '^ *+' conftest.er1 >conftest.err
32230 cat conftest.err >&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } &&
32233 { ac_try='test -z "$ac_c_werror_flag"
32234 || test ! -s conftest.err'
32235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236 (eval $ac_try) 2>&5
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); }; } &&
32240 { ac_try='test -s conftest$ac_exeext'
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; }; then
32248 echo "$as_me: failed program was:" >&5
32249 sed 's/^/| /' conftest.$ac_ext >&5
32253 rm -f conftest.err conftest.$ac_objext \
32254 conftest$ac_exeext conftest.$ac_ext
32259 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32260 echo "${ECHO_T}$ol_cv_db_db43" >&6
32262 if test $ol_cv_db_db43 = yes ; then
32263 ol_cv_lib_db=-ldb43
32267 if test $ol_cv_lib_db = no ; then
32268 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32269 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32270 if test "${ol_cv_db_db_43+set}" = set; then
32271 echo $ECHO_N "(cached) $ECHO_C" >&6
32276 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32278 cat >conftest.$ac_ext <<_ACEOF
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32285 #ifdef HAVE_DB_185_H
32286 # include <db_185.h>
32291 #ifndef DB_VERSION_MAJOR
32292 # define DB_VERSION_MAJOR 1
32296 #define NULL ((void*)0)
32303 #if DB_VERSION_MAJOR > 1
32306 int major, minor, patch;
32308 version = db_version( &major, &minor, &patch );
32310 if( major != DB_VERSION_MAJOR ||
32311 minor < DB_VERSION_MINOR )
32313 printf("Berkeley DB version mismatch\n"
32314 "\theader: %s\n\tlibrary: %s\n",
32315 DB_VERSION_STRING, version);
32321 #if DB_VERSION_MAJOR > 2
32322 db_env_create( NULL, 0 );
32323 #elif DB_VERSION_MAJOR > 1
32324 db_appexit( NULL );
32326 (void) dbopen( NULL, 0, 0, 0, NULL);
32333 rm -f conftest.$ac_objext conftest$ac_exeext
32334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32335 (eval $ac_link) 2>conftest.er1
32337 grep -v '^ *+' conftest.er1 >conftest.err
32339 cat conftest.err >&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); } &&
32342 { ac_try='test -z "$ac_c_werror_flag"
32343 || test ! -s conftest.err'
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; } &&
32349 { ac_try='test -s conftest$ac_exeext'
32350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32351 (eval $ac_try) 2>&5
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
32357 echo "$as_me: failed program was:" >&5
32358 sed 's/^/| /' conftest.$ac_ext >&5
32362 rm -f conftest.err conftest.$ac_objext \
32363 conftest$ac_exeext conftest.$ac_ext
32368 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32369 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32371 if test $ol_cv_db_db_43 = yes ; then
32372 ol_cv_lib_db=-ldb-43
32376 if test $ol_cv_lib_db = no ; then
32377 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32378 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32379 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32380 echo $ECHO_N "(cached) $ECHO_C" >&6
32385 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32387 cat >conftest.$ac_ext <<_ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h. */
32394 #ifdef HAVE_DB_185_H
32395 # include <db_185.h>
32400 #ifndef DB_VERSION_MAJOR
32401 # define DB_VERSION_MAJOR 1
32405 #define NULL ((void*)0)
32412 #if DB_VERSION_MAJOR > 1
32415 int major, minor, patch;
32417 version = db_version( &major, &minor, &patch );
32419 if( major != DB_VERSION_MAJOR ||
32420 minor < DB_VERSION_MINOR )
32422 printf("Berkeley DB version mismatch\n"
32423 "\theader: %s\n\tlibrary: %s\n",
32424 DB_VERSION_STRING, version);
32430 #if DB_VERSION_MAJOR > 2
32431 db_env_create( NULL, 0 );
32432 #elif DB_VERSION_MAJOR > 1
32433 db_appexit( NULL );
32435 (void) dbopen( NULL, 0, 0, 0, NULL);
32442 rm -f conftest.$ac_objext conftest$ac_exeext
32443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32444 (eval $ac_link) 2>conftest.er1
32446 grep -v '^ *+' conftest.er1 >conftest.err
32448 cat conftest.err >&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); } &&
32451 { ac_try='test -z "$ac_c_werror_flag"
32452 || test ! -s conftest.err'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; } &&
32458 { ac_try='test -s conftest$ac_exeext'
32459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32460 (eval $ac_try) 2>&5
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ol_cv_db_db_4_dot_3=yes
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ol_cv_db_db_4_dot_3=no
32471 rm -f conftest.err conftest.$ac_objext \
32472 conftest$ac_exeext conftest.$ac_ext
32477 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32478 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32480 if test $ol_cv_db_db_4_dot_3 = yes ; then
32481 ol_cv_lib_db=-ldb-4.3
32485 if test $ol_cv_lib_db = no ; then
32486 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32487 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32488 if test "${ol_cv_db_db_4_3+set}" = set; then
32489 echo $ECHO_N "(cached) $ECHO_C" >&6
32494 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32496 cat >conftest.$ac_ext <<_ACEOF
32499 cat confdefs.h >>conftest.$ac_ext
32500 cat >>conftest.$ac_ext <<_ACEOF
32501 /* end confdefs.h. */
32503 #ifdef HAVE_DB_185_H
32504 # include <db_185.h>
32509 #ifndef DB_VERSION_MAJOR
32510 # define DB_VERSION_MAJOR 1
32514 #define NULL ((void*)0)
32521 #if DB_VERSION_MAJOR > 1
32524 int major, minor, patch;
32526 version = db_version( &major, &minor, &patch );
32528 if( major != DB_VERSION_MAJOR ||
32529 minor < DB_VERSION_MINOR )
32531 printf("Berkeley DB version mismatch\n"
32532 "\theader: %s\n\tlibrary: %s\n",
32533 DB_VERSION_STRING, version);
32539 #if DB_VERSION_MAJOR > 2
32540 db_env_create( NULL, 0 );
32541 #elif DB_VERSION_MAJOR > 1
32542 db_appexit( NULL );
32544 (void) dbopen( NULL, 0, 0, 0, NULL);
32551 rm -f conftest.$ac_objext conftest$ac_exeext
32552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32553 (eval $ac_link) 2>conftest.er1
32555 grep -v '^ *+' conftest.er1 >conftest.err
32557 cat conftest.err >&5
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); } &&
32560 { ac_try='test -z "$ac_c_werror_flag"
32561 || test ! -s conftest.err'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; } &&
32567 { ac_try='test -s conftest$ac_exeext'
32568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32569 (eval $ac_try) 2>&5
32571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572 (exit $ac_status); }; }; then
32573 ol_cv_db_db_4_3=yes
32575 echo "$as_me: failed program was:" >&5
32576 sed 's/^/| /' conftest.$ac_ext >&5
32580 rm -f conftest.err conftest.$ac_objext \
32581 conftest$ac_exeext conftest.$ac_ext
32586 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32587 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32589 if test $ol_cv_db_db_4_3 = yes ; then
32590 ol_cv_lib_db=-ldb-4-3
32594 elif test $ol_cv_bdb_minor = 2 ; then
32595 if test $ol_cv_lib_db = no ; then
32596 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32597 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32598 if test "${ol_cv_db_db42+set}" = set; then
32599 echo $ECHO_N "(cached) $ECHO_C" >&6
32604 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32606 cat >conftest.$ac_ext <<_ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h. */
32613 #ifdef HAVE_DB_185_H
32614 # include <db_185.h>
32619 #ifndef DB_VERSION_MAJOR
32620 # define DB_VERSION_MAJOR 1
32624 #define NULL ((void*)0)
32631 #if DB_VERSION_MAJOR > 1
32634 int major, minor, patch;
32636 version = db_version( &major, &minor, &patch );
32638 if( major != DB_VERSION_MAJOR ||
32639 minor < DB_VERSION_MINOR )
32641 printf("Berkeley DB version mismatch\n"
32642 "\theader: %s\n\tlibrary: %s\n",
32643 DB_VERSION_STRING, version);
32649 #if DB_VERSION_MAJOR > 2
32650 db_env_create( NULL, 0 );
32651 #elif DB_VERSION_MAJOR > 1
32652 db_appexit( NULL );
32654 (void) dbopen( NULL, 0, 0, 0, NULL);
32661 rm -f conftest.$ac_objext conftest$ac_exeext
32662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32663 (eval $ac_link) 2>conftest.er1
32665 grep -v '^ *+' conftest.er1 >conftest.err
32667 cat conftest.err >&5
32668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32669 (exit $ac_status); } &&
32670 { ac_try='test -z "$ac_c_werror_flag"
32671 || test ! -s conftest.err'
32672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32673 (eval $ac_try) 2>&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest$ac_exeext'
32678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32679 (eval $ac_try) 2>&5
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; }; then
32685 echo "$as_me: failed program was:" >&5
32686 sed 's/^/| /' conftest.$ac_ext >&5
32690 rm -f conftest.err conftest.$ac_objext \
32691 conftest$ac_exeext conftest.$ac_ext
32696 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32697 echo "${ECHO_T}$ol_cv_db_db42" >&6
32699 if test $ol_cv_db_db42 = yes ; then
32700 ol_cv_lib_db=-ldb42
32704 if test $ol_cv_lib_db = no ; then
32705 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32706 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32707 if test "${ol_cv_db_db_42+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32713 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32715 cat >conftest.$ac_ext <<_ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h. */
32722 #ifdef HAVE_DB_185_H
32723 # include <db_185.h>
32728 #ifndef DB_VERSION_MAJOR
32729 # define DB_VERSION_MAJOR 1
32733 #define NULL ((void*)0)
32740 #if DB_VERSION_MAJOR > 1
32743 int major, minor, patch;
32745 version = db_version( &major, &minor, &patch );
32747 if( major != DB_VERSION_MAJOR ||
32748 minor < DB_VERSION_MINOR )
32750 printf("Berkeley DB version mismatch\n"
32751 "\theader: %s\n\tlibrary: %s\n",
32752 DB_VERSION_STRING, version);
32758 #if DB_VERSION_MAJOR > 2
32759 db_env_create( NULL, 0 );
32760 #elif DB_VERSION_MAJOR > 1
32761 db_appexit( NULL );
32763 (void) dbopen( NULL, 0, 0, 0, NULL);
32770 rm -f conftest.$ac_objext conftest$ac_exeext
32771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32772 (eval $ac_link) 2>conftest.er1
32774 grep -v '^ *+' conftest.er1 >conftest.err
32776 cat conftest.err >&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); } &&
32779 { ac_try='test -z "$ac_c_werror_flag"
32780 || test ! -s conftest.err'
32781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32782 (eval $ac_try) 2>&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; } &&
32786 { ac_try='test -s conftest$ac_exeext'
32787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32788 (eval $ac_try) 2>&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; }; then
32794 echo "$as_me: failed program was:" >&5
32795 sed 's/^/| /' conftest.$ac_ext >&5
32799 rm -f conftest.err conftest.$ac_objext \
32800 conftest$ac_exeext conftest.$ac_ext
32805 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32806 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32808 if test $ol_cv_db_db_42 = yes ; then
32809 ol_cv_lib_db=-ldb-42
32813 if test $ol_cv_lib_db = no ; then
32814 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32815 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32816 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32817 echo $ECHO_N "(cached) $ECHO_C" >&6
32822 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32824 cat >conftest.$ac_ext <<_ACEOF
32827 cat confdefs.h >>conftest.$ac_ext
32828 cat >>conftest.$ac_ext <<_ACEOF
32829 /* end confdefs.h. */
32831 #ifdef HAVE_DB_185_H
32832 # include <db_185.h>
32837 #ifndef DB_VERSION_MAJOR
32838 # define DB_VERSION_MAJOR 1
32842 #define NULL ((void*)0)
32849 #if DB_VERSION_MAJOR > 1
32852 int major, minor, patch;
32854 version = db_version( &major, &minor, &patch );
32856 if( major != DB_VERSION_MAJOR ||
32857 minor < DB_VERSION_MINOR )
32859 printf("Berkeley DB version mismatch\n"
32860 "\theader: %s\n\tlibrary: %s\n",
32861 DB_VERSION_STRING, version);
32867 #if DB_VERSION_MAJOR > 2
32868 db_env_create( NULL, 0 );
32869 #elif DB_VERSION_MAJOR > 1
32870 db_appexit( NULL );
32872 (void) dbopen( NULL, 0, 0, 0, NULL);
32879 rm -f conftest.$ac_objext conftest$ac_exeext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32881 (eval $ac_link) 2>conftest.er1
32883 grep -v '^ *+' conftest.er1 >conftest.err
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } &&
32888 { ac_try='test -z "$ac_c_werror_flag"
32889 || test ! -s conftest.err'
32890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891 (eval $ac_try) 2>&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest$ac_exeext'
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; }; then
32901 ol_cv_db_db_4_dot_2=yes
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32906 ol_cv_db_db_4_dot_2=no
32908 rm -f conftest.err conftest.$ac_objext \
32909 conftest$ac_exeext conftest.$ac_ext
32914 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32915 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32917 if test $ol_cv_db_db_4_dot_2 = yes ; then
32918 ol_cv_lib_db=-ldb-4.2
32922 if test $ol_cv_lib_db = no ; then
32923 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32924 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32925 if test "${ol_cv_db_db_4_2+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32931 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32933 cat >conftest.$ac_ext <<_ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h. */
32940 #ifdef HAVE_DB_185_H
32941 # include <db_185.h>
32946 #ifndef DB_VERSION_MAJOR
32947 # define DB_VERSION_MAJOR 1
32951 #define NULL ((void*)0)
32958 #if DB_VERSION_MAJOR > 1
32961 int major, minor, patch;
32963 version = db_version( &major, &minor, &patch );
32965 if( major != DB_VERSION_MAJOR ||
32966 minor < DB_VERSION_MINOR )
32968 printf("Berkeley DB version mismatch\n"
32969 "\theader: %s\n\tlibrary: %s\n",
32970 DB_VERSION_STRING, version);
32976 #if DB_VERSION_MAJOR > 2
32977 db_env_create( NULL, 0 );
32978 #elif DB_VERSION_MAJOR > 1
32979 db_appexit( NULL );
32981 (void) dbopen( NULL, 0, 0, 0, NULL);
32988 rm -f conftest.$ac_objext conftest$ac_exeext
32989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32990 (eval $ac_link) 2>conftest.er1
32992 grep -v '^ *+' conftest.er1 >conftest.err
32994 cat conftest.err >&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); } &&
32997 { ac_try='test -z "$ac_c_werror_flag"
32998 || test ! -s conftest.err'
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; } &&
33004 { ac_try='test -s conftest$ac_exeext'
33005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33006 (eval $ac_try) 2>&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
33010 ol_cv_db_db_4_2=yes
33012 echo "$as_me: failed program was:" >&5
33013 sed 's/^/| /' conftest.$ac_ext >&5
33017 rm -f conftest.err conftest.$ac_objext \
33018 conftest$ac_exeext conftest.$ac_ext
33023 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33024 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33026 if test $ol_cv_db_db_4_2 = yes ; then
33027 ol_cv_lib_db=-ldb-4-2
33031 elif test $ol_cv_bdb_minor = 1 ; then
33032 if test $ol_cv_lib_db = no ; then
33033 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33034 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33035 if test "${ol_cv_db_db41+set}" = set; then
33036 echo $ECHO_N "(cached) $ECHO_C" >&6
33041 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33043 cat >conftest.$ac_ext <<_ACEOF
33046 cat confdefs.h >>conftest.$ac_ext
33047 cat >>conftest.$ac_ext <<_ACEOF
33048 /* end confdefs.h. */
33050 #ifdef HAVE_DB_185_H
33051 # include <db_185.h>
33056 #ifndef DB_VERSION_MAJOR
33057 # define DB_VERSION_MAJOR 1
33061 #define NULL ((void*)0)
33068 #if DB_VERSION_MAJOR > 1
33071 int major, minor, patch;
33073 version = db_version( &major, &minor, &patch );
33075 if( major != DB_VERSION_MAJOR ||
33076 minor < DB_VERSION_MINOR )
33078 printf("Berkeley DB version mismatch\n"
33079 "\theader: %s\n\tlibrary: %s\n",
33080 DB_VERSION_STRING, version);
33086 #if DB_VERSION_MAJOR > 2
33087 db_env_create( NULL, 0 );
33088 #elif DB_VERSION_MAJOR > 1
33089 db_appexit( NULL );
33091 (void) dbopen( NULL, 0, 0, 0, NULL);
33098 rm -f conftest.$ac_objext conftest$ac_exeext
33099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33100 (eval $ac_link) 2>conftest.er1
33102 grep -v '^ *+' conftest.er1 >conftest.err
33104 cat conftest.err >&5
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
33107 { ac_try='test -z "$ac_c_werror_flag"
33108 || test ! -s conftest.err'
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; } &&
33114 { ac_try='test -s conftest$ac_exeext'
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; }; then
33122 echo "$as_me: failed program was:" >&5
33123 sed 's/^/| /' conftest.$ac_ext >&5
33127 rm -f conftest.err conftest.$ac_objext \
33128 conftest$ac_exeext conftest.$ac_ext
33133 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33134 echo "${ECHO_T}$ol_cv_db_db41" >&6
33136 if test $ol_cv_db_db41 = yes ; then
33137 ol_cv_lib_db=-ldb41
33141 if test $ol_cv_lib_db = no ; then
33142 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33143 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33144 if test "${ol_cv_db_db_41+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33150 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33152 cat >conftest.$ac_ext <<_ACEOF
33155 cat confdefs.h >>conftest.$ac_ext
33156 cat >>conftest.$ac_ext <<_ACEOF
33157 /* end confdefs.h. */
33159 #ifdef HAVE_DB_185_H
33160 # include <db_185.h>
33165 #ifndef DB_VERSION_MAJOR
33166 # define DB_VERSION_MAJOR 1
33170 #define NULL ((void*)0)
33177 #if DB_VERSION_MAJOR > 1
33180 int major, minor, patch;
33182 version = db_version( &major, &minor, &patch );
33184 if( major != DB_VERSION_MAJOR ||
33185 minor < DB_VERSION_MINOR )
33187 printf("Berkeley DB version mismatch\n"
33188 "\theader: %s\n\tlibrary: %s\n",
33189 DB_VERSION_STRING, version);
33195 #if DB_VERSION_MAJOR > 2
33196 db_env_create( NULL, 0 );
33197 #elif DB_VERSION_MAJOR > 1
33198 db_appexit( NULL );
33200 (void) dbopen( NULL, 0, 0, 0, NULL);
33207 rm -f conftest.$ac_objext conftest$ac_exeext
33208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33209 (eval $ac_link) 2>conftest.er1
33211 grep -v '^ *+' conftest.er1 >conftest.err
33213 cat conftest.err >&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); } &&
33216 { ac_try='test -z "$ac_c_werror_flag"
33217 || test ! -s conftest.err'
33218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219 (eval $ac_try) 2>&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); }; } &&
33223 { ac_try='test -s conftest$ac_exeext'
33224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33225 (eval $ac_try) 2>&5
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
33231 echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33236 rm -f conftest.err conftest.$ac_objext \
33237 conftest$ac_exeext conftest.$ac_ext
33242 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33243 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33245 if test $ol_cv_db_db_41 = yes ; then
33246 ol_cv_lib_db=-ldb-41
33250 if test $ol_cv_lib_db = no ; then
33251 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33252 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33253 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33254 echo $ECHO_N "(cached) $ECHO_C" >&6
33259 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33261 cat >conftest.$ac_ext <<_ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h. */
33268 #ifdef HAVE_DB_185_H
33269 # include <db_185.h>
33274 #ifndef DB_VERSION_MAJOR
33275 # define DB_VERSION_MAJOR 1
33279 #define NULL ((void*)0)
33286 #if DB_VERSION_MAJOR > 1
33289 int major, minor, patch;
33291 version = db_version( &major, &minor, &patch );
33293 if( major != DB_VERSION_MAJOR ||
33294 minor < DB_VERSION_MINOR )
33296 printf("Berkeley DB version mismatch\n"
33297 "\theader: %s\n\tlibrary: %s\n",
33298 DB_VERSION_STRING, version);
33304 #if DB_VERSION_MAJOR > 2
33305 db_env_create( NULL, 0 );
33306 #elif DB_VERSION_MAJOR > 1
33307 db_appexit( NULL );
33309 (void) dbopen( NULL, 0, 0, 0, NULL);
33316 rm -f conftest.$ac_objext conftest$ac_exeext
33317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33318 (eval $ac_link) 2>conftest.er1
33320 grep -v '^ *+' conftest.er1 >conftest.err
33322 cat conftest.err >&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); } &&
33325 { ac_try='test -z "$ac_c_werror_flag"
33326 || test ! -s conftest.err'
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; } &&
33332 { ac_try='test -s conftest$ac_exeext'
33333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33334 (eval $ac_try) 2>&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); }; }; then
33338 ol_cv_db_db_4_dot_1=yes
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33343 ol_cv_db_db_4_dot_1=no
33345 rm -f conftest.err conftest.$ac_objext \
33346 conftest$ac_exeext conftest.$ac_ext
33351 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33352 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33354 if test $ol_cv_db_db_4_dot_1 = yes ; then
33355 ol_cv_lib_db=-ldb-4.1
33359 if test $ol_cv_lib_db = no ; then
33360 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33361 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33362 if test "${ol_cv_db_db_4_1+set}" = set; then
33363 echo $ECHO_N "(cached) $ECHO_C" >&6
33368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33370 cat >conftest.$ac_ext <<_ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33377 #ifdef HAVE_DB_185_H
33378 # include <db_185.h>
33383 #ifndef DB_VERSION_MAJOR
33384 # define DB_VERSION_MAJOR 1
33388 #define NULL ((void*)0)
33395 #if DB_VERSION_MAJOR > 1
33398 int major, minor, patch;
33400 version = db_version( &major, &minor, &patch );
33402 if( major != DB_VERSION_MAJOR ||
33403 minor < DB_VERSION_MINOR )
33405 printf("Berkeley DB version mismatch\n"
33406 "\theader: %s\n\tlibrary: %s\n",
33407 DB_VERSION_STRING, version);
33413 #if DB_VERSION_MAJOR > 2
33414 db_env_create( NULL, 0 );
33415 #elif DB_VERSION_MAJOR > 1
33416 db_appexit( NULL );
33418 (void) dbopen( NULL, 0, 0, 0, NULL);
33425 rm -f conftest.$ac_objext conftest$ac_exeext
33426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33427 (eval $ac_link) 2>conftest.er1
33429 grep -v '^ *+' conftest.er1 >conftest.err
33431 cat conftest.err >&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
33434 { ac_try='test -z "$ac_c_werror_flag"
33435 || test ! -s conftest.err'
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest$ac_exeext'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 ol_cv_db_db_4_1=yes
33449 echo "$as_me: failed program was:" >&5
33450 sed 's/^/| /' conftest.$ac_ext >&5
33454 rm -f conftest.err conftest.$ac_objext \
33455 conftest$ac_exeext conftest.$ac_ext
33460 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33461 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33463 if test $ol_cv_db_db_4_1 = yes ; then
33464 ol_cv_lib_db=-ldb-4-1
33469 if test $ol_cv_lib_db = no ; then
33470 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33471 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33472 if test "${ol_cv_db_db_4+set}" = set; then
33473 echo $ECHO_N "(cached) $ECHO_C" >&6
33478 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33480 cat >conftest.$ac_ext <<_ACEOF
33483 cat confdefs.h >>conftest.$ac_ext
33484 cat >>conftest.$ac_ext <<_ACEOF
33485 /* end confdefs.h. */
33487 #ifdef HAVE_DB_185_H
33488 # include <db_185.h>
33493 #ifndef DB_VERSION_MAJOR
33494 # define DB_VERSION_MAJOR 1
33498 #define NULL ((void*)0)
33505 #if DB_VERSION_MAJOR > 1
33508 int major, minor, patch;
33510 version = db_version( &major, &minor, &patch );
33512 if( major != DB_VERSION_MAJOR ||
33513 minor < DB_VERSION_MINOR )
33515 printf("Berkeley DB version mismatch\n"
33516 "\theader: %s\n\tlibrary: %s\n",
33517 DB_VERSION_STRING, version);
33523 #if DB_VERSION_MAJOR > 2
33524 db_env_create( NULL, 0 );
33525 #elif DB_VERSION_MAJOR > 1
33526 db_appexit( NULL );
33528 (void) dbopen( NULL, 0, 0, 0, NULL);
33535 rm -f conftest.$ac_objext conftest$ac_exeext
33536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33537 (eval $ac_link) 2>conftest.er1
33539 grep -v '^ *+' conftest.er1 >conftest.err
33541 cat conftest.err >&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); } &&
33544 { ac_try='test -z "$ac_c_werror_flag"
33545 || test ! -s conftest.err'
33546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33547 (eval $ac_try) 2>&5
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); }; } &&
33551 { ac_try='test -s conftest$ac_exeext'
33552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553 (eval $ac_try) 2>&5
33555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556 (exit $ac_status); }; }; then
33559 echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33564 rm -f conftest.err conftest.$ac_objext \
33565 conftest$ac_exeext conftest.$ac_ext
33570 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33571 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33573 if test $ol_cv_db_db_4 = yes ; then
33574 ol_cv_lib_db=-ldb-4
33578 if test $ol_cv_lib_db = no ; then
33579 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33580 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33581 if test "${ol_cv_db_db4+set}" = set; then
33582 echo $ECHO_N "(cached) $ECHO_C" >&6
33587 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33589 cat >conftest.$ac_ext <<_ACEOF
33592 cat confdefs.h >>conftest.$ac_ext
33593 cat >>conftest.$ac_ext <<_ACEOF
33594 /* end confdefs.h. */
33596 #ifdef HAVE_DB_185_H
33597 # include <db_185.h>
33602 #ifndef DB_VERSION_MAJOR
33603 # define DB_VERSION_MAJOR 1
33607 #define NULL ((void*)0)
33614 #if DB_VERSION_MAJOR > 1
33617 int major, minor, patch;
33619 version = db_version( &major, &minor, &patch );
33621 if( major != DB_VERSION_MAJOR ||
33622 minor < DB_VERSION_MINOR )
33624 printf("Berkeley DB version mismatch\n"
33625 "\theader: %s\n\tlibrary: %s\n",
33626 DB_VERSION_STRING, version);
33632 #if DB_VERSION_MAJOR > 2
33633 db_env_create( NULL, 0 );
33634 #elif DB_VERSION_MAJOR > 1
33635 db_appexit( NULL );
33637 (void) dbopen( NULL, 0, 0, 0, NULL);
33644 rm -f conftest.$ac_objext conftest$ac_exeext
33645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33646 (eval $ac_link) 2>conftest.er1
33648 grep -v '^ *+' conftest.er1 >conftest.err
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_c_werror_flag"
33654 || test ! -s conftest.err'
33655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656 (eval $ac_try) 2>&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; } &&
33660 { ac_try='test -s conftest$ac_exeext'
33661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33662 (eval $ac_try) 2>&5
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); }; }; then
33668 echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33673 rm -f conftest.err conftest.$ac_objext \
33674 conftest$ac_exeext conftest.$ac_ext
33679 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33680 echo "${ECHO_T}$ol_cv_db_db4" >&6
33682 if test $ol_cv_db_db4 = yes ; then
33687 if test $ol_cv_lib_db = no ; then
33688 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33689 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33690 if test "${ol_cv_db_db+set}" = set; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33698 cat >conftest.$ac_ext <<_ACEOF
33701 cat confdefs.h >>conftest.$ac_ext
33702 cat >>conftest.$ac_ext <<_ACEOF
33703 /* end confdefs.h. */
33705 #ifdef HAVE_DB_185_H
33706 # include <db_185.h>
33711 #ifndef DB_VERSION_MAJOR
33712 # define DB_VERSION_MAJOR 1
33716 #define NULL ((void*)0)
33723 #if DB_VERSION_MAJOR > 1
33726 int major, minor, patch;
33728 version = db_version( &major, &minor, &patch );
33730 if( major != DB_VERSION_MAJOR ||
33731 minor < DB_VERSION_MINOR )
33733 printf("Berkeley DB version mismatch\n"
33734 "\theader: %s\n\tlibrary: %s\n",
33735 DB_VERSION_STRING, version);
33741 #if DB_VERSION_MAJOR > 2
33742 db_env_create( NULL, 0 );
33743 #elif DB_VERSION_MAJOR > 1
33744 db_appexit( NULL );
33746 (void) dbopen( NULL, 0, 0, 0, NULL);
33753 rm -f conftest.$ac_objext conftest$ac_exeext
33754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33755 (eval $ac_link) 2>conftest.er1
33757 grep -v '^ *+' conftest.er1 >conftest.err
33759 cat conftest.err >&5
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } &&
33762 { ac_try='test -z "$ac_c_werror_flag"
33763 || test ! -s conftest.err'
33764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33765 (eval $ac_try) 2>&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; } &&
33769 { ac_try='test -s conftest$ac_exeext'
33770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771 (eval $ac_try) 2>&5
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; }; then
33777 echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33782 rm -f conftest.err conftest.$ac_objext \
33783 conftest$ac_exeext conftest.$ac_ext
33788 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33789 echo "${ECHO_T}$ol_cv_db_db" >&6
33791 if test $ol_cv_db_db = yes ; then
33797 elif test $ol_cv_bdb_major = 3 ; then
33798 if test $ol_cv_lib_db = no ; then
33799 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33800 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33801 if test "${ol_cv_db_db3+set}" = set; then
33802 echo $ECHO_N "(cached) $ECHO_C" >&6
33807 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33809 cat >conftest.$ac_ext <<_ACEOF
33812 cat confdefs.h >>conftest.$ac_ext
33813 cat >>conftest.$ac_ext <<_ACEOF
33814 /* end confdefs.h. */
33816 #ifdef HAVE_DB_185_H
33817 # include <db_185.h>
33822 #ifndef DB_VERSION_MAJOR
33823 # define DB_VERSION_MAJOR 1
33827 #define NULL ((void*)0)
33834 #if DB_VERSION_MAJOR > 1
33837 int major, minor, patch;
33839 version = db_version( &major, &minor, &patch );
33841 if( major != DB_VERSION_MAJOR ||
33842 minor < DB_VERSION_MINOR )
33844 printf("Berkeley DB version mismatch\n"
33845 "\theader: %s\n\tlibrary: %s\n",
33846 DB_VERSION_STRING, version);
33852 #if DB_VERSION_MAJOR > 2
33853 db_env_create( NULL, 0 );
33854 #elif DB_VERSION_MAJOR > 1
33855 db_appexit( NULL );
33857 (void) dbopen( NULL, 0, 0, 0, NULL);
33864 rm -f conftest.$ac_objext conftest$ac_exeext
33865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33866 (eval $ac_link) 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest$ac_exeext'
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; }; then
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33893 rm -f conftest.err conftest.$ac_objext \
33894 conftest$ac_exeext conftest.$ac_ext
33899 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33900 echo "${ECHO_T}$ol_cv_db_db3" >&6
33902 if test $ol_cv_db_db3 = yes ; then
33907 if test $ol_cv_lib_db = no ; then
33908 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33909 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33910 if test "${ol_cv_db_db_3+set}" = set; then
33911 echo $ECHO_N "(cached) $ECHO_C" >&6
33916 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33918 cat >conftest.$ac_ext <<_ACEOF
33921 cat confdefs.h >>conftest.$ac_ext
33922 cat >>conftest.$ac_ext <<_ACEOF
33923 /* end confdefs.h. */
33925 #ifdef HAVE_DB_185_H
33926 # include <db_185.h>
33931 #ifndef DB_VERSION_MAJOR
33932 # define DB_VERSION_MAJOR 1
33936 #define NULL ((void*)0)
33943 #if DB_VERSION_MAJOR > 1
33946 int major, minor, patch;
33948 version = db_version( &major, &minor, &patch );
33950 if( major != DB_VERSION_MAJOR ||
33951 minor < DB_VERSION_MINOR )
33953 printf("Berkeley DB version mismatch\n"
33954 "\theader: %s\n\tlibrary: %s\n",
33955 DB_VERSION_STRING, version);
33961 #if DB_VERSION_MAJOR > 2
33962 db_env_create( NULL, 0 );
33963 #elif DB_VERSION_MAJOR > 1
33964 db_appexit( NULL );
33966 (void) dbopen( NULL, 0, 0, 0, NULL);
33973 rm -f conftest.$ac_objext conftest$ac_exeext
33974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33975 (eval $ac_link) 2>conftest.er1
33977 grep -v '^ *+' conftest.er1 >conftest.err
33979 cat conftest.err >&5
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); } &&
33982 { ac_try='test -z "$ac_c_werror_flag"
33983 || test ! -s conftest.err'
33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985 (eval $ac_try) 2>&5
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; } &&
33989 { ac_try='test -s conftest$ac_exeext'
33990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33991 (eval $ac_try) 2>&5
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); }; }; then
33997 echo "$as_me: failed program was:" >&5
33998 sed 's/^/| /' conftest.$ac_ext >&5
34002 rm -f conftest.err conftest.$ac_objext \
34003 conftest$ac_exeext conftest.$ac_ext
34008 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34009 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34011 if test $ol_cv_db_db_3 = yes ; then
34012 ol_cv_lib_db=-ldb-3
34017 elif test $ol_cv_bdb_major = 2 ; then
34018 if test $ol_cv_lib_db = no ; then
34019 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34020 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34021 if test "${ol_cv_db_db2+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34027 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34029 cat >conftest.$ac_ext <<_ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h. */
34036 #ifdef HAVE_DB_185_H
34037 # include <db_185.h>
34042 #ifndef DB_VERSION_MAJOR
34043 # define DB_VERSION_MAJOR 1
34047 #define NULL ((void*)0)
34054 #if DB_VERSION_MAJOR > 1
34057 int major, minor, patch;
34059 version = db_version( &major, &minor, &patch );
34061 if( major != DB_VERSION_MAJOR ||
34062 minor < DB_VERSION_MINOR )
34064 printf("Berkeley DB version mismatch\n"
34065 "\theader: %s\n\tlibrary: %s\n",
34066 DB_VERSION_STRING, version);
34072 #if DB_VERSION_MAJOR > 2
34073 db_env_create( NULL, 0 );
34074 #elif DB_VERSION_MAJOR > 1
34075 db_appexit( NULL );
34077 (void) dbopen( NULL, 0, 0, 0, NULL);
34084 rm -f conftest.$ac_objext conftest$ac_exeext
34085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34086 (eval $ac_link) 2>conftest.er1
34088 grep -v '^ *+' conftest.er1 >conftest.err
34090 cat conftest.err >&5
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); } &&
34093 { ac_try='test -z "$ac_c_werror_flag"
34094 || test ! -s conftest.err'
34095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34096 (eval $ac_try) 2>&5
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest$ac_exeext'
34101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34102 (eval $ac_try) 2>&5
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34108 echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34113 rm -f conftest.err conftest.$ac_objext \
34114 conftest$ac_exeext conftest.$ac_ext
34119 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34120 echo "${ECHO_T}$ol_cv_db_db2" >&6
34122 if test $ol_cv_db_db2 = yes ; then
34127 if test $ol_cv_lib_db = no ; then
34128 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34129 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34130 if test "${ol_cv_db_db_2+set}" = set; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34136 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34138 cat >conftest.$ac_ext <<_ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h. */
34145 #ifdef HAVE_DB_185_H
34146 # include <db_185.h>
34151 #ifndef DB_VERSION_MAJOR
34152 # define DB_VERSION_MAJOR 1
34156 #define NULL ((void*)0)
34163 #if DB_VERSION_MAJOR > 1
34166 int major, minor, patch;
34168 version = db_version( &major, &minor, &patch );
34170 if( major != DB_VERSION_MAJOR ||
34171 minor < DB_VERSION_MINOR )
34173 printf("Berkeley DB version mismatch\n"
34174 "\theader: %s\n\tlibrary: %s\n",
34175 DB_VERSION_STRING, version);
34181 #if DB_VERSION_MAJOR > 2
34182 db_env_create( NULL, 0 );
34183 #elif DB_VERSION_MAJOR > 1
34184 db_appexit( NULL );
34186 (void) dbopen( NULL, 0, 0, 0, NULL);
34193 rm -f conftest.$ac_objext conftest$ac_exeext
34194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34195 (eval $ac_link) 2>conftest.er1
34197 grep -v '^ *+' conftest.er1 >conftest.err
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } &&
34202 { ac_try='test -z "$ac_c_werror_flag"
34203 || test ! -s conftest.err'
34204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205 (eval $ac_try) 2>&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); }; } &&
34209 { ac_try='test -s conftest$ac_exeext'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; }; then
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34222 rm -f conftest.err conftest.$ac_objext \
34223 conftest$ac_exeext conftest.$ac_ext
34228 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34229 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34231 if test $ol_cv_db_db_2 = yes ; then
34232 ol_cv_lib_db=-ldb-2
34237 elif test $ol_cv_bdb_major = 1 ; then
34238 if test $ol_cv_lib_db = no ; then
34239 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34240 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34241 if test "${ol_cv_db_db1+set}" = set; then
34242 echo $ECHO_N "(cached) $ECHO_C" >&6
34247 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34249 cat >conftest.$ac_ext <<_ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h. */
34256 #ifdef HAVE_DB_185_H
34257 # include <db_185.h>
34262 #ifndef DB_VERSION_MAJOR
34263 # define DB_VERSION_MAJOR 1
34267 #define NULL ((void*)0)
34274 #if DB_VERSION_MAJOR > 1
34277 int major, minor, patch;
34279 version = db_version( &major, &minor, &patch );
34281 if( major != DB_VERSION_MAJOR ||
34282 minor < DB_VERSION_MINOR )
34284 printf("Berkeley DB version mismatch\n"
34285 "\theader: %s\n\tlibrary: %s\n",
34286 DB_VERSION_STRING, version);
34292 #if DB_VERSION_MAJOR > 2
34293 db_env_create( NULL, 0 );
34294 #elif DB_VERSION_MAJOR > 1
34295 db_appexit( NULL );
34297 (void) dbopen( NULL, 0, 0, 0, NULL);
34304 rm -f conftest.$ac_objext conftest$ac_exeext
34305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34306 (eval $ac_link) 2>conftest.er1
34308 grep -v '^ *+' conftest.er1 >conftest.err
34310 cat conftest.err >&5
34311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312 (exit $ac_status); } &&
34313 { ac_try='test -z "$ac_c_werror_flag"
34314 || test ! -s conftest.err'
34315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316 (eval $ac_try) 2>&5
34318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319 (exit $ac_status); }; } &&
34320 { ac_try='test -s conftest$ac_exeext'
34321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322 (eval $ac_try) 2>&5
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); }; }; then
34328 echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34333 rm -f conftest.err conftest.$ac_objext \
34334 conftest$ac_exeext conftest.$ac_ext
34339 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34340 echo "${ECHO_T}$ol_cv_db_db1" >&6
34342 if test $ol_cv_db_db1 = yes ; then
34347 if test $ol_cv_lib_db = no ; then
34348 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34349 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34350 if test "${ol_cv_db_db_1+set}" = set; then
34351 echo $ECHO_N "(cached) $ECHO_C" >&6
34356 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34358 cat >conftest.$ac_ext <<_ACEOF
34361 cat confdefs.h >>conftest.$ac_ext
34362 cat >>conftest.$ac_ext <<_ACEOF
34363 /* end confdefs.h. */
34365 #ifdef HAVE_DB_185_H
34366 # include <db_185.h>
34371 #ifndef DB_VERSION_MAJOR
34372 # define DB_VERSION_MAJOR 1
34376 #define NULL ((void*)0)
34383 #if DB_VERSION_MAJOR > 1
34386 int major, minor, patch;
34388 version = db_version( &major, &minor, &patch );
34390 if( major != DB_VERSION_MAJOR ||
34391 minor < DB_VERSION_MINOR )
34393 printf("Berkeley DB version mismatch\n"
34394 "\theader: %s\n\tlibrary: %s\n",
34395 DB_VERSION_STRING, version);
34401 #if DB_VERSION_MAJOR > 2
34402 db_env_create( NULL, 0 );
34403 #elif DB_VERSION_MAJOR > 1
34404 db_appexit( NULL );
34406 (void) dbopen( NULL, 0, 0, 0, NULL);
34413 rm -f conftest.$ac_objext conftest$ac_exeext
34414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34415 (eval $ac_link) 2>conftest.er1
34417 grep -v '^ *+' conftest.er1 >conftest.err
34419 cat conftest.err >&5
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); } &&
34422 { ac_try='test -z "$ac_c_werror_flag"
34423 || test ! -s conftest.err'
34424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425 (eval $ac_try) 2>&5
34427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); }; } &&
34429 { ac_try='test -s conftest$ac_exeext'
34430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34431 (eval $ac_try) 2>&5
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); }; }; then
34437 echo "$as_me: failed program was:" >&5
34438 sed 's/^/| /' conftest.$ac_ext >&5
34442 rm -f conftest.err conftest.$ac_objext \
34443 conftest$ac_exeext conftest.$ac_ext
34448 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34449 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34451 if test $ol_cv_db_db_1 = yes ; then
34452 ol_cv_lib_db=-ldb-1
34457 if test $ol_cv_lib_db = no ; then
34458 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34459 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34460 if test "${ol_cv_db_none+set}" = set; then
34461 echo $ECHO_N "(cached) $ECHO_C" >&6
34466 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34468 cat >conftest.$ac_ext <<_ACEOF
34471 cat confdefs.h >>conftest.$ac_ext
34472 cat >>conftest.$ac_ext <<_ACEOF
34473 /* end confdefs.h. */
34475 #ifdef HAVE_DB_185_H
34476 # include <db_185.h>
34481 #ifndef DB_VERSION_MAJOR
34482 # define DB_VERSION_MAJOR 1
34486 #define NULL ((void*)0)
34493 #if DB_VERSION_MAJOR > 1
34496 int major, minor, patch;
34498 version = db_version( &major, &minor, &patch );
34500 if( major != DB_VERSION_MAJOR ||
34501 minor < DB_VERSION_MINOR )
34503 printf("Berkeley DB version mismatch\n"
34504 "\theader: %s\n\tlibrary: %s\n",
34505 DB_VERSION_STRING, version);
34511 #if DB_VERSION_MAJOR > 2
34512 db_env_create( NULL, 0 );
34513 #elif DB_VERSION_MAJOR > 1
34514 db_appexit( NULL );
34516 (void) dbopen( NULL, 0, 0, 0, NULL);
34523 rm -f conftest.$ac_objext conftest$ac_exeext
34524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34525 (eval $ac_link) 2>conftest.er1
34527 grep -v '^ *+' conftest.er1 >conftest.err
34529 cat conftest.err >&5
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); } &&
34532 { ac_try='test -z "$ac_c_werror_flag"
34533 || test ! -s conftest.err'
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; } &&
34539 { ac_try='test -s conftest$ac_exeext'
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
34547 echo "$as_me: failed program was:" >&5
34548 sed 's/^/| /' conftest.$ac_ext >&5
34552 rm -f conftest.err conftest.$ac_objext \
34553 conftest$ac_exeext conftest.$ac_ext
34558 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34559 echo "${ECHO_T}$ol_cv_db_none" >&6
34561 if test $ol_cv_db_none = yes ; then
34567 if test "$ol_cv_lib_db" != no ; then
34568 ol_cv_berkeley_db=yes
34569 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34570 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34571 if test "${ol_cv_berkeley_db_version+set}" = set; then
34572 echo $ECHO_N "(cached) $ECHO_C" >&6
34576 LIBS="$LTHREAD_LIBS $LIBS"
34577 if test $ol_cv_lib_db != yes ; then
34578 LIBS="$ol_cv_lib_db $LIBS"
34581 if test "$cross_compiling" = yes; then
34582 ol_cv_berkeley_db_version=cross
34584 cat >conftest.$ac_ext <<_ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h. */
34591 #ifdef HAVE_DB_185_H
34596 #ifndef DB_VERSION_MAJOR
34597 # define DB_VERSION_MAJOR 1
34600 #define NULL ((void *)0)
34604 #if DB_VERSION_MAJOR > 1
34606 int major, minor, patch;
34608 version = db_version( &major, &minor, &patch );
34610 if( major != DB_VERSION_MAJOR ||
34611 minor != DB_VERSION_MINOR ||
34612 patch != DB_VERSION_PATCH )
34614 printf("Berkeley DB version mismatch\n"
34615 "\theader: %s\n\tlibrary: %s\n",
34616 DB_VERSION_STRING, version);
34624 rm -f conftest$ac_exeext
34625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34626 (eval $ac_link) 2>&5
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34631 (eval $ac_try) 2>&5
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); }; }; then
34635 ol_cv_berkeley_db_version=yes
34637 echo "$as_me: program exited with status $ac_status" >&5
34638 echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34641 ( exit $ac_status )
34642 ol_cv_berkeley_db_version=no
34644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34650 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34651 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34653 if test $ol_cv_berkeley_db_version = no ; then
34654 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34655 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34656 { (exit 1); exit 1; }; }
34659 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34660 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34661 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34662 echo $ECHO_N "(cached) $ECHO_C" >&6
34666 LIBS="$LTHREAD_LIBS $LIBS"
34667 if test $ol_cv_lib_db != yes ; then
34668 LIBS="$ol_cv_lib_db $LIBS"
34671 if test "$cross_compiling" = yes; then
34672 ol_cv_berkeley_db_thread=cross
34674 cat >conftest.$ac_ext <<_ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h. */
34681 #ifdef HAVE_DB_185_H
34687 #define NULL ((void *)0)
34692 u_int32_t flags = DB_CREATE |
34698 #if DB_VERSION_MAJOR > 2
34699 DB_ENV *env = NULL;
34701 rc = db_env_create( &env, 0 );
34703 flags |= DB_INIT_MPOOL;
34704 #ifdef DB_MPOOL_PRIVATE
34705 flags |= DB_MPOOL_PRIVATE;
34709 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34713 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34714 rc = env->open( env, NULL, flags, 0 );
34716 rc = env->open( env, NULL, NULL, flags, 0 );
34720 rc = env->close( env, 0 );
34724 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34730 memset( &env, '\0', sizeof(env) );
34732 rc = db_appinit( NULL, NULL, &env, flags );
34735 db_appexit( &env );
34738 unlink("__db_mpool.share");
34739 unlink("__db_lock.share");
34745 rm -f conftest$ac_exeext
34746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34747 (eval $ac_link) 2>&5
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752 (eval $ac_try) 2>&5
34754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755 (exit $ac_status); }; }; then
34756 ol_cv_berkeley_db_thread=yes
34758 echo "$as_me: program exited with status $ac_status" >&5
34759 echo "$as_me: failed program was:" >&5
34760 sed 's/^/| /' conftest.$ac_ext >&5
34762 ( exit $ac_status )
34763 ol_cv_berkeley_db_thread=no
34765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34771 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34772 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34774 if test $ol_cv_berkeley_db_thread != no ; then
34776 cat >>confdefs.h <<\_ACEOF
34777 #define HAVE_BERKELEY_DB_THREAD 1
34787 if test $ol_cv_berkeley_db != no ; then
34789 cat >>confdefs.h <<\_ACEOF
34790 #define HAVE_BERKELEY_DB 1
34794 ol_link_ldbm=berkeley
34795 ol_enable_ldbm_api=berkeley
34797 if test $ol_enable_ldbm_type = hash ; then
34799 cat >>confdefs.h <<\_ACEOF
34800 #define LDBM_USE_DBHASH 1
34805 cat >>confdefs.h <<\_ACEOF
34806 #define LDBM_USE_DBBTREE 1
34811 if test $ol_cv_lib_db != yes ; then
34812 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34818 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34819 if test $ol_link_ldbm != berkeley ; then
34820 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34821 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34822 { (exit 1); exit 1; }; }
34824 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34825 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34826 if test "${ol_cv_bdb_compat+set}" = set; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34830 cat >conftest.$ac_ext <<_ACEOF
34833 cat confdefs.h >>conftest.$ac_ext
34834 cat >>conftest.$ac_ext <<_ACEOF
34835 /* end confdefs.h. */
34839 /* this check could be improved */
34840 #ifndef DB_VERSION_MAJOR
34841 # define DB_VERSION_MAJOR 1
34843 #ifndef DB_VERSION_MINOR
34844 # define DB_VERSION_MINOR 0
34847 /* require 4.2 or later */
34848 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34849 __db_version_compat
34853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34854 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34855 ol_cv_bdb_compat=yes
34857 ol_cv_bdb_compat=no
34862 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34863 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34866 if test $ol_cv_bdb_compat != yes ; then
34867 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34868 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34869 { (exit 1); exit 1; }; }
34874 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34875 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34876 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34877 ol_enable_ldbm_api=none
34880 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34881 echo "$as_me:$LINENO: checking for MDBM library" >&5
34882 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34883 if test "${ol_cv_lib_mdbm+set}" = set; then
34884 echo $ECHO_N "(cached) $ECHO_C" >&6
34887 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34888 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34889 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34890 echo $ECHO_N "(cached) $ECHO_C" >&6
34892 cat >conftest.$ac_ext <<_ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h. */
34898 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34900 #define mdbm_set_chain innocuous_mdbm_set_chain
34902 /* System header to define __stub macros and hopefully few prototypes,
34903 which can conflict with char mdbm_set_chain (); below.
34904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34905 <limits.h> exists even on freestanding compilers. */
34908 # include <limits.h>
34910 # include <assert.h>
34913 #undef mdbm_set_chain
34915 /* Override any gcc2 internal prototype to avoid an error. */
34920 /* We use char because int might match the return type of a gcc2
34921 builtin and then its argument prototype would still apply. */
34922 char mdbm_set_chain ();
34923 /* The GNU C library defines this for functions which it implements
34924 to always fail with ENOSYS. Some functions are actually named
34925 something starting with __ and the normal name is an alias. */
34926 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34929 char (*f) () = mdbm_set_chain;
34938 return f != mdbm_set_chain;
34943 rm -f conftest.$ac_objext conftest$ac_exeext
34944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34945 (eval $ac_link) 2>conftest.er1
34947 grep -v '^ *+' conftest.er1 >conftest.err
34949 cat conftest.err >&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); } &&
34952 { ac_try='test -z "$ac_c_werror_flag"
34953 || test ! -s conftest.err'
34954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955 (eval $ac_try) 2>&5
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest$ac_exeext'
34960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961 (eval $ac_try) 2>&5
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); }; }; then
34965 ac_cv_func_mdbm_set_chain=yes
34967 echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34970 ac_cv_func_mdbm_set_chain=no
34972 rm -f conftest.err conftest.$ac_objext \
34973 conftest$ac_exeext conftest.$ac_ext
34975 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34976 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34977 if test $ac_cv_func_mdbm_set_chain = yes; then
34981 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34982 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34983 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34984 echo $ECHO_N "(cached) $ECHO_C" >&6
34986 ac_check_lib_save_LIBS=$LIBS
34987 LIBS="-lmdbm $LIBS"
34988 cat >conftest.$ac_ext <<_ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h. */
34995 /* Override any gcc2 internal prototype to avoid an error. */
34999 /* We use char because int might match the return type of a gcc2
35000 builtin and then its argument prototype would still apply. */
35001 char mdbm_set_chain ();
35010 rm -f conftest.$ac_objext conftest$ac_exeext
35011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35012 (eval $ac_link) 2>conftest.er1
35014 grep -v '^ *+' conftest.er1 >conftest.err
35016 cat conftest.err >&5
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); } &&
35019 { ac_try='test -z "$ac_c_werror_flag"
35020 || test ! -s conftest.err'
35021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35022 (eval $ac_try) 2>&5
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); }; } &&
35026 { ac_try='test -s conftest$ac_exeext'
35027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35028 (eval $ac_try) 2>&5
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; }; then
35032 ac_cv_lib_mdbm_mdbm_set_chain=yes
35034 echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35037 ac_cv_lib_mdbm_mdbm_set_chain=no
35039 rm -f conftest.err conftest.$ac_objext \
35040 conftest$ac_exeext conftest.$ac_ext
35041 LIBS=$ac_check_lib_save_LIBS
35043 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35044 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35045 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35046 ol_cv_lib_mdbm=-lmdbm
35057 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35058 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35062 for ac_header in mdbm.h
35064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35066 echo "$as_me:$LINENO: checking for $ac_header" >&5
35067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35074 # Is the header compilable?
35075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35077 cat >conftest.$ac_ext <<_ACEOF
35080 cat confdefs.h >>conftest.$ac_ext
35081 cat >>conftest.$ac_ext <<_ACEOF
35082 /* end confdefs.h. */
35083 $ac_includes_default
35084 #include <$ac_header>
35086 rm -f conftest.$ac_objext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088 (eval $ac_compile) 2>conftest.er1
35090 grep -v '^ *+' conftest.er1 >conftest.err
35092 cat conftest.err >&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } &&
35095 { ac_try='test -z "$ac_c_werror_flag"
35096 || test ! -s conftest.err'
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; } &&
35102 { ac_try='test -s conftest.$ac_objext'
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; }; then
35108 ac_header_compiler=yes
35110 echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35113 ac_header_compiler=no
35115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35117 echo "${ECHO_T}$ac_header_compiler" >&6
35119 # Is the header present?
35120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35122 cat >conftest.$ac_ext <<_ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h. */
35128 #include <$ac_header>
35130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35133 grep -v '^ *+' conftest.er1 >conftest.err
35135 cat conftest.err >&5
35136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137 (exit $ac_status); } >/dev/null; then
35138 if test -s conftest.err; then
35139 ac_cpp_err=$ac_c_preproc_warn_flag
35140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35147 if test -z "$ac_cpp_err"; then
35148 ac_header_preproc=yes
35150 echo "$as_me: failed program was:" >&5
35151 sed 's/^/| /' conftest.$ac_ext >&5
35153 ac_header_preproc=no
35155 rm -f conftest.err conftest.$ac_ext
35156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35157 echo "${ECHO_T}$ac_header_preproc" >&6
35159 # So? What about this header?
35160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35166 ac_header_preproc=yes
35169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35183 ## --------------------------------------------- ##
35184 ## Report this to <http://www.openldap.org/its/> ##
35185 ## --------------------------------------------- ##
35188 sed "s/^/$as_me: WARNING: /" >&2
35191 echo "$as_me:$LINENO: checking for $ac_header" >&5
35192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35196 eval "$as_ac_Header=\$ac_header_preproc"
35198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35203 cat >>confdefs.h <<_ACEOF
35204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35211 echo "$as_me:$LINENO: checking for db" >&5
35212 echo $ECHO_N "checking for db... $ECHO_C" >&6
35213 if test "${ol_cv_mdbm+set}" = set; then
35214 echo $ECHO_N "(cached) $ECHO_C" >&6
35217 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35224 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35225 echo "${ECHO_T}$ol_cv_mdbm" >&6
35226 if test $ol_cv_mdbm = yes ; then
35228 cat >>confdefs.h <<\_ACEOF
35229 #define HAVE_MDBM 1
35235 if test $ol_cv_mdbm = yes ; then
35237 ol_enable_ldbm_api=mdbm
35238 if test $ol_cv_lib_mdbm != yes ; then
35239 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35244 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35245 echo "$as_me:$LINENO: checking for GDBM library" >&5
35246 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35247 if test "${ol_cv_lib_gdbm+set}" = set; then
35248 echo $ECHO_N "(cached) $ECHO_C" >&6
35251 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35252 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35253 if test "${ac_cv_func_gdbm_open+set}" = set; then
35254 echo $ECHO_N "(cached) $ECHO_C" >&6
35256 cat >conftest.$ac_ext <<_ACEOF
35259 cat confdefs.h >>conftest.$ac_ext
35260 cat >>conftest.$ac_ext <<_ACEOF
35261 /* end confdefs.h. */
35262 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35264 #define gdbm_open innocuous_gdbm_open
35266 /* System header to define __stub macros and hopefully few prototypes,
35267 which can conflict with char gdbm_open (); below.
35268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35269 <limits.h> exists even on freestanding compilers. */
35272 # include <limits.h>
35274 # include <assert.h>
35279 /* Override any gcc2 internal prototype to avoid an error. */
35284 /* We use char because int might match the return type of a gcc2
35285 builtin and then its argument prototype would still apply. */
35287 /* The GNU C library defines this for functions which it implements
35288 to always fail with ENOSYS. Some functions are actually named
35289 something starting with __ and the normal name is an alias. */
35290 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35293 char (*f) () = gdbm_open;
35302 return f != gdbm_open;
35307 rm -f conftest.$ac_objext conftest$ac_exeext
35308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35309 (eval $ac_link) 2>conftest.er1
35311 grep -v '^ *+' conftest.er1 >conftest.err
35313 cat conftest.err >&5
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
35316 { ac_try='test -z "$ac_c_werror_flag"
35317 || test ! -s conftest.err'
35318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319 (eval $ac_try) 2>&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; } &&
35323 { ac_try='test -s conftest$ac_exeext'
35324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325 (eval $ac_try) 2>&5
35327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328 (exit $ac_status); }; }; then
35329 ac_cv_func_gdbm_open=yes
35331 echo "$as_me: failed program was:" >&5
35332 sed 's/^/| /' conftest.$ac_ext >&5
35334 ac_cv_func_gdbm_open=no
35336 rm -f conftest.err conftest.$ac_objext \
35337 conftest$ac_exeext conftest.$ac_ext
35339 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35340 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35341 if test $ac_cv_func_gdbm_open = yes; then
35345 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35346 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35347 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35348 echo $ECHO_N "(cached) $ECHO_C" >&6
35350 ac_check_lib_save_LIBS=$LIBS
35351 LIBS="-lgdbm $LIBS"
35352 cat >conftest.$ac_ext <<_ACEOF
35355 cat confdefs.h >>conftest.$ac_ext
35356 cat >>conftest.$ac_ext <<_ACEOF
35357 /* end confdefs.h. */
35359 /* Override any gcc2 internal prototype to avoid an error. */
35363 /* We use char because int might match the return type of a gcc2
35364 builtin and then its argument prototype would still apply. */
35374 rm -f conftest.$ac_objext conftest$ac_exeext
35375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35376 (eval $ac_link) 2>conftest.er1
35378 grep -v '^ *+' conftest.er1 >conftest.err
35380 cat conftest.err >&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); } &&
35383 { ac_try='test -z "$ac_c_werror_flag"
35384 || test ! -s conftest.err'
35385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386 (eval $ac_try) 2>&5
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); }; } &&
35390 { ac_try='test -s conftest$ac_exeext'
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; }; then
35396 ac_cv_lib_gdbm_gdbm_open=yes
35398 echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35401 ac_cv_lib_gdbm_gdbm_open=no
35403 rm -f conftest.err conftest.$ac_objext \
35404 conftest$ac_exeext conftest.$ac_ext
35405 LIBS=$ac_check_lib_save_LIBS
35407 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35408 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35409 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35410 ol_cv_lib_gdbm=-lgdbm
35421 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35422 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35426 for ac_header in gdbm.h
35428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35430 echo "$as_me:$LINENO: checking for $ac_header" >&5
35431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35433 echo $ECHO_N "(cached) $ECHO_C" >&6
35435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35438 # Is the header compilable?
35439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35441 cat >conftest.$ac_ext <<_ACEOF
35444 cat confdefs.h >>conftest.$ac_ext
35445 cat >>conftest.$ac_ext <<_ACEOF
35446 /* end confdefs.h. */
35447 $ac_includes_default
35448 #include <$ac_header>
35450 rm -f conftest.$ac_objext
35451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35452 (eval $ac_compile) 2>conftest.er1
35454 grep -v '^ *+' conftest.er1 >conftest.err
35456 cat conftest.err >&5
35457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458 (exit $ac_status); } &&
35459 { ac_try='test -z "$ac_c_werror_flag"
35460 || test ! -s conftest.err'
35461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462 (eval $ac_try) 2>&5
35464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465 (exit $ac_status); }; } &&
35466 { ac_try='test -s conftest.$ac_objext'
35467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35468 (eval $ac_try) 2>&5
35470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471 (exit $ac_status); }; }; then
35472 ac_header_compiler=yes
35474 echo "$as_me: failed program was:" >&5
35475 sed 's/^/| /' conftest.$ac_ext >&5
35477 ac_header_compiler=no
35479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35481 echo "${ECHO_T}$ac_header_compiler" >&6
35483 # Is the header present?
35484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35486 cat >conftest.$ac_ext <<_ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h. */
35492 #include <$ac_header>
35494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35497 grep -v '^ *+' conftest.er1 >conftest.err
35499 cat conftest.err >&5
35500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35501 (exit $ac_status); } >/dev/null; then
35502 if test -s conftest.err; then
35503 ac_cpp_err=$ac_c_preproc_warn_flag
35504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35511 if test -z "$ac_cpp_err"; then
35512 ac_header_preproc=yes
35514 echo "$as_me: failed program was:" >&5
35515 sed 's/^/| /' conftest.$ac_ext >&5
35517 ac_header_preproc=no
35519 rm -f conftest.err conftest.$ac_ext
35520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35521 echo "${ECHO_T}$ac_header_preproc" >&6
35523 # So? What about this header?
35524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35530 ac_header_preproc=yes
35533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35547 ## --------------------------------------------- ##
35548 ## Report this to <http://www.openldap.org/its/> ##
35549 ## --------------------------------------------- ##
35552 sed "s/^/$as_me: WARNING: /" >&2
35555 echo "$as_me:$LINENO: checking for $ac_header" >&5
35556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35558 echo $ECHO_N "(cached) $ECHO_C" >&6
35560 eval "$as_ac_Header=\$ac_header_preproc"
35562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35567 cat >>confdefs.h <<_ACEOF
35568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35575 echo "$as_me:$LINENO: checking for db" >&5
35576 echo $ECHO_N "checking for db... $ECHO_C" >&6
35577 if test "${ol_cv_gdbm+set}" = set; then
35578 echo $ECHO_N "(cached) $ECHO_C" >&6
35581 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35588 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35589 echo "${ECHO_T}$ol_cv_gdbm" >&6
35590 if test $ol_cv_gdbm = yes ; then
35592 cat >>confdefs.h <<\_ACEOF
35593 #define HAVE_GDBM 1
35599 if test $ol_cv_gdbm = yes ; then
35601 ol_enable_ldbm_api=gdbm
35603 if test $ol_cv_lib_gdbm != yes ; then
35604 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35609 if test $ol_enable_ldbm_api = ndbm ; then
35610 echo "$as_me:$LINENO: checking for NDBM library" >&5
35611 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35612 if test "${ol_cv_lib_ndbm+set}" = set; then
35613 echo $ECHO_N "(cached) $ECHO_C" >&6
35616 echo "$as_me:$LINENO: checking for dbm_open" >&5
35617 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35618 if test "${ac_cv_func_dbm_open+set}" = set; then
35619 echo $ECHO_N "(cached) $ECHO_C" >&6
35621 cat >conftest.$ac_ext <<_ACEOF
35624 cat confdefs.h >>conftest.$ac_ext
35625 cat >>conftest.$ac_ext <<_ACEOF
35626 /* end confdefs.h. */
35627 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35629 #define dbm_open innocuous_dbm_open
35631 /* System header to define __stub macros and hopefully few prototypes,
35632 which can conflict with char dbm_open (); below.
35633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35634 <limits.h> exists even on freestanding compilers. */
35637 # include <limits.h>
35639 # include <assert.h>
35644 /* Override any gcc2 internal prototype to avoid an error. */
35649 /* We use char because int might match the return type of a gcc2
35650 builtin and then its argument prototype would still apply. */
35652 /* The GNU C library defines this for functions which it implements
35653 to always fail with ENOSYS. Some functions are actually named
35654 something starting with __ and the normal name is an alias. */
35655 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35658 char (*f) () = dbm_open;
35667 return f != dbm_open;
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674 (eval $ac_link) 2>conftest.er1
35676 grep -v '^ *+' conftest.er1 >conftest.err
35678 cat conftest.err >&5
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
35681 { ac_try='test -z "$ac_c_werror_flag"
35682 || test ! -s conftest.err'
35683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684 (eval $ac_try) 2>&5
35686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687 (exit $ac_status); }; } &&
35688 { ac_try='test -s conftest$ac_exeext'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; }; then
35694 ac_cv_func_dbm_open=yes
35696 echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35699 ac_cv_func_dbm_open=no
35701 rm -f conftest.err conftest.$ac_objext \
35702 conftest$ac_exeext conftest.$ac_ext
35704 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35705 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35706 if test $ac_cv_func_dbm_open = yes; then
35710 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35711 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35712 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35713 echo $ECHO_N "(cached) $ECHO_C" >&6
35715 ac_check_lib_save_LIBS=$LIBS
35716 LIBS="-lndbm $LIBS"
35717 cat >conftest.$ac_ext <<_ACEOF
35720 cat confdefs.h >>conftest.$ac_ext
35721 cat >>conftest.$ac_ext <<_ACEOF
35722 /* end confdefs.h. */
35724 /* Override any gcc2 internal prototype to avoid an error. */
35728 /* We use char because int might match the return type of a gcc2
35729 builtin and then its argument prototype would still apply. */
35739 rm -f conftest.$ac_objext conftest$ac_exeext
35740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35741 (eval $ac_link) 2>conftest.er1
35743 grep -v '^ *+' conftest.er1 >conftest.err
35745 cat conftest.err >&5
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); } &&
35748 { ac_try='test -z "$ac_c_werror_flag"
35749 || test ! -s conftest.err'
35750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35751 (eval $ac_try) 2>&5
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); }; } &&
35755 { ac_try='test -s conftest$ac_exeext'
35756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35757 (eval $ac_try) 2>&5
35759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35760 (exit $ac_status); }; }; then
35761 ac_cv_lib_ndbm_dbm_open=yes
35763 echo "$as_me: failed program was:" >&5
35764 sed 's/^/| /' conftest.$ac_ext >&5
35766 ac_cv_lib_ndbm_dbm_open=no
35768 rm -f conftest.err conftest.$ac_objext \
35769 conftest$ac_exeext conftest.$ac_ext
35770 LIBS=$ac_check_lib_save_LIBS
35772 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35773 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35774 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35775 ol_cv_lib_ndbm=-lndbm
35778 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35779 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35780 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35781 echo $ECHO_N "(cached) $ECHO_C" >&6
35783 ac_check_lib_save_LIBS=$LIBS
35785 cat >conftest.$ac_ext <<_ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h. */
35792 /* Override any gcc2 internal prototype to avoid an error. */
35796 /* We use char because int might match the return type of a gcc2
35797 builtin and then its argument prototype would still apply. */
35807 rm -f conftest.$ac_objext conftest$ac_exeext
35808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35809 (eval $ac_link) 2>conftest.er1
35811 grep -v '^ *+' conftest.er1 >conftest.err
35813 cat conftest.err >&5
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); } &&
35816 { ac_try='test -z "$ac_c_werror_flag"
35817 || test ! -s conftest.err'
35818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35819 (eval $ac_try) 2>&5
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); }; } &&
35823 { ac_try='test -s conftest$ac_exeext'
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; }; then
35829 ac_cv_lib_dbm_dbm_open=yes
35831 echo "$as_me: failed program was:" >&5
35832 sed 's/^/| /' conftest.$ac_ext >&5
35834 ac_cv_lib_dbm_dbm_open=no
35836 rm -f conftest.err conftest.$ac_objext \
35837 conftest$ac_exeext conftest.$ac_ext
35838 LIBS=$ac_check_lib_save_LIBS
35840 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35841 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35842 if test $ac_cv_lib_dbm_dbm_open = yes; then
35843 ol_cv_lib_ndbm=-ldbm
35856 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35857 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35861 for ac_header in ndbm.h
35863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35865 echo "$as_me:$LINENO: checking for $ac_header" >&5
35866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35868 echo $ECHO_N "(cached) $ECHO_C" >&6
35870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35873 # Is the header compilable?
35874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35876 cat >conftest.$ac_ext <<_ACEOF
35879 cat confdefs.h >>conftest.$ac_ext
35880 cat >>conftest.$ac_ext <<_ACEOF
35881 /* end confdefs.h. */
35882 $ac_includes_default
35883 #include <$ac_header>
35885 rm -f conftest.$ac_objext
35886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35887 (eval $ac_compile) 2>conftest.er1
35889 grep -v '^ *+' conftest.er1 >conftest.err
35891 cat conftest.err >&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); } &&
35894 { ac_try='test -z "$ac_c_werror_flag"
35895 || test ! -s conftest.err'
35896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897 (eval $ac_try) 2>&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); }; } &&
35901 { ac_try='test -s conftest.$ac_objext'
35902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35903 (eval $ac_try) 2>&5
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); }; }; then
35907 ac_header_compiler=yes
35909 echo "$as_me: failed program was:" >&5
35910 sed 's/^/| /' conftest.$ac_ext >&5
35912 ac_header_compiler=no
35914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35916 echo "${ECHO_T}$ac_header_compiler" >&6
35918 # Is the header present?
35919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35921 cat >conftest.$ac_ext <<_ACEOF
35924 cat confdefs.h >>conftest.$ac_ext
35925 cat >>conftest.$ac_ext <<_ACEOF
35926 /* end confdefs.h. */
35927 #include <$ac_header>
35929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35932 grep -v '^ *+' conftest.er1 >conftest.err
35934 cat conftest.err >&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } >/dev/null; then
35937 if test -s conftest.err; then
35938 ac_cpp_err=$ac_c_preproc_warn_flag
35939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35946 if test -z "$ac_cpp_err"; then
35947 ac_header_preproc=yes
35949 echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.$ac_ext >&5
35952 ac_header_preproc=no
35954 rm -f conftest.err conftest.$ac_ext
35955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35956 echo "${ECHO_T}$ac_header_preproc" >&6
35958 # So? What about this header?
35959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35965 ac_header_preproc=yes
35968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35982 ## --------------------------------------------- ##
35983 ## Report this to <http://www.openldap.org/its/> ##
35984 ## --------------------------------------------- ##
35987 sed "s/^/$as_me: WARNING: /" >&2
35990 echo "$as_me:$LINENO: checking for $ac_header" >&5
35991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35993 echo $ECHO_N "(cached) $ECHO_C" >&6
35995 eval "$as_ac_Header=\$ac_header_preproc"
35997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36002 cat >>confdefs.h <<_ACEOF
36003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36010 echo "$as_me:$LINENO: checking for db" >&5
36011 echo $ECHO_N "checking for db... $ECHO_C" >&6
36012 if test "${ol_cv_ndbm+set}" = set; then
36013 echo $ECHO_N "(cached) $ECHO_C" >&6
36016 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36023 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36024 echo "${ECHO_T}$ol_cv_ndbm" >&6
36025 if test $ol_cv_ndbm = yes ; then
36027 cat >>confdefs.h <<\_ACEOF
36028 #define HAVE_NDBM 1
36034 if test $ol_cv_ndbm = yes ; then
36036 ol_enable_ldbm_api=ndbm
36038 if test $ol_cv_lib_ndbm != yes ; then
36039 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36044 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36045 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36046 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36047 { (exit 1); exit 1; }; }
36050 if test $ol_enable_bdb = yes ||
36051 test $ol_enable_hdb = yes ||
36052 test $ol_enable_ldbm = yes ; then
36053 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36057 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36058 BUILD_LIBS_DYNAMIC=shared
36060 cat >>confdefs.h <<\_ACEOF
36061 #define LDAP_LIBS_DYNAMIC 1
36066 BUILD_LIBS_DYNAMIC=static
36070 if test $ol_enable_wrappers != no ; then
36072 for ac_header in tcpd.h
36074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36076 echo "$as_me:$LINENO: checking for $ac_header" >&5
36077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36079 echo $ECHO_N "(cached) $ECHO_C" >&6
36081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36084 # Is the header compilable?
36085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36087 cat >conftest.$ac_ext <<_ACEOF
36090 cat confdefs.h >>conftest.$ac_ext
36091 cat >>conftest.$ac_ext <<_ACEOF
36092 /* end confdefs.h. */
36093 $ac_includes_default
36094 #include <$ac_header>
36096 rm -f conftest.$ac_objext
36097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36098 (eval $ac_compile) 2>conftest.er1
36100 grep -v '^ *+' conftest.er1 >conftest.err
36102 cat conftest.err >&5
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); } &&
36105 { ac_try='test -z "$ac_c_werror_flag"
36106 || test ! -s conftest.err'
36107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36108 (eval $ac_try) 2>&5
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); }; } &&
36112 { ac_try='test -s conftest.$ac_objext'
36113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114 (eval $ac_try) 2>&5
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); }; }; then
36118 ac_header_compiler=yes
36120 echo "$as_me: failed program was:" >&5
36121 sed 's/^/| /' conftest.$ac_ext >&5
36123 ac_header_compiler=no
36125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36127 echo "${ECHO_T}$ac_header_compiler" >&6
36129 # Is the header present?
36130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36132 cat >conftest.$ac_ext <<_ACEOF
36135 cat confdefs.h >>conftest.$ac_ext
36136 cat >>conftest.$ac_ext <<_ACEOF
36137 /* end confdefs.h. */
36138 #include <$ac_header>
36140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36143 grep -v '^ *+' conftest.er1 >conftest.err
36145 cat conftest.err >&5
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); } >/dev/null; then
36148 if test -s conftest.err; then
36149 ac_cpp_err=$ac_c_preproc_warn_flag
36150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36157 if test -z "$ac_cpp_err"; then
36158 ac_header_preproc=yes
36160 echo "$as_me: failed program was:" >&5
36161 sed 's/^/| /' conftest.$ac_ext >&5
36163 ac_header_preproc=no
36165 rm -f conftest.err conftest.$ac_ext
36166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36167 echo "${ECHO_T}$ac_header_preproc" >&6
36169 # So? What about this header?
36170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36176 ac_header_preproc=yes
36179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36193 ## --------------------------------------------- ##
36194 ## Report this to <http://www.openldap.org/its/> ##
36195 ## --------------------------------------------- ##
36198 sed "s/^/$as_me: WARNING: /" >&2
36201 echo "$as_me:$LINENO: checking for $ac_header" >&5
36202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36204 echo $ECHO_N "(cached) $ECHO_C" >&6
36206 eval "$as_ac_Header=\$ac_header_preproc"
36208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36213 cat >>confdefs.h <<_ACEOF
36214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36217 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36218 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36220 LIBS="$LIBS -lwrap"
36221 cat >conftest.$ac_ext <<_ACEOF
36224 cat confdefs.h >>conftest.$ac_ext
36225 cat >>conftest.$ac_ext <<_ACEOF
36226 /* end confdefs.h. */
36229 int allow_severity = 0;
36230 int deny_severity = 0;
36232 struct request_info *req;
36244 rm -f conftest.$ac_objext conftest$ac_exeext
36245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36246 (eval $ac_link) 2>conftest.er1
36248 grep -v '^ *+' conftest.er1 >conftest.err
36250 cat conftest.err >&5
36251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36252 (exit $ac_status); } &&
36253 { ac_try='test -z "$ac_c_werror_flag"
36254 || test ! -s conftest.err'
36255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36256 (eval $ac_try) 2>&5
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); }; } &&
36260 { ac_try='test -s conftest$ac_exeext'
36261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262 (eval $ac_try) 2>&5
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); }; }; then
36266 echo "$as_me:$LINENO: result: -lwrap" >&5
36267 echo "${ECHO_T}-lwrap" >&6
36271 echo "$as_me: failed program was:" >&5
36272 sed 's/^/| /' conftest.$ac_ext >&5
36276 cat >conftest.$ac_ext <<_ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h. */
36284 int allow_severity = 0;
36285 int deny_severity = 0;
36287 struct request_info *req;
36299 rm -f conftest.$ac_objext conftest$ac_exeext
36300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36301 (eval $ac_link) 2>conftest.er1
36303 grep -v '^ *+' conftest.er1 >conftest.err
36305 cat conftest.err >&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); } &&
36308 { ac_try='test -z "$ac_c_werror_flag"
36309 || test ! -s conftest.err'
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; } &&
36315 { ac_try='test -s conftest$ac_exeext'
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; }; then
36321 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36322 echo "${ECHO_T}-lwrap -lnsl" >&6
36324 LIBS="$save_LIBS -lnsl"
36326 echo "$as_me: failed program was:" >&5
36327 sed 's/^/| /' conftest.$ac_ext >&5
36330 echo "$as_me:$LINENO: result: no" >&5
36331 echo "${ECHO_T}no" >&6
36335 rm -f conftest.err conftest.$ac_objext \
36336 conftest$ac_exeext conftest.$ac_ext
36338 rm -f conftest.err conftest.$ac_objext \
36339 conftest$ac_exeext conftest.$ac_ext
36347 if test $have_wrappers = yes ; then
36349 cat >>confdefs.h <<\_ACEOF
36350 #define HAVE_TCPD 1
36354 elif test $ol_enable_wrappers = yes ; then
36355 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36356 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36357 { (exit 1); exit 1; }; }
36359 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36360 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36365 if test $ol_enable_syslog != no ; then
36366 echo "$as_me:$LINENO: checking for openlog" >&5
36367 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36368 if test "${ac_cv_func_openlog+set}" = set; then
36369 echo $ECHO_N "(cached) $ECHO_C" >&6
36371 cat >conftest.$ac_ext <<_ACEOF
36374 cat confdefs.h >>conftest.$ac_ext
36375 cat >>conftest.$ac_ext <<_ACEOF
36376 /* end confdefs.h. */
36377 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36379 #define openlog innocuous_openlog
36381 /* System header to define __stub macros and hopefully few prototypes,
36382 which can conflict with char openlog (); below.
36383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36384 <limits.h> exists even on freestanding compilers. */
36387 # include <limits.h>
36389 # include <assert.h>
36394 /* Override any gcc2 internal prototype to avoid an error. */
36399 /* We use char because int might match the return type of a gcc2
36400 builtin and then its argument prototype would still apply. */
36402 /* The GNU C library defines this for functions which it implements
36403 to always fail with ENOSYS. Some functions are actually named
36404 something starting with __ and the normal name is an alias. */
36405 #if defined (__stub_openlog) || defined (__stub___openlog)
36408 char (*f) () = openlog;
36417 return f != openlog;
36422 rm -f conftest.$ac_objext conftest$ac_exeext
36423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36424 (eval $ac_link) 2>conftest.er1
36426 grep -v '^ *+' conftest.er1 >conftest.err
36428 cat conftest.err >&5
36429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36430 (exit $ac_status); } &&
36431 { ac_try='test -z "$ac_c_werror_flag"
36432 || test ! -s conftest.err'
36433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36434 (eval $ac_try) 2>&5
36436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36437 (exit $ac_status); }; } &&
36438 { ac_try='test -s conftest$ac_exeext'
36439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36440 (eval $ac_try) 2>&5
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); }; }; then
36444 ac_cv_func_openlog=yes
36446 echo "$as_me: failed program was:" >&5
36447 sed 's/^/| /' conftest.$ac_ext >&5
36449 ac_cv_func_openlog=no
36451 rm -f conftest.err conftest.$ac_objext \
36452 conftest$ac_exeext conftest.$ac_ext
36454 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36455 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36457 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36458 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36459 echo "$as_me: error: could not find syslog" >&2;}
36460 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36462 ol_enable_syslog=$ac_cv_func_openlog
36466 if test $ol_enable_sql != no ; then
36469 for ac_header in sql.h sqlext.h
36471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36473 echo "$as_me:$LINENO: checking for $ac_header" >&5
36474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36476 echo $ECHO_N "(cached) $ECHO_C" >&6
36478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36481 # Is the header compilable?
36482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36484 cat >conftest.$ac_ext <<_ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h. */
36490 $ac_includes_default
36491 #include <$ac_header>
36493 rm -f conftest.$ac_objext
36494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36495 (eval $ac_compile) 2>conftest.er1
36497 grep -v '^ *+' conftest.er1 >conftest.err
36499 cat conftest.err >&5
36500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); } &&
36502 { ac_try='test -z "$ac_c_werror_flag"
36503 || test ! -s conftest.err'
36504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36505 (eval $ac_try) 2>&5
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); }; } &&
36509 { ac_try='test -s conftest.$ac_objext'
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; }; then
36515 ac_header_compiler=yes
36517 echo "$as_me: failed program was:" >&5
36518 sed 's/^/| /' conftest.$ac_ext >&5
36520 ac_header_compiler=no
36522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36524 echo "${ECHO_T}$ac_header_compiler" >&6
36526 # Is the header present?
36527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36529 cat >conftest.$ac_ext <<_ACEOF
36532 cat confdefs.h >>conftest.$ac_ext
36533 cat >>conftest.$ac_ext <<_ACEOF
36534 /* end confdefs.h. */
36535 #include <$ac_header>
36537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36540 grep -v '^ *+' conftest.er1 >conftest.err
36542 cat conftest.err >&5
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); } >/dev/null; then
36545 if test -s conftest.err; then
36546 ac_cpp_err=$ac_c_preproc_warn_flag
36547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36554 if test -z "$ac_cpp_err"; then
36555 ac_header_preproc=yes
36557 echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36560 ac_header_preproc=no
36562 rm -f conftest.err conftest.$ac_ext
36563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36564 echo "${ECHO_T}$ac_header_preproc" >&6
36566 # So? What about this header?
36567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36573 ac_header_preproc=yes
36576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36590 ## --------------------------------------------- ##
36591 ## Report this to <http://www.openldap.org/its/> ##
36592 ## --------------------------------------------- ##
36595 sed "s/^/$as_me: WARNING: /" >&2
36598 echo "$as_me:$LINENO: checking for $ac_header" >&5
36599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36601 echo $ECHO_N "(cached) $ECHO_C" >&6
36603 eval "$as_ac_Header=\$ac_header_preproc"
36605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36610 cat >>confdefs.h <<_ACEOF
36611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36616 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36617 echo "$as_me: error: could not locate SQL headers" >&2;}
36618 { (exit 1); exit 1; }; }
36626 LIBS="$LTHREAD_LIBS"
36628 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36629 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36630 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36631 echo $ECHO_N "(cached) $ECHO_C" >&6
36633 ac_check_lib_save_LIBS=$LIBS
36634 LIBS="-liodbc $LIBS"
36635 cat >conftest.$ac_ext <<_ACEOF
36638 cat confdefs.h >>conftest.$ac_ext
36639 cat >>conftest.$ac_ext <<_ACEOF
36640 /* end confdefs.h. */
36642 /* Override any gcc2 internal prototype to avoid an error. */
36646 /* We use char because int might match the return type of a gcc2
36647 builtin and then its argument prototype would still apply. */
36648 char SQLDriverConnect ();
36652 SQLDriverConnect ();
36657 rm -f conftest.$ac_objext conftest$ac_exeext
36658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36659 (eval $ac_link) 2>conftest.er1
36661 grep -v '^ *+' conftest.er1 >conftest.err
36663 cat conftest.err >&5
36664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665 (exit $ac_status); } &&
36666 { ac_try='test -z "$ac_c_werror_flag"
36667 || test ! -s conftest.err'
36668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36669 (eval $ac_try) 2>&5
36671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672 (exit $ac_status); }; } &&
36673 { ac_try='test -s conftest$ac_exeext'
36674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675 (eval $ac_try) 2>&5
36677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678 (exit $ac_status); }; }; then
36679 ac_cv_lib_iodbc_SQLDriverConnect=yes
36681 echo "$as_me: failed program was:" >&5
36682 sed 's/^/| /' conftest.$ac_ext >&5
36684 ac_cv_lib_iodbc_SQLDriverConnect=no
36686 rm -f conftest.err conftest.$ac_objext \
36687 conftest$ac_exeext conftest.$ac_ext
36688 LIBS=$ac_check_lib_save_LIBS
36690 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36691 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36692 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36698 if test $have_iodbc = yes ; then
36699 ol_link_sql="-liodbc"
36701 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36702 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36703 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36704 echo $ECHO_N "(cached) $ECHO_C" >&6
36706 ac_check_lib_save_LIBS=$LIBS
36707 LIBS="-lodbc $LIBS"
36708 cat >conftest.$ac_ext <<_ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h. */
36715 /* Override any gcc2 internal prototype to avoid an error. */
36719 /* We use char because int might match the return type of a gcc2
36720 builtin and then its argument prototype would still apply. */
36721 char SQLDriverConnect ();
36725 SQLDriverConnect ();
36730 rm -f conftest.$ac_objext conftest$ac_exeext
36731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36732 (eval $ac_link) 2>conftest.er1
36734 grep -v '^ *+' conftest.er1 >conftest.err
36736 cat conftest.err >&5
36737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); } &&
36739 { ac_try='test -z "$ac_c_werror_flag"
36740 || test ! -s conftest.err'
36741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36742 (eval $ac_try) 2>&5
36744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36745 (exit $ac_status); }; } &&
36746 { ac_try='test -s conftest$ac_exeext'
36747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36748 (eval $ac_try) 2>&5
36750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751 (exit $ac_status); }; }; then
36752 ac_cv_lib_odbc_SQLDriverConnect=yes
36754 echo "$as_me: failed program was:" >&5
36755 sed 's/^/| /' conftest.$ac_ext >&5
36757 ac_cv_lib_odbc_SQLDriverConnect=no
36759 rm -f conftest.err conftest.$ac_objext \
36760 conftest$ac_exeext conftest.$ac_ext
36761 LIBS=$ac_check_lib_save_LIBS
36763 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36764 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36765 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36771 if test $have_odbc = yes ; then
36772 ol_link_sql="-lodbc"
36778 if test $ol_link_sql != no ; then
36779 SLAPD_SQL_LIBS="$ol_link_sql"
36781 elif test $ol_enable_sql != auto ; then
36782 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36783 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36784 { (exit 1); exit 1; }; }
36790 for ac_header in unicode/utypes.h
36792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36794 echo "$as_me:$LINENO: checking for $ac_header" >&5
36795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36797 echo $ECHO_N "(cached) $ECHO_C" >&6
36799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36802 # Is the header compilable?
36803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36805 cat >conftest.$ac_ext <<_ACEOF
36808 cat confdefs.h >>conftest.$ac_ext
36809 cat >>conftest.$ac_ext <<_ACEOF
36810 /* end confdefs.h. */
36811 $ac_includes_default
36812 #include <$ac_header>
36814 rm -f conftest.$ac_objext
36815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36816 (eval $ac_compile) 2>conftest.er1
36818 grep -v '^ *+' conftest.er1 >conftest.err
36820 cat conftest.err >&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); } &&
36823 { ac_try='test -z "$ac_c_werror_flag"
36824 || test ! -s conftest.err'
36825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826 (eval $ac_try) 2>&5
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); }; } &&
36830 { ac_try='test -s conftest.$ac_objext'
36831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832 (eval $ac_try) 2>&5
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); }; }; then
36836 ac_header_compiler=yes
36838 echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36841 ac_header_compiler=no
36843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36845 echo "${ECHO_T}$ac_header_compiler" >&6
36847 # Is the header present?
36848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36850 cat >conftest.$ac_ext <<_ACEOF
36853 cat confdefs.h >>conftest.$ac_ext
36854 cat >>conftest.$ac_ext <<_ACEOF
36855 /* end confdefs.h. */
36856 #include <$ac_header>
36858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36861 grep -v '^ *+' conftest.er1 >conftest.err
36863 cat conftest.err >&5
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); } >/dev/null; then
36866 if test -s conftest.err; then
36867 ac_cpp_err=$ac_c_preproc_warn_flag
36868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36875 if test -z "$ac_cpp_err"; then
36876 ac_header_preproc=yes
36878 echo "$as_me: failed program was:" >&5
36879 sed 's/^/| /' conftest.$ac_ext >&5
36881 ac_header_preproc=no
36883 rm -f conftest.err conftest.$ac_ext
36884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36885 echo "${ECHO_T}$ac_header_preproc" >&6
36887 # So? What about this header?
36888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36894 ac_header_preproc=yes
36897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36911 ## --------------------------------------------- ##
36912 ## Report this to <http://www.openldap.org/its/> ##
36913 ## --------------------------------------------- ##
36916 sed "s/^/$as_me: WARNING: /" >&2
36919 echo "$as_me:$LINENO: checking for $ac_header" >&5
36920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36922 echo $ECHO_N "(cached) $ECHO_C" >&6
36924 eval "$as_ac_Header=\$ac_header_preproc"
36926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36931 cat >>confdefs.h <<_ACEOF
36932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36939 if test $ac_cv_header_unicode_utypes_h = yes ; then
36940 OL_ICULIBS="-licuuc -licudata"
36942 echo "$as_me:$LINENO: checking for ICU libraries" >&5
36943 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36944 if test "${ol_cv_lib_icu+set}" = set; then
36945 echo $ECHO_N "(cached) $ECHO_C" >&6
36949 LIBS="$OL_ICULIBS $LIBS"
36950 cat >conftest.$ac_ext <<_ACEOF
36953 cat confdefs.h >>conftest.$ac_ext
36954 cat >>conftest.$ac_ext <<_ACEOF
36955 /* end confdefs.h. */
36957 #include <unicode/utypes.h>
36963 (void) u_errorName(0);
36969 rm -f conftest.$ac_objext conftest$ac_exeext
36970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36971 (eval $ac_link) 2>conftest.er1
36973 grep -v '^ *+' conftest.er1 >conftest.err
36975 cat conftest.err >&5
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); } &&
36978 { ac_try='test -z "$ac_c_werror_flag"
36979 || test ! -s conftest.err'
36980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36981 (eval $ac_try) 2>&5
36983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); }; } &&
36985 { ac_try='test -s conftest$ac_exeext'
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; }; then
36993 echo "$as_me: failed program was:" >&5
36994 sed 's/^/| /' conftest.$ac_ext >&5
36998 rm -f conftest.err conftest.$ac_objext \
36999 conftest$ac_exeext conftest.$ac_ext
37003 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
37004 echo "${ECHO_T}$ol_cv_lib_icu" >&6
37006 if test $ol_cv_lib_icu != no ; then
37007 ol_icu="$OL_ICULIBS"
37009 cat >>confdefs.h <<\_ACEOF
37016 if test "$ol_icu" = no ; then
37017 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37018 echo "$as_me: WARNING: ICU not available" >&2;}
37025 if test $ol_with_cyrus_sasl != no ; then
37028 for ac_header in sasl/sasl.h sasl.h
37030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37032 echo "$as_me:$LINENO: checking for $ac_header" >&5
37033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37035 echo $ECHO_N "(cached) $ECHO_C" >&6
37037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37040 # Is the header compilable?
37041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37043 cat >conftest.$ac_ext <<_ACEOF
37046 cat confdefs.h >>conftest.$ac_ext
37047 cat >>conftest.$ac_ext <<_ACEOF
37048 /* end confdefs.h. */
37049 $ac_includes_default
37050 #include <$ac_header>
37052 rm -f conftest.$ac_objext
37053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37054 (eval $ac_compile) 2>conftest.er1
37056 grep -v '^ *+' conftest.er1 >conftest.err
37058 cat conftest.err >&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); } &&
37061 { ac_try='test -z "$ac_c_werror_flag"
37062 || test ! -s conftest.err'
37063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064 (eval $ac_try) 2>&5
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); }; } &&
37068 { ac_try='test -s conftest.$ac_objext'
37069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37070 (eval $ac_try) 2>&5
37072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073 (exit $ac_status); }; }; then
37074 ac_header_compiler=yes
37076 echo "$as_me: failed program was:" >&5
37077 sed 's/^/| /' conftest.$ac_ext >&5
37079 ac_header_compiler=no
37081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37083 echo "${ECHO_T}$ac_header_compiler" >&6
37085 # Is the header present?
37086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37088 cat >conftest.$ac_ext <<_ACEOF
37091 cat confdefs.h >>conftest.$ac_ext
37092 cat >>conftest.$ac_ext <<_ACEOF
37093 /* end confdefs.h. */
37094 #include <$ac_header>
37096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37099 grep -v '^ *+' conftest.er1 >conftest.err
37101 cat conftest.err >&5
37102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37103 (exit $ac_status); } >/dev/null; then
37104 if test -s conftest.err; then
37105 ac_cpp_err=$ac_c_preproc_warn_flag
37106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37113 if test -z "$ac_cpp_err"; then
37114 ac_header_preproc=yes
37116 echo "$as_me: failed program was:" >&5
37117 sed 's/^/| /' conftest.$ac_ext >&5
37119 ac_header_preproc=no
37121 rm -f conftest.err conftest.$ac_ext
37122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37123 echo "${ECHO_T}$ac_header_preproc" >&6
37125 # So? What about this header?
37126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37132 ac_header_preproc=yes
37135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37149 ## --------------------------------------------- ##
37150 ## Report this to <http://www.openldap.org/its/> ##
37151 ## --------------------------------------------- ##
37154 sed "s/^/$as_me: WARNING: /" >&2
37157 echo "$as_me:$LINENO: checking for $ac_header" >&5
37158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37160 echo $ECHO_N "(cached) $ECHO_C" >&6
37162 eval "$as_ac_Header=\$ac_header_preproc"
37164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37169 cat >>confdefs.h <<_ACEOF
37170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37178 if test $ac_cv_header_sasl_sasl_h = yes ||
37179 test $ac_cv_header_sasl_h = yes; then
37180 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37181 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37182 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37183 echo $ECHO_N "(cached) $ECHO_C" >&6
37185 ac_check_lib_save_LIBS=$LIBS
37186 LIBS="-lsasl2 $LIBS"
37187 cat >conftest.$ac_ext <<_ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h. */
37194 /* Override any gcc2 internal prototype to avoid an error. */
37198 /* We use char because int might match the return type of a gcc2
37199 builtin and then its argument prototype would still apply. */
37200 char sasl_client_init ();
37204 sasl_client_init ();
37209 rm -f conftest.$ac_objext conftest$ac_exeext
37210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37211 (eval $ac_link) 2>conftest.er1
37213 grep -v '^ *+' conftest.er1 >conftest.err
37215 cat conftest.err >&5
37216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217 (exit $ac_status); } &&
37218 { ac_try='test -z "$ac_c_werror_flag"
37219 || test ! -s conftest.err'
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; } &&
37225 { ac_try='test -s conftest$ac_exeext'
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 ac_cv_lib_sasl2_sasl_client_init=yes
37233 echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37236 ac_cv_lib_sasl2_sasl_client_init=no
37238 rm -f conftest.err conftest.$ac_objext \
37239 conftest$ac_exeext conftest.$ac_ext
37240 LIBS=$ac_check_lib_save_LIBS
37242 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37243 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37244 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37245 ol_link_sasl="-lsasl2"
37247 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37248 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37249 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37250 echo $ECHO_N "(cached) $ECHO_C" >&6
37252 ac_check_lib_save_LIBS=$LIBS
37253 LIBS="-lsasl $LIBS"
37254 cat >conftest.$ac_ext <<_ACEOF
37257 cat confdefs.h >>conftest.$ac_ext
37258 cat >>conftest.$ac_ext <<_ACEOF
37259 /* end confdefs.h. */
37261 /* Override any gcc2 internal prototype to avoid an error. */
37265 /* We use char because int might match the return type of a gcc2
37266 builtin and then its argument prototype would still apply. */
37267 char sasl_client_init ();
37271 sasl_client_init ();
37276 rm -f conftest.$ac_objext conftest$ac_exeext
37277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37278 (eval $ac_link) 2>conftest.er1
37280 grep -v '^ *+' conftest.er1 >conftest.err
37282 cat conftest.err >&5
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); } &&
37285 { ac_try='test -z "$ac_c_werror_flag"
37286 || test ! -s conftest.err'
37287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288 (eval $ac_try) 2>&5
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); }; } &&
37292 { ac_try='test -s conftest$ac_exeext'
37293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 (eval $ac_try) 2>&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); }; }; then
37298 ac_cv_lib_sasl_sasl_client_init=yes
37300 echo "$as_me: failed program was:" >&5
37301 sed 's/^/| /' conftest.$ac_ext >&5
37303 ac_cv_lib_sasl_sasl_client_init=no
37305 rm -f conftest.err conftest.$ac_objext \
37306 conftest$ac_exeext conftest.$ac_ext
37307 LIBS=$ac_check_lib_save_LIBS
37309 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37310 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37311 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37312 ol_link_sasl="-lsasl"
37319 if test $ol_link_sasl = no ; then
37320 if test $ol_with_cyrus_sasl != auto ; then
37321 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37322 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37323 { (exit 1); exit 1; }; }
37325 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37326 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37327 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37328 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37329 if test $ol_link_tls = no ; then
37330 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37331 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37335 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37336 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37337 if test "${ol_cv_sasl_compat+set}" = set; then
37338 echo $ECHO_N "(cached) $ECHO_C" >&6
37341 cat >conftest.$ac_ext <<_ACEOF
37344 cat confdefs.h >>conftest.$ac_ext
37345 cat >>conftest.$ac_ext <<_ACEOF
37346 /* end confdefs.h. */
37348 #ifdef HAVE_SASL_SASL_H
37349 #include <sasl/sasl.h>
37354 /* Require 2.1.15+ */
37355 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37356 char *__sasl_compat = "2.2+ or better okay (we guess)";
37357 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37358 && SASL_VERSION_STEP >=15
37359 char *__sasl_compat = "2.1.15+ or better okay";
37363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37364 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37365 ol_cv_sasl_compat=yes
37367 ol_cv_sasl_compat=no
37372 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37373 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37375 if test $ol_cv_sasl_compat = no ; then
37377 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37378 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37379 { (exit 1); exit 1; }; }
37383 cat >>confdefs.h <<\_ACEOF
37384 #define HAVE_CYRUS_SASL 1
37387 SASL_LIBS="$ol_link_sasl"
37388 if test $ol_enable_spasswd != no ; then
37389 ol_link_spasswd=yes
37392 ac_save_LIBS="$LIBS"
37393 LIBS="$LIBS $ol_link_sasl"
37394 echo "$as_me:$LINENO: checking for sasl_version" >&5
37395 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37396 if test "${ac_cv_func_sasl_version+set}" = set; then
37397 echo $ECHO_N "(cached) $ECHO_C" >&6
37399 cat >conftest.$ac_ext <<_ACEOF
37402 cat confdefs.h >>conftest.$ac_ext
37403 cat >>conftest.$ac_ext <<_ACEOF
37404 /* end confdefs.h. */
37405 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37407 #define sasl_version innocuous_sasl_version
37409 /* System header to define __stub macros and hopefully few prototypes,
37410 which can conflict with char sasl_version (); below.
37411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37412 <limits.h> exists even on freestanding compilers. */
37415 # include <limits.h>
37417 # include <assert.h>
37420 #undef sasl_version
37422 /* Override any gcc2 internal prototype to avoid an error. */
37427 /* We use char because int might match the return type of a gcc2
37428 builtin and then its argument prototype would still apply. */
37429 char sasl_version ();
37430 /* The GNU C library defines this for functions which it implements
37431 to always fail with ENOSYS. Some functions are actually named
37432 something starting with __ and the normal name is an alias. */
37433 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37436 char (*f) () = sasl_version;
37445 return f != sasl_version;
37450 rm -f conftest.$ac_objext conftest$ac_exeext
37451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37452 (eval $ac_link) 2>conftest.er1
37454 grep -v '^ *+' conftest.er1 >conftest.err
37456 cat conftest.err >&5
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); } &&
37459 { ac_try='test -z "$ac_c_werror_flag"
37460 || test ! -s conftest.err'
37461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37462 (eval $ac_try) 2>&5
37464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37465 (exit $ac_status); }; } &&
37466 { ac_try='test -s conftest$ac_exeext'
37467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37468 (eval $ac_try) 2>&5
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); }; }; then
37472 ac_cv_func_sasl_version=yes
37474 echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37477 ac_cv_func_sasl_version=no
37479 rm -f conftest.err conftest.$ac_objext \
37480 conftest$ac_exeext conftest.$ac_ext
37482 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37483 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37484 if test $ac_cv_func_sasl_version = yes; then
37486 cat >>confdefs.h <<\_ACEOF
37487 #define HAVE_SASL_VERSION 1
37492 LIBS="$ac_save_LIBS"
37498 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37499 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37500 if test $ol_link_tls = no ; then
37501 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37502 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37506 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37508 if test -r /dev/urandom ; then
37509 dev="/dev/urandom";
37510 elif test -r /idev/urandom ; then
37511 dev="/idev/urandom";
37512 elif test -r /dev/srandom ; then
37513 dev="/dev/srandom";
37514 elif test -r /dev/random ; then
37516 elif test -r /idev/random ; then
37517 dev="/idev/random";
37520 if test $dev != no ; then
37522 cat >>confdefs.h <<_ACEOF
37523 #define URANDOM_DEVICE "$dev"
37530 if test $ol_with_fetch != no ; then
37532 LIBS="-lfetch -lcom_err $LIBS"
37533 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37534 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37535 if test "${ol_cv_lib_fetch+set}" = set; then
37536 echo $ECHO_N "(cached) $ECHO_C" >&6
37539 cat >conftest.$ac_ext <<_ACEOF
37542 cat confdefs.h >>conftest.$ac_ext
37543 cat >>conftest.$ac_ext <<_ACEOF
37544 /* end confdefs.h. */
37546 #include <sys/param.h>
37552 struct url *u = fetchParseURL("file:///");
37557 rm -f conftest.$ac_objext conftest$ac_exeext
37558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37559 (eval $ac_link) 2>conftest.er1
37561 grep -v '^ *+' conftest.er1 >conftest.err
37563 cat conftest.err >&5
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); } &&
37566 { ac_try='test -z "$ac_c_werror_flag"
37567 || test ! -s conftest.err'
37568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37569 (eval $ac_try) 2>&5
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); }; } &&
37573 { ac_try='test -s conftest$ac_exeext'
37574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37575 (eval $ac_try) 2>&5
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); }; }; then
37579 ol_cv_lib_fetch=yes
37581 echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37586 rm -f conftest.err conftest.$ac_objext \
37587 conftest$ac_exeext conftest.$ac_ext
37589 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37590 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37592 if test $ol_cv_lib_fetch != no ; then
37593 ol_link_fetch="-lfetch -lcom_err"
37595 cat >>confdefs.h <<\_ACEOF
37596 #define HAVE_FETCH 1
37602 if test $ol_cv_lib_fetch != no ; then
37603 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37604 ol_link_fetch=freebsd
37606 elif test $ol_with_fetch != auto ; then
37607 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37608 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37609 { (exit 1); exit 1; }; }
37613 if test $ol_enable_crypt != no ; then
37615 LIBS="$TLS_LIBS $LIBS"
37617 echo "$as_me:$LINENO: checking for crypt" >&5
37618 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37619 if test "${ac_cv_func_crypt+set}" = set; then
37620 echo $ECHO_N "(cached) $ECHO_C" >&6
37622 cat >conftest.$ac_ext <<_ACEOF
37625 cat confdefs.h >>conftest.$ac_ext
37626 cat >>conftest.$ac_ext <<_ACEOF
37627 /* end confdefs.h. */
37628 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37630 #define crypt innocuous_crypt
37632 /* System header to define __stub macros and hopefully few prototypes,
37633 which can conflict with char crypt (); below.
37634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37635 <limits.h> exists even on freestanding compilers. */
37638 # include <limits.h>
37640 # include <assert.h>
37645 /* Override any gcc2 internal prototype to avoid an error. */
37650 /* We use char because int might match the return type of a gcc2
37651 builtin and then its argument prototype would still apply. */
37653 /* The GNU C library defines this for functions which it implements
37654 to always fail with ENOSYS. Some functions are actually named
37655 something starting with __ and the normal name is an alias. */
37656 #if defined (__stub_crypt) || defined (__stub___crypt)
37659 char (*f) () = crypt;
37673 rm -f conftest.$ac_objext conftest$ac_exeext
37674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37675 (eval $ac_link) 2>conftest.er1
37677 grep -v '^ *+' conftest.er1 >conftest.err
37679 cat conftest.err >&5
37680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681 (exit $ac_status); } &&
37682 { ac_try='test -z "$ac_c_werror_flag"
37683 || test ! -s conftest.err'
37684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37685 (eval $ac_try) 2>&5
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; } &&
37689 { ac_try='test -s conftest$ac_exeext'
37690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691 (eval $ac_try) 2>&5
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); }; }; then
37695 ac_cv_func_crypt=yes
37697 echo "$as_me: failed program was:" >&5
37698 sed 's/^/| /' conftest.$ac_ext >&5
37700 ac_cv_func_crypt=no
37702 rm -f conftest.err conftest.$ac_objext \
37703 conftest$ac_exeext conftest.$ac_ext
37705 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37706 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37707 if test $ac_cv_func_crypt = yes; then
37712 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37713 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37714 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37717 ac_check_lib_save_LIBS=$LIBS
37718 LIBS="-lcrypt $LIBS"
37719 cat >conftest.$ac_ext <<_ACEOF
37722 cat confdefs.h >>conftest.$ac_ext
37723 cat >>conftest.$ac_ext <<_ACEOF
37724 /* end confdefs.h. */
37726 /* Override any gcc2 internal prototype to avoid an error. */
37730 /* We use char because int might match the return type of a gcc2
37731 builtin and then its argument prototype would still apply. */
37741 rm -f conftest.$ac_objext conftest$ac_exeext
37742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37743 (eval $ac_link) 2>conftest.er1
37745 grep -v '^ *+' conftest.er1 >conftest.err
37747 cat conftest.err >&5
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); } &&
37750 { ac_try='test -z "$ac_c_werror_flag"
37751 || test ! -s conftest.err'
37752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753 (eval $ac_try) 2>&5
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); }; } &&
37757 { ac_try='test -s conftest$ac_exeext'
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; }; then
37763 ac_cv_lib_crypt_crypt=yes
37765 echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37768 ac_cv_lib_crypt_crypt=no
37770 rm -f conftest.err conftest.$ac_objext \
37771 conftest$ac_exeext conftest.$ac_ext
37772 LIBS=$ac_check_lib_save_LIBS
37774 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37775 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37776 if test $ac_cv_lib_crypt_crypt = yes; then
37777 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37788 if test $have_crypt = yes ; then
37790 cat >>confdefs.h <<\_ACEOF
37791 #define HAVE_CRYPT 1
37795 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37796 echo "$as_me: WARNING: could not find crypt" >&2;}
37797 if test $ol_enable_crypt = yes ; then
37798 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37799 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37800 { (exit 1); exit 1; }; }
37803 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37804 echo "$as_me: WARNING: disabling crypt support" >&2;}
37809 if test $ol_enable_proctitle != no ; then
37810 echo "$as_me:$LINENO: checking for setproctitle" >&5
37811 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37812 if test "${ac_cv_func_setproctitle+set}" = set; then
37813 echo $ECHO_N "(cached) $ECHO_C" >&6
37815 cat >conftest.$ac_ext <<_ACEOF
37818 cat confdefs.h >>conftest.$ac_ext
37819 cat >>conftest.$ac_ext <<_ACEOF
37820 /* end confdefs.h. */
37821 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37823 #define setproctitle innocuous_setproctitle
37825 /* System header to define __stub macros and hopefully few prototypes,
37826 which can conflict with char setproctitle (); below.
37827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37828 <limits.h> exists even on freestanding compilers. */
37831 # include <limits.h>
37833 # include <assert.h>
37836 #undef setproctitle
37838 /* Override any gcc2 internal prototype to avoid an error. */
37843 /* We use char because int might match the return type of a gcc2
37844 builtin and then its argument prototype would still apply. */
37845 char setproctitle ();
37846 /* The GNU C library defines this for functions which it implements
37847 to always fail with ENOSYS. Some functions are actually named
37848 something starting with __ and the normal name is an alias. */
37849 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37852 char (*f) () = setproctitle;
37861 return f != setproctitle;
37866 rm -f conftest.$ac_objext conftest$ac_exeext
37867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37868 (eval $ac_link) 2>conftest.er1
37870 grep -v '^ *+' conftest.er1 >conftest.err
37872 cat conftest.err >&5
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); } &&
37875 { ac_try='test -z "$ac_c_werror_flag"
37876 || test ! -s conftest.err'
37877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37878 (eval $ac_try) 2>&5
37880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881 (exit $ac_status); }; } &&
37882 { ac_try='test -s conftest$ac_exeext'
37883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37884 (eval $ac_try) 2>&5
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); }; }; then
37888 ac_cv_func_setproctitle=yes
37890 echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37893 ac_cv_func_setproctitle=no
37895 rm -f conftest.err conftest.$ac_objext \
37896 conftest$ac_exeext conftest.$ac_ext
37898 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37899 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37900 if test $ac_cv_func_setproctitle = yes; then
37901 have_setproctitle=yes
37904 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37905 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37906 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37909 ac_check_lib_save_LIBS=$LIBS
37910 LIBS="-lutil $LIBS"
37911 cat >conftest.$ac_ext <<_ACEOF
37914 cat confdefs.h >>conftest.$ac_ext
37915 cat >>conftest.$ac_ext <<_ACEOF
37916 /* end confdefs.h. */
37918 /* Override any gcc2 internal prototype to avoid an error. */
37922 /* We use char because int might match the return type of a gcc2
37923 builtin and then its argument prototype would still apply. */
37924 char setproctitle ();
37933 rm -f conftest.$ac_objext conftest$ac_exeext
37934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37935 (eval $ac_link) 2>conftest.er1
37937 grep -v '^ *+' conftest.er1 >conftest.err
37939 cat conftest.err >&5
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); } &&
37942 { ac_try='test -z "$ac_c_werror_flag"
37943 || test ! -s conftest.err'
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; } &&
37949 { ac_try='test -s conftest$ac_exeext'
37950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951 (eval $ac_try) 2>&5
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); }; }; then
37955 ac_cv_lib_util_setproctitle=yes
37957 echo "$as_me: failed program was:" >&5
37958 sed 's/^/| /' conftest.$ac_ext >&5
37960 ac_cv_lib_util_setproctitle=no
37962 rm -f conftest.err conftest.$ac_objext \
37963 conftest$ac_exeext conftest.$ac_ext
37964 LIBS=$ac_check_lib_save_LIBS
37966 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37967 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37968 if test $ac_cv_lib_util_setproctitle = yes; then
37969 have_setproctitle=yes
37970 LUTIL_LIBS="$LUTIL_LIBS -lutil"
37972 have_setproctitle=no
37974 "setproctitle.$ac_objext" | \
37975 *" setproctitle.$ac_objext" | \
37976 "setproctitle.$ac_objext "* | \
37977 *" setproctitle.$ac_objext "* ) ;;
37978 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37981 LIBSRCS="$LIBSRCS setproctitle.c"
37987 if test $have_setproctitle = yes ; then
37989 cat >>confdefs.h <<\_ACEOF
37990 #define HAVE_SETPROCTITLE 1
37996 if test $ol_enable_slp != no ; then
37998 for ac_header in slp.h
38000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38002 echo "$as_me:$LINENO: checking for $ac_header" >&5
38003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38005 echo $ECHO_N "(cached) $ECHO_C" >&6
38007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38010 # Is the header compilable?
38011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38019 $ac_includes_default
38020 #include <$ac_header>
38022 rm -f conftest.$ac_objext
38023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38024 (eval $ac_compile) 2>conftest.er1
38026 grep -v '^ *+' conftest.er1 >conftest.err
38028 cat conftest.err >&5
38029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030 (exit $ac_status); } &&
38031 { ac_try='test -z "$ac_c_werror_flag"
38032 || test ! -s conftest.err'
38033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38034 (eval $ac_try) 2>&5
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); }; } &&
38038 { ac_try='test -s conftest.$ac_objext'
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; }; then
38044 ac_header_compiler=yes
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38049 ac_header_compiler=no
38051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38053 echo "${ECHO_T}$ac_header_compiler" >&6
38055 # Is the header present?
38056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38058 cat >conftest.$ac_ext <<_ACEOF
38061 cat confdefs.h >>conftest.$ac_ext
38062 cat >>conftest.$ac_ext <<_ACEOF
38063 /* end confdefs.h. */
38064 #include <$ac_header>
38066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38069 grep -v '^ *+' conftest.er1 >conftest.err
38071 cat conftest.err >&5
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); } >/dev/null; then
38074 if test -s conftest.err; then
38075 ac_cpp_err=$ac_c_preproc_warn_flag
38076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38083 if test -z "$ac_cpp_err"; then
38084 ac_header_preproc=yes
38086 echo "$as_me: failed program was:" >&5
38087 sed 's/^/| /' conftest.$ac_ext >&5
38089 ac_header_preproc=no
38091 rm -f conftest.err conftest.$ac_ext
38092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38093 echo "${ECHO_T}$ac_header_preproc" >&6
38095 # So? What about this header?
38096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38102 ac_header_preproc=yes
38105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38119 ## --------------------------------------------- ##
38120 ## Report this to <http://www.openldap.org/its/> ##
38121 ## --------------------------------------------- ##
38124 sed "s/^/$as_me: WARNING: /" >&2
38127 echo "$as_me:$LINENO: checking for $ac_header" >&5
38128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38130 echo $ECHO_N "(cached) $ECHO_C" >&6
38132 eval "$as_ac_Header=\$ac_header_preproc"
38134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38139 cat >>confdefs.h <<_ACEOF
38140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38148 if test $ac_cv_header_slp_h = yes ; then
38149 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38150 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38151 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38152 echo $ECHO_N "(cached) $ECHO_C" >&6
38154 ac_check_lib_save_LIBS=$LIBS
38156 cat >conftest.$ac_ext <<_ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h. */
38163 /* Override any gcc2 internal prototype to avoid an error. */
38167 /* We use char because int might match the return type of a gcc2
38168 builtin and then its argument prototype would still apply. */
38178 rm -f conftest.$ac_objext conftest$ac_exeext
38179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38180 (eval $ac_link) 2>conftest.er1
38182 grep -v '^ *+' conftest.er1 >conftest.err
38184 cat conftest.err >&5
38185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186 (exit $ac_status); } &&
38187 { ac_try='test -z "$ac_c_werror_flag"
38188 || test ! -s conftest.err'
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; } &&
38194 { ac_try='test -s conftest$ac_exeext'
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 ac_cv_lib_slp_SLPOpen=yes
38202 echo "$as_me: failed program was:" >&5
38203 sed 's/^/| /' conftest.$ac_ext >&5
38205 ac_cv_lib_slp_SLPOpen=no
38207 rm -f conftest.err conftest.$ac_objext \
38208 conftest$ac_exeext conftest.$ac_ext
38209 LIBS=$ac_check_lib_save_LIBS
38211 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38212 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38213 if test $ac_cv_lib_slp_SLPOpen = yes; then
38219 if test $have_slp = yes ; then
38221 cat >>confdefs.h <<\_ACEOF
38225 SLAPD_SLP_LIBS=-lslp
38228 elif test $ol_enable_slp = yes ; then
38229 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38230 echo "$as_me: error: SLP not found" >&2;}
38231 { (exit 1); exit 1; }; }
38235 if test "$ol_with_multiple_precision" != "no" ; then
38241 for ac_header in openssl/bn.h bn.h
38243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38245 echo "$as_me:$LINENO: checking for $ac_header" >&5
38246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38248 echo $ECHO_N "(cached) $ECHO_C" >&6
38250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38253 # Is the header compilable?
38254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38256 cat >conftest.$ac_ext <<_ACEOF
38259 cat confdefs.h >>conftest.$ac_ext
38260 cat >>conftest.$ac_ext <<_ACEOF
38261 /* end confdefs.h. */
38262 $ac_includes_default
38263 #include <$ac_header>
38265 rm -f conftest.$ac_objext
38266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38267 (eval $ac_compile) 2>conftest.er1
38269 grep -v '^ *+' conftest.er1 >conftest.err
38271 cat conftest.err >&5
38272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38273 (exit $ac_status); } &&
38274 { ac_try='test -z "$ac_c_werror_flag"
38275 || test ! -s conftest.err'
38276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38277 (eval $ac_try) 2>&5
38279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280 (exit $ac_status); }; } &&
38281 { ac_try='test -s conftest.$ac_objext'
38282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38283 (eval $ac_try) 2>&5
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); }; }; then
38287 ac_header_compiler=yes
38289 echo "$as_me: failed program was:" >&5
38290 sed 's/^/| /' conftest.$ac_ext >&5
38292 ac_header_compiler=no
38294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38296 echo "${ECHO_T}$ac_header_compiler" >&6
38298 # Is the header present?
38299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38301 cat >conftest.$ac_ext <<_ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h. */
38307 #include <$ac_header>
38309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38312 grep -v '^ *+' conftest.er1 >conftest.err
38314 cat conftest.err >&5
38315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); } >/dev/null; then
38317 if test -s conftest.err; then
38318 ac_cpp_err=$ac_c_preproc_warn_flag
38319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38326 if test -z "$ac_cpp_err"; then
38327 ac_header_preproc=yes
38329 echo "$as_me: failed program was:" >&5
38330 sed 's/^/| /' conftest.$ac_ext >&5
38332 ac_header_preproc=no
38334 rm -f conftest.err conftest.$ac_ext
38335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38336 echo "${ECHO_T}$ac_header_preproc" >&6
38338 # So? What about this header?
38339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38345 ac_header_preproc=yes
38348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38362 ## --------------------------------------------- ##
38363 ## Report this to <http://www.openldap.org/its/> ##
38364 ## --------------------------------------------- ##
38367 sed "s/^/$as_me: WARNING: /" >&2
38370 echo "$as_me:$LINENO: checking for $ac_header" >&5
38371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38373 echo $ECHO_N "(cached) $ECHO_C" >&6
38375 eval "$as_ac_Header=\$ac_header_preproc"
38377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38382 cat >>confdefs.h <<_ACEOF
38383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38392 for ac_header in openssl/crypto.h crypto.h
38394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38396 echo "$as_me:$LINENO: checking for $ac_header" >&5
38397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38399 echo $ECHO_N "(cached) $ECHO_C" >&6
38401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38404 # Is the header compilable?
38405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38407 cat >conftest.$ac_ext <<_ACEOF
38410 cat confdefs.h >>conftest.$ac_ext
38411 cat >>conftest.$ac_ext <<_ACEOF
38412 /* end confdefs.h. */
38413 $ac_includes_default
38414 #include <$ac_header>
38416 rm -f conftest.$ac_objext
38417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38418 (eval $ac_compile) 2>conftest.er1
38420 grep -v '^ *+' conftest.er1 >conftest.err
38422 cat conftest.err >&5
38423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); } &&
38425 { ac_try='test -z "$ac_c_werror_flag"
38426 || test ! -s conftest.err'
38427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38428 (eval $ac_try) 2>&5
38430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38431 (exit $ac_status); }; } &&
38432 { ac_try='test -s conftest.$ac_objext'
38433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434 (eval $ac_try) 2>&5
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); }; }; then
38438 ac_header_compiler=yes
38440 echo "$as_me: failed program was:" >&5
38441 sed 's/^/| /' conftest.$ac_ext >&5
38443 ac_header_compiler=no
38445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38447 echo "${ECHO_T}$ac_header_compiler" >&6
38449 # Is the header present?
38450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38452 cat >conftest.$ac_ext <<_ACEOF
38455 cat confdefs.h >>conftest.$ac_ext
38456 cat >>conftest.$ac_ext <<_ACEOF
38457 /* end confdefs.h. */
38458 #include <$ac_header>
38460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38463 grep -v '^ *+' conftest.er1 >conftest.err
38465 cat conftest.err >&5
38466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467 (exit $ac_status); } >/dev/null; then
38468 if test -s conftest.err; then
38469 ac_cpp_err=$ac_c_preproc_warn_flag
38470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38477 if test -z "$ac_cpp_err"; then
38478 ac_header_preproc=yes
38480 echo "$as_me: failed program was:" >&5
38481 sed 's/^/| /' conftest.$ac_ext >&5
38483 ac_header_preproc=no
38485 rm -f conftest.err conftest.$ac_ext
38486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38487 echo "${ECHO_T}$ac_header_preproc" >&6
38489 # So? What about this header?
38490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38496 ac_header_preproc=yes
38499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38513 ## --------------------------------------------- ##
38514 ## Report this to <http://www.openldap.org/its/> ##
38515 ## --------------------------------------------- ##
38518 sed "s/^/$as_me: WARNING: /" >&2
38521 echo "$as_me:$LINENO: checking for $ac_header" >&5
38522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38524 echo $ECHO_N "(cached) $ECHO_C" >&6
38526 eval "$as_ac_Header=\$ac_header_preproc"
38528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38533 cat >>confdefs.h <<_ACEOF
38534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38542 for ac_header in gmp.h
38544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38546 echo "$as_me:$LINENO: checking for $ac_header" >&5
38547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38549 echo $ECHO_N "(cached) $ECHO_C" >&6
38551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38554 # Is the header compilable?
38555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38557 cat >conftest.$ac_ext <<_ACEOF
38560 cat confdefs.h >>conftest.$ac_ext
38561 cat >>conftest.$ac_ext <<_ACEOF
38562 /* end confdefs.h. */
38563 $ac_includes_default
38564 #include <$ac_header>
38566 rm -f conftest.$ac_objext
38567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38568 (eval $ac_compile) 2>conftest.er1
38570 grep -v '^ *+' conftest.er1 >conftest.err
38572 cat conftest.err >&5
38573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38574 (exit $ac_status); } &&
38575 { ac_try='test -z "$ac_c_werror_flag"
38576 || test ! -s conftest.err'
38577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38578 (eval $ac_try) 2>&5
38580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); }; } &&
38582 { ac_try='test -s conftest.$ac_objext'
38583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584 (eval $ac_try) 2>&5
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); }; }; then
38588 ac_header_compiler=yes
38590 echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38593 ac_header_compiler=no
38595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38597 echo "${ECHO_T}$ac_header_compiler" >&6
38599 # Is the header present?
38600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38602 cat >conftest.$ac_ext <<_ACEOF
38605 cat confdefs.h >>conftest.$ac_ext
38606 cat >>conftest.$ac_ext <<_ACEOF
38607 /* end confdefs.h. */
38608 #include <$ac_header>
38610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38613 grep -v '^ *+' conftest.er1 >conftest.err
38615 cat conftest.err >&5
38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); } >/dev/null; then
38618 if test -s conftest.err; then
38619 ac_cpp_err=$ac_c_preproc_warn_flag
38620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38627 if test -z "$ac_cpp_err"; then
38628 ac_header_preproc=yes
38630 echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38633 ac_header_preproc=no
38635 rm -f conftest.err conftest.$ac_ext
38636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38637 echo "${ECHO_T}$ac_header_preproc" >&6
38639 # So? What about this header?
38640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38646 ac_header_preproc=yes
38649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38663 ## --------------------------------------------- ##
38664 ## Report this to <http://www.openldap.org/its/> ##
38665 ## --------------------------------------------- ##
38668 sed "s/^/$as_me: WARNING: /" >&2
38671 echo "$as_me:$LINENO: checking for $ac_header" >&5
38672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38674 echo $ECHO_N "(cached) $ECHO_C" >&6
38676 eval "$as_ac_Header=\$ac_header_preproc"
38678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38683 cat >>confdefs.h <<_ACEOF
38684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38692 if test "$ol_with_tls" = "found" ; then
38694 ol_have_crypto_h=no
38696 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38697 test "$ac_cv_header_bn_h" = "yes" ; then
38701 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38702 test "$ac_cv_header_crypto_h" = "yes" ; then
38703 ol_have_crypto_h=yes
38706 if test "$ol_have_bn_h" = "yes" &&
38707 test "$ol_have_crypto_h" = "yes" ; then
38712 if test $ac_cv_header_gmp_h = yes ; then
38713 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38714 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38715 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38716 echo $ECHO_N "(cached) $ECHO_C" >&6
38718 ac_check_lib_save_LIBS=$LIBS
38720 cat >conftest.$ac_ext <<_ACEOF
38723 cat confdefs.h >>conftest.$ac_ext
38724 cat >>conftest.$ac_ext <<_ACEOF
38725 /* end confdefs.h. */
38727 /* Override any gcc2 internal prototype to avoid an error. */
38731 /* We use char because int might match the return type of a gcc2
38732 builtin and then its argument prototype would still apply. */
38733 char __gmpz_add_ui ();
38742 rm -f conftest.$ac_objext conftest$ac_exeext
38743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38744 (eval $ac_link) 2>conftest.er1
38746 grep -v '^ *+' conftest.er1 >conftest.err
38748 cat conftest.err >&5
38749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750 (exit $ac_status); } &&
38751 { ac_try='test -z "$ac_c_werror_flag"
38752 || test ! -s conftest.err'
38753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38754 (eval $ac_try) 2>&5
38756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38757 (exit $ac_status); }; } &&
38758 { ac_try='test -s conftest$ac_exeext'
38759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38760 (eval $ac_try) 2>&5
38762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763 (exit $ac_status); }; }; then
38764 ac_cv_lib_gmp___gmpz_add_ui=yes
38766 echo "$as_me: failed program was:" >&5
38767 sed 's/^/| /' conftest.$ac_ext >&5
38769 ac_cv_lib_gmp___gmpz_add_ui=no
38771 rm -f conftest.err conftest.$ac_objext \
38772 conftest$ac_exeext conftest.$ac_ext
38773 LIBS=$ac_check_lib_save_LIBS
38775 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38776 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38777 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38783 if test $have_gmp = yes ; then
38788 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38789 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38791 ol_mp_support="none"
38792 case "$ol_with_multiple_precision" in
38794 if test "$ol_have_bignum" = "yes" ; then
38795 ol_mp_support="bignum"
38797 if test "$ol_have_gmp" = "yes" ; then
38798 ol_mp_support="gmp"
38803 if test "$ol_have_bignum" != "yes" ; then
38804 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38805 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38806 { (exit 1); exit 1; }; }
38808 ol_mp_support="bignum"
38811 if test "$ol_have_gmp" != "yes" ; then
38812 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38813 echo "$as_me: error: GMP not available" >&2;}
38814 { (exit 1); exit 1; }; }
38816 ol_mp_support="gmp"
38819 if test "$ol_have_bignum" = "yes" ; then
38820 ol_mp_support="bignum"
38821 elif test "$ol_have_gmp" = "yes" ; then
38822 ol_mp_support="gmp"
38824 { { echo "$as_me:$LINENO: error: not available" >&5
38825 echo "$as_me: error: not available" >&2;}
38826 { (exit 1); exit 1; }; }
38831 case "$ol_mp_support" in
38834 cat >>confdefs.h <<\_ACEOF
38835 #define HAVE_BIGNUM 1
38841 cat >>confdefs.h <<\_ACEOF
38845 SLAPD_GMP_LIBS=-lgmp
38851 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38852 echo "${ECHO_T}$ol_mp_support" >&6
38856 echo "$as_me:$LINENO: checking for mode_t" >&5
38857 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38858 if test "${ac_cv_type_mode_t+set}" = set; then
38859 echo $ECHO_N "(cached) $ECHO_C" >&6
38861 cat >conftest.$ac_ext <<_ACEOF
38864 cat confdefs.h >>conftest.$ac_ext
38865 cat >>conftest.$ac_ext <<_ACEOF
38866 /* end confdefs.h. */
38867 $ac_includes_default
38873 if (sizeof (mode_t))
38879 rm -f conftest.$ac_objext
38880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38881 (eval $ac_compile) 2>conftest.er1
38883 grep -v '^ *+' conftest.er1 >conftest.err
38885 cat conftest.err >&5
38886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887 (exit $ac_status); } &&
38888 { ac_try='test -z "$ac_c_werror_flag"
38889 || test ! -s conftest.err'
38890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38891 (eval $ac_try) 2>&5
38893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); }; } &&
38895 { ac_try='test -s conftest.$ac_objext'
38896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38897 (eval $ac_try) 2>&5
38899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38900 (exit $ac_status); }; }; then
38901 ac_cv_type_mode_t=yes
38903 echo "$as_me: failed program was:" >&5
38904 sed 's/^/| /' conftest.$ac_ext >&5
38906 ac_cv_type_mode_t=no
38908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38910 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38911 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38912 if test $ac_cv_type_mode_t = yes; then
38916 cat >>confdefs.h <<_ACEOF
38922 echo "$as_me:$LINENO: checking for off_t" >&5
38923 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38924 if test "${ac_cv_type_off_t+set}" = set; then
38925 echo $ECHO_N "(cached) $ECHO_C" >&6
38927 cat >conftest.$ac_ext <<_ACEOF
38930 cat confdefs.h >>conftest.$ac_ext
38931 cat >>conftest.$ac_ext <<_ACEOF
38932 /* end confdefs.h. */
38933 $ac_includes_default
38939 if (sizeof (off_t))
38945 rm -f conftest.$ac_objext
38946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38947 (eval $ac_compile) 2>conftest.er1
38949 grep -v '^ *+' conftest.er1 >conftest.err
38951 cat conftest.err >&5
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); } &&
38954 { ac_try='test -z "$ac_c_werror_flag"
38955 || test ! -s conftest.err'
38956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38957 (eval $ac_try) 2>&5
38959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38960 (exit $ac_status); }; } &&
38961 { ac_try='test -s conftest.$ac_objext'
38962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38963 (eval $ac_try) 2>&5
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); }; }; then
38967 ac_cv_type_off_t=yes
38969 echo "$as_me: failed program was:" >&5
38970 sed 's/^/| /' conftest.$ac_ext >&5
38972 ac_cv_type_off_t=no
38974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38976 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38977 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38978 if test $ac_cv_type_off_t = yes; then
38982 cat >>confdefs.h <<_ACEOF
38988 echo "$as_me:$LINENO: checking for pid_t" >&5
38989 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38990 if test "${ac_cv_type_pid_t+set}" = set; then
38991 echo $ECHO_N "(cached) $ECHO_C" >&6
38993 cat >conftest.$ac_ext <<_ACEOF
38996 cat confdefs.h >>conftest.$ac_ext
38997 cat >>conftest.$ac_ext <<_ACEOF
38998 /* end confdefs.h. */
38999 $ac_includes_default
39005 if (sizeof (pid_t))
39011 rm -f conftest.$ac_objext
39012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39013 (eval $ac_compile) 2>conftest.er1
39015 grep -v '^ *+' conftest.er1 >conftest.err
39017 cat conftest.err >&5
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); } &&
39020 { ac_try='test -z "$ac_c_werror_flag"
39021 || test ! -s conftest.err'
39022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39023 (eval $ac_try) 2>&5
39025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026 (exit $ac_status); }; } &&
39027 { ac_try='test -s conftest.$ac_objext'
39028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39029 (eval $ac_try) 2>&5
39031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39032 (exit $ac_status); }; }; then
39033 ac_cv_type_pid_t=yes
39035 echo "$as_me: failed program was:" >&5
39036 sed 's/^/| /' conftest.$ac_ext >&5
39038 ac_cv_type_pid_t=no
39040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39042 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39043 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39044 if test $ac_cv_type_pid_t = yes; then
39048 cat >>confdefs.h <<_ACEOF
39054 echo "$as_me:$LINENO: checking for ssize_t" >&5
39055 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39056 if test "${ac_cv_type_ssize_t+set}" = set; then
39057 echo $ECHO_N "(cached) $ECHO_C" >&6
39059 cat >conftest.$ac_ext <<_ACEOF
39062 cat confdefs.h >>conftest.$ac_ext
39063 cat >>conftest.$ac_ext <<_ACEOF
39064 /* end confdefs.h. */
39065 $ac_includes_default
39071 if (sizeof (ssize_t))
39077 rm -f conftest.$ac_objext
39078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39079 (eval $ac_compile) 2>conftest.er1
39081 grep -v '^ *+' conftest.er1 >conftest.err
39083 cat conftest.err >&5
39084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085 (exit $ac_status); } &&
39086 { ac_try='test -z "$ac_c_werror_flag"
39087 || test ! -s conftest.err'
39088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39089 (eval $ac_try) 2>&5
39091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092 (exit $ac_status); }; } &&
39093 { ac_try='test -s conftest.$ac_objext'
39094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39095 (eval $ac_try) 2>&5
39097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098 (exit $ac_status); }; }; then
39099 ac_cv_type_ssize_t=yes
39101 echo "$as_me: failed program was:" >&5
39102 sed 's/^/| /' conftest.$ac_ext >&5
39104 ac_cv_type_ssize_t=no
39106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39108 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39109 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39110 if test $ac_cv_type_ssize_t = yes; then
39114 cat >>confdefs.h <<_ACEOF
39115 #define ssize_t signed int
39120 echo "$as_me:$LINENO: checking for caddr_t" >&5
39121 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39122 if test "${ac_cv_type_caddr_t+set}" = set; then
39123 echo $ECHO_N "(cached) $ECHO_C" >&6
39125 cat >conftest.$ac_ext <<_ACEOF
39128 cat confdefs.h >>conftest.$ac_ext
39129 cat >>conftest.$ac_ext <<_ACEOF
39130 /* end confdefs.h. */
39131 $ac_includes_default
39137 if (sizeof (caddr_t))
39143 rm -f conftest.$ac_objext
39144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39145 (eval $ac_compile) 2>conftest.er1
39147 grep -v '^ *+' conftest.er1 >conftest.err
39149 cat conftest.err >&5
39150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39151 (exit $ac_status); } &&
39152 { ac_try='test -z "$ac_c_werror_flag"
39153 || test ! -s conftest.err'
39154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155 (eval $ac_try) 2>&5
39157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158 (exit $ac_status); }; } &&
39159 { ac_try='test -s conftest.$ac_objext'
39160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39161 (eval $ac_try) 2>&5
39163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39164 (exit $ac_status); }; }; then
39165 ac_cv_type_caddr_t=yes
39167 echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39170 ac_cv_type_caddr_t=no
39172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39174 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39175 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39176 if test $ac_cv_type_caddr_t = yes; then
39180 cat >>confdefs.h <<_ACEOF
39181 #define caddr_t char *
39186 echo "$as_me:$LINENO: checking for size_t" >&5
39187 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39188 if test "${ac_cv_type_size_t+set}" = set; then
39189 echo $ECHO_N "(cached) $ECHO_C" >&6
39191 cat >conftest.$ac_ext <<_ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h. */
39197 $ac_includes_default
39203 if (sizeof (size_t))
39209 rm -f conftest.$ac_objext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211 (eval $ac_compile) 2>conftest.er1
39213 grep -v '^ *+' conftest.er1 >conftest.err
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } &&
39218 { ac_try='test -z "$ac_c_werror_flag"
39219 || test ! -s conftest.err'
39220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221 (eval $ac_try) 2>&5
39223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); }; } &&
39225 { ac_try='test -s conftest.$ac_objext'
39226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39227 (eval $ac_try) 2>&5
39229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230 (exit $ac_status); }; }; then
39231 ac_cv_type_size_t=yes
39233 echo "$as_me: failed program was:" >&5
39234 sed 's/^/| /' conftest.$ac_ext >&5
39236 ac_cv_type_size_t=no
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39240 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39241 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39242 if test $ac_cv_type_size_t = yes; then
39246 cat >>confdefs.h <<_ACEOF
39247 #define size_t unsigned
39253 echo "$as_me:$LINENO: checking for long long" >&5
39254 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39255 if test "${ac_cv_type_long_long+set}" = set; then
39256 echo $ECHO_N "(cached) $ECHO_C" >&6
39258 cat >conftest.$ac_ext <<_ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h. */
39264 $ac_includes_default
39268 if ((long long *) 0)
39270 if (sizeof (long long))
39276 rm -f conftest.$ac_objext
39277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39278 (eval $ac_compile) 2>conftest.er1
39280 grep -v '^ *+' conftest.er1 >conftest.err
39282 cat conftest.err >&5
39283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); } &&
39285 { ac_try='test -z "$ac_c_werror_flag"
39286 || test ! -s conftest.err'
39287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39288 (eval $ac_try) 2>&5
39290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39291 (exit $ac_status); }; } &&
39292 { ac_try='test -s conftest.$ac_objext'
39293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39294 (eval $ac_try) 2>&5
39296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39297 (exit $ac_status); }; }; then
39298 ac_cv_type_long_long=yes
39300 echo "$as_me: failed program was:" >&5
39301 sed 's/^/| /' conftest.$ac_ext >&5
39303 ac_cv_type_long_long=no
39305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39307 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39308 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39309 if test $ac_cv_type_long_long = yes; then
39311 cat >>confdefs.h <<_ACEOF
39312 #define HAVE_LONG_LONG 1
39318 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39319 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39320 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39321 echo $ECHO_N "(cached) $ECHO_C" >&6
39323 cat >conftest.$ac_ext <<_ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h. */
39329 $ac_includes_default
39333 if ((ptrdiff_t *) 0)
39335 if (sizeof (ptrdiff_t))
39341 rm -f conftest.$ac_objext
39342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39343 (eval $ac_compile) 2>conftest.er1
39345 grep -v '^ *+' conftest.er1 >conftest.err
39347 cat conftest.err >&5
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); } &&
39350 { ac_try='test -z "$ac_c_werror_flag"
39351 || test ! -s conftest.err'
39352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353 (eval $ac_try) 2>&5
39355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356 (exit $ac_status); }; } &&
39357 { ac_try='test -s conftest.$ac_objext'
39358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359 (eval $ac_try) 2>&5
39361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362 (exit $ac_status); }; }; then
39363 ac_cv_type_ptrdiff_t=yes
39365 echo "$as_me: failed program was:" >&5
39366 sed 's/^/| /' conftest.$ac_ext >&5
39368 ac_cv_type_ptrdiff_t=no
39370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39372 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39373 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39374 if test $ac_cv_type_ptrdiff_t = yes; then
39376 cat >>confdefs.h <<_ACEOF
39377 #define HAVE_PTRDIFF_T 1
39384 echo "$as_me:$LINENO: checking for socklen_t" >&5
39385 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39386 if test "${ac_cv_type_socklen_t+set}" = set; then
39387 echo $ECHO_N "(cached) $ECHO_C" >&6
39389 cat >conftest.$ac_ext <<_ACEOF
39392 cat confdefs.h >>conftest.$ac_ext
39393 cat >>conftest.$ac_ext <<_ACEOF
39394 /* end confdefs.h. */
39395 $ac_includes_default
39396 #ifdef HAVE_SYS_SOCKET_H
39397 #include <sys/socket.h>
39404 if ((socklen_t *) 0)
39406 if (sizeof (socklen_t))
39412 rm -f conftest.$ac_objext
39413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39414 (eval $ac_compile) 2>conftest.er1
39416 grep -v '^ *+' conftest.er1 >conftest.err
39418 cat conftest.err >&5
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } &&
39421 { ac_try='test -z "$ac_c_werror_flag"
39422 || test ! -s conftest.err'
39423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39424 (eval $ac_try) 2>&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); }; } &&
39428 { ac_try='test -s conftest.$ac_objext'
39429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430 (eval $ac_try) 2>&5
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); }; }; then
39434 ac_cv_type_socklen_t=yes
39436 echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39439 ac_cv_type_socklen_t=no
39441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39443 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39444 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39445 if test $ac_cv_type_socklen_t = yes; then
39449 cat >>confdefs.h <<_ACEOF
39450 #define socklen_t int
39456 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39457 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39458 if test "${ac_cv_type_signal+set}" = set; then
39459 echo $ECHO_N "(cached) $ECHO_C" >&6
39461 cat >conftest.$ac_ext <<_ACEOF
39464 cat confdefs.h >>conftest.$ac_ext
39465 cat >>conftest.$ac_ext <<_ACEOF
39466 /* end confdefs.h. */
39467 #include <sys/types.h>
39468 #include <signal.h>
39473 extern "C" void (*signal (int, void (*)(int)))(int);
39475 void (*signal ()) ();
39486 rm -f conftest.$ac_objext
39487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39488 (eval $ac_compile) 2>conftest.er1
39490 grep -v '^ *+' conftest.er1 >conftest.err
39492 cat conftest.err >&5
39493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494 (exit $ac_status); } &&
39495 { ac_try='test -z "$ac_c_werror_flag"
39496 || test ! -s conftest.err'
39497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39498 (eval $ac_try) 2>&5
39500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501 (exit $ac_status); }; } &&
39502 { ac_try='test -s conftest.$ac_objext'
39503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39504 (eval $ac_try) 2>&5
39506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507 (exit $ac_status); }; }; then
39508 ac_cv_type_signal=void
39510 echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39513 ac_cv_type_signal=int
39515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39517 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39518 echo "${ECHO_T}$ac_cv_type_signal" >&6
39520 cat >>confdefs.h <<_ACEOF
39521 #define RETSIGTYPE $ac_cv_type_signal
39526 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39527 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39528 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39529 echo $ECHO_N "(cached) $ECHO_C" >&6
39531 cat >conftest.$ac_ext <<_ACEOF
39534 cat confdefs.h >>conftest.$ac_ext
39535 cat >>conftest.$ac_ext <<_ACEOF
39536 /* end confdefs.h. */
39537 $ac_includes_default
39538 #include <signal.h>
39544 if ((sig_atomic_t *) 0)
39546 if (sizeof (sig_atomic_t))
39552 rm -f conftest.$ac_objext
39553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39554 (eval $ac_compile) 2>conftest.er1
39556 grep -v '^ *+' conftest.er1 >conftest.err
39558 cat conftest.err >&5
39559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560 (exit $ac_status); } &&
39561 { ac_try='test -z "$ac_c_werror_flag"
39562 || test ! -s conftest.err'
39563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39564 (eval $ac_try) 2>&5
39566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567 (exit $ac_status); }; } &&
39568 { ac_try='test -s conftest.$ac_objext'
39569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39570 (eval $ac_try) 2>&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); }; }; then
39574 ac_cv_type_sig_atomic_t=yes
39576 echo "$as_me: failed program was:" >&5
39577 sed 's/^/| /' conftest.$ac_ext >&5
39579 ac_cv_type_sig_atomic_t=no
39581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39583 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39584 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39585 if test $ac_cv_type_sig_atomic_t = yes; then
39589 cat >>confdefs.h <<_ACEOF
39590 #define sig_atomic_t int
39596 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39597 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39598 if test "${ac_cv_type_uid_t+set}" = set; then
39599 echo $ECHO_N "(cached) $ECHO_C" >&6
39601 cat >conftest.$ac_ext <<_ACEOF
39604 cat confdefs.h >>conftest.$ac_ext
39605 cat >>conftest.$ac_ext <<_ACEOF
39606 /* end confdefs.h. */
39607 #include <sys/types.h>
39610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39611 $EGREP "uid_t" >/dev/null 2>&1; then
39612 ac_cv_type_uid_t=yes
39614 ac_cv_type_uid_t=no
39619 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39620 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39621 if test $ac_cv_type_uid_t = no; then
39623 cat >>confdefs.h <<\_ACEOF
39628 cat >>confdefs.h <<\_ACEOF
39635 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39636 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39637 if test "${ac_cv_header_time+set}" = set; then
39638 echo $ECHO_N "(cached) $ECHO_C" >&6
39640 cat >conftest.$ac_ext <<_ACEOF
39643 cat confdefs.h >>conftest.$ac_ext
39644 cat >>conftest.$ac_ext <<_ACEOF
39645 /* end confdefs.h. */
39646 #include <sys/types.h>
39647 #include <sys/time.h>
39653 if ((struct tm *) 0)
39659 rm -f conftest.$ac_objext
39660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39661 (eval $ac_compile) 2>conftest.er1
39663 grep -v '^ *+' conftest.er1 >conftest.err
39665 cat conftest.err >&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); } &&
39668 { ac_try='test -z "$ac_c_werror_flag"
39669 || test ! -s conftest.err'
39670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671 (eval $ac_try) 2>&5
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); }; } &&
39675 { ac_try='test -s conftest.$ac_objext'
39676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39677 (eval $ac_try) 2>&5
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); }; }; then
39681 ac_cv_header_time=yes
39683 echo "$as_me: failed program was:" >&5
39684 sed 's/^/| /' conftest.$ac_ext >&5
39686 ac_cv_header_time=no
39688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39690 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39691 echo "${ECHO_T}$ac_cv_header_time" >&6
39692 if test $ac_cv_header_time = yes; then
39694 cat >>confdefs.h <<\_ACEOF
39695 #define TIME_WITH_SYS_TIME 1
39700 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39701 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39702 if test "${ac_cv_struct_tm+set}" = set; then
39703 echo $ECHO_N "(cached) $ECHO_C" >&6
39705 cat >conftest.$ac_ext <<_ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39711 #include <sys/types.h>
39717 struct tm *tp; tp->tm_sec;
39722 rm -f conftest.$ac_objext
39723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39724 (eval $ac_compile) 2>conftest.er1
39726 grep -v '^ *+' conftest.er1 >conftest.err
39728 cat conftest.err >&5
39729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39730 (exit $ac_status); } &&
39731 { ac_try='test -z "$ac_c_werror_flag"
39732 || test ! -s conftest.err'
39733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39734 (eval $ac_try) 2>&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); }; } &&
39738 { ac_try='test -s conftest.$ac_objext'
39739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39740 (eval $ac_try) 2>&5
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); }; }; then
39744 ac_cv_struct_tm=time.h
39746 echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.$ac_ext >&5
39749 ac_cv_struct_tm=sys/time.h
39751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39753 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39754 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39755 if test $ac_cv_struct_tm = sys/time.h; then
39757 cat >>confdefs.h <<\_ACEOF
39758 #define TM_IN_SYS_TIME 1
39763 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39764 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39765 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39766 echo $ECHO_N "(cached) $ECHO_C" >&6
39768 cat >conftest.$ac_ext <<_ACEOF
39771 cat confdefs.h >>conftest.$ac_ext
39772 cat >>conftest.$ac_ext <<_ACEOF
39773 /* end confdefs.h. */
39774 $ac_includes_default
39778 static struct stat ac_aggr;
39779 if (ac_aggr.st_blksize)
39785 rm -f conftest.$ac_objext
39786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39787 (eval $ac_compile) 2>conftest.er1
39789 grep -v '^ *+' conftest.er1 >conftest.err
39791 cat conftest.err >&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); } &&
39794 { ac_try='test -z "$ac_c_werror_flag"
39795 || test ! -s conftest.err'
39796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39797 (eval $ac_try) 2>&5
39799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39800 (exit $ac_status); }; } &&
39801 { ac_try='test -s conftest.$ac_objext'
39802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39803 (eval $ac_try) 2>&5
39805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39806 (exit $ac_status); }; }; then
39807 ac_cv_member_struct_stat_st_blksize=yes
39809 echo "$as_me: failed program was:" >&5
39810 sed 's/^/| /' conftest.$ac_ext >&5
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39818 $ac_includes_default
39822 static struct stat ac_aggr;
39823 if (sizeof ac_aggr.st_blksize)
39829 rm -f conftest.$ac_objext
39830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39831 (eval $ac_compile) 2>conftest.er1
39833 grep -v '^ *+' conftest.er1 >conftest.err
39835 cat conftest.err >&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } &&
39838 { ac_try='test -z "$ac_c_werror_flag"
39839 || test ! -s conftest.err'
39840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841 (eval $ac_try) 2>&5
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; } &&
39845 { ac_try='test -s conftest.$ac_objext'
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; }; then
39851 ac_cv_member_struct_stat_st_blksize=yes
39853 echo "$as_me: failed program was:" >&5
39854 sed 's/^/| /' conftest.$ac_ext >&5
39856 ac_cv_member_struct_stat_st_blksize=no
39858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39863 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39864 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39866 cat >>confdefs.h <<_ACEOF
39867 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39873 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39874 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39875 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39876 echo $ECHO_N "(cached) $ECHO_C" >&6
39878 cat >conftest.$ac_ext <<_ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h. */
39884 $ac_includes_default
39890 static struct passwd ac_aggr;
39891 if (ac_aggr.pw_gecos)
39897 rm -f conftest.$ac_objext
39898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39899 (eval $ac_compile) 2>conftest.er1
39901 grep -v '^ *+' conftest.er1 >conftest.err
39903 cat conftest.err >&5
39904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905 (exit $ac_status); } &&
39906 { ac_try='test -z "$ac_c_werror_flag"
39907 || test ! -s conftest.err'
39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909 (eval $ac_try) 2>&5
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; } &&
39913 { ac_try='test -s conftest.$ac_objext'
39914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39915 (eval $ac_try) 2>&5
39917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918 (exit $ac_status); }; }; then
39919 ac_cv_member_struct_passwd_pw_gecos=yes
39921 echo "$as_me: failed program was:" >&5
39922 sed 's/^/| /' conftest.$ac_ext >&5
39924 cat >conftest.$ac_ext <<_ACEOF
39927 cat confdefs.h >>conftest.$ac_ext
39928 cat >>conftest.$ac_ext <<_ACEOF
39929 /* end confdefs.h. */
39930 $ac_includes_default
39936 static struct passwd ac_aggr;
39937 if (sizeof ac_aggr.pw_gecos)
39943 rm -f conftest.$ac_objext
39944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39945 (eval $ac_compile) 2>conftest.er1
39947 grep -v '^ *+' conftest.er1 >conftest.err
39949 cat conftest.err >&5
39950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951 (exit $ac_status); } &&
39952 { ac_try='test -z "$ac_c_werror_flag"
39953 || test ! -s conftest.err'
39954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39955 (eval $ac_try) 2>&5
39957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958 (exit $ac_status); }; } &&
39959 { ac_try='test -s conftest.$ac_objext'
39960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39961 (eval $ac_try) 2>&5
39963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964 (exit $ac_status); }; }; then
39965 ac_cv_member_struct_passwd_pw_gecos=yes
39967 echo "$as_me: failed program was:" >&5
39968 sed 's/^/| /' conftest.$ac_ext >&5
39970 ac_cv_member_struct_passwd_pw_gecos=no
39972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39976 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39977 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39978 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39980 cat >>confdefs.h <<_ACEOF
39981 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39987 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39988 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39989 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39990 echo $ECHO_N "(cached) $ECHO_C" >&6
39992 cat >conftest.$ac_ext <<_ACEOF
39995 cat confdefs.h >>conftest.$ac_ext
39996 cat >>conftest.$ac_ext <<_ACEOF
39997 /* end confdefs.h. */
39998 $ac_includes_default
40004 static struct passwd ac_aggr;
40005 if (ac_aggr.pw_passwd)
40011 rm -f conftest.$ac_objext
40012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40013 (eval $ac_compile) 2>conftest.er1
40015 grep -v '^ *+' conftest.er1 >conftest.err
40017 cat conftest.err >&5
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); } &&
40020 { ac_try='test -z "$ac_c_werror_flag"
40021 || test ! -s conftest.err'
40022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40023 (eval $ac_try) 2>&5
40025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); }; } &&
40027 { ac_try='test -s conftest.$ac_objext'
40028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40029 (eval $ac_try) 2>&5
40031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); }; }; then
40033 ac_cv_member_struct_passwd_pw_passwd=yes
40035 echo "$as_me: failed program was:" >&5
40036 sed 's/^/| /' conftest.$ac_ext >&5
40038 cat >conftest.$ac_ext <<_ACEOF
40041 cat confdefs.h >>conftest.$ac_ext
40042 cat >>conftest.$ac_ext <<_ACEOF
40043 /* end confdefs.h. */
40044 $ac_includes_default
40050 static struct passwd ac_aggr;
40051 if (sizeof ac_aggr.pw_passwd)
40057 rm -f conftest.$ac_objext
40058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40059 (eval $ac_compile) 2>conftest.er1
40061 grep -v '^ *+' conftest.er1 >conftest.err
40063 cat conftest.err >&5
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); } &&
40066 { ac_try='test -z "$ac_c_werror_flag"
40067 || test ! -s conftest.err'
40068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40069 (eval $ac_try) 2>&5
40071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40072 (exit $ac_status); }; } &&
40073 { ac_try='test -s conftest.$ac_objext'
40074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40075 (eval $ac_try) 2>&5
40077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); }; }; then
40079 ac_cv_member_struct_passwd_pw_passwd=yes
40081 echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40084 ac_cv_member_struct_passwd_pw_passwd=no
40086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40090 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40091 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40092 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40094 cat >>confdefs.h <<_ACEOF
40095 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40102 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40103 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40104 if test "${ol_cv_c_upper_lower+set}" = set; then
40105 echo $ECHO_N "(cached) $ECHO_C" >&6
40108 if test "$cross_compiling" = yes; then
40109 ol_cv_c_upper_lower=safe
40111 cat >conftest.$ac_ext <<_ACEOF
40114 cat confdefs.h >>conftest.$ac_ext
40115 cat >>conftest.$ac_ext <<_ACEOF
40116 /* end confdefs.h. */
40121 if ('C' == toupper('C'))
40127 rm -f conftest$ac_exeext
40128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40129 (eval $ac_link) 2>&5
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40134 (eval $ac_try) 2>&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); }; }; then
40138 ol_cv_c_upper_lower=no
40140 echo "$as_me: program exited with status $ac_status" >&5
40141 echo "$as_me: failed program was:" >&5
40142 sed 's/^/| /' conftest.$ac_ext >&5
40144 ( exit $ac_status )
40145 ol_cv_c_upper_lower=yes
40147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40150 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40151 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40152 if test $ol_cv_c_upper_lower != no ; then
40154 cat >>confdefs.h <<\_ACEOF
40155 #define C_UPPER_LOWER 1
40160 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40161 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40162 if test "${ac_cv_c_const+set}" = set; then
40163 echo $ECHO_N "(cached) $ECHO_C" >&6
40165 cat >conftest.$ac_ext <<_ACEOF
40168 cat confdefs.h >>conftest.$ac_ext
40169 cat >>conftest.$ac_ext <<_ACEOF
40170 /* end confdefs.h. */
40175 /* FIXME: Include the comments suggested by Paul. */
40176 #ifndef __cplusplus
40177 /* Ultrix mips cc rejects this. */
40178 typedef int charset[2];
40180 /* SunOS 4.1.1 cc rejects this. */
40181 char const *const *ccp;
40183 /* NEC SVR4.0.2 mips cc rejects this. */
40184 struct point {int x, y;};
40185 static struct point const zero = {0,0};
40186 /* AIX XL C 1.02.0.0 rejects this.
40187 It does not let you subtract one const X* pointer from another in
40188 an arm of an if-expression whose if-part is not a constant
40190 const char *g = "string";
40191 ccp = &g + (g ? g-g : 0);
40192 /* HPUX 7.0 cc rejects these. */
40195 ccp = (char const *const *) p;
40196 { /* SCO 3.2v4 cc rejects this. */
40198 char const *s = 0 ? (char *) 0 : (char const *) 0;
40202 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40203 int x[] = {25, 17};
40204 const int *foo = &x[0];
40207 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40208 typedef const int *iptr;
40212 { /* AIX XL C 1.02.0.0 rejects this saying
40213 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40214 struct s { int j; const int *ap[3]; };
40215 struct s *b; b->j = 5;
40217 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40218 const int foo = 10;
40226 rm -f conftest.$ac_objext
40227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40228 (eval $ac_compile) 2>conftest.er1
40230 grep -v '^ *+' conftest.er1 >conftest.err
40232 cat conftest.err >&5
40233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234 (exit $ac_status); } &&
40235 { ac_try='test -z "$ac_c_werror_flag"
40236 || test ! -s conftest.err'
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238 (eval $ac_try) 2>&5
40240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; } &&
40242 { ac_try='test -s conftest.$ac_objext'
40243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40244 (eval $ac_try) 2>&5
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); }; }; then
40250 echo "$as_me: failed program was:" >&5
40251 sed 's/^/| /' conftest.$ac_ext >&5
40255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40257 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40258 echo "${ECHO_T}$ac_cv_c_const" >&6
40259 if test $ac_cv_c_const = no; then
40261 cat >>confdefs.h <<\_ACEOF
40267 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40268 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40269 if test "${ol_cv_c_volatile+set}" = set; then
40270 echo $ECHO_N "(cached) $ECHO_C" >&6
40272 cat >conftest.$ac_ext <<_ACEOF
40275 cat confdefs.h >>conftest.$ac_ext
40276 cat >>conftest.$ac_ext <<_ACEOF
40277 /* end confdefs.h. */
40282 volatile int a; int * volatile b = x ? &y : &z;
40283 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40289 rm -f conftest.$ac_objext
40290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40291 (eval $ac_compile) 2>conftest.er1
40293 grep -v '^ *+' conftest.er1 >conftest.err
40295 cat conftest.err >&5
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); } &&
40298 { ac_try='test -z "$ac_c_werror_flag"
40299 || test ! -s conftest.err'
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } &&
40305 { ac_try='test -s conftest.$ac_objext'
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; }; then
40311 ol_cv_c_volatile=yes
40313 echo "$as_me: failed program was:" >&5
40314 sed 's/^/| /' conftest.$ac_ext >&5
40316 ol_cv_c_volatile=no
40318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40320 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40321 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40322 if test $ol_cv_c_volatile = yes; then
40326 cat >>confdefs.h <<\_ACEOF
40333 if test $cross_compiling = yes ; then
40334 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40335 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40337 cat >>confdefs.h <<\_ACEOF
40338 #define CROSS_COMPILING 1
40342 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40343 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40344 if test "${ac_cv_c_bigendian+set}" = set; then
40345 echo $ECHO_N "(cached) $ECHO_C" >&6
40347 # See if sys/param.h defines the BYTE_ORDER macro.
40348 cat >conftest.$ac_ext <<_ACEOF
40351 cat confdefs.h >>conftest.$ac_ext
40352 cat >>conftest.$ac_ext <<_ACEOF
40353 /* end confdefs.h. */
40354 #include <sys/types.h>
40355 #include <sys/param.h>
40360 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40361 bogus endian macros
40368 rm -f conftest.$ac_objext
40369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40370 (eval $ac_compile) 2>conftest.er1
40372 grep -v '^ *+' conftest.er1 >conftest.err
40374 cat conftest.err >&5
40375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40376 (exit $ac_status); } &&
40377 { ac_try='test -z "$ac_c_werror_flag"
40378 || test ! -s conftest.err'
40379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40380 (eval $ac_try) 2>&5
40382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383 (exit $ac_status); }; } &&
40384 { ac_try='test -s conftest.$ac_objext'
40385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40386 (eval $ac_try) 2>&5
40388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40389 (exit $ac_status); }; }; then
40390 # It does; now see whether it defined to BIG_ENDIAN or not.
40391 cat >conftest.$ac_ext <<_ACEOF
40394 cat confdefs.h >>conftest.$ac_ext
40395 cat >>conftest.$ac_ext <<_ACEOF
40396 /* end confdefs.h. */
40397 #include <sys/types.h>
40398 #include <sys/param.h>
40403 #if BYTE_ORDER != BIG_ENDIAN
40411 rm -f conftest.$ac_objext
40412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40413 (eval $ac_compile) 2>conftest.er1
40415 grep -v '^ *+' conftest.er1 >conftest.err
40417 cat conftest.err >&5
40418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40419 (exit $ac_status); } &&
40420 { ac_try='test -z "$ac_c_werror_flag"
40421 || test ! -s conftest.err'
40422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423 (eval $ac_try) 2>&5
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); }; } &&
40427 { ac_try='test -s conftest.$ac_objext'
40428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40429 (eval $ac_try) 2>&5
40431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432 (exit $ac_status); }; }; then
40433 ac_cv_c_bigendian=yes
40435 echo "$as_me: failed program was:" >&5
40436 sed 's/^/| /' conftest.$ac_ext >&5
40438 ac_cv_c_bigendian=no
40440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40442 echo "$as_me: failed program was:" >&5
40443 sed 's/^/| /' conftest.$ac_ext >&5
40445 # It does not; compile a test program.
40446 if test "$cross_compiling" = yes; then
40447 # try to guess the endianness by grepping values into an object file
40448 ac_cv_c_bigendian=unknown
40449 cat >conftest.$ac_ext <<_ACEOF
40452 cat confdefs.h >>conftest.$ac_ext
40453 cat >>conftest.$ac_ext <<_ACEOF
40454 /* end confdefs.h. */
40455 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40456 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40457 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40458 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40459 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40460 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40464 _ascii (); _ebcdic ();
40469 rm -f conftest.$ac_objext
40470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40471 (eval $ac_compile) 2>conftest.er1
40473 grep -v '^ *+' conftest.er1 >conftest.err
40475 cat conftest.err >&5
40476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40477 (exit $ac_status); } &&
40478 { ac_try='test -z "$ac_c_werror_flag"
40479 || test ! -s conftest.err'
40480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40481 (eval $ac_try) 2>&5
40483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484 (exit $ac_status); }; } &&
40485 { ac_try='test -s conftest.$ac_objext'
40486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40487 (eval $ac_try) 2>&5
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490 (exit $ac_status); }; }; then
40491 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40492 ac_cv_c_bigendian=yes
40494 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40495 if test "$ac_cv_c_bigendian" = unknown; then
40496 ac_cv_c_bigendian=no
40498 # finding both strings is unlikely to happen, but who knows?
40499 ac_cv_c_bigendian=unknown
40503 echo "$as_me: failed program was:" >&5
40504 sed 's/^/| /' conftest.$ac_ext >&5
40507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40509 cat >conftest.$ac_ext <<_ACEOF
40512 cat confdefs.h >>conftest.$ac_ext
40513 cat >>conftest.$ac_ext <<_ACEOF
40514 /* end confdefs.h. */
40518 /* Are we little or big endian? From Harbison&Steele. */
40522 char c[sizeof (long)];
40525 exit (u.c[sizeof (long) - 1] == 1);
40528 rm -f conftest$ac_exeext
40529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40530 (eval $ac_link) 2>&5
40532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40535 (eval $ac_try) 2>&5
40537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538 (exit $ac_status); }; }; then
40539 ac_cv_c_bigendian=no
40541 echo "$as_me: program exited with status $ac_status" >&5
40542 echo "$as_me: failed program was:" >&5
40543 sed 's/^/| /' conftest.$ac_ext >&5
40545 ( exit $ac_status )
40546 ac_cv_c_bigendian=yes
40548 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40553 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40554 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40555 case $ac_cv_c_bigendian in
40558 cat >>confdefs.h <<\_ACEOF
40559 #define WORDS_BIGENDIAN 1
40565 { { echo "$as_me:$LINENO: error: unknown endianness
40566 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40567 echo "$as_me: error: unknown endianness
40568 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40569 { (exit 1); exit 1; }; } ;;
40574 echo "$as_me:$LINENO: checking for short" >&5
40575 echo $ECHO_N "checking for short... $ECHO_C" >&6
40576 if test "${ac_cv_type_short+set}" = set; then
40577 echo $ECHO_N "(cached) $ECHO_C" >&6
40579 cat >conftest.$ac_ext <<_ACEOF
40582 cat confdefs.h >>conftest.$ac_ext
40583 cat >>conftest.$ac_ext <<_ACEOF
40584 /* end confdefs.h. */
40585 $ac_includes_default
40591 if (sizeof (short))
40597 rm -f conftest.$ac_objext
40598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40599 (eval $ac_compile) 2>conftest.er1
40601 grep -v '^ *+' conftest.er1 >conftest.err
40603 cat conftest.err >&5
40604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40605 (exit $ac_status); } &&
40606 { ac_try='test -z "$ac_c_werror_flag"
40607 || test ! -s conftest.err'
40608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609 (eval $ac_try) 2>&5
40611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612 (exit $ac_status); }; } &&
40613 { ac_try='test -s conftest.$ac_objext'
40614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40615 (eval $ac_try) 2>&5
40617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40618 (exit $ac_status); }; }; then
40619 ac_cv_type_short=yes
40621 echo "$as_me: failed program was:" >&5
40622 sed 's/^/| /' conftest.$ac_ext >&5
40624 ac_cv_type_short=no
40626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40628 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40629 echo "${ECHO_T}$ac_cv_type_short" >&6
40631 echo "$as_me:$LINENO: checking size of short" >&5
40632 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40633 if test "${ac_cv_sizeof_short+set}" = set; then
40634 echo $ECHO_N "(cached) $ECHO_C" >&6
40636 if test "$ac_cv_type_short" = yes; then
40637 # The cast to unsigned long works around a bug in the HP C Compiler
40638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40640 # This bug is HP SR number 8606223364.
40641 if test "$cross_compiling" = yes; then
40642 # Depending upon the size, compute the lo and hi bounds.
40643 cat >conftest.$ac_ext <<_ACEOF
40646 cat confdefs.h >>conftest.$ac_ext
40647 cat >>conftest.$ac_ext <<_ACEOF
40648 /* end confdefs.h. */
40649 $ac_includes_default
40653 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40660 rm -f conftest.$ac_objext
40661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40662 (eval $ac_compile) 2>conftest.er1
40664 grep -v '^ *+' conftest.er1 >conftest.err
40666 cat conftest.err >&5
40667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668 (exit $ac_status); } &&
40669 { ac_try='test -z "$ac_c_werror_flag"
40670 || test ! -s conftest.err'
40671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40672 (eval $ac_try) 2>&5
40674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675 (exit $ac_status); }; } &&
40676 { ac_try='test -s conftest.$ac_objext'
40677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40678 (eval $ac_try) 2>&5
40680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40681 (exit $ac_status); }; }; then
40684 cat >conftest.$ac_ext <<_ACEOF
40687 cat confdefs.h >>conftest.$ac_ext
40688 cat >>conftest.$ac_ext <<_ACEOF
40689 /* end confdefs.h. */
40690 $ac_includes_default
40694 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40701 rm -f conftest.$ac_objext
40702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40703 (eval $ac_compile) 2>conftest.er1
40705 grep -v '^ *+' conftest.er1 >conftest.err
40707 cat conftest.err >&5
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); } &&
40710 { ac_try='test -z "$ac_c_werror_flag"
40711 || test ! -s conftest.err'
40712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40713 (eval $ac_try) 2>&5
40715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716 (exit $ac_status); }; } &&
40717 { ac_try='test -s conftest.$ac_objext'
40718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40719 (eval $ac_try) 2>&5
40721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722 (exit $ac_status); }; }; then
40723 ac_hi=$ac_mid; break
40725 echo "$as_me: failed program was:" >&5
40726 sed 's/^/| /' conftest.$ac_ext >&5
40728 ac_lo=`expr $ac_mid + 1`
40729 if test $ac_lo -le $ac_mid; then
40733 ac_mid=`expr 2 '*' $ac_mid + 1`
40735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40738 echo "$as_me: failed program was:" >&5
40739 sed 's/^/| /' conftest.$ac_ext >&5
40741 cat >conftest.$ac_ext <<_ACEOF
40744 cat confdefs.h >>conftest.$ac_ext
40745 cat >>conftest.$ac_ext <<_ACEOF
40746 /* end confdefs.h. */
40747 $ac_includes_default
40751 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40758 rm -f conftest.$ac_objext
40759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40760 (eval $ac_compile) 2>conftest.er1
40762 grep -v '^ *+' conftest.er1 >conftest.err
40764 cat conftest.err >&5
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); } &&
40767 { ac_try='test -z "$ac_c_werror_flag"
40768 || test ! -s conftest.err'
40769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40770 (eval $ac_try) 2>&5
40772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40773 (exit $ac_status); }; } &&
40774 { ac_try='test -s conftest.$ac_objext'
40775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40776 (eval $ac_try) 2>&5
40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779 (exit $ac_status); }; }; then
40782 cat >conftest.$ac_ext <<_ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h. */
40788 $ac_includes_default
40792 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40799 rm -f conftest.$ac_objext
40800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40801 (eval $ac_compile) 2>conftest.er1
40803 grep -v '^ *+' conftest.er1 >conftest.err
40805 cat conftest.err >&5
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); } &&
40808 { ac_try='test -z "$ac_c_werror_flag"
40809 || test ! -s conftest.err'
40810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40811 (eval $ac_try) 2>&5
40813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40814 (exit $ac_status); }; } &&
40815 { ac_try='test -s conftest.$ac_objext'
40816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40817 (eval $ac_try) 2>&5
40819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); }; }; then
40821 ac_lo=$ac_mid; break
40823 echo "$as_me: failed program was:" >&5
40824 sed 's/^/| /' conftest.$ac_ext >&5
40826 ac_hi=`expr '(' $ac_mid ')' - 1`
40827 if test $ac_mid -le $ac_hi; then
40831 ac_mid=`expr 2 '*' $ac_mid`
40833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40836 echo "$as_me: failed program was:" >&5
40837 sed 's/^/| /' conftest.$ac_ext >&5
40841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40844 # Binary search between lo and hi bounds.
40845 while test "x$ac_lo" != "x$ac_hi"; do
40846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40847 cat >conftest.$ac_ext <<_ACEOF
40850 cat confdefs.h >>conftest.$ac_ext
40851 cat >>conftest.$ac_ext <<_ACEOF
40852 /* end confdefs.h. */
40853 $ac_includes_default
40857 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40864 rm -f conftest.$ac_objext
40865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40866 (eval $ac_compile) 2>conftest.er1
40868 grep -v '^ *+' conftest.er1 >conftest.err
40870 cat conftest.err >&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } &&
40873 { ac_try='test -z "$ac_c_werror_flag"
40874 || test ! -s conftest.err'
40875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40876 (eval $ac_try) 2>&5
40878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40879 (exit $ac_status); }; } &&
40880 { ac_try='test -s conftest.$ac_objext'
40881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40882 (eval $ac_try) 2>&5
40884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885 (exit $ac_status); }; }; then
40888 echo "$as_me: failed program was:" >&5
40889 sed 's/^/| /' conftest.$ac_ext >&5
40891 ac_lo=`expr '(' $ac_mid ')' + 1`
40893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40896 ?*) ac_cv_sizeof_short=$ac_lo;;
40897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40898 See \`config.log' for more details." >&5
40899 echo "$as_me: error: cannot compute sizeof (short), 77
40900 See \`config.log' for more details." >&2;}
40901 { (exit 1); exit 1; }; } ;;
40904 if test "$cross_compiling" = yes; then
40905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40906 See \`config.log' for more details." >&5
40907 echo "$as_me: error: cannot run test program while cross compiling
40908 See \`config.log' for more details." >&2;}
40909 { (exit 1); exit 1; }; }
40911 cat >conftest.$ac_ext <<_ACEOF
40914 cat confdefs.h >>conftest.$ac_ext
40915 cat >>conftest.$ac_ext <<_ACEOF
40916 /* end confdefs.h. */
40917 $ac_includes_default
40918 long longval () { return (long) (sizeof (short)); }
40919 unsigned long ulongval () { return (long) (sizeof (short)); }
40921 #include <stdlib.h>
40926 FILE *f = fopen ("conftest.val", "w");
40929 if (((long) (sizeof (short))) < 0)
40931 long i = longval ();
40932 if (i != ((long) (sizeof (short))))
40934 fprintf (f, "%ld\n", i);
40938 unsigned long i = ulongval ();
40939 if (i != ((long) (sizeof (short))))
40941 fprintf (f, "%lu\n", i);
40943 exit (ferror (f) || fclose (f) != 0);
40949 rm -f conftest$ac_exeext
40950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40951 (eval $ac_link) 2>&5
40953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956 (eval $ac_try) 2>&5
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); }; }; then
40960 ac_cv_sizeof_short=`cat conftest.val`
40962 echo "$as_me: program exited with status $ac_status" >&5
40963 echo "$as_me: failed program was:" >&5
40964 sed 's/^/| /' conftest.$ac_ext >&5
40966 ( exit $ac_status )
40967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40968 See \`config.log' for more details." >&5
40969 echo "$as_me: error: cannot compute sizeof (short), 77
40970 See \`config.log' for more details." >&2;}
40971 { (exit 1); exit 1; }; }
40973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40978 ac_cv_sizeof_short=0
40981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40982 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40983 cat >>confdefs.h <<_ACEOF
40984 #define SIZEOF_SHORT $ac_cv_sizeof_short
40988 echo "$as_me:$LINENO: checking for int" >&5
40989 echo $ECHO_N "checking for int... $ECHO_C" >&6
40990 if test "${ac_cv_type_int+set}" = set; then
40991 echo $ECHO_N "(cached) $ECHO_C" >&6
40993 cat >conftest.$ac_ext <<_ACEOF
40996 cat confdefs.h >>conftest.$ac_ext
40997 cat >>conftest.$ac_ext <<_ACEOF
40998 /* end confdefs.h. */
40999 $ac_includes_default
41011 rm -f conftest.$ac_objext
41012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41013 (eval $ac_compile) 2>conftest.er1
41015 grep -v '^ *+' conftest.er1 >conftest.err
41017 cat conftest.err >&5
41018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41019 (exit $ac_status); } &&
41020 { ac_try='test -z "$ac_c_werror_flag"
41021 || test ! -s conftest.err'
41022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41023 (eval $ac_try) 2>&5
41025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41026 (exit $ac_status); }; } &&
41027 { ac_try='test -s conftest.$ac_objext'
41028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41029 (eval $ac_try) 2>&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); }; }; then
41035 echo "$as_me: failed program was:" >&5
41036 sed 's/^/| /' conftest.$ac_ext >&5
41040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41042 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41043 echo "${ECHO_T}$ac_cv_type_int" >&6
41045 echo "$as_me:$LINENO: checking size of int" >&5
41046 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41047 if test "${ac_cv_sizeof_int+set}" = set; then
41048 echo $ECHO_N "(cached) $ECHO_C" >&6
41050 if test "$ac_cv_type_int" = yes; then
41051 # The cast to unsigned long works around a bug in the HP C Compiler
41052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41054 # This bug is HP SR number 8606223364.
41055 if test "$cross_compiling" = yes; then
41056 # Depending upon the size, compute the lo and hi bounds.
41057 cat >conftest.$ac_ext <<_ACEOF
41060 cat confdefs.h >>conftest.$ac_ext
41061 cat >>conftest.$ac_ext <<_ACEOF
41062 /* end confdefs.h. */
41063 $ac_includes_default
41067 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41074 rm -f conftest.$ac_objext
41075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41076 (eval $ac_compile) 2>conftest.er1
41078 grep -v '^ *+' conftest.er1 >conftest.err
41080 cat conftest.err >&5
41081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41082 (exit $ac_status); } &&
41083 { ac_try='test -z "$ac_c_werror_flag"
41084 || test ! -s conftest.err'
41085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41086 (eval $ac_try) 2>&5
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); }; } &&
41090 { ac_try='test -s conftest.$ac_objext'
41091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41092 (eval $ac_try) 2>&5
41094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41095 (exit $ac_status); }; }; then
41098 cat >conftest.$ac_ext <<_ACEOF
41101 cat confdefs.h >>conftest.$ac_ext
41102 cat >>conftest.$ac_ext <<_ACEOF
41103 /* end confdefs.h. */
41104 $ac_includes_default
41108 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41115 rm -f conftest.$ac_objext
41116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41117 (eval $ac_compile) 2>conftest.er1
41119 grep -v '^ *+' conftest.er1 >conftest.err
41121 cat conftest.err >&5
41122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123 (exit $ac_status); } &&
41124 { ac_try='test -z "$ac_c_werror_flag"
41125 || test ! -s conftest.err'
41126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41127 (eval $ac_try) 2>&5
41129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130 (exit $ac_status); }; } &&
41131 { ac_try='test -s conftest.$ac_objext'
41132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41133 (eval $ac_try) 2>&5
41135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136 (exit $ac_status); }; }; then
41137 ac_hi=$ac_mid; break
41139 echo "$as_me: failed program was:" >&5
41140 sed 's/^/| /' conftest.$ac_ext >&5
41142 ac_lo=`expr $ac_mid + 1`
41143 if test $ac_lo -le $ac_mid; then
41147 ac_mid=`expr 2 '*' $ac_mid + 1`
41149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41152 echo "$as_me: failed program was:" >&5
41153 sed 's/^/| /' conftest.$ac_ext >&5
41155 cat >conftest.$ac_ext <<_ACEOF
41158 cat confdefs.h >>conftest.$ac_ext
41159 cat >>conftest.$ac_ext <<_ACEOF
41160 /* end confdefs.h. */
41161 $ac_includes_default
41165 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41172 rm -f conftest.$ac_objext
41173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41174 (eval $ac_compile) 2>conftest.er1
41176 grep -v '^ *+' conftest.er1 >conftest.err
41178 cat conftest.err >&5
41179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41180 (exit $ac_status); } &&
41181 { ac_try='test -z "$ac_c_werror_flag"
41182 || test ! -s conftest.err'
41183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41184 (eval $ac_try) 2>&5
41186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41187 (exit $ac_status); }; } &&
41188 { ac_try='test -s conftest.$ac_objext'
41189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41190 (eval $ac_try) 2>&5
41192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41193 (exit $ac_status); }; }; then
41196 cat >conftest.$ac_ext <<_ACEOF
41199 cat confdefs.h >>conftest.$ac_ext
41200 cat >>conftest.$ac_ext <<_ACEOF
41201 /* end confdefs.h. */
41202 $ac_includes_default
41206 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41213 rm -f conftest.$ac_objext
41214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41215 (eval $ac_compile) 2>conftest.er1
41217 grep -v '^ *+' conftest.er1 >conftest.err
41219 cat conftest.err >&5
41220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221 (exit $ac_status); } &&
41222 { ac_try='test -z "$ac_c_werror_flag"
41223 || test ! -s conftest.err'
41224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41225 (eval $ac_try) 2>&5
41227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228 (exit $ac_status); }; } &&
41229 { ac_try='test -s conftest.$ac_objext'
41230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41231 (eval $ac_try) 2>&5
41233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); }; }; then
41235 ac_lo=$ac_mid; break
41237 echo "$as_me: failed program was:" >&5
41238 sed 's/^/| /' conftest.$ac_ext >&5
41240 ac_hi=`expr '(' $ac_mid ')' - 1`
41241 if test $ac_mid -le $ac_hi; then
41245 ac_mid=`expr 2 '*' $ac_mid`
41247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41250 echo "$as_me: failed program was:" >&5
41251 sed 's/^/| /' conftest.$ac_ext >&5
41255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41258 # Binary search between lo and hi bounds.
41259 while test "x$ac_lo" != "x$ac_hi"; do
41260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41261 cat >conftest.$ac_ext <<_ACEOF
41264 cat confdefs.h >>conftest.$ac_ext
41265 cat >>conftest.$ac_ext <<_ACEOF
41266 /* end confdefs.h. */
41267 $ac_includes_default
41271 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41278 rm -f conftest.$ac_objext
41279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41280 (eval $ac_compile) 2>conftest.er1
41282 grep -v '^ *+' conftest.er1 >conftest.err
41284 cat conftest.err >&5
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); } &&
41287 { ac_try='test -z "$ac_c_werror_flag"
41288 || test ! -s conftest.err'
41289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41290 (eval $ac_try) 2>&5
41292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41293 (exit $ac_status); }; } &&
41294 { ac_try='test -s conftest.$ac_objext'
41295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41296 (eval $ac_try) 2>&5
41298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299 (exit $ac_status); }; }; then
41302 echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41305 ac_lo=`expr '(' $ac_mid ')' + 1`
41307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41310 ?*) ac_cv_sizeof_int=$ac_lo;;
41311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41312 See \`config.log' for more details." >&5
41313 echo "$as_me: error: cannot compute sizeof (int), 77
41314 See \`config.log' for more details." >&2;}
41315 { (exit 1); exit 1; }; } ;;
41318 if test "$cross_compiling" = yes; then
41319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41320 See \`config.log' for more details." >&5
41321 echo "$as_me: error: cannot run test program while cross compiling
41322 See \`config.log' for more details." >&2;}
41323 { (exit 1); exit 1; }; }
41325 cat >conftest.$ac_ext <<_ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h. */
41331 $ac_includes_default
41332 long longval () { return (long) (sizeof (int)); }
41333 unsigned long ulongval () { return (long) (sizeof (int)); }
41335 #include <stdlib.h>
41340 FILE *f = fopen ("conftest.val", "w");
41343 if (((long) (sizeof (int))) < 0)
41345 long i = longval ();
41346 if (i != ((long) (sizeof (int))))
41348 fprintf (f, "%ld\n", i);
41352 unsigned long i = ulongval ();
41353 if (i != ((long) (sizeof (int))))
41355 fprintf (f, "%lu\n", i);
41357 exit (ferror (f) || fclose (f) != 0);
41363 rm -f conftest$ac_exeext
41364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41365 (eval $ac_link) 2>&5
41367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370 (eval $ac_try) 2>&5
41372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); }; }; then
41374 ac_cv_sizeof_int=`cat conftest.val`
41376 echo "$as_me: program exited with status $ac_status" >&5
41377 echo "$as_me: failed program was:" >&5
41378 sed 's/^/| /' conftest.$ac_ext >&5
41380 ( exit $ac_status )
41381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41382 See \`config.log' for more details." >&5
41383 echo "$as_me: error: cannot compute sizeof (int), 77
41384 See \`config.log' for more details." >&2;}
41385 { (exit 1); exit 1; }; }
41387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41396 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41397 cat >>confdefs.h <<_ACEOF
41398 #define SIZEOF_INT $ac_cv_sizeof_int
41402 echo "$as_me:$LINENO: checking for long" >&5
41403 echo $ECHO_N "checking for long... $ECHO_C" >&6
41404 if test "${ac_cv_type_long+set}" = set; then
41405 echo $ECHO_N "(cached) $ECHO_C" >&6
41407 cat >conftest.$ac_ext <<_ACEOF
41410 cat confdefs.h >>conftest.$ac_ext
41411 cat >>conftest.$ac_ext <<_ACEOF
41412 /* end confdefs.h. */
41413 $ac_includes_default
41425 rm -f conftest.$ac_objext
41426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41427 (eval $ac_compile) 2>conftest.er1
41429 grep -v '^ *+' conftest.er1 >conftest.err
41431 cat conftest.err >&5
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); } &&
41434 { ac_try='test -z "$ac_c_werror_flag"
41435 || test ! -s conftest.err'
41436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437 (eval $ac_try) 2>&5
41439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440 (exit $ac_status); }; } &&
41441 { ac_try='test -s conftest.$ac_objext'
41442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443 (eval $ac_try) 2>&5
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); }; }; then
41447 ac_cv_type_long=yes
41449 echo "$as_me: failed program was:" >&5
41450 sed 's/^/| /' conftest.$ac_ext >&5
41454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41456 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41457 echo "${ECHO_T}$ac_cv_type_long" >&6
41459 echo "$as_me:$LINENO: checking size of long" >&5
41460 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41461 if test "${ac_cv_sizeof_long+set}" = set; then
41462 echo $ECHO_N "(cached) $ECHO_C" >&6
41464 if test "$ac_cv_type_long" = yes; then
41465 # The cast to unsigned long works around a bug in the HP C Compiler
41466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41468 # This bug is HP SR number 8606223364.
41469 if test "$cross_compiling" = yes; then
41470 # Depending upon the size, compute the lo and hi bounds.
41471 cat >conftest.$ac_ext <<_ACEOF
41474 cat confdefs.h >>conftest.$ac_ext
41475 cat >>conftest.$ac_ext <<_ACEOF
41476 /* end confdefs.h. */
41477 $ac_includes_default
41481 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41488 rm -f conftest.$ac_objext
41489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41490 (eval $ac_compile) 2>conftest.er1
41492 grep -v '^ *+' conftest.er1 >conftest.err
41494 cat conftest.err >&5
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); } &&
41497 { ac_try='test -z "$ac_c_werror_flag"
41498 || test ! -s conftest.err'
41499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41500 (eval $ac_try) 2>&5
41502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503 (exit $ac_status); }; } &&
41504 { ac_try='test -s conftest.$ac_objext'
41505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41506 (eval $ac_try) 2>&5
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); }; }; then
41512 cat >conftest.$ac_ext <<_ACEOF
41515 cat confdefs.h >>conftest.$ac_ext
41516 cat >>conftest.$ac_ext <<_ACEOF
41517 /* end confdefs.h. */
41518 $ac_includes_default
41522 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41529 rm -f conftest.$ac_objext
41530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41531 (eval $ac_compile) 2>conftest.er1
41533 grep -v '^ *+' conftest.er1 >conftest.err
41535 cat conftest.err >&5
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); } &&
41538 { ac_try='test -z "$ac_c_werror_flag"
41539 || test ! -s conftest.err'
41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541 (eval $ac_try) 2>&5
41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544 (exit $ac_status); }; } &&
41545 { ac_try='test -s conftest.$ac_objext'
41546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41547 (eval $ac_try) 2>&5
41549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550 (exit $ac_status); }; }; then
41551 ac_hi=$ac_mid; break
41553 echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41556 ac_lo=`expr $ac_mid + 1`
41557 if test $ac_lo -le $ac_mid; then
41561 ac_mid=`expr 2 '*' $ac_mid + 1`
41563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41566 echo "$as_me: failed program was:" >&5
41567 sed 's/^/| /' conftest.$ac_ext >&5
41569 cat >conftest.$ac_ext <<_ACEOF
41572 cat confdefs.h >>conftest.$ac_ext
41573 cat >>conftest.$ac_ext <<_ACEOF
41574 /* end confdefs.h. */
41575 $ac_includes_default
41579 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41586 rm -f conftest.$ac_objext
41587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41588 (eval $ac_compile) 2>conftest.er1
41590 grep -v '^ *+' conftest.er1 >conftest.err
41592 cat conftest.err >&5
41593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41594 (exit $ac_status); } &&
41595 { ac_try='test -z "$ac_c_werror_flag"
41596 || test ! -s conftest.err'
41597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41598 (eval $ac_try) 2>&5
41600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41601 (exit $ac_status); }; } &&
41602 { ac_try='test -s conftest.$ac_objext'
41603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41604 (eval $ac_try) 2>&5
41606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607 (exit $ac_status); }; }; then
41610 cat >conftest.$ac_ext <<_ACEOF
41613 cat confdefs.h >>conftest.$ac_ext
41614 cat >>conftest.$ac_ext <<_ACEOF
41615 /* end confdefs.h. */
41616 $ac_includes_default
41620 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41627 rm -f conftest.$ac_objext
41628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41629 (eval $ac_compile) 2>conftest.er1
41631 grep -v '^ *+' conftest.er1 >conftest.err
41633 cat conftest.err >&5
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); } &&
41636 { ac_try='test -z "$ac_c_werror_flag"
41637 || test ! -s conftest.err'
41638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41639 (eval $ac_try) 2>&5
41641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41642 (exit $ac_status); }; } &&
41643 { ac_try='test -s conftest.$ac_objext'
41644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41645 (eval $ac_try) 2>&5
41647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648 (exit $ac_status); }; }; then
41649 ac_lo=$ac_mid; break
41651 echo "$as_me: failed program was:" >&5
41652 sed 's/^/| /' conftest.$ac_ext >&5
41654 ac_hi=`expr '(' $ac_mid ')' - 1`
41655 if test $ac_mid -le $ac_hi; then
41659 ac_mid=`expr 2 '*' $ac_mid`
41661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41664 echo "$as_me: failed program was:" >&5
41665 sed 's/^/| /' conftest.$ac_ext >&5
41669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41672 # Binary search between lo and hi bounds.
41673 while test "x$ac_lo" != "x$ac_hi"; do
41674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41675 cat >conftest.$ac_ext <<_ACEOF
41678 cat confdefs.h >>conftest.$ac_ext
41679 cat >>conftest.$ac_ext <<_ACEOF
41680 /* end confdefs.h. */
41681 $ac_includes_default
41685 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41692 rm -f conftest.$ac_objext
41693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41694 (eval $ac_compile) 2>conftest.er1
41696 grep -v '^ *+' conftest.er1 >conftest.err
41698 cat conftest.err >&5
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); } &&
41701 { ac_try='test -z "$ac_c_werror_flag"
41702 || test ! -s conftest.err'
41703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41704 (eval $ac_try) 2>&5
41706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); }; } &&
41708 { ac_try='test -s conftest.$ac_objext'
41709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41710 (eval $ac_try) 2>&5
41712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713 (exit $ac_status); }; }; then
41716 echo "$as_me: failed program was:" >&5
41717 sed 's/^/| /' conftest.$ac_ext >&5
41719 ac_lo=`expr '(' $ac_mid ')' + 1`
41721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41724 ?*) ac_cv_sizeof_long=$ac_lo;;
41725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41726 See \`config.log' for more details." >&5
41727 echo "$as_me: error: cannot compute sizeof (long), 77
41728 See \`config.log' for more details." >&2;}
41729 { (exit 1); exit 1; }; } ;;
41732 if test "$cross_compiling" = yes; then
41733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41734 See \`config.log' for more details." >&5
41735 echo "$as_me: error: cannot run test program while cross compiling
41736 See \`config.log' for more details." >&2;}
41737 { (exit 1); exit 1; }; }
41739 cat >conftest.$ac_ext <<_ACEOF
41742 cat confdefs.h >>conftest.$ac_ext
41743 cat >>conftest.$ac_ext <<_ACEOF
41744 /* end confdefs.h. */
41745 $ac_includes_default
41746 long longval () { return (long) (sizeof (long)); }
41747 unsigned long ulongval () { return (long) (sizeof (long)); }
41749 #include <stdlib.h>
41754 FILE *f = fopen ("conftest.val", "w");
41757 if (((long) (sizeof (long))) < 0)
41759 long i = longval ();
41760 if (i != ((long) (sizeof (long))))
41762 fprintf (f, "%ld\n", i);
41766 unsigned long i = ulongval ();
41767 if (i != ((long) (sizeof (long))))
41769 fprintf (f, "%lu\n", i);
41771 exit (ferror (f) || fclose (f) != 0);
41777 rm -f conftest$ac_exeext
41778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41779 (eval $ac_link) 2>&5
41781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41784 (eval $ac_try) 2>&5
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); }; }; then
41788 ac_cv_sizeof_long=`cat conftest.val`
41790 echo "$as_me: program exited with status $ac_status" >&5
41791 echo "$as_me: failed program was:" >&5
41792 sed 's/^/| /' conftest.$ac_ext >&5
41794 ( exit $ac_status )
41795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41796 See \`config.log' for more details." >&5
41797 echo "$as_me: error: cannot compute sizeof (long), 77
41798 See \`config.log' for more details." >&2;}
41799 { (exit 1); exit 1; }; }
41801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41806 ac_cv_sizeof_long=0
41809 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41810 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41811 cat >>confdefs.h <<_ACEOF
41812 #define SIZEOF_LONG $ac_cv_sizeof_long
41816 echo "$as_me:$LINENO: checking for wchar_t" >&5
41817 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41818 if test "${ac_cv_type_wchar_t+set}" = set; then
41819 echo $ECHO_N "(cached) $ECHO_C" >&6
41821 cat >conftest.$ac_ext <<_ACEOF
41824 cat confdefs.h >>conftest.$ac_ext
41825 cat >>conftest.$ac_ext <<_ACEOF
41826 /* end confdefs.h. */
41827 $ac_includes_default
41833 if (sizeof (wchar_t))
41839 rm -f conftest.$ac_objext
41840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41841 (eval $ac_compile) 2>conftest.er1
41843 grep -v '^ *+' conftest.er1 >conftest.err
41845 cat conftest.err >&5
41846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41847 (exit $ac_status); } &&
41848 { ac_try='test -z "$ac_c_werror_flag"
41849 || test ! -s conftest.err'
41850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41851 (eval $ac_try) 2>&5
41853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854 (exit $ac_status); }; } &&
41855 { ac_try='test -s conftest.$ac_objext'
41856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41857 (eval $ac_try) 2>&5
41859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41860 (exit $ac_status); }; }; then
41861 ac_cv_type_wchar_t=yes
41863 echo "$as_me: failed program was:" >&5
41864 sed 's/^/| /' conftest.$ac_ext >&5
41866 ac_cv_type_wchar_t=no
41868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41870 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41871 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41873 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41874 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41875 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41876 echo $ECHO_N "(cached) $ECHO_C" >&6
41878 if test "$ac_cv_type_wchar_t" = yes; then
41879 # The cast to unsigned long works around a bug in the HP C Compiler
41880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41882 # This bug is HP SR number 8606223364.
41883 if test "$cross_compiling" = yes; then
41884 # Depending upon the size, compute the lo and hi bounds.
41885 cat >conftest.$ac_ext <<_ACEOF
41888 cat confdefs.h >>conftest.$ac_ext
41889 cat >>conftest.$ac_ext <<_ACEOF
41890 /* end confdefs.h. */
41891 $ac_includes_default
41895 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41902 rm -f conftest.$ac_objext
41903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41904 (eval $ac_compile) 2>conftest.er1
41906 grep -v '^ *+' conftest.er1 >conftest.err
41908 cat conftest.err >&5
41909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); } &&
41911 { ac_try='test -z "$ac_c_werror_flag"
41912 || test ! -s conftest.err'
41913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41914 (eval $ac_try) 2>&5
41916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41917 (exit $ac_status); }; } &&
41918 { ac_try='test -s conftest.$ac_objext'
41919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41920 (eval $ac_try) 2>&5
41922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41923 (exit $ac_status); }; }; then
41926 cat >conftest.$ac_ext <<_ACEOF
41929 cat confdefs.h >>conftest.$ac_ext
41930 cat >>conftest.$ac_ext <<_ACEOF
41931 /* end confdefs.h. */
41932 $ac_includes_default
41936 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41943 rm -f conftest.$ac_objext
41944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41945 (eval $ac_compile) 2>conftest.er1
41947 grep -v '^ *+' conftest.er1 >conftest.err
41949 cat conftest.err >&5
41950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41951 (exit $ac_status); } &&
41952 { ac_try='test -z "$ac_c_werror_flag"
41953 || test ! -s conftest.err'
41954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41955 (eval $ac_try) 2>&5
41957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41958 (exit $ac_status); }; } &&
41959 { ac_try='test -s conftest.$ac_objext'
41960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41961 (eval $ac_try) 2>&5
41963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41964 (exit $ac_status); }; }; then
41965 ac_hi=$ac_mid; break
41967 echo "$as_me: failed program was:" >&5
41968 sed 's/^/| /' conftest.$ac_ext >&5
41970 ac_lo=`expr $ac_mid + 1`
41971 if test $ac_lo -le $ac_mid; then
41975 ac_mid=`expr 2 '*' $ac_mid + 1`
41977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41980 echo "$as_me: failed program was:" >&5
41981 sed 's/^/| /' conftest.$ac_ext >&5
41983 cat >conftest.$ac_ext <<_ACEOF
41986 cat confdefs.h >>conftest.$ac_ext
41987 cat >>conftest.$ac_ext <<_ACEOF
41988 /* end confdefs.h. */
41989 $ac_includes_default
41993 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
42000 rm -f conftest.$ac_objext
42001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42002 (eval $ac_compile) 2>conftest.er1
42004 grep -v '^ *+' conftest.er1 >conftest.err
42006 cat conftest.err >&5
42007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42008 (exit $ac_status); } &&
42009 { ac_try='test -z "$ac_c_werror_flag"
42010 || test ! -s conftest.err'
42011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42012 (eval $ac_try) 2>&5
42014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42015 (exit $ac_status); }; } &&
42016 { ac_try='test -s conftest.$ac_objext'
42017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42018 (eval $ac_try) 2>&5
42020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021 (exit $ac_status); }; }; then
42024 cat >conftest.$ac_ext <<_ACEOF
42027 cat confdefs.h >>conftest.$ac_ext
42028 cat >>conftest.$ac_ext <<_ACEOF
42029 /* end confdefs.h. */
42030 $ac_includes_default
42034 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42041 rm -f conftest.$ac_objext
42042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42043 (eval $ac_compile) 2>conftest.er1
42045 grep -v '^ *+' conftest.er1 >conftest.err
42047 cat conftest.err >&5
42048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); } &&
42050 { ac_try='test -z "$ac_c_werror_flag"
42051 || test ! -s conftest.err'
42052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053 (eval $ac_try) 2>&5
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); }; } &&
42057 { ac_try='test -s conftest.$ac_objext'
42058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42059 (eval $ac_try) 2>&5
42061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062 (exit $ac_status); }; }; then
42063 ac_lo=$ac_mid; break
42065 echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42068 ac_hi=`expr '(' $ac_mid ')' - 1`
42069 if test $ac_mid -le $ac_hi; then
42073 ac_mid=`expr 2 '*' $ac_mid`
42075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42078 echo "$as_me: failed program was:" >&5
42079 sed 's/^/| /' conftest.$ac_ext >&5
42083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42086 # Binary search between lo and hi bounds.
42087 while test "x$ac_lo" != "x$ac_hi"; do
42088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42089 cat >conftest.$ac_ext <<_ACEOF
42092 cat confdefs.h >>conftest.$ac_ext
42093 cat >>conftest.$ac_ext <<_ACEOF
42094 /* end confdefs.h. */
42095 $ac_includes_default
42099 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42106 rm -f conftest.$ac_objext
42107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42108 (eval $ac_compile) 2>conftest.er1
42110 grep -v '^ *+' conftest.er1 >conftest.err
42112 cat conftest.err >&5
42113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42114 (exit $ac_status); } &&
42115 { ac_try='test -z "$ac_c_werror_flag"
42116 || test ! -s conftest.err'
42117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42118 (eval $ac_try) 2>&5
42120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42121 (exit $ac_status); }; } &&
42122 { ac_try='test -s conftest.$ac_objext'
42123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42124 (eval $ac_try) 2>&5
42126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127 (exit $ac_status); }; }; then
42130 echo "$as_me: failed program was:" >&5
42131 sed 's/^/| /' conftest.$ac_ext >&5
42133 ac_lo=`expr '(' $ac_mid ')' + 1`
42135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42138 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42139 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42140 See \`config.log' for more details." >&5
42141 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42142 See \`config.log' for more details." >&2;}
42143 { (exit 1); exit 1; }; } ;;
42146 if test "$cross_compiling" = yes; then
42147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42148 See \`config.log' for more details." >&5
42149 echo "$as_me: error: cannot run test program while cross compiling
42150 See \`config.log' for more details." >&2;}
42151 { (exit 1); exit 1; }; }
42153 cat >conftest.$ac_ext <<_ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42159 $ac_includes_default
42160 long longval () { return (long) (sizeof (wchar_t)); }
42161 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42163 #include <stdlib.h>
42168 FILE *f = fopen ("conftest.val", "w");
42171 if (((long) (sizeof (wchar_t))) < 0)
42173 long i = longval ();
42174 if (i != ((long) (sizeof (wchar_t))))
42176 fprintf (f, "%ld\n", i);
42180 unsigned long i = ulongval ();
42181 if (i != ((long) (sizeof (wchar_t))))
42183 fprintf (f, "%lu\n", i);
42185 exit (ferror (f) || fclose (f) != 0);
42191 rm -f conftest$ac_exeext
42192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42193 (eval $ac_link) 2>&5
42195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42198 (eval $ac_try) 2>&5
42200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42201 (exit $ac_status); }; }; then
42202 ac_cv_sizeof_wchar_t=`cat conftest.val`
42204 echo "$as_me: program exited with status $ac_status" >&5
42205 echo "$as_me: failed program was:" >&5
42206 sed 's/^/| /' conftest.$ac_ext >&5
42208 ( exit $ac_status )
42209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42210 See \`config.log' for more details." >&5
42211 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42212 See \`config.log' for more details." >&2;}
42213 { (exit 1); exit 1; }; }
42215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42220 ac_cv_sizeof_wchar_t=0
42223 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42224 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42225 cat >>confdefs.h <<_ACEOF
42226 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42231 if test "$ac_cv_sizeof_int" -lt 4 ; then
42232 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42233 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42236 cat >>confdefs.h <<\_ACEOF
42237 #define LBER_INT_T long
42242 cat >>confdefs.h <<\_ACEOF
42243 #define LBER_INT_T int
42249 cat >>confdefs.h <<\_ACEOF
42250 #define LBER_LEN_T long
42254 cat >>confdefs.h <<\_ACEOF
42255 #define LBER_SOCKET_T int
42259 cat >>confdefs.h <<\_ACEOF
42260 #define LBER_TAG_T long
42264 echo "$as_me:$LINENO: checking for working memcmp" >&5
42265 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42266 if test "${ac_cv_func_memcmp_working+set}" = set; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42269 if test "$cross_compiling" = yes; then
42270 ac_cv_func_memcmp_working=no
42272 cat >conftest.$ac_ext <<_ACEOF
42275 cat confdefs.h >>conftest.$ac_ext
42276 cat >>conftest.$ac_ext <<_ACEOF
42277 /* end confdefs.h. */
42278 $ac_includes_default
42283 /* Some versions of memcmp are not 8-bit clean. */
42284 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42285 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42288 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42289 or more and with at least one buffer not starting on a 4-byte boundary.
42290 William Lewis provided this test program. */
42295 for (i = 0; i < 4; i++)
42299 strcpy (a, "--------01111111");
42300 strcpy (b, "--------10000000");
42301 if (memcmp (a, b, 16) >= 0)
42311 rm -f conftest$ac_exeext
42312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42313 (eval $ac_link) 2>&5
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318 (eval $ac_try) 2>&5
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); }; }; then
42322 ac_cv_func_memcmp_working=yes
42324 echo "$as_me: program exited with status $ac_status" >&5
42325 echo "$as_me: failed program was:" >&5
42326 sed 's/^/| /' conftest.$ac_ext >&5
42328 ( exit $ac_status )
42329 ac_cv_func_memcmp_working=no
42331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42334 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42335 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42336 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42337 "memcmp.$ac_objext" | \
42338 *" memcmp.$ac_objext" | \
42339 "memcmp.$ac_objext "* | \
42340 *" memcmp.$ac_objext "* ) ;;
42341 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42346 if test $ac_cv_func_memcmp_working = no ; then
42348 cat >>confdefs.h <<\_ACEOF
42349 #define NEED_MEMCMP_REPLACEMENT 1
42355 for ac_func in strftime
42357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42358 echo "$as_me:$LINENO: checking for $ac_func" >&5
42359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42360 if eval "test \"\${$as_ac_var+set}\" = set"; then
42361 echo $ECHO_N "(cached) $ECHO_C" >&6
42363 cat >conftest.$ac_ext <<_ACEOF
42366 cat confdefs.h >>conftest.$ac_ext
42367 cat >>conftest.$ac_ext <<_ACEOF
42368 /* end confdefs.h. */
42369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42371 #define $ac_func innocuous_$ac_func
42373 /* System header to define __stub macros and hopefully few prototypes,
42374 which can conflict with char $ac_func (); below.
42375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42376 <limits.h> exists even on freestanding compilers. */
42379 # include <limits.h>
42381 # include <assert.h>
42386 /* Override any gcc2 internal prototype to avoid an error. */
42391 /* We use char because int might match the return type of a gcc2
42392 builtin and then its argument prototype would still apply. */
42394 /* The GNU C library defines this for functions which it implements
42395 to always fail with ENOSYS. Some functions are actually named
42396 something starting with __ and the normal name is an alias. */
42397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42400 char (*f) () = $ac_func;
42409 return f != $ac_func;
42414 rm -f conftest.$ac_objext conftest$ac_exeext
42415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42416 (eval $ac_link) 2>conftest.er1
42418 grep -v '^ *+' conftest.er1 >conftest.err
42420 cat conftest.err >&5
42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422 (exit $ac_status); } &&
42423 { ac_try='test -z "$ac_c_werror_flag"
42424 || test ! -s conftest.err'
42425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42426 (eval $ac_try) 2>&5
42428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42429 (exit $ac_status); }; } &&
42430 { ac_try='test -s conftest$ac_exeext'
42431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42432 (eval $ac_try) 2>&5
42434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42435 (exit $ac_status); }; }; then
42436 eval "$as_ac_var=yes"
42438 echo "$as_me: failed program was:" >&5
42439 sed 's/^/| /' conftest.$ac_ext >&5
42441 eval "$as_ac_var=no"
42443 rm -f conftest.err conftest.$ac_objext \
42444 conftest$ac_exeext conftest.$ac_ext
42446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42448 if test `eval echo '${'$as_ac_var'}'` = yes; then
42449 cat >>confdefs.h <<_ACEOF
42450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42454 # strftime is in -lintl on SCO UNIX.
42455 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42456 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42457 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42458 echo $ECHO_N "(cached) $ECHO_C" >&6
42460 ac_check_lib_save_LIBS=$LIBS
42461 LIBS="-lintl $LIBS"
42462 cat >conftest.$ac_ext <<_ACEOF
42465 cat confdefs.h >>conftest.$ac_ext
42466 cat >>conftest.$ac_ext <<_ACEOF
42467 /* end confdefs.h. */
42469 /* Override any gcc2 internal prototype to avoid an error. */
42473 /* We use char because int might match the return type of a gcc2
42474 builtin and then its argument prototype would still apply. */
42484 rm -f conftest.$ac_objext conftest$ac_exeext
42485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42486 (eval $ac_link) 2>conftest.er1
42488 grep -v '^ *+' conftest.er1 >conftest.err
42490 cat conftest.err >&5
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); } &&
42493 { ac_try='test -z "$ac_c_werror_flag"
42494 || test ! -s conftest.err'
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42496 (eval $ac_try) 2>&5
42498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; } &&
42500 { ac_try='test -s conftest$ac_exeext'
42501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42502 (eval $ac_try) 2>&5
42504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42505 (exit $ac_status); }; }; then
42506 ac_cv_lib_intl_strftime=yes
42508 echo "$as_me: failed program was:" >&5
42509 sed 's/^/| /' conftest.$ac_ext >&5
42511 ac_cv_lib_intl_strftime=no
42513 rm -f conftest.err conftest.$ac_objext \
42514 conftest$ac_exeext conftest.$ac_ext
42515 LIBS=$ac_check_lib_save_LIBS
42517 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42518 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42519 if test $ac_cv_lib_intl_strftime = yes; then
42520 cat >>confdefs.h <<\_ACEOF
42521 #define HAVE_STRFTIME 1
42524 LIBS="-lintl $LIBS"
42531 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42532 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42533 if test "${ol_cv_func_inet_aton+set}" = set; then
42534 echo $ECHO_N "(cached) $ECHO_C" >&6
42536 cat >conftest.$ac_ext <<_ACEOF
42539 cat confdefs.h >>conftest.$ac_ext
42540 cat >>conftest.$ac_ext <<_ACEOF
42541 /* end confdefs.h. */
42543 #ifdef HAVE_SYS_TYPES_H
42544 # include <sys/types.h>
42546 #ifdef HAVE_SYS_SOCKET_H
42547 # include <sys/socket.h>
42548 # ifdef HAVE_SYS_SELECT_H
42549 # include <sys/select.h>
42551 # include <netinet/in.h>
42552 # ifdef HAVE_ARPA_INET_H
42553 # include <arpa/inet.h>
42561 int rc = inet_aton( "255.255.255.255", &in );
42566 rm -f conftest.$ac_objext conftest$ac_exeext
42567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42568 (eval $ac_link) 2>conftest.er1
42570 grep -v '^ *+' conftest.er1 >conftest.err
42572 cat conftest.err >&5
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } &&
42575 { ac_try='test -z "$ac_c_werror_flag"
42576 || test ! -s conftest.err'
42577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578 (eval $ac_try) 2>&5
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); }; } &&
42582 { ac_try='test -s conftest$ac_exeext'
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; }; then
42588 ol_cv_func_inet_aton=yes
42590 echo "$as_me: failed program was:" >&5
42591 sed 's/^/| /' conftest.$ac_ext >&5
42593 ol_cv_func_inet_aton=no
42595 rm -f conftest.err conftest.$ac_objext \
42596 conftest$ac_exeext conftest.$ac_ext
42598 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42599 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42600 if test $ol_cv_func_inet_aton != no; then
42602 cat >>confdefs.h <<\_ACEOF
42603 #define HAVE_INET_ATON 1
42609 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42610 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42611 if test "${ac_cv_func__spawnlp+set}" = set; then
42612 echo $ECHO_N "(cached) $ECHO_C" >&6
42614 cat >conftest.$ac_ext <<_ACEOF
42617 cat confdefs.h >>conftest.$ac_ext
42618 cat >>conftest.$ac_ext <<_ACEOF
42619 /* end confdefs.h. */
42620 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42622 #define _spawnlp innocuous__spawnlp
42624 /* System header to define __stub macros and hopefully few prototypes,
42625 which can conflict with char _spawnlp (); below.
42626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42627 <limits.h> exists even on freestanding compilers. */
42630 # include <limits.h>
42632 # include <assert.h>
42637 /* Override any gcc2 internal prototype to avoid an error. */
42642 /* We use char because int might match the return type of a gcc2
42643 builtin and then its argument prototype would still apply. */
42645 /* The GNU C library defines this for functions which it implements
42646 to always fail with ENOSYS. Some functions are actually named
42647 something starting with __ and the normal name is an alias. */
42648 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42651 char (*f) () = _spawnlp;
42660 return f != _spawnlp;
42665 rm -f conftest.$ac_objext conftest$ac_exeext
42666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42667 (eval $ac_link) 2>conftest.er1
42669 grep -v '^ *+' conftest.er1 >conftest.err
42671 cat conftest.err >&5
42672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42673 (exit $ac_status); } &&
42674 { ac_try='test -z "$ac_c_werror_flag"
42675 || test ! -s conftest.err'
42676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42677 (eval $ac_try) 2>&5
42679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42680 (exit $ac_status); }; } &&
42681 { ac_try='test -s conftest$ac_exeext'
42682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42683 (eval $ac_try) 2>&5
42685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42686 (exit $ac_status); }; }; then
42687 ac_cv_func__spawnlp=yes
42689 echo "$as_me: failed program was:" >&5
42690 sed 's/^/| /' conftest.$ac_ext >&5
42692 ac_cv_func__spawnlp=no
42694 rm -f conftest.err conftest.$ac_objext \
42695 conftest$ac_exeext conftest.$ac_ext
42697 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42698 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42699 if test $ac_cv_func__spawnlp = yes; then
42701 cat >>confdefs.h <<\_ACEOF
42702 #define HAVE_SPAWNLP 1
42708 echo "$as_me:$LINENO: checking for _snprintf" >&5
42709 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42710 if test "${ac_cv_func__snprintf+set}" = set; then
42711 echo $ECHO_N "(cached) $ECHO_C" >&6
42713 cat >conftest.$ac_ext <<_ACEOF
42716 cat confdefs.h >>conftest.$ac_ext
42717 cat >>conftest.$ac_ext <<_ACEOF
42718 /* end confdefs.h. */
42719 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42721 #define _snprintf innocuous__snprintf
42723 /* System header to define __stub macros and hopefully few prototypes,
42724 which can conflict with char _snprintf (); below.
42725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42726 <limits.h> exists even on freestanding compilers. */
42729 # include <limits.h>
42731 # include <assert.h>
42736 /* Override any gcc2 internal prototype to avoid an error. */
42741 /* We use char because int might match the return type of a gcc2
42742 builtin and then its argument prototype would still apply. */
42744 /* The GNU C library defines this for functions which it implements
42745 to always fail with ENOSYS. Some functions are actually named
42746 something starting with __ and the normal name is an alias. */
42747 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42750 char (*f) () = _snprintf;
42759 return f != _snprintf;
42764 rm -f conftest.$ac_objext conftest$ac_exeext
42765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42766 (eval $ac_link) 2>conftest.er1
42768 grep -v '^ *+' conftest.er1 >conftest.err
42770 cat conftest.err >&5
42771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42772 (exit $ac_status); } &&
42773 { ac_try='test -z "$ac_c_werror_flag"
42774 || test ! -s conftest.err'
42775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42776 (eval $ac_try) 2>&5
42778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779 (exit $ac_status); }; } &&
42780 { ac_try='test -s conftest$ac_exeext'
42781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782 (eval $ac_try) 2>&5
42784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785 (exit $ac_status); }; }; then
42786 ac_cv_func__snprintf=yes
42788 echo "$as_me: failed program was:" >&5
42789 sed 's/^/| /' conftest.$ac_ext >&5
42791 ac_cv_func__snprintf=no
42793 rm -f conftest.err conftest.$ac_objext \
42794 conftest$ac_exeext conftest.$ac_ext
42796 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42797 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42798 if test $ac_cv_func__snprintf = yes; then
42799 ac_cv_func_snprintf=yes
42801 cat >>confdefs.h <<\_ACEOF
42802 #define snprintf _snprintf
42809 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42810 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42811 if test "${ac_cv_func__vsnprintf+set}" = set; then
42812 echo $ECHO_N "(cached) $ECHO_C" >&6
42814 cat >conftest.$ac_ext <<_ACEOF
42817 cat confdefs.h >>conftest.$ac_ext
42818 cat >>conftest.$ac_ext <<_ACEOF
42819 /* end confdefs.h. */
42820 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42822 #define _vsnprintf innocuous__vsnprintf
42824 /* System header to define __stub macros and hopefully few prototypes,
42825 which can conflict with char _vsnprintf (); below.
42826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42827 <limits.h> exists even on freestanding compilers. */
42830 # include <limits.h>
42832 # include <assert.h>
42837 /* Override any gcc2 internal prototype to avoid an error. */
42842 /* We use char because int might match the return type of a gcc2
42843 builtin and then its argument prototype would still apply. */
42844 char _vsnprintf ();
42845 /* The GNU C library defines this for functions which it implements
42846 to always fail with ENOSYS. Some functions are actually named
42847 something starting with __ and the normal name is an alias. */
42848 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42851 char (*f) () = _vsnprintf;
42860 return f != _vsnprintf;
42865 rm -f conftest.$ac_objext conftest$ac_exeext
42866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42867 (eval $ac_link) 2>conftest.er1
42869 grep -v '^ *+' conftest.er1 >conftest.err
42871 cat conftest.err >&5
42872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873 (exit $ac_status); } &&
42874 { ac_try='test -z "$ac_c_werror_flag"
42875 || test ! -s conftest.err'
42876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42877 (eval $ac_try) 2>&5
42879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42880 (exit $ac_status); }; } &&
42881 { ac_try='test -s conftest$ac_exeext'
42882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42883 (eval $ac_try) 2>&5
42885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42886 (exit $ac_status); }; }; then
42887 ac_cv_func__vsnprintf=yes
42889 echo "$as_me: failed program was:" >&5
42890 sed 's/^/| /' conftest.$ac_ext >&5
42892 ac_cv_func__vsnprintf=no
42894 rm -f conftest.err conftest.$ac_objext \
42895 conftest$ac_exeext conftest.$ac_ext
42897 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42898 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42899 if test $ac_cv_func__vsnprintf = yes; then
42900 ac_cv_func_vsnprintf=yes
42902 cat >>confdefs.h <<\_ACEOF
42903 #define vsnprintf _vsnprintf
42911 for ac_func in vprintf
42913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42914 echo "$as_me:$LINENO: checking for $ac_func" >&5
42915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42916 if eval "test \"\${$as_ac_var+set}\" = set"; then
42917 echo $ECHO_N "(cached) $ECHO_C" >&6
42919 cat >conftest.$ac_ext <<_ACEOF
42922 cat confdefs.h >>conftest.$ac_ext
42923 cat >>conftest.$ac_ext <<_ACEOF
42924 /* end confdefs.h. */
42925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42927 #define $ac_func innocuous_$ac_func
42929 /* System header to define __stub macros and hopefully few prototypes,
42930 which can conflict with char $ac_func (); below.
42931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42932 <limits.h> exists even on freestanding compilers. */
42935 # include <limits.h>
42937 # include <assert.h>
42942 /* Override any gcc2 internal prototype to avoid an error. */
42947 /* We use char because int might match the return type of a gcc2
42948 builtin and then its argument prototype would still apply. */
42950 /* The GNU C library defines this for functions which it implements
42951 to always fail with ENOSYS. Some functions are actually named
42952 something starting with __ and the normal name is an alias. */
42953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42956 char (*f) () = $ac_func;
42965 return f != $ac_func;
42970 rm -f conftest.$ac_objext conftest$ac_exeext
42971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42972 (eval $ac_link) 2>conftest.er1
42974 grep -v '^ *+' conftest.er1 >conftest.err
42976 cat conftest.err >&5
42977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978 (exit $ac_status); } &&
42979 { ac_try='test -z "$ac_c_werror_flag"
42980 || test ! -s conftest.err'
42981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982 (eval $ac_try) 2>&5
42984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985 (exit $ac_status); }; } &&
42986 { ac_try='test -s conftest$ac_exeext'
42987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42988 (eval $ac_try) 2>&5
42990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991 (exit $ac_status); }; }; then
42992 eval "$as_ac_var=yes"
42994 echo "$as_me: failed program was:" >&5
42995 sed 's/^/| /' conftest.$ac_ext >&5
42997 eval "$as_ac_var=no"
42999 rm -f conftest.err conftest.$ac_objext \
43000 conftest$ac_exeext conftest.$ac_ext
43002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43004 if test `eval echo '${'$as_ac_var'}'` = yes; then
43005 cat >>confdefs.h <<_ACEOF
43006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43009 echo "$as_me:$LINENO: checking for _doprnt" >&5
43010 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43011 if test "${ac_cv_func__doprnt+set}" = set; then
43012 echo $ECHO_N "(cached) $ECHO_C" >&6
43014 cat >conftest.$ac_ext <<_ACEOF
43017 cat confdefs.h >>conftest.$ac_ext
43018 cat >>conftest.$ac_ext <<_ACEOF
43019 /* end confdefs.h. */
43020 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43022 #define _doprnt innocuous__doprnt
43024 /* System header to define __stub macros and hopefully few prototypes,
43025 which can conflict with char _doprnt (); below.
43026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43027 <limits.h> exists even on freestanding compilers. */
43030 # include <limits.h>
43032 # include <assert.h>
43037 /* Override any gcc2 internal prototype to avoid an error. */
43042 /* We use char because int might match the return type of a gcc2
43043 builtin and then its argument prototype would still apply. */
43045 /* The GNU C library defines this for functions which it implements
43046 to always fail with ENOSYS. Some functions are actually named
43047 something starting with __ and the normal name is an alias. */
43048 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43051 char (*f) () = _doprnt;
43060 return f != _doprnt;
43065 rm -f conftest.$ac_objext conftest$ac_exeext
43066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43067 (eval $ac_link) 2>conftest.er1
43069 grep -v '^ *+' conftest.er1 >conftest.err
43071 cat conftest.err >&5
43072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43073 (exit $ac_status); } &&
43074 { ac_try='test -z "$ac_c_werror_flag"
43075 || test ! -s conftest.err'
43076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43077 (eval $ac_try) 2>&5
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); }; } &&
43081 { ac_try='test -s conftest$ac_exeext'
43082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43083 (eval $ac_try) 2>&5
43085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43086 (exit $ac_status); }; }; then
43087 ac_cv_func__doprnt=yes
43089 echo "$as_me: failed program was:" >&5
43090 sed 's/^/| /' conftest.$ac_ext >&5
43092 ac_cv_func__doprnt=no
43094 rm -f conftest.err conftest.$ac_objext \
43095 conftest$ac_exeext conftest.$ac_ext
43097 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43098 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43099 if test $ac_cv_func__doprnt = yes; then
43101 cat >>confdefs.h <<\_ACEOF
43102 #define HAVE_DOPRNT 1
43112 if test $ac_cv_func_vprintf = yes ; then
43115 for ac_func in snprintf vsnprintf
43117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43118 echo "$as_me:$LINENO: checking for $ac_func" >&5
43119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43120 if eval "test \"\${$as_ac_var+set}\" = set"; then
43121 echo $ECHO_N "(cached) $ECHO_C" >&6
43123 cat >conftest.$ac_ext <<_ACEOF
43126 cat confdefs.h >>conftest.$ac_ext
43127 cat >>conftest.$ac_ext <<_ACEOF
43128 /* end confdefs.h. */
43129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43131 #define $ac_func innocuous_$ac_func
43133 /* System header to define __stub macros and hopefully few prototypes,
43134 which can conflict with char $ac_func (); below.
43135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43136 <limits.h> exists even on freestanding compilers. */
43139 # include <limits.h>
43141 # include <assert.h>
43146 /* Override any gcc2 internal prototype to avoid an error. */
43151 /* We use char because int might match the return type of a gcc2
43152 builtin and then its argument prototype would still apply. */
43154 /* The GNU C library defines this for functions which it implements
43155 to always fail with ENOSYS. Some functions are actually named
43156 something starting with __ and the normal name is an alias. */
43157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43160 char (*f) () = $ac_func;
43169 return f != $ac_func;
43174 rm -f conftest.$ac_objext conftest$ac_exeext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43176 (eval $ac_link) 2>conftest.er1
43178 grep -v '^ *+' conftest.er1 >conftest.err
43180 cat conftest.err >&5
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); } &&
43183 { ac_try='test -z "$ac_c_werror_flag"
43184 || test ! -s conftest.err'
43185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186 (eval $ac_try) 2>&5
43188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189 (exit $ac_status); }; } &&
43190 { ac_try='test -s conftest$ac_exeext'
43191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192 (eval $ac_try) 2>&5
43194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195 (exit $ac_status); }; }; then
43196 eval "$as_ac_var=yes"
43198 echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43201 eval "$as_ac_var=no"
43203 rm -f conftest.err conftest.$ac_objext \
43204 conftest$ac_exeext conftest.$ac_ext
43206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43208 if test `eval echo '${'$as_ac_var'}'` = yes; then
43209 cat >>confdefs.h <<_ACEOF
43210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43330 echo "$as_me:$LINENO: checking for $ac_func" >&5
43331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43332 if eval "test \"\${$as_ac_var+set}\" = set"; then
43333 echo $ECHO_N "(cached) $ECHO_C" >&6
43335 cat >conftest.$ac_ext <<_ACEOF
43338 cat confdefs.h >>conftest.$ac_ext
43339 cat >>conftest.$ac_ext <<_ACEOF
43340 /* end confdefs.h. */
43341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43343 #define $ac_func innocuous_$ac_func
43345 /* System header to define __stub macros and hopefully few prototypes,
43346 which can conflict with char $ac_func (); below.
43347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43348 <limits.h> exists even on freestanding compilers. */
43351 # include <limits.h>
43353 # include <assert.h>
43358 /* Override any gcc2 internal prototype to avoid an error. */
43363 /* We use char because int might match the return type of a gcc2
43364 builtin and then its argument prototype would still apply. */
43366 /* The GNU C library defines this for functions which it implements
43367 to always fail with ENOSYS. Some functions are actually named
43368 something starting with __ and the normal name is an alias. */
43369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43372 char (*f) () = $ac_func;
43381 return f != $ac_func;
43386 rm -f conftest.$ac_objext conftest$ac_exeext
43387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43388 (eval $ac_link) 2>conftest.er1
43390 grep -v '^ *+' conftest.er1 >conftest.err
43392 cat conftest.err >&5
43393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394 (exit $ac_status); } &&
43395 { ac_try='test -z "$ac_c_werror_flag"
43396 || test ! -s conftest.err'
43397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43398 (eval $ac_try) 2>&5
43400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401 (exit $ac_status); }; } &&
43402 { ac_try='test -s conftest$ac_exeext'
43403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404 (eval $ac_try) 2>&5
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); }; }; then
43408 eval "$as_ac_var=yes"
43410 echo "$as_me: failed program was:" >&5
43411 sed 's/^/| /' conftest.$ac_ext >&5
43413 eval "$as_ac_var=no"
43415 rm -f conftest.err conftest.$ac_objext \
43416 conftest$ac_exeext conftest.$ac_ext
43418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43420 if test `eval echo '${'$as_ac_var'}'` = yes; then
43421 cat >>confdefs.h <<_ACEOF
43422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43431 for ac_func in getopt getpeereid
43433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43434 echo "$as_me:$LINENO: checking for $ac_func" >&5
43435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43436 if eval "test \"\${$as_ac_var+set}\" = set"; then
43437 echo $ECHO_N "(cached) $ECHO_C" >&6
43439 cat >conftest.$ac_ext <<_ACEOF
43442 cat confdefs.h >>conftest.$ac_ext
43443 cat >>conftest.$ac_ext <<_ACEOF
43444 /* end confdefs.h. */
43445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43447 #define $ac_func innocuous_$ac_func
43449 /* System header to define __stub macros and hopefully few prototypes,
43450 which can conflict with char $ac_func (); below.
43451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43452 <limits.h> exists even on freestanding compilers. */
43455 # include <limits.h>
43457 # include <assert.h>
43462 /* Override any gcc2 internal prototype to avoid an error. */
43467 /* We use char because int might match the return type of a gcc2
43468 builtin and then its argument prototype would still apply. */
43470 /* The GNU C library defines this for functions which it implements
43471 to always fail with ENOSYS. Some functions are actually named
43472 something starting with __ and the normal name is an alias. */
43473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43476 char (*f) () = $ac_func;
43485 return f != $ac_func;
43490 rm -f conftest.$ac_objext conftest$ac_exeext
43491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43492 (eval $ac_link) 2>conftest.er1
43494 grep -v '^ *+' conftest.er1 >conftest.err
43496 cat conftest.err >&5
43497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498 (exit $ac_status); } &&
43499 { ac_try='test -z "$ac_c_werror_flag"
43500 || test ! -s conftest.err'
43501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43502 (eval $ac_try) 2>&5
43504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43505 (exit $ac_status); }; } &&
43506 { ac_try='test -s conftest$ac_exeext'
43507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43508 (eval $ac_try) 2>&5
43510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43511 (exit $ac_status); }; }; then
43512 eval "$as_ac_var=yes"
43514 echo "$as_me: failed program was:" >&5
43515 sed 's/^/| /' conftest.$ac_ext >&5
43517 eval "$as_ac_var=no"
43519 rm -f conftest.err conftest.$ac_objext \
43520 conftest$ac_exeext conftest.$ac_ext
43522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43524 if test `eval echo '${'$as_ac_var'}'` = yes; then
43525 cat >>confdefs.h <<_ACEOF
43526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43531 "$ac_func.$ac_objext" | \
43532 *" $ac_func.$ac_objext" | \
43533 "$ac_func.$ac_objext "* | \
43534 *" $ac_func.$ac_objext "* ) ;;
43535 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43543 if test "$ac_cv_func_getopt" != yes; then
43544 LIBSRCS="$LIBSRCS getopt.c"
43547 if test "$ac_cv_func_getpeereid" != yes; then
43549 for ac_func in getpeerucred
43551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43552 echo "$as_me:$LINENO: checking for $ac_func" >&5
43553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43554 if eval "test \"\${$as_ac_var+set}\" = set"; then
43555 echo $ECHO_N "(cached) $ECHO_C" >&6
43557 cat >conftest.$ac_ext <<_ACEOF
43560 cat confdefs.h >>conftest.$ac_ext
43561 cat >>conftest.$ac_ext <<_ACEOF
43562 /* end confdefs.h. */
43563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43565 #define $ac_func innocuous_$ac_func
43567 /* System header to define __stub macros and hopefully few prototypes,
43568 which can conflict with char $ac_func (); below.
43569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43570 <limits.h> exists even on freestanding compilers. */
43573 # include <limits.h>
43575 # include <assert.h>
43580 /* Override any gcc2 internal prototype to avoid an error. */
43585 /* We use char because int might match the return type of a gcc2
43586 builtin and then its argument prototype would still apply. */
43588 /* The GNU C library defines this for functions which it implements
43589 to always fail with ENOSYS. Some functions are actually named
43590 something starting with __ and the normal name is an alias. */
43591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43594 char (*f) () = $ac_func;
43603 return f != $ac_func;
43608 rm -f conftest.$ac_objext conftest$ac_exeext
43609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43610 (eval $ac_link) 2>conftest.er1
43612 grep -v '^ *+' conftest.er1 >conftest.err
43614 cat conftest.err >&5
43615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43616 (exit $ac_status); } &&
43617 { ac_try='test -z "$ac_c_werror_flag"
43618 || test ! -s conftest.err'
43619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43620 (eval $ac_try) 2>&5
43622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43623 (exit $ac_status); }; } &&
43624 { ac_try='test -s conftest$ac_exeext'
43625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43626 (eval $ac_try) 2>&5
43628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629 (exit $ac_status); }; }; then
43630 eval "$as_ac_var=yes"
43632 echo "$as_me: failed program was:" >&5
43633 sed 's/^/| /' conftest.$ac_ext >&5
43635 eval "$as_ac_var=no"
43637 rm -f conftest.err conftest.$ac_objext \
43638 conftest$ac_exeext conftest.$ac_ext
43640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43642 if test `eval echo '${'$as_ac_var'}'` = yes; then
43643 cat >>confdefs.h <<_ACEOF
43644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43650 if test "$ac_cv_func_getpeerucred" != yes ; then
43651 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43652 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43653 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43654 echo $ECHO_N "(cached) $ECHO_C" >&6
43656 cat >conftest.$ac_ext <<_ACEOF
43659 cat confdefs.h >>conftest.$ac_ext
43660 cat >>conftest.$ac_ext <<_ACEOF
43661 /* end confdefs.h. */
43662 $ac_includes_default
43663 #ifdef HAVE_SYS_SOCKET_H
43664 #include <sys/socket.h>
43670 static struct msghdr ac_aggr;
43671 if (ac_aggr.msg_accrightslen)
43677 rm -f conftest.$ac_objext
43678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43679 (eval $ac_compile) 2>conftest.er1
43681 grep -v '^ *+' conftest.er1 >conftest.err
43683 cat conftest.err >&5
43684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685 (exit $ac_status); } &&
43686 { ac_try='test -z "$ac_c_werror_flag"
43687 || test ! -s conftest.err'
43688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43689 (eval $ac_try) 2>&5
43691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); }; } &&
43693 { ac_try='test -s conftest.$ac_objext'
43694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43695 (eval $ac_try) 2>&5
43697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43698 (exit $ac_status); }; }; then
43699 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43701 echo "$as_me: failed program was:" >&5
43702 sed 's/^/| /' conftest.$ac_ext >&5
43704 cat >conftest.$ac_ext <<_ACEOF
43707 cat confdefs.h >>conftest.$ac_ext
43708 cat >>conftest.$ac_ext <<_ACEOF
43709 /* end confdefs.h. */
43710 $ac_includes_default
43711 #ifdef HAVE_SYS_SOCKET_H
43712 #include <sys/socket.h>
43718 static struct msghdr ac_aggr;
43719 if (sizeof ac_aggr.msg_accrightslen)
43725 rm -f conftest.$ac_objext
43726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43727 (eval $ac_compile) 2>conftest.er1
43729 grep -v '^ *+' conftest.er1 >conftest.err
43731 cat conftest.err >&5
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); } &&
43734 { ac_try='test -z "$ac_c_werror_flag"
43735 || test ! -s conftest.err'
43736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43737 (eval $ac_try) 2>&5
43739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740 (exit $ac_status); }; } &&
43741 { ac_try='test -s conftest.$ac_objext'
43742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43743 (eval $ac_try) 2>&5
43745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43746 (exit $ac_status); }; }; then
43747 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43749 echo "$as_me: failed program was:" >&5
43750 sed 's/^/| /' conftest.$ac_ext >&5
43752 ac_cv_member_struct_msghdr_msg_accrightslen=no
43754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43759 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43760 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43762 cat >>confdefs.h <<_ACEOF
43763 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43769 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43770 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43771 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43772 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43773 echo $ECHO_N "(cached) $ECHO_C" >&6
43775 cat >conftest.$ac_ext <<_ACEOF
43778 cat confdefs.h >>conftest.$ac_ext
43779 cat >>conftest.$ac_ext <<_ACEOF
43780 /* end confdefs.h. */
43781 $ac_includes_default
43782 #ifdef HAVE_SYS_SOCKET_H
43783 #include <sys/socket.h>
43789 static struct msghdr ac_aggr;
43790 if (ac_aggr.msg_control)
43796 rm -f conftest.$ac_objext
43797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43798 (eval $ac_compile) 2>conftest.er1
43800 grep -v '^ *+' conftest.er1 >conftest.err
43802 cat conftest.err >&5
43803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43804 (exit $ac_status); } &&
43805 { ac_try='test -z "$ac_c_werror_flag"
43806 || test ! -s conftest.err'
43807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43808 (eval $ac_try) 2>&5
43810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43811 (exit $ac_status); }; } &&
43812 { ac_try='test -s conftest.$ac_objext'
43813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43814 (eval $ac_try) 2>&5
43816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43817 (exit $ac_status); }; }; then
43818 ac_cv_member_struct_msghdr_msg_control=yes
43820 echo "$as_me: failed program was:" >&5
43821 sed 's/^/| /' conftest.$ac_ext >&5
43823 cat >conftest.$ac_ext <<_ACEOF
43826 cat confdefs.h >>conftest.$ac_ext
43827 cat >>conftest.$ac_ext <<_ACEOF
43828 /* end confdefs.h. */
43829 $ac_includes_default
43830 #ifdef HAVE_SYS_SOCKET_H
43831 #include <sys/socket.h>
43837 static struct msghdr ac_aggr;
43838 if (sizeof ac_aggr.msg_control)
43844 rm -f conftest.$ac_objext
43845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43846 (eval $ac_compile) 2>conftest.er1
43848 grep -v '^ *+' conftest.er1 >conftest.err
43850 cat conftest.err >&5
43851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852 (exit $ac_status); } &&
43853 { ac_try='test -z "$ac_c_werror_flag"
43854 || test ! -s conftest.err'
43855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856 (eval $ac_try) 2>&5
43858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859 (exit $ac_status); }; } &&
43860 { ac_try='test -s conftest.$ac_objext'
43861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43862 (eval $ac_try) 2>&5
43864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43865 (exit $ac_status); }; }; then
43866 ac_cv_member_struct_msghdr_msg_control=yes
43868 echo "$as_me: failed program was:" >&5
43869 sed 's/^/| /' conftest.$ac_ext >&5
43871 ac_cv_member_struct_msghdr_msg_control=no
43873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43877 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43878 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43879 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43881 cat >>confdefs.h <<_ACEOF
43882 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43890 LIBSRCS="$LIBSRCS getpeereid.c"
43893 if test "$ac_cv_func_snprintf" != yes ||
43894 test "$ac_cv_func_vsnprintf" != yes; then
43895 if test "$ac_cv_func_snprintf" != yes; then
43897 cat >>confdefs.h <<\_ACEOF
43898 #define snprintf ber_pvt_snprintf
43902 if test "$ac_cv_func_vsnprintf" != yes; then
43904 cat >>confdefs.h <<\_ACEOF
43905 #define vsnprintf ber_pvt_vsnprintf
43912 if test "$ol_enable_slapi" != no ; then
43914 for ac_header in ltdl.h
43916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43918 echo "$as_me:$LINENO: checking for $ac_header" >&5
43919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43921 echo $ECHO_N "(cached) $ECHO_C" >&6
43923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43926 # Is the header compilable?
43927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43929 cat >conftest.$ac_ext <<_ACEOF
43932 cat confdefs.h >>conftest.$ac_ext
43933 cat >>conftest.$ac_ext <<_ACEOF
43934 /* end confdefs.h. */
43935 $ac_includes_default
43936 #include <$ac_header>
43938 rm -f conftest.$ac_objext
43939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43940 (eval $ac_compile) 2>conftest.er1
43942 grep -v '^ *+' conftest.er1 >conftest.err
43944 cat conftest.err >&5
43945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); } &&
43947 { ac_try='test -z "$ac_c_werror_flag"
43948 || test ! -s conftest.err'
43949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43950 (eval $ac_try) 2>&5
43952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43953 (exit $ac_status); }; } &&
43954 { ac_try='test -s conftest.$ac_objext'
43955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43956 (eval $ac_try) 2>&5
43958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43959 (exit $ac_status); }; }; then
43960 ac_header_compiler=yes
43962 echo "$as_me: failed program was:" >&5
43963 sed 's/^/| /' conftest.$ac_ext >&5
43965 ac_header_compiler=no
43967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43969 echo "${ECHO_T}$ac_header_compiler" >&6
43971 # Is the header present?
43972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43974 cat >conftest.$ac_ext <<_ACEOF
43977 cat confdefs.h >>conftest.$ac_ext
43978 cat >>conftest.$ac_ext <<_ACEOF
43979 /* end confdefs.h. */
43980 #include <$ac_header>
43982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43985 grep -v '^ *+' conftest.er1 >conftest.err
43987 cat conftest.err >&5
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); } >/dev/null; then
43990 if test -s conftest.err; then
43991 ac_cpp_err=$ac_c_preproc_warn_flag
43992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43999 if test -z "$ac_cpp_err"; then
44000 ac_header_preproc=yes
44002 echo "$as_me: failed program was:" >&5
44003 sed 's/^/| /' conftest.$ac_ext >&5
44005 ac_header_preproc=no
44007 rm -f conftest.err conftest.$ac_ext
44008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44009 echo "${ECHO_T}$ac_header_preproc" >&6
44011 # So? What about this header?
44012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44018 ac_header_preproc=yes
44021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44035 ## --------------------------------------------- ##
44036 ## Report this to <http://www.openldap.org/its/> ##
44037 ## --------------------------------------------- ##
44040 sed "s/^/$as_me: WARNING: /" >&2
44043 echo "$as_me:$LINENO: checking for $ac_header" >&5
44044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44046 echo $ECHO_N "(cached) $ECHO_C" >&6
44048 eval "$as_ac_Header=\$ac_header_preproc"
44050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44055 cat >>confdefs.h <<_ACEOF
44056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44064 if test $ac_cv_header_ltdl_h != yes ; then
44065 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44066 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44067 { (exit 1); exit 1; }; }
44069 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44070 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44071 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44072 echo $ECHO_N "(cached) $ECHO_C" >&6
44074 ac_check_lib_save_LIBS=$LIBS
44075 LIBS="-lltdl $LIBS"
44076 cat >conftest.$ac_ext <<_ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h. */
44083 /* Override any gcc2 internal prototype to avoid an error. */
44087 /* We use char because int might match the return type of a gcc2
44088 builtin and then its argument prototype would still apply. */
44098 rm -f conftest.$ac_objext conftest$ac_exeext
44099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44100 (eval $ac_link) 2>conftest.er1
44102 grep -v '^ *+' conftest.er1 >conftest.err
44104 cat conftest.err >&5
44105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44106 (exit $ac_status); } &&
44107 { ac_try='test -z "$ac_c_werror_flag"
44108 || test ! -s conftest.err'
44109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44110 (eval $ac_try) 2>&5
44112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44113 (exit $ac_status); }; } &&
44114 { ac_try='test -s conftest$ac_exeext'
44115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44116 (eval $ac_try) 2>&5
44118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44119 (exit $ac_status); }; }; then
44120 ac_cv_lib_ltdl_lt_dlinit=yes
44122 echo "$as_me: failed program was:" >&5
44123 sed 's/^/| /' conftest.$ac_ext >&5
44125 ac_cv_lib_ltdl_lt_dlinit=no
44127 rm -f conftest.err conftest.$ac_objext \
44128 conftest$ac_exeext conftest.$ac_ext
44129 LIBS=$ac_check_lib_save_LIBS
44131 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44132 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44133 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44136 LIBSLAPI=libslapi.a
44137 LIBSLAPITOOLS=../libslapi.a
44139 cat >>confdefs.h <<\_ACEOF
44140 #define HAVE_LIBLTDL 1
44145 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44146 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44147 { (exit 1); exit 1; }; }
44152 cat >>confdefs.h <<\_ACEOF
44153 #define LDAP_SLAPI 1
44158 if test "$ol_enable_debug" != no ; then
44159 if test "$ol_enable_debug" = traditional; then
44161 cat >>confdefs.h <<\_ACEOF
44162 #define OLD_DEBUG 1
44167 cat >>confdefs.h <<\_ACEOF
44168 #define LDAP_DEBUG 1
44172 if test "$ol_enable_syslog" = yes ; then
44174 cat >>confdefs.h <<\_ACEOF
44175 #define LDAP_SYSLOG 1
44179 if test "$ol_link_kbind" != no ; then
44181 cat >>confdefs.h <<\_ACEOF
44182 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44186 if test "$ol_enable_proctitle" != no ; then
44188 cat >>confdefs.h <<\_ACEOF
44189 #define LDAP_PROCTITLE 1
44193 if test "$ol_enable_referrals" != no ; then
44195 cat >>confdefs.h <<\_ACEOF
44196 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44200 if test "$ol_enable_local" != no; then
44202 cat >>confdefs.h <<\_ACEOF
44203 #define LDAP_PF_LOCAL 1
44207 if test "$ol_link_ipv6" != no; then
44209 cat >>confdefs.h <<\_ACEOF
44210 #define LDAP_PF_INET6 1
44214 if test "$ol_enable_cleartext" != no ; then
44216 cat >>confdefs.h <<\_ACEOF
44217 #define SLAPD_CLEARTEXT 1
44221 if test "$ol_enable_crypt" != no ; then
44223 cat >>confdefs.h <<\_ACEOF
44224 #define SLAPD_CRYPT 1
44228 if test "$ol_link_spasswd" != no ; then
44230 cat >>confdefs.h <<\_ACEOF
44231 #define SLAPD_SPASSWD 1
44235 if test "$ol_enable_multimaster" != no ; then
44237 cat >>confdefs.h <<\_ACEOF
44238 #define SLAPD_MULTIMASTER 1
44242 if test "$ol_enable_rlookups" != no ; then
44244 cat >>confdefs.h <<\_ACEOF
44245 #define SLAPD_RLOOKUPS 1
44249 if test "$ol_enable_aci" != no ; then
44250 if test $ol_enable_dynacl = no ; then
44251 ol_enable_dynacl=yes
44252 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44253 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44255 if test "$ol_enable_aci" = mod ; then
44256 MFLAG=SLAPD_MOD_DYNAMIC
44257 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44258 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44259 { (exit 1); exit 1; }; }
44261 MFLAG=SLAPD_MOD_STATIC
44263 WITH_ACI_ENABLED=$ol_enable_aci
44265 cat >>confdefs.h <<_ACEOF
44266 #define SLAPD_ACI_ENABLED $MFLAG
44270 WITH_ACI_ENABLED=no
44272 if test "$ol_enable_dynacl" != no ; then
44274 cat >>confdefs.h <<\_ACEOF
44275 #define SLAP_DYNACL 1
44280 if test "$ol_link_modules" != no ; then
44282 cat >>confdefs.h <<\_ACEOF
44283 #define SLAPD_MODULES 1
44287 SLAPD_MODULES_LDFLAGS="-dlopen self"
44291 cat >>confdefs.h <<\_ACEOF
44292 #define SLAPD_MOD_STATIC 1
44296 cat >>confdefs.h <<\_ACEOF
44297 #define SLAPD_MOD_DYNAMIC 2
44301 if test "$ol_enable_bdb" != no ; then
44303 BUILD_BDB=$ol_enable_bdb
44304 if test "$ol_enable_bdb" = mod ; then
44305 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44306 MFLAG=SLAPD_MOD_DYNAMIC
44308 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44309 MFLAG=SLAPD_MOD_STATIC
44312 cat >>confdefs.h <<_ACEOF
44313 #define SLAPD_BDB $MFLAG
44318 if test "$ol_enable_dnssrv" != no ; then
44320 BUILD_DNSSRV=$ol_enable_dnssrv
44321 if test "$ol_enable_dnssrv" = mod ; then
44322 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44323 MFLAG=SLAPD_MOD_DYNAMIC
44325 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44326 MFLAG=SLAPD_MOD_STATIC
44329 cat >>confdefs.h <<_ACEOF
44330 #define SLAPD_DNSSRV $MFLAG
44335 if test "$ol_enable_hdb" != no ; then
44337 BUILD_HDB=$ol_enable_hdb
44338 if test "$ol_enable_hdb" = mod ; then
44339 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44340 MFLAG=SLAPD_MOD_DYNAMIC
44342 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44343 MFLAG=SLAPD_MOD_STATIC
44346 cat >>confdefs.h <<_ACEOF
44347 #define SLAPD_HDB $MFLAG
44352 if test "$ol_enable_ldap" != no ; then
44354 BUILD_LDAP=$ol_enable_ldap
44355 if test "$ol_enable_ldap" = mod ; then
44356 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44357 MFLAG=SLAPD_MOD_DYNAMIC
44359 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44360 MFLAG=SLAPD_MOD_STATIC
44363 cat >>confdefs.h <<_ACEOF
44364 #define SLAPD_LDAP $MFLAG
44369 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44371 BUILD_LDBM=$ol_enable_ldbm
44372 if test "$ol_enable_ldbm" = mod ; then
44373 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44374 MFLAG=SLAPD_MOD_DYNAMIC
44376 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44377 MFLAG=SLAPD_MOD_STATIC
44380 cat >>confdefs.h <<_ACEOF
44381 #define SLAPD_LDBM $MFLAG
44386 if test "$ol_enable_meta" != no ; then
44388 BUILD_META=$ol_enable_meta
44390 if test "$ol_enable_meta" = mod ; then
44391 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44392 MFLAG=SLAPD_MOD_DYNAMIC
44394 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44395 MFLAG=SLAPD_MOD_STATIC
44398 cat >>confdefs.h <<_ACEOF
44399 #define SLAPD_META $MFLAG
44404 if test "$ol_enable_monitor" != no ; then
44406 BUILD_MONITOR=$ol_enable_monitor
44407 if test "$ol_enable_monitor" = mod ; then
44408 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44409 MFLAG=SLAPD_MOD_DYNAMIC
44411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44412 MFLAG=SLAPD_MOD_STATIC
44415 cat >>confdefs.h <<_ACEOF
44416 #define SLAPD_MONITOR $MFLAG
44421 if test "$ol_enable_null" != no ; then
44423 BUILD_NULL=$ol_enable_null
44424 if test "$ol_enable_null" = mod ; then
44425 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44426 MFLAG=SLAPD_MOD_DYNAMIC
44428 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44429 MFLAG=SLAPD_MOD_STATIC
44432 cat >>confdefs.h <<_ACEOF
44433 #define SLAPD_NULL $MFLAG
44438 if test "$ol_enable_passwd" != no ; then
44440 BUILD_PASSWD=$ol_enable_passwd
44441 if test "$ol_enable_passwd" = mod ; then
44442 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44443 MFLAG=SLAPD_MOD_DYNAMIC
44445 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44446 MFLAG=SLAPD_MOD_STATIC
44449 cat >>confdefs.h <<_ACEOF
44450 #define SLAPD_PASSWD $MFLAG
44455 if test "$ol_link_perl" != no ; then
44457 BUILD_PERL=$ol_enable_perl
44458 if test "$ol_enable_perl" = mod ; then
44459 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44460 MFLAG=SLAPD_MOD_DYNAMIC
44462 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44463 MFLAG=SLAPD_MOD_STATIC
44466 cat >>confdefs.h <<_ACEOF
44467 #define SLAPD_PERL $MFLAG
44472 if test "$ol_enable_relay" != no ; then
44474 BUILD_RELAY=$ol_enable_relay
44475 if test "$ol_enable_relay" = mod ; then
44476 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44477 MFLAG=SLAPD_MOD_DYNAMIC
44479 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44480 MFLAG=SLAPD_MOD_STATIC
44483 cat >>confdefs.h <<_ACEOF
44484 #define SLAPD_RELAY $MFLAG
44489 if test "$ol_enable_shell" != no ; then
44490 if test "$ol_link_threads" != no ; then
44491 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44492 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44495 BUILD_SHELL=$ol_enable_shell
44496 if test "$ol_enable_shell" = mod ; then
44497 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44498 MFLAG=SLAPD_MOD_DYNAMIC
44500 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44501 MFLAG=SLAPD_MOD_STATIC
44504 cat >>confdefs.h <<_ACEOF
44505 #define SLAPD_SHELL $MFLAG
44510 if test "$ol_link_sql" != no ; then
44512 BUILD_SQL=$ol_enable_sql
44513 if test "$ol_enable_sql" = mod; then
44514 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44515 MFLAG=SLAPD_MOD_DYNAMIC
44517 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44518 MFLAG=SLAPD_MOD_STATIC
44521 cat >>confdefs.h <<_ACEOF
44522 #define SLAPD_SQL $MFLAG
44527 if test "$ol_enable_accesslog" != no ; then
44528 BUILD_ACCESSLOG=$ol_enable_accesslog
44529 if test "$ol_enable_accesslog" = mod ; then
44530 MFLAG=SLAPD_MOD_DYNAMIC
44531 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44533 MFLAG=SLAPD_MOD_STATIC
44534 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44537 cat >>confdefs.h <<_ACEOF
44538 #define SLAPD_OVER_ACCESSLOG $MFLAG
44543 if test "$ol_enable_dds" != no ; then
44544 BUILD_DDS=$ol_enable_dds
44545 if test "$ol_enable_dds" = mod ; then
44546 MFLAG=SLAPD_MOD_DYNAMIC
44547 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44549 MFLAG=SLAPD_MOD_STATIC
44550 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44553 cat >>confdefs.h <<_ACEOF
44554 #define SLAPD_OVER_DDS $MFLAG
44559 if test "$ol_enable_denyop" != no ; then
44560 BUILD_DENYOP=$ol_enable_denyop
44561 if test "$ol_enable_denyop" = mod ; then
44562 MFLAG=SLAPD_MOD_DYNAMIC
44563 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44565 MFLAG=SLAPD_MOD_STATIC
44566 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44569 cat >>confdefs.h <<_ACEOF
44570 #define SLAPD_OVER_DENYOP $MFLAG
44575 if test "$ol_enable_dyngroup" != no ; then
44576 BUILD_DYNGROUP=$ol_enable_dyngroup
44577 if test "$ol_enable_dyngroup" = mod ; then
44578 MFLAG=SLAPD_MOD_DYNAMIC
44579 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44581 MFLAG=SLAPD_MOD_STATIC
44582 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44585 cat >>confdefs.h <<_ACEOF
44586 #define SLAPD_OVER_DYNGROUP $MFLAG
44591 if test "$ol_enable_dynlist" != no ; then
44592 BUILD_DYNLIST=$ol_enable_dynlist
44593 if test "$ol_enable_dynlist" = mod ; then
44594 MFLAG=SLAPD_MOD_DYNAMIC
44595 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44597 MFLAG=SLAPD_MOD_STATIC
44598 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44601 cat >>confdefs.h <<_ACEOF
44602 #define SLAPD_OVER_DYNLIST $MFLAG
44607 if test "$ol_enable_lastmod" != no ; then
44608 BUILD_LASTMOD=$ol_enable_lastmod
44609 if test "$ol_enable_lastmod" = mod ; then
44610 MFLAG=SLAPD_MOD_DYNAMIC
44611 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44613 MFLAG=SLAPD_MOD_STATIC
44614 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44617 cat >>confdefs.h <<_ACEOF
44618 #define SLAPD_OVER_LASTMOD $MFLAG
44623 if test "$ol_enable_ppolicy" != no ; then
44624 BUILD_PPOLICY=$ol_enable_ppolicy
44625 if test "$ol_enable_ppolicy" = mod ; then
44626 MFLAG=SLAPD_MOD_DYNAMIC
44627 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44629 MFLAG=SLAPD_MOD_STATIC
44630 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44633 cat >>confdefs.h <<_ACEOF
44634 #define SLAPD_OVER_PPOLICY $MFLAG
44639 if test "$ol_enable_proxycache" != no ; then
44640 BUILD_PROXYCACHE=$ol_enable_proxycache
44641 if test "$ol_enable_proxycache" = mod ; then
44642 MFLAG=SLAPD_MOD_DYNAMIC
44643 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44645 MFLAG=SLAPD_MOD_STATIC
44646 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44649 cat >>confdefs.h <<_ACEOF
44650 #define SLAPD_OVER_PROXYCACHE $MFLAG
44655 if test "$ol_enable_refint" != no ; then
44656 BUILD_REFINT=$ol_enable_refint
44657 if test "$ol_enable_refint" = mod ; then
44658 MFLAG=SLAPD_MOD_DYNAMIC
44659 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44661 MFLAG=SLAPD_MOD_STATIC
44662 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44665 cat >>confdefs.h <<_ACEOF
44666 #define SLAPD_OVER_REFINT $MFLAG
44671 if test "$ol_enable_retcode" != no ; then
44672 BUILD_RETCODE=$ol_enable_retcode
44673 if test "$ol_enable_retcode" = mod ; then
44674 MFLAG=SLAPD_MOD_DYNAMIC
44675 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44677 MFLAG=SLAPD_MOD_STATIC
44678 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44681 cat >>confdefs.h <<_ACEOF
44682 #define SLAPD_OVER_RETCODE $MFLAG
44687 if test "$ol_enable_rwm" != no ; then
44689 BUILD_RWM=$ol_enable_rwm
44690 if test "$ol_enable_rwm" = mod ; then
44691 MFLAG=SLAPD_MOD_DYNAMIC
44692 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44694 MFLAG=SLAPD_MOD_STATIC
44695 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44698 cat >>confdefs.h <<_ACEOF
44699 #define SLAPD_OVER_RWM $MFLAG
44704 if test "$ol_enable_syncprov" != no ; then
44705 BUILD_SYNCPROV=$ol_enable_syncprov
44706 if test "$ol_enable_syncprov" = mod ; then
44707 MFLAG=SLAPD_MOD_DYNAMIC
44708 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44710 MFLAG=SLAPD_MOD_STATIC
44711 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44714 cat >>confdefs.h <<_ACEOF
44715 #define SLAPD_OVER_SYNCPROV $MFLAG
44720 if test "$ol_enable_translucent" != no ; then
44721 BUILD_TRANSLUCENT=$ol_enable_translucent
44722 if test "$ol_enable_translucent" = mod ; then
44723 MFLAG=SLAPD_MOD_DYNAMIC
44724 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44726 MFLAG=SLAPD_MOD_STATIC
44727 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44730 cat >>confdefs.h <<_ACEOF
44731 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44736 if test "$ol_enable_unique" != no ; then
44737 BUILD_UNIQUE=$ol_enable_unique
44738 if test "$ol_enable_unique" = mod ; then
44739 MFLAG=SLAPD_MOD_DYNAMIC
44740 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44742 MFLAG=SLAPD_MOD_STATIC
44743 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44746 cat >>confdefs.h <<_ACEOF
44747 #define SLAPD_OVER_UNIQUE $MFLAG
44752 if test "$ol_enable_valsort" != no ; then
44753 BUILD_VALSORT=$ol_enable_valsort
44754 if test "$ol_enable_valsort" = mod ; then
44755 MFLAG=SLAPD_MOD_DYNAMIC
44756 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44758 MFLAG=SLAPD_MOD_STATIC
44759 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44762 cat >>confdefs.h <<_ACEOF
44763 #define SLAPD_OVER_VALSORT $MFLAG
44768 if test "$ol_enable_slurpd" != no &&
44769 test "$ol_link_threads" != no &&
44770 test $BUILD_SLAPD = yes ; then
44774 if test "$ol_enable_rewrite" != no ; then
44776 cat >>confdefs.h <<\_ACEOF
44777 #define ENABLE_REWRITE 1
44783 if test "$ol_enable_slapi" != no ; then
44785 cat >>confdefs.h <<\_ACEOF
44786 #define ENABLE_SLAPI 1
44790 SLAPD_SLAPI_DEPEND=libslapi.a
44795 if test "$ac_cv_mingw32" = yes ; then
44797 SLAPD_MODULES_LDFLAGS=
44884 # Check whether --with-xxinstall or --without-xxinstall was given.
44885 if test "${with_xxinstall+set}" = set; then
44886 withval="$with_xxinstall"
44891 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
44894 ac_config_commands="$ac_config_commands default"
44898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44899 # Let make expand exec_prefix.
44900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44904 # trailing colons and then remove the whole line if VPATH becomes empty
44905 # (actually we leave an empty line to preserve line numbers).
44906 if test "x$srcdir" = x.; then
44907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44908 s/:*\$(srcdir):*/:/;
44909 s/:*\${srcdir}:*/:/;
44911 s/^\([^=]*=[ ]*\):*/\1/;
44917 DEFS=-DHAVE_CONFIG_H
44921 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44922 # 1. Remove the extension, and $U if already installed.
44923 ac_i=`echo "$ac_i" |
44924 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44926 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44927 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44929 LIBOBJS=$ac_libobjs
44931 LTLIBOBJS=$ac_ltlibobjs
44934 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44935 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44936 Usually this means the macro was only invoked conditionally." >&5
44937 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44938 Usually this means the macro was only invoked conditionally." >&2;}
44939 { (exit 1); exit 1; }; }
44941 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44942 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44943 Usually this means the macro was only invoked conditionally." >&5
44944 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44945 Usually this means the macro was only invoked conditionally." >&2;}
44946 { (exit 1); exit 1; }; }
44948 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44949 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44950 Usually this means the macro was only invoked conditionally." >&5
44951 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44952 Usually this means the macro was only invoked conditionally." >&2;}
44953 { (exit 1); exit 1; }; }
44956 : ${CONFIG_STATUS=./config.status}
44957 ac_clean_files_save=$ac_clean_files
44958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44959 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44960 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44961 cat >$CONFIG_STATUS <<_ACEOF
44963 # Generated by $as_me.
44964 # Run this file to recreate the current configuration.
44965 # Compiler output produced by configure, useful for debugging
44966 # configure, is in config.log if it exists.
44969 ac_cs_recheck=false
44971 SHELL=\${CONFIG_SHELL-$SHELL}
44974 cat >>$CONFIG_STATUS <<\_ACEOF
44975 ## --------------------- ##
44976 ## M4sh Initialization. ##
44977 ## --------------------- ##
44979 # Be Bourne compatible
44980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44983 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44984 # is contrary to our usage. Disable this feature.
44985 alias -g '${1+"$@"}'='"$@"'
44986 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44989 DUALCASE=1; export DUALCASE # for MKS sh
44991 # Support unset when possible.
44992 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44999 # Work around bugs in pre-3.0 UWIN ksh.
45000 $as_unset ENV MAIL MAILPATH
45007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45009 LC_TELEPHONE LC_TIME
45011 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45012 eval $as_var=C; export $as_var
45018 # Required to use basename.
45019 if expr a : '\(a\)' >/dev/null 2>&1; then
45025 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45026 as_basename=basename
45032 # Name of the executable.
45033 as_me=`$as_basename "$0" ||
45034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45035 X"$0" : 'X\(//\)$' \| \
45036 X"$0" : 'X\(/\)$' \| \
45037 . : '\(.\)' 2>/dev/null ||
45039 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45040 /^X\/\(\/\/\)$/{ s//\1/; q; }
45041 /^X\/\(\/\).*/{ s//\1/; q; }
45045 # PATH needs CR, and LINENO needs CR and PATH.
45046 # Avoid depending upon Character Ranges.
45047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45050 as_cr_digits='0123456789'
45051 as_cr_alnum=$as_cr_Letters$as_cr_digits
45053 # The user is always right.
45054 if test "${PATH_SEPARATOR+set}" != set; then
45055 echo "#! /bin/sh" >conf$$.sh
45056 echo "exit 0" >>conf$$.sh
45058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45067 as_lineno_1=$LINENO
45068 as_lineno_2=$LINENO
45069 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45070 test "x$as_lineno_1" != "x$as_lineno_2" &&
45071 test "x$as_lineno_3" = "x$as_lineno_2" || {
45072 # Find who we are. Look in the path if we contain no path at all
45075 *[\\/]* ) as_myself=$0 ;;
45076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45077 for as_dir in $PATH
45080 test -z "$as_dir" && as_dir=.
45081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45086 # We did not find ourselves, most probably we were run as `sh COMMAND'
45087 # in which case we are not to be found in the path.
45088 if test "x$as_myself" = x; then
45091 if test ! -f "$as_myself"; then
45092 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45093 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45094 { (exit 1); exit 1; }; }
45096 case $CONFIG_SHELL in
45098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45099 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45102 test -z "$as_dir" && as_dir=.
45103 for as_base in sh bash ksh sh5; do
45106 if ("$as_dir/$as_base" -c '
45107 as_lineno_1=$LINENO
45108 as_lineno_2=$LINENO
45109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45110 test "x$as_lineno_1" != "x$as_lineno_2" &&
45111 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45112 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45113 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45114 CONFIG_SHELL=$as_dir/$as_base
45115 export CONFIG_SHELL
45116 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45124 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45125 # uniformly replaced by the line number. The first 'sed' inserts a
45126 # line-number line before each line; the second 'sed' does the real
45127 # work. The second script uses 'N' to pair each line-number line
45128 # with the numbered line, and appends trailing '-' during
45129 # substitution so that $LINENO is not a special case at line end.
45130 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45131 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45132 sed '=' <$as_myself |
45137 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45140 s,^['$as_cr_digits']*\n,,
45141 ' >$as_me.lineno &&
45142 chmod +x $as_me.lineno ||
45143 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45144 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45145 { (exit 1); exit 1; }; }
45147 # Don't try to exec as it changes $[0], causing all sort of problems
45148 # (the dirname of $[0] is not the place where we might find the
45149 # original and so on. Autoconf is especially sensible to this).
45151 # Exit status is that of the last command.
45156 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45157 *c*,-n*) ECHO_N= ECHO_C='
45159 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45160 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45163 if expr a : '\(a\)' >/dev/null 2>&1; then
45169 rm -f conf$$ conf$$.exe conf$$.file
45171 if ln -s conf$$.file conf$$ 2>/dev/null; then
45172 # We could just check for DJGPP; but this test a) works b) is more generic
45173 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45174 if test -f conf$$.exe; then
45175 # Don't use ln at all; we don't have any links
45180 elif ln conf$$.file conf$$ 2>/dev/null; then
45185 rm -f conf$$ conf$$.exe conf$$.file
45187 if mkdir -p . 2>/dev/null; then
45190 test -d ./-p && rmdir ./-p
45194 as_executable_p="test -f"
45196 # Sed expression to map a string onto a valid CPP name.
45197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45199 # Sed expression to map a string onto a valid variable name.
45200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45204 # We need space, tab and new line, in precisely that order.
45214 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45215 # report actual input values of CONFIG_FILES etc. instead of their
45216 # values after options handling. Logging --version etc. is OK.
45220 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45221 ## Running $as_me. ##
45226 This file was extended by $as_me, which was
45227 generated by GNU Autoconf 2.59. Invocation command line was
45229 CONFIG_FILES = $CONFIG_FILES
45230 CONFIG_HEADERS = $CONFIG_HEADERS
45231 CONFIG_LINKS = $CONFIG_LINKS
45232 CONFIG_COMMANDS = $CONFIG_COMMANDS
45236 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45240 # Files that config.status was made for.
45241 if test -n "$ac_config_files"; then
45242 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45245 if test -n "$ac_config_headers"; then
45246 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45249 if test -n "$ac_config_links"; then
45250 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45253 if test -n "$ac_config_commands"; then
45254 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45257 cat >>$CONFIG_STATUS <<\_ACEOF
45260 \`$as_me' instantiates files from templates according to the
45261 current configuration.
45263 Usage: $0 [OPTIONS] [FILE]...
45265 -h, --help print this help, then exit
45266 -V, --version print version number, then exit
45267 -q, --quiet do not print progress messages
45268 -d, --debug don't remove temporary files
45269 --recheck update $as_me by reconfiguring in the same conditions
45270 --file=FILE[:TEMPLATE]
45271 instantiate the configuration file FILE
45272 --header=FILE[:TEMPLATE]
45273 instantiate the configuration header FILE
45275 Configuration files:
45278 Configuration headers:
45281 Configuration commands:
45284 Report bugs to <bug-autoconf@gnu.org>."
45287 cat >>$CONFIG_STATUS <<_ACEOF
45290 configured by $0, generated by GNU Autoconf 2.59,
45291 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45293 Copyright (C) 2003 Free Software Foundation, Inc.
45294 This config.status script is free software; the Free Software Foundation
45295 gives unlimited permission to copy, distribute and modify it."
45300 cat >>$CONFIG_STATUS <<\_ACEOF
45301 # If no file are specified by the user, then we need to provide default
45302 # value. By we need to know if files were specified by the user.
45308 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45309 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45317 *) # This is not an option, so the user has probably given explicit
45320 ac_need_defaults=false;;
45324 # Handling of the options.
45326 cat >>$CONFIG_STATUS <<\_ACEOF
45327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45329 --version | --vers* | -V )
45330 echo "$ac_cs_version"; exit 0 ;;
45332 # Conflict between --help and --header
45333 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45334 Try \`$0 --help' for more information." >&5
45335 echo "$as_me: error: ambiguous option: $1
45336 Try \`$0 --help' for more information." >&2;}
45337 { (exit 1); exit 1; }; };;
45338 --help | --hel | -h )
45339 echo "$ac_cs_usage"; exit 0 ;;
45340 --debug | --d* | -d )
45342 --file | --fil | --fi | --f )
45344 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45345 ac_need_defaults=false;;
45346 --header | --heade | --head | --hea )
45348 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45349 ac_need_defaults=false;;
45350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45351 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45354 # This is an error.
45355 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45356 Try \`$0 --help' for more information." >&5
45357 echo "$as_me: error: unrecognized option: $1
45358 Try \`$0 --help' for more information." >&2;}
45359 { (exit 1); exit 1; }; } ;;
45361 *) ac_config_targets="$ac_config_targets $1" ;;
45367 ac_configure_extra_args=
45369 if $ac_cs_silent; then
45371 ac_configure_extra_args="$ac_configure_extra_args --silent"
45375 cat >>$CONFIG_STATUS <<_ACEOF
45376 if \$ac_cs_recheck; then
45377 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45378 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45383 cat >>$CONFIG_STATUS <<_ACEOF
45385 # INIT-COMMANDS section.
45388 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45390 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45391 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45398 cat >>$CONFIG_STATUS <<\_ACEOF
45399 for ac_config_target in $ac_config_targets
45401 case "$ac_config_target" in
45402 # Handling of arguments.
45403 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45404 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45405 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45406 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45407 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45408 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45409 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45410 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45411 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45412 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45413 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45414 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45415 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45416 "libraries/libldap_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45417 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45418 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45419 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45420 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45421 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45422 "servers/slapd/back-bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk" ;;
45423 "servers/slapd/back-dnssrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk" ;;
45424 "servers/slapd/back-hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk" ;;
45425 "servers/slapd/back-ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk" ;;
45426 "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
45427 "servers/slapd/back-ldif/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk" ;;
45428 "servers/slapd/back-meta/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk" ;;
45429 "servers/slapd/back-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk" ;;
45430 "servers/slapd/back-null/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk" ;;
45431 "servers/slapd/back-passwd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk" ;;
45432 "servers/slapd/back-perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk" ;;
45433 "servers/slapd/back-relay/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk" ;;
45434 "servers/slapd/back-shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk" ;;
45435 "servers/slapd/back-sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk" ;;
45436 "servers/slapd/shell-backends/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk" ;;
45437 "servers/slapd/slapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45438 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45439 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45440 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45441 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45442 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45443 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45444 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45445 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45446 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45447 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45448 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45449 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45450 { (exit 1); exit 1; }; };;
45454 # If the user did not use the arguments to specify the items to instantiate,
45455 # then the envvar interface is used. Set only those that are not.
45456 # We use the long form for the default assignment because of an extremely
45457 # bizarre bug on SunOS 4.1.3.
45458 if $ac_need_defaults; then
45459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45464 # Have a temporary directory for convenience. Make it in the build tree
45465 # simply because there is no reason to put it here, and in addition,
45466 # creating and moving files from /tmp can sometimes cause problems.
45467 # Create a temporary directory, and hook for its removal unless debugging.
45470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45471 trap '{ (exit 1); exit 1; }' 1 2 13 15
45474 # Create a (secure) tmp directory for tmp files.
45477 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45478 test -n "$tmp" && test -d "$tmp"
45481 tmp=./confstat$$-$RANDOM
45482 (umask 077 && mkdir $tmp)
45485 echo "$me: cannot create a temporary directory in ." >&2
45486 { (exit 1); exit 1; }
45491 cat >>$CONFIG_STATUS <<_ACEOF
45494 # CONFIG_FILES section.
45497 # No need to generate the scripts if there are no CONFIG_FILES.
45498 # This happens for instance when ./config.status config.h
45499 if test -n "\$CONFIG_FILES"; then
45500 # Protect against being on the right side of a sed subst in config.status.
45501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45503 s,@SHELL@,$SHELL,;t t
45504 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45505 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45506 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45507 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45508 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45509 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45510 s,@exec_prefix@,$exec_prefix,;t t
45511 s,@prefix@,$prefix,;t t
45512 s,@program_transform_name@,$program_transform_name,;t t
45513 s,@bindir@,$bindir,;t t
45514 s,@sbindir@,$sbindir,;t t
45515 s,@libexecdir@,$libexecdir,;t t
45516 s,@datadir@,$datadir,;t t
45517 s,@sysconfdir@,$sysconfdir,;t t
45518 s,@sharedstatedir@,$sharedstatedir,;t t
45519 s,@localstatedir@,$localstatedir,;t t
45520 s,@libdir@,$libdir,;t t
45521 s,@includedir@,$includedir,;t t
45522 s,@oldincludedir@,$oldincludedir,;t t
45523 s,@infodir@,$infodir,;t t
45524 s,@mandir@,$mandir,;t t
45525 s,@build_alias@,$build_alias,;t t
45526 s,@host_alias@,$host_alias,;t t
45527 s,@target_alias@,$target_alias,;t t
45528 s,@DEFS@,$DEFS,;t t
45529 s,@ECHO_C@,$ECHO_C,;t t
45530 s,@ECHO_N@,$ECHO_N,;t t
45531 s,@ECHO_T@,$ECHO_T,;t t
45532 s,@LIBS@,$LIBS,;t t
45533 s,@build@,$build,;t t
45534 s,@build_cpu@,$build_cpu,;t t
45535 s,@build_vendor@,$build_vendor,;t t
45536 s,@build_os@,$build_os,;t t
45537 s,@host@,$host,;t t
45538 s,@host_cpu@,$host_cpu,;t t
45539 s,@host_vendor@,$host_vendor,;t t
45540 s,@host_os@,$host_os,;t t
45541 s,@target@,$target,;t t
45542 s,@target_cpu@,$target_cpu,;t t
45543 s,@target_vendor@,$target_vendor,;t t
45544 s,@target_os@,$target_os,;t t
45545 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45546 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45547 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45548 s,@CYGPATH_W@,$CYGPATH_W,;t t
45549 s,@PACKAGE@,$PACKAGE,;t t
45550 s,@VERSION@,$VERSION,;t t
45551 s,@ACLOCAL@,$ACLOCAL,;t t
45552 s,@AUTOCONF@,$AUTOCONF,;t t
45553 s,@AUTOMAKE@,$AUTOMAKE,;t t
45554 s,@AUTOHEADER@,$AUTOHEADER,;t t
45555 s,@MAKEINFO@,$MAKEINFO,;t t
45556 s,@install_sh@,$install_sh,;t t
45557 s,@STRIP@,$STRIP,;t t
45558 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45559 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45560 s,@mkdir_p@,$mkdir_p,;t t
45562 s,@SET_MAKE@,$SET_MAKE,;t t
45563 s,@am__leading_dot@,$am__leading_dot,;t t
45564 s,@AMTAR@,$AMTAR,;t t
45565 s,@am__tar@,$am__tar,;t t
45566 s,@am__untar@,$am__untar,;t t
45567 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45568 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45569 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45570 s,@top_builddir@,$top_builddir,;t t
45571 s,@ldap_subdir@,$ldap_subdir,;t t
45574 s,@CFLAGS@,$CFLAGS,;t t
45575 s,@LDFLAGS@,$LDFLAGS,;t t
45576 s,@CPPFLAGS@,$CPPFLAGS,;t t
45577 s,@ac_ct_CC@,$ac_ct_CC,;t t
45578 s,@EXEEXT@,$EXEEXT,;t t
45579 s,@OBJEXT@,$OBJEXT,;t t
45580 s,@DEPDIR@,$DEPDIR,;t t
45581 s,@am__include@,$am__include,;t t
45582 s,@am__quote@,$am__quote,;t t
45583 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45584 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45585 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45586 s,@CCDEPMODE@,$CCDEPMODE,;t t
45587 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45588 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45589 s,@EGREP@,$EGREP,;t t
45590 s,@LN_S@,$LN_S,;t t
45591 s,@ECHO@,$ECHO,;t t
45592 s,@ac_ct_AR@,$ac_ct_AR,;t t
45593 s,@RANLIB@,$RANLIB,;t t
45594 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45595 s,@DLLTOOL@,$DLLTOOL,;t t
45596 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45598 s,@ac_ct_AS@,$ac_ct_AS,;t t
45599 s,@OBJDUMP@,$OBJDUMP,;t t
45600 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45602 s,@LIBTOOL@,$LIBTOOL,;t t
45603 s,@PERLBIN@,$PERLBIN,;t t
45604 s,@OL_MKDEP@,$OL_MKDEP,;t t
45605 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45606 s,@LTSTATIC@,$LTSTATIC,;t t
45607 s,@LIBOBJS@,$LIBOBJS,;t t
45608 s,@LIBSRCS@,$LIBSRCS,;t t
45609 s,@PLAT@,$PLAT,;t t
45610 s,@WITH_SASL@,$WITH_SASL,;t t
45611 s,@WITH_TLS@,$WITH_TLS,;t t
45612 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45613 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45614 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45615 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45616 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45617 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45618 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45619 s,@BUILD_BDB@,$BUILD_BDB,;t t
45620 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45621 s,@BUILD_HDB@,$BUILD_HDB,;t t
45622 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45623 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45624 s,@BUILD_META@,$BUILD_META,;t t
45625 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45626 s,@BUILD_NULL@,$BUILD_NULL,;t t
45627 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45628 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45629 s,@BUILD_PERL@,$BUILD_PERL,;t t
45630 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45631 s,@BUILD_SQL@,$BUILD_SQL,;t t
45632 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45633 s,@BUILD_DDS@,$BUILD_DDS,;t t
45634 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45635 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45636 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45637 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45638 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45639 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45640 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45641 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45642 s,@BUILD_RWM@,$BUILD_RWM,;t t
45643 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45644 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45645 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45646 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45647 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45648 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45649 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45650 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45651 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45652 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45653 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45654 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45655 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45656 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45657 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45658 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45659 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45660 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45661 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45662 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45663 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45664 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45665 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45666 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45667 s,@SASL_LIBS@,$SASL_LIBS,;t t
45668 s,@TLS_LIBS@,$TLS_LIBS,;t t
45669 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45670 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45671 s,@LIBSLAPI@,$LIBSLAPI,;t t
45672 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45673 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45674 s,@ICU_LIBS@,$ICU_LIBS,;t t
45675 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45676 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45677 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45678 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45679 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45685 cat >>$CONFIG_STATUS <<\_ACEOF
45686 # Split the substitutions into bite-sized pieces for seds with
45687 # small command number limits, like on Digital OSF/1 and HP-UX.
45688 ac_max_sed_lines=48
45689 ac_sed_frag=1 # Number of current file.
45690 ac_beg=1 # First line for current file.
45691 ac_end=$ac_max_sed_lines # Line after last line for current file.
45694 while $ac_more_lines; do
45695 if test $ac_beg -gt 1; then
45696 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45698 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45700 if test ! -s $tmp/subs.frag; then
45701 ac_more_lines=false
45703 # The purpose of the label and of the branching condition is to
45704 # speed up the sed processing (if there are no `@' at all, there
45705 # is no need to browse any of the substitutions).
45706 # These are the two extra sed commands mentioned above.
45708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45709 if test -z "$ac_sed_cmds"; then
45710 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45712 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45714 ac_sed_frag=`expr $ac_sed_frag + 1`
45716 ac_end=`expr $ac_end + $ac_max_sed_lines`
45719 if test -z "$ac_sed_cmds"; then
45722 fi # test -n "$CONFIG_FILES"
45725 cat >>$CONFIG_STATUS <<\_ACEOF
45726 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45729 - | *:- | *:-:* ) # input from stdin
45731 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45733 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45734 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45735 * ) ac_file_in=$ac_file.in ;;
45738 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45739 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45741 X"$ac_file" : 'X\(//\)[^/]' \| \
45742 X"$ac_file" : 'X\(//\)$' \| \
45743 X"$ac_file" : 'X\(/\)' \| \
45744 . : '\(.\)' 2>/dev/null ||
45746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45748 /^X\(\/\/\)$/{ s//\1/; q; }
45749 /^X\(\/\).*/{ s//\1/; q; }
45751 { if $as_mkdir_p; then
45756 while test ! -d "$as_dir"; do
45757 as_dirs="$as_dir $as_dirs"
45758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45759 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45760 X"$as_dir" : 'X\(//\)[^/]' \| \
45761 X"$as_dir" : 'X\(//\)$' \| \
45762 X"$as_dir" : 'X\(/\)' \| \
45763 . : '\(.\)' 2>/dev/null ||
45765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45767 /^X\(\/\/\)$/{ s//\1/; q; }
45768 /^X\(\/\).*/{ s//\1/; q; }
45771 test ! -n "$as_dirs" || mkdir $as_dirs
45772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45773 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45774 { (exit 1); exit 1; }; }; }
45778 if test "$ac_dir" != .; then
45779 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45780 # A "../" for each directory in $ac_dir_suffix.
45781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45783 ac_dir_suffix= ac_top_builddir=
45787 .) # No --srcdir option. We are building in place.
45789 if test -z "$ac_top_builddir"; then
45792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45794 [\\/]* | ?:[\\/]* ) # Absolute path.
45795 ac_srcdir=$srcdir$ac_dir_suffix;
45796 ac_top_srcdir=$srcdir ;;
45797 *) # Relative path.
45798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45802 # Do not use `cd foo && pwd` to compute absolute paths, because
45803 # the directories may not exist.
45805 .) ac_abs_builddir="$ac_dir";;
45808 .) ac_abs_builddir=`pwd`;;
45809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45810 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45813 case $ac_abs_builddir in
45814 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45816 case ${ac_top_builddir}. in
45817 .) ac_abs_top_builddir=$ac_abs_builddir;;
45818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45822 case $ac_abs_builddir in
45823 .) ac_abs_srcdir=$ac_srcdir;;
45826 .) ac_abs_srcdir=$ac_abs_builddir;;
45827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45831 case $ac_abs_builddir in
45832 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45834 case $ac_top_srcdir in
45835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45844 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45847 if test x"$ac_file" != x-; then
45848 { echo "$as_me:$LINENO: creating $ac_file" >&5
45849 echo "$as_me: creating $ac_file" >&6;}
45852 # Let's still pretend it is `configure' which instantiates (i.e., don't
45853 # use $as_me), people would be surprised to read:
45854 # /* config.h. Generated by config.status. */
45855 if test x"$ac_file" = x-; then
45858 configure_input="$ac_file. "
45860 configure_input=$configure_input"Generated from `echo $ac_file_in |
45861 sed 's,.*/,,'` by configure."
45863 # First look for the input files in the build tree, otherwise in the
45865 ac_file_inputs=`IFS=:
45866 for f in $ac_file_in; do
45868 -) echo $tmp/stdin ;;
45870 # Absolute (can't be DOS-style, as IFS=:)
45871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45872 echo "$as_me: error: cannot find input file: $f" >&2;}
45873 { (exit 1); exit 1; }; }
45876 if test -f "$f"; then
45879 elif test -f "$srcdir/$f"; then
45884 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45885 echo "$as_me: error: cannot find input file: $f" >&2;}
45886 { (exit 1); exit 1; }; }
45889 done` || { (exit 1); exit 1; }
45891 cat >>$CONFIG_STATUS <<_ACEOF
45895 cat >>$CONFIG_STATUS <<\_ACEOF
45897 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45898 s,@configure_input@,$configure_input,;t t
45899 s,@srcdir@,$ac_srcdir,;t t
45900 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45901 s,@top_srcdir@,$ac_top_srcdir,;t t
45902 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45903 s,@builddir@,$ac_builddir,;t t
45904 s,@abs_builddir@,$ac_abs_builddir,;t t
45905 s,@top_builddir@,$ac_top_builddir,;t t
45906 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45907 s,@INSTALL@,$ac_INSTALL,;t t
45908 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45910 if test x"$ac_file" != x-; then
45911 mv $tmp/out $ac_file
45919 cat >>$CONFIG_STATUS <<\_ACEOF
45922 # CONFIG_HEADER section.
45925 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45926 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45928 # ac_d sets the value in "#define NAME VALUE" lines.
45929 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45930 ac_dB='[ ].*$,\1#\2'
45933 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45934 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45935 ac_uB='$,\1#\2define\3'
45939 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45942 - | *:- | *:-:* ) # input from stdin
45944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45948 * ) ac_file_in=$ac_file.in ;;
45951 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45952 echo "$as_me: creating $ac_file" >&6;}
45954 # First look for the input files in the build tree, otherwise in the
45956 ac_file_inputs=`IFS=:
45957 for f in $ac_file_in; do
45959 -) echo $tmp/stdin ;;
45961 # Absolute (can't be DOS-style, as IFS=:)
45962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45963 echo "$as_me: error: cannot find input file: $f" >&2;}
45964 { (exit 1); exit 1; }; }
45965 # Do quote $f, to prevent DOS paths from being IFS'd.
45968 if test -f "$f"; then
45971 elif test -f "$srcdir/$f"; then
45976 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45977 echo "$as_me: error: cannot find input file: $f" >&2;}
45978 { (exit 1); exit 1; }; }
45981 done` || { (exit 1); exit 1; }
45982 # Remove the trailing spaces.
45983 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45987 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45988 # `conftest.undefs', that substitutes the proper values into
45989 # config.h.in to produce config.h. The first handles `#define'
45990 # templates, and the second `#undef' templates.
45991 # And first: Protect against being on the right side of a sed subst in
45992 # config.status. Protect against being in an unquoted here document
45993 # in config.status.
45994 rm -f conftest.defines conftest.undefs
45995 # Using a here document instead of a string reduces the quoting nightmare.
45996 # Putting comments in sed scripts is not portable.
45998 # `end' is used to avoid that the second main sed command (meant for
45999 # 0-ary CPP macros) applies to n-ary macro definitions.
46000 # See the Autoconf documentation for `clear'.
46001 cat >confdef2sed.sed <<\_ACEOF
46006 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46008 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46011 # If some macros were called several times there might be several times
46012 # the same #defines, which is useless. Nevertheless, we may not want to
46013 # sort them, since we want the *last* AC-DEFINE to be honored.
46014 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46015 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46016 rm -f confdef2sed.sed
46018 # This sed command replaces #undef with comments. This is necessary, for
46019 # example, in the case of _POSIX_SOURCE, which is predefined and required
46020 # on some systems where configure will not decide to define it.
46021 cat >>conftest.undefs <<\_ACEOF
46022 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46025 # Break up conftest.defines because some shells have a limit on the size
46026 # of here documents, and old seds have small limits too (100 cmds).
46027 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46028 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46029 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46030 echo ' :' >>$CONFIG_STATUS
46031 rm -f conftest.tail
46032 while grep . conftest.defines >/dev/null
46034 # Write a limited-size here document to $tmp/defines.sed.
46035 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46036 # Speed up: don't consider the non `#define' lines.
46037 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46038 # Work around the forget-to-reset-the-flag bug.
46039 echo 't clr' >>$CONFIG_STATUS
46040 echo ': clr' >>$CONFIG_STATUS
46041 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46043 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46045 mv $tmp/out $tmp/in
46047 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46048 rm -f conftest.defines
46049 mv conftest.tail conftest.defines
46051 rm -f conftest.defines
46052 echo ' fi # grep' >>$CONFIG_STATUS
46053 echo >>$CONFIG_STATUS
46055 # Break up conftest.undefs because some shells have a limit on the size
46056 # of here documents, and old seds have small limits too (100 cmds).
46057 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46058 rm -f conftest.tail
46059 while grep . conftest.undefs >/dev/null
46061 # Write a limited-size here document to $tmp/undefs.sed.
46062 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46063 # Speed up: don't consider the non `#undef'
46064 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46065 # Work around the forget-to-reset-the-flag bug.
46066 echo 't clr' >>$CONFIG_STATUS
46067 echo ': clr' >>$CONFIG_STATUS
46068 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46070 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46072 mv $tmp/out $tmp/in
46074 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46075 rm -f conftest.undefs
46076 mv conftest.tail conftest.undefs
46078 rm -f conftest.undefs
46080 cat >>$CONFIG_STATUS <<\_ACEOF
46081 # Let's still pretend it is `configure' which instantiates (i.e., don't
46082 # use $as_me), people would be surprised to read:
46083 # /* config.h. Generated by config.status. */
46084 if test x"$ac_file" = x-; then
46085 echo "/* Generated by configure. */" >$tmp/config.h
46087 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46089 cat $tmp/in >>$tmp/config.h
46091 if test x"$ac_file" != x-; then
46092 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46093 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46094 echo "$as_me: $ac_file is unchanged" >&6;}
46096 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46098 X"$ac_file" : 'X\(//\)[^/]' \| \
46099 X"$ac_file" : 'X\(//\)$' \| \
46100 X"$ac_file" : 'X\(/\)' \| \
46101 . : '\(.\)' 2>/dev/null ||
46103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46105 /^X\(\/\/\)$/{ s//\1/; q; }
46106 /^X\(\/\).*/{ s//\1/; q; }
46108 { if $as_mkdir_p; then
46113 while test ! -d "$as_dir"; do
46114 as_dirs="$as_dir $as_dirs"
46115 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46117 X"$as_dir" : 'X\(//\)[^/]' \| \
46118 X"$as_dir" : 'X\(//\)$' \| \
46119 X"$as_dir" : 'X\(/\)' \| \
46120 . : '\(.\)' 2>/dev/null ||
46122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46124 /^X\(\/\/\)$/{ s//\1/; q; }
46125 /^X\(\/\).*/{ s//\1/; q; }
46128 test ! -n "$as_dirs" || mkdir $as_dirs
46129 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46130 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46131 { (exit 1); exit 1; }; }; }
46134 mv $tmp/config.h $ac_file
46138 rm -f $tmp/config.h
46140 # Compute $ac_file's index in $config_headers.
46142 for _am_header in $config_headers :; do
46143 case $_am_header in
46144 $ac_file | $ac_file:* )
46147 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46150 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46151 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46152 X$ac_file : 'X\(//\)[^/]' \| \
46153 X$ac_file : 'X\(//\)$' \| \
46154 X$ac_file : 'X\(/\)' \| \
46155 . : '\(.\)' 2>/dev/null ||
46157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46159 /^X\(\/\/\)$/{ s//\1/; q; }
46160 /^X\(\/\).*/{ s//\1/; q; }
46161 s/.*/./; q'`/stamp-h$_am_stamp_count
46164 cat >>$CONFIG_STATUS <<\_ACEOF
46167 # CONFIG_COMMANDS section.
46169 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46170 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46171 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46172 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46173 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46174 X"$ac_dest" : 'X\(//\)[^/]' \| \
46175 X"$ac_dest" : 'X\(//\)$' \| \
46176 X"$ac_dest" : 'X\(/\)' \| \
46177 . : '\(.\)' 2>/dev/null ||
46179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46181 /^X\(\/\/\)$/{ s//\1/; q; }
46182 /^X\(\/\).*/{ s//\1/; q; }
46184 { if $as_mkdir_p; then
46189 while test ! -d "$as_dir"; do
46190 as_dirs="$as_dir $as_dirs"
46191 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46193 X"$as_dir" : 'X\(//\)[^/]' \| \
46194 X"$as_dir" : 'X\(//\)$' \| \
46195 X"$as_dir" : 'X\(/\)' \| \
46196 . : '\(.\)' 2>/dev/null ||
46198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46200 /^X\(\/\/\)$/{ s//\1/; q; }
46201 /^X\(\/\).*/{ s//\1/; q; }
46204 test ! -n "$as_dirs" || mkdir $as_dirs
46205 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46207 { (exit 1); exit 1; }; }; }
46211 if test "$ac_dir" != .; then
46212 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46213 # A "../" for each directory in $ac_dir_suffix.
46214 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46216 ac_dir_suffix= ac_top_builddir=
46220 .) # No --srcdir option. We are building in place.
46222 if test -z "$ac_top_builddir"; then
46225 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46227 [\\/]* | ?:[\\/]* ) # Absolute path.
46228 ac_srcdir=$srcdir$ac_dir_suffix;
46229 ac_top_srcdir=$srcdir ;;
46230 *) # Relative path.
46231 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46232 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46235 # Do not use `cd foo && pwd` to compute absolute paths, because
46236 # the directories may not exist.
46238 .) ac_abs_builddir="$ac_dir";;
46241 .) ac_abs_builddir=`pwd`;;
46242 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46243 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46246 case $ac_abs_builddir in
46247 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46249 case ${ac_top_builddir}. in
46250 .) ac_abs_top_builddir=$ac_abs_builddir;;
46251 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46252 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46255 case $ac_abs_builddir in
46256 .) ac_abs_srcdir=$ac_srcdir;;
46259 .) ac_abs_srcdir=$ac_abs_builddir;;
46260 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46261 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46264 case $ac_abs_builddir in
46265 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46267 case $ac_top_srcdir in
46268 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46269 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46270 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46275 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46276 echo "$as_me: executing $ac_dest commands" >&6;}
46278 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46279 # Strip MF so we end up with the name of the file.
46280 mf=`echo "$mf" | sed -e 's/:.*$//'`
46281 # Check whether this is an Automake generated Makefile or not.
46282 # We used to match only the files named `Makefile.in', but
46283 # some people rename them; so instead we look at the file content.
46284 # Grep'ing the first line is not enough: some people post-process
46285 # each Makefile.in and add a new line on top of each file to say so.
46286 # So let's grep whole file.
46287 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46288 dirpart=`(dirname "$mf") 2>/dev/null ||
46289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46290 X"$mf" : 'X\(//\)[^/]' \| \
46291 X"$mf" : 'X\(//\)$' \| \
46292 X"$mf" : 'X\(/\)' \| \
46293 . : '\(.\)' 2>/dev/null ||
46295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46297 /^X\(\/\/\)$/{ s//\1/; q; }
46298 /^X\(\/\).*/{ s//\1/; q; }
46303 # Extract the definition of DEPDIR, am__include, and am__quote
46304 # from the Makefile without running `make'.
46305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46306 test -z "$DEPDIR" && continue
46307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46308 test -z "am__include" && continue
46309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46310 # When using ansi2knr, U may be empty or an underscore; expand it
46311 U=`sed -n 's/^U = //p' < "$mf"`
46312 # Find all dependency output files, they are included files with
46313 # $(DEPDIR) in their names. We invoke sed twice because it is the
46314 # simplest approach to changing $(DEPDIR) to its actual value in the
46316 for file in `sed -n "
46317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46319 # Make sure the directory exists.
46320 test -f "$dirpart/$file" && continue
46321 fdir=`(dirname "$file") 2>/dev/null ||
46322 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46323 X"$file" : 'X\(//\)[^/]' \| \
46324 X"$file" : 'X\(//\)$' \| \
46325 X"$file" : 'X\(/\)' \| \
46326 . : '\(.\)' 2>/dev/null ||
46328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46330 /^X\(\/\/\)$/{ s//\1/; q; }
46331 /^X\(\/\).*/{ s//\1/; q; }
46333 { if $as_mkdir_p; then
46334 mkdir -p $dirpart/$fdir
46336 as_dir=$dirpart/$fdir
46338 while test ! -d "$as_dir"; do
46339 as_dirs="$as_dir $as_dirs"
46340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46342 X"$as_dir" : 'X\(//\)[^/]' \| \
46343 X"$as_dir" : 'X\(//\)$' \| \
46344 X"$as_dir" : 'X\(/\)' \| \
46345 . : '\(.\)' 2>/dev/null ||
46347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46349 /^X\(\/\/\)$/{ s//\1/; q; }
46350 /^X\(\/\).*/{ s//\1/; q; }
46353 test ! -n "$as_dirs" || mkdir $as_dirs
46354 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46355 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46356 { (exit 1); exit 1; }; }; }
46358 # echo "creating $dirpart/$file"
46359 echo '# dummy' > "$dirpart/$file"
46366 BACKENDSC="servers/slapd/backends.c"
46367 echo "Making $BACKENDSC"
46369 cat > $BACKENDSC << ENDX
46370 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46372 * Copyright 1998-2006 The OpenLDAP Foundation.
46373 * All rights reserved.
46375 * Redistribution and use in source and binary forms, with or without
46376 * modification, are permitted only as authorized by the OpenLDAP
46379 * A copy of this license is available in the file LICENSE in the
46380 * top-level directory of the distribution or, alternatively, at
46381 * <http://www.OpenLDAP.org/license.html>.
46383 /* This file is automatically generated by configure; please do not edit. */
46385 #include "portable.h"
46389 if test "${STATIC_BACKENDS}"; then
46390 for b in config ${STATIC_BACKENDS}; do
46391 bb=`echo "${b}" | sed -e 's/back-//'`
46392 cat >> $BACKENDSC << ENDX
46393 extern BI_init ${bb}_back_initialize;
46397 cat >> $BACKENDSC << ENDX
46399 BackendInfo slap_binfo[] = {
46402 for b in config ${STATIC_BACKENDS}; do
46403 bb=`echo "${b}" | sed -e 's/back-//'`
46404 echo " Add ${bb} ..."
46405 cat >> $BACKENDSC << ENDX
46406 { "${bb}", ${bb}_back_initialize },
46410 cat >> $BACKENDSC << ENDX
46414 /* end of generated file */
46417 OVERLAYSC="servers/slapd/overlays/statover.c"
46418 echo "Making $OVERLAYSC"
46420 cat > $OVERLAYSC << ENDX
46421 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46423 * Copyright 1998-2006 The OpenLDAP Foundation.
46424 * All rights reserved.
46426 * Redistribution and use in source and binary forms, with or without
46427 * modification, are permitted only as authorized by the OpenLDAP
46430 * A copy of this license is available in the file LICENSE in the
46431 * top-level directory of the distribution or, alternatively, at
46432 * <http://www.OpenLDAP.org/license.html>.
46434 /* This file is automatically generated by configure; please do not edit. */
46436 #include "portable.h"
46440 if test "${STATIC_OVERLAYS}"; then
46441 for o in ${STATIC_OVERLAYS}; do
46442 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46443 cat >> $OVERLAYSC << ENDX
46444 extern OV_init ${oo}_initialize;
46449 cat >> $OVERLAYSC << ENDX
46451 OverlayInit slap_oinfo[] = {
46454 if test "${STATIC_OVERLAYS}"; then
46455 for o in ${STATIC_OVERLAYS}; do
46456 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46457 echo " Add ${oo} ..."
46458 cat >> $OVERLAYSC << ENDX
46459 { "${oo}", ${oo}_initialize },
46464 cat >> $OVERLAYSC << ENDX
46468 /* end of generated file */
46471 echo Please run \"make depend\" to build dependencies
46477 cat >>$CONFIG_STATUS <<\_ACEOF
46479 { (exit 0); exit 0; }
46481 chmod +x $CONFIG_STATUS
46482 ac_clean_files=$ac_clean_files_save
46485 # configure is writing to config.log, and then calls config.status.
46486 # config.status does its own redirection, appending to config.log.
46487 # Unfortunately, on DOS this fails, as config.log is still kept open
46488 # by configure, so config.status won't be able to write to it; its
46489 # output is simply discarded. So we exec the FD to /dev/null,
46490 # effectively closing config.log, so it can be properly (re)opened and
46491 # appended to by config.status. When coming back to configure, we
46492 # need to make the FD available again.
46493 if test "$no_create" != yes; then
46495 ac_config_status_args=
46496 test "$silent" = yes &&
46497 ac_config_status_args="$ac_config_status_args --quiet"
46499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46502 # would make configure fail if this is the last instruction.
46503 $ac_cs_success || { (exit 1); exit 1; }