2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.622 2006/01/09 21:36:31 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
24869 for ac_func in nanosleep
24871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24872 echo "$as_me:$LINENO: checking for $ac_func" >&5
24873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24874 if eval "test \"\${$as_ac_var+set}\" = set"; then
24875 echo $ECHO_N "(cached) $ECHO_C" >&6
24877 cat >conftest.$ac_ext <<_ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h. */
24883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24885 #define $ac_func innocuous_$ac_func
24887 /* System header to define __stub macros and hopefully few prototypes,
24888 which can conflict with char $ac_func (); below.
24889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24890 <limits.h> exists even on freestanding compilers. */
24893 # include <limits.h>
24895 # include <assert.h>
24900 /* Override any gcc2 internal prototype to avoid an error. */
24905 /* We use char because int might match the return type of a gcc2
24906 builtin and then its argument prototype would still apply. */
24908 /* The GNU C library defines this for functions which it implements
24909 to always fail with ENOSYS. Some functions are actually named
24910 something starting with __ and the normal name is an alias. */
24911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24914 char (*f) () = $ac_func;
24923 return f != $ac_func;
24928 rm -f conftest.$ac_objext conftest$ac_exeext
24929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24930 (eval $ac_link) 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } &&
24937 { ac_try='test -z "$ac_c_werror_flag"
24938 || test ! -s conftest.err'
24939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940 (eval $ac_try) 2>&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); }; } &&
24944 { ac_try='test -s conftest$ac_exeext'
24945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 (eval $ac_try) 2>&5
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
24950 eval "$as_ac_var=yes"
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24955 eval "$as_ac_var=no"
24957 rm -f conftest.err conftest.$ac_objext \
24958 conftest$ac_exeext conftest.$ac_ext
24960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24962 if test `eval echo '${'$as_ac_var'}'` = yes; then
24963 cat >>confdefs.h <<_ACEOF
24964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24970 ol_replace_broken_yield=yes
24974 if test $ol_replace_broken_yield = yes ; then
24976 cat >>confdefs.h <<\_ACEOF
24977 #define REPLACE_BROKEN_YIELD 1
24982 if test $ol_with_yielding_select = auto ; then
24983 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24984 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24985 if test "${ol_cv_pthread_select_yields+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 if test "$cross_compiling" = yes; then
24990 ol_cv_pthread_select_yields=cross
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 #include <sys/types.h>
25000 #include <sys/time.h>
25001 #include <unistd.h>
25002 #include <pthread.h>
25004 #define NULL (void*) 0
25007 static int fildes[2];
25009 static void *task(p)
25021 FD_SET(fildes[0], &rfds);
25023 /* we're not interested in any fds */
25024 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25031 exit(0); /* if we exit here, the select blocked the whole process */
25034 int main(argc, argv)
25040 /* create a pipe to select */
25041 if(pipe(&fildes[0])) {
25046 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25047 (void) pthread_setconcurrency(2);
25049 #ifdef HAVE_THR_SETCONCURRENCY
25050 /* Set Solaris LWP concurrency to 2 */
25051 thr_setconcurrency(2);
25055 #if HAVE_PTHREADS < 6
25056 pthread_create(&t, pthread_attr_default, task, NULL);
25058 pthread_create(&t, NULL, task, NULL);
25061 /* make sure task runs first */
25064 #elif defined( HAVE_SCHED_YIELD )
25066 #elif defined( HAVE_PTHREAD_YIELD )
25073 rm -f conftest$ac_exeext
25074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25075 (eval $ac_link) 2>&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080 (eval $ac_try) 2>&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); }; }; then
25084 ol_cv_pthread_select_yields=no
25086 echo "$as_me: program exited with status $ac_status" >&5
25087 echo "$as_me: failed program was:" >&5
25088 sed 's/^/| /' conftest.$ac_ext >&5
25090 ( exit $ac_status )
25091 ol_cv_pthread_select_yields=yes
25093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25096 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25097 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25099 if test $ol_cv_pthread_select_yields = cross ; then
25100 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25101 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25102 { (exit 1); exit 1; }; }
25105 if test $ol_cv_pthread_select_yields = yes ; then
25106 ol_with_yielding_select=yes
25110 CPPFLAGS="$save_CPPFLAGS"
25113 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25114 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25115 { (exit 1); exit 1; }; }
25119 if test $ol_with_threads = posix ; then
25120 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25121 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25122 { (exit 1); exit 1; }; }
25127 case $ol_with_threads in auto | yes | mach)
25131 for ac_header in mach/cthreads.h cthreads.h
25133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25135 echo "$as_me:$LINENO: checking for $ac_header" >&5
25136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25138 echo $ECHO_N "(cached) $ECHO_C" >&6
25140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25143 # Is the header compilable?
25144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25146 cat >conftest.$ac_ext <<_ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 $ac_includes_default
25153 #include <$ac_header>
25155 rm -f conftest.$ac_objext
25156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25157 (eval $ac_compile) 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } &&
25164 { ac_try='test -z "$ac_c_werror_flag"
25165 || test ! -s conftest.err'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; } &&
25171 { ac_try='test -s conftest.$ac_objext'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; }; then
25177 ac_header_compiler=yes
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25182 ac_header_compiler=no
25184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25186 echo "${ECHO_T}$ac_header_compiler" >&6
25188 # Is the header present?
25189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25191 cat >conftest.$ac_ext <<_ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 #include <$ac_header>
25199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25202 grep -v '^ *+' conftest.er1 >conftest.err
25204 cat conftest.err >&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } >/dev/null; then
25207 if test -s conftest.err; then
25208 ac_cpp_err=$ac_c_preproc_warn_flag
25209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25216 if test -z "$ac_cpp_err"; then
25217 ac_header_preproc=yes
25219 echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25222 ac_header_preproc=no
25224 rm -f conftest.err conftest.$ac_ext
25225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25226 echo "${ECHO_T}$ac_header_preproc" >&6
25228 # So? What about this header?
25229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25235 ac_header_preproc=yes
25238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25245 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25252 ## --------------------------------------------- ##
25253 ## Report this to <http://www.openldap.org/its/> ##
25254 ## --------------------------------------------- ##
25257 sed "s/^/$as_me: WARNING: /" >&2
25260 echo "$as_me:$LINENO: checking for $ac_header" >&5
25261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25263 echo $ECHO_N "(cached) $ECHO_C" >&6
25265 eval "$as_ac_Header=\$ac_header_preproc"
25267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25272 cat >>confdefs.h <<_ACEOF
25273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25280 if test $ac_cv_header_mach_cthreads_h = yes ; then
25281 ol_with_threads=found
25283 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25284 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25285 if test "${ac_cv_func_cthread_fork+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25294 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25296 #define cthread_fork innocuous_cthread_fork
25298 /* System header to define __stub macros and hopefully few prototypes,
25299 which can conflict with char cthread_fork (); below.
25300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25301 <limits.h> exists even on freestanding compilers. */
25304 # include <limits.h>
25306 # include <assert.h>
25309 #undef cthread_fork
25311 /* Override any gcc2 internal prototype to avoid an error. */
25316 /* We use char because int might match the return type of a gcc2
25317 builtin and then its argument prototype would still apply. */
25318 char cthread_fork ();
25319 /* The GNU C library defines this for functions which it implements
25320 to always fail with ENOSYS. Some functions are actually named
25321 something starting with __ and the normal name is an alias. */
25322 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25325 char (*f) () = cthread_fork;
25334 return f != cthread_fork;
25339 rm -f conftest.$ac_objext conftest$ac_exeext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25341 (eval $ac_link) 2>conftest.er1
25343 grep -v '^ *+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } &&
25348 { ac_try='test -z "$ac_c_werror_flag"
25349 || test ! -s conftest.err'
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; } &&
25355 { ac_try='test -s conftest$ac_exeext'
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; }; then
25361 ac_cv_func_cthread_fork=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_cv_func_cthread_fork=no
25368 rm -f conftest.err conftest.$ac_objext \
25369 conftest$ac_exeext conftest.$ac_ext
25371 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25372 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25373 if test $ac_cv_func_cthread_fork = yes; then
25374 ol_link_threads=yes
25378 if test $ol_link_threads = no ; then
25379 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25380 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25381 if test "${ol_cv_cthread_all_load+set}" = set; then
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 LIBS="-all_load $LIBS"
25387 cat >conftest.$ac_ext <<_ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h. */
25393 #include <mach/cthreads.h>
25398 cthread_fork((void *)0, (void *)0);
25404 rm -f conftest.$ac_objext conftest$ac_exeext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25406 (eval $ac_link) 2>conftest.er1
25408 grep -v '^ *+' conftest.er1 >conftest.err
25410 cat conftest.err >&5
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); } &&
25413 { ac_try='test -z "$ac_c_werror_flag"
25414 || test ! -s conftest.err'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; } &&
25420 { ac_try='test -s conftest$ac_exeext'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; }; then
25426 ol_cv_cthread_all_load=yes
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25431 ol_cv_cthread_all_load=no
25433 rm -f conftest.err conftest.$ac_objext \
25434 conftest$ac_exeext conftest.$ac_ext
25438 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25439 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25441 if test $ol_cv_cthread_all_load = yes ; then
25442 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25443 ol_link_threads=mach
25444 ol_with_threads=found
25448 elif test $ac_cv_header_cthreads_h = yes ; then
25450 ol_with_threads=found
25453 LIBS="$LIBS -lthreads"
25454 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25455 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25456 if test "${ac_cv_func_cthread_fork+set}" = set; then
25457 echo $ECHO_N "(cached) $ECHO_C" >&6
25459 cat >conftest.$ac_ext <<_ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h. */
25465 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25467 #define cthread_fork innocuous_cthread_fork
25469 /* System header to define __stub macros and hopefully few prototypes,
25470 which can conflict with char cthread_fork (); below.
25471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25472 <limits.h> exists even on freestanding compilers. */
25475 # include <limits.h>
25477 # include <assert.h>
25480 #undef cthread_fork
25482 /* Override any gcc2 internal prototype to avoid an error. */
25487 /* We use char because int might match the return type of a gcc2
25488 builtin and then its argument prototype would still apply. */
25489 char cthread_fork ();
25490 /* The GNU C library defines this for functions which it implements
25491 to always fail with ENOSYS. Some functions are actually named
25492 something starting with __ and the normal name is an alias. */
25493 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25496 char (*f) () = cthread_fork;
25505 return f != cthread_fork;
25510 rm -f conftest.$ac_objext conftest$ac_exeext
25511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25512 (eval $ac_link) 2>conftest.er1
25514 grep -v '^ *+' conftest.er1 >conftest.err
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } &&
25519 { ac_try='test -z "$ac_c_werror_flag"
25520 || test ! -s conftest.err'
25521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 (eval $ac_try) 2>&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); }; } &&
25526 { ac_try='test -s conftest$ac_exeext'
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 ac_cv_func_cthread_fork=yes
25534 echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25537 ac_cv_func_cthread_fork=no
25539 rm -f conftest.err conftest.$ac_objext \
25540 conftest$ac_exeext conftest.$ac_ext
25542 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25543 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25544 if test $ac_cv_func_cthread_fork = yes; then
25545 ol_link_threads=yes
25550 if test $ol_link_threads = yes ; then
25551 LTHREAD_LIBS="-lthreads"
25552 ol_link_threads=mach
25553 ol_with_threads=found
25555 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25556 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25557 { (exit 1); exit 1; }; }
25560 elif test $ol_with_threads = mach ; then
25561 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25562 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25563 { (exit 1); exit 1; }; }
25566 if test $ol_link_threads = mach ; then
25568 cat >>confdefs.h <<\_ACEOF
25569 #define HAVE_MACH_CTHREADS 1
25572 elif test $ol_with_threads = found ; then
25573 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25574 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25575 { (exit 1); exit 1; }; }
25580 case $ol_with_threads in auto | yes | pth)
25583 for ac_header in pth.h
25585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25587 echo "$as_me:$LINENO: checking for $ac_header" >&5
25588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25590 echo $ECHO_N "(cached) $ECHO_C" >&6
25592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25595 # Is the header compilable?
25596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25598 cat >conftest.$ac_ext <<_ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h. */
25604 $ac_includes_default
25605 #include <$ac_header>
25607 rm -f conftest.$ac_objext
25608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25609 (eval $ac_compile) 2>conftest.er1
25611 grep -v '^ *+' conftest.er1 >conftest.err
25613 cat conftest.err >&5
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } &&
25616 { ac_try='test -z "$ac_c_werror_flag"
25617 || test ! -s conftest.err'
25618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25619 (eval $ac_try) 2>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; } &&
25623 { ac_try='test -s conftest.$ac_objext'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; }; then
25629 ac_header_compiler=yes
25631 echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25634 ac_header_compiler=no
25636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25638 echo "${ECHO_T}$ac_header_compiler" >&6
25640 # Is the header present?
25641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 #include <$ac_header>
25651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } >/dev/null; then
25659 if test -s conftest.err; then
25660 ac_cpp_err=$ac_c_preproc_warn_flag
25661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25668 if test -z "$ac_cpp_err"; then
25669 ac_header_preproc=yes
25671 echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25674 ac_header_preproc=no
25676 rm -f conftest.err conftest.$ac_ext
25677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25678 echo "${ECHO_T}$ac_header_preproc" >&6
25680 # So? What about this header?
25681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25687 ac_header_preproc=yes
25690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25704 ## --------------------------------------------- ##
25705 ## Report this to <http://www.openldap.org/its/> ##
25706 ## --------------------------------------------- ##
25709 sed "s/^/$as_me: WARNING: /" >&2
25712 echo "$as_me:$LINENO: checking for $ac_header" >&5
25713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25715 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 eval "$as_ac_Header=\$ac_header_preproc"
25719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25724 cat >>confdefs.h <<_ACEOF
25725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25733 if test $ac_cv_header_pth_h = yes ; then
25734 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25735 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25736 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25739 ac_check_lib_save_LIBS=$LIBS
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25748 /* Override any gcc2 internal prototype to avoid an error. */
25752 /* We use char because int might match the return type of a gcc2
25753 builtin and then its argument prototype would still apply. */
25754 char pth_version ();
25763 rm -f conftest.$ac_objext conftest$ac_exeext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25765 (eval $ac_link) 2>conftest.er1
25767 grep -v '^ *+' conftest.er1 >conftest.err
25769 cat conftest.err >&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
25772 { ac_try='test -z "$ac_c_werror_flag"
25773 || test ! -s conftest.err'
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; } &&
25779 { ac_try='test -s conftest$ac_exeext'
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; }; then
25785 ac_cv_lib_pth_pth_version=yes
25787 echo "$as_me: failed program was:" >&5
25788 sed 's/^/| /' conftest.$ac_ext >&5
25790 ac_cv_lib_pth_pth_version=no
25792 rm -f conftest.err conftest.$ac_objext \
25793 conftest$ac_exeext conftest.$ac_ext
25794 LIBS=$ac_check_lib_save_LIBS
25796 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25797 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25798 if test $ac_cv_lib_pth_pth_version = yes; then
25805 if test $have_pth = yes ; then
25807 cat >>confdefs.h <<\_ACEOF
25808 #define HAVE_GNU_PTH 1
25811 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25812 ol_link_threads=pth
25813 ol_with_threads=found
25815 if test $ol_with_yielding_select = auto ; then
25816 ol_with_yielding_select=yes
25823 case $ol_with_threads in auto | yes | lwp)
25827 for ac_header in thread.h synch.h
25829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25831 echo "$as_me:$LINENO: checking for $ac_header" >&5
25832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25834 echo $ECHO_N "(cached) $ECHO_C" >&6
25836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25839 # Is the header compilable?
25840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25842 cat >conftest.$ac_ext <<_ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h. */
25848 $ac_includes_default
25849 #include <$ac_header>
25851 rm -f conftest.$ac_objext
25852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25853 (eval $ac_compile) 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } &&
25860 { ac_try='test -z "$ac_c_werror_flag"
25861 || test ! -s conftest.err'
25862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25863 (eval $ac_try) 2>&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); }; } &&
25867 { ac_try='test -s conftest.$ac_objext'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; }; then
25873 ac_header_compiler=yes
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_header_compiler=no
25880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25882 echo "${ECHO_T}$ac_header_compiler" >&6
25884 # Is the header present?
25885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25893 #include <$ac_header>
25895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25898 grep -v '^ *+' conftest.er1 >conftest.err
25900 cat conftest.err >&5
25901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902 (exit $ac_status); } >/dev/null; then
25903 if test -s conftest.err; then
25904 ac_cpp_err=$ac_c_preproc_warn_flag
25905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25912 if test -z "$ac_cpp_err"; then
25913 ac_header_preproc=yes
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25918 ac_header_preproc=no
25920 rm -f conftest.err conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25922 echo "${ECHO_T}$ac_header_preproc" >&6
25924 # So? What about this header?
25925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25931 ac_header_preproc=yes
25934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25948 ## --------------------------------------------- ##
25949 ## Report this to <http://www.openldap.org/its/> ##
25950 ## --------------------------------------------- ##
25953 sed "s/^/$as_me: WARNING: /" >&2
25956 echo "$as_me:$LINENO: checking for $ac_header" >&5
25957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25961 eval "$as_ac_Header=\$ac_header_preproc"
25963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25968 cat >>confdefs.h <<_ACEOF
25969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25976 if test $ac_cv_header_thread_h = yes &&
25977 test $ac_cv_header_synch_h = yes ; then
25978 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25979 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25980 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25981 echo $ECHO_N "(cached) $ECHO_C" >&6
25983 ac_check_lib_save_LIBS=$LIBS
25984 LIBS="-lthread $LIBS"
25985 cat >conftest.$ac_ext <<_ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h. */
25992 /* Override any gcc2 internal prototype to avoid an error. */
25996 /* We use char because int might match the return type of a gcc2
25997 builtin and then its argument prototype would still apply. */
25998 char thr_create ();
26007 rm -f conftest.$ac_objext conftest$ac_exeext
26008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26009 (eval $ac_link) 2>conftest.er1
26011 grep -v '^ *+' conftest.er1 >conftest.err
26013 cat conftest.err >&5
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } &&
26016 { ac_try='test -z "$ac_c_werror_flag"
26017 || test ! -s conftest.err'
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; } &&
26023 { ac_try='test -s conftest$ac_exeext'
26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025 (eval $ac_try) 2>&5
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); }; }; then
26029 ac_cv_lib_thread_thr_create=yes
26031 echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26034 ac_cv_lib_thread_thr_create=no
26036 rm -f conftest.err conftest.$ac_objext \
26037 conftest$ac_exeext conftest.$ac_ext
26038 LIBS=$ac_check_lib_save_LIBS
26040 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26041 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26042 if test $ac_cv_lib_thread_thr_create = yes; then
26049 if test $have_thr = yes ; then
26051 cat >>confdefs.h <<\_ACEOF
26055 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26056 ol_link_threads=thr
26058 if test $ol_with_yielding_select = auto ; then
26059 ol_with_yielding_select=yes
26065 thr_setconcurrency \
26066 thr_getconcurrency \
26069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26070 echo "$as_me:$LINENO: checking for $ac_func" >&5
26071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26072 if eval "test \"\${$as_ac_var+set}\" = set"; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 cat >conftest.$ac_ext <<_ACEOF
26078 cat confdefs.h >>conftest.$ac_ext
26079 cat >>conftest.$ac_ext <<_ACEOF
26080 /* end confdefs.h. */
26081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26083 #define $ac_func innocuous_$ac_func
26085 /* System header to define __stub macros and hopefully few prototypes,
26086 which can conflict with char $ac_func (); below.
26087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26088 <limits.h> exists even on freestanding compilers. */
26091 # include <limits.h>
26093 # include <assert.h>
26098 /* Override any gcc2 internal prototype to avoid an error. */
26103 /* We use char because int might match the return type of a gcc2
26104 builtin and then its argument prototype would still apply. */
26106 /* The GNU C library defines this for functions which it implements
26107 to always fail with ENOSYS. Some functions are actually named
26108 something starting with __ and the normal name is an alias. */
26109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26112 char (*f) () = $ac_func;
26121 return f != $ac_func;
26126 rm -f conftest.$ac_objext conftest$ac_exeext
26127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26128 (eval $ac_link) 2>conftest.er1
26130 grep -v '^ *+' conftest.er1 >conftest.err
26132 cat conftest.err >&5
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } &&
26135 { ac_try='test -z "$ac_c_werror_flag"
26136 || test ! -s conftest.err'
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; } &&
26142 { ac_try='test -s conftest$ac_exeext'
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; }; then
26148 eval "$as_ac_var=yes"
26150 echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 eval "$as_ac_var=no"
26155 rm -f conftest.err conftest.$ac_objext \
26156 conftest$ac_exeext conftest.$ac_ext
26158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26160 if test `eval echo '${'$as_ac_var'}'` = yes; then
26161 cat >>confdefs.h <<_ACEOF
26162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26172 for ac_header in lwp/lwp.h
26174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26176 echo "$as_me:$LINENO: checking for $ac_header" >&5
26177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
26181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26184 # Is the header compilable?
26185 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26187 cat >conftest.$ac_ext <<_ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h. */
26193 $ac_includes_default
26194 #include <$ac_header>
26196 rm -f conftest.$ac_objext
26197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26198 (eval $ac_compile) 2>conftest.er1
26200 grep -v '^ *+' conftest.er1 >conftest.err
26202 cat conftest.err >&5
26203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204 (exit $ac_status); } &&
26205 { ac_try='test -z "$ac_c_werror_flag"
26206 || test ! -s conftest.err'
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; } &&
26212 { ac_try='test -s conftest.$ac_objext'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
26218 ac_header_compiler=yes
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_header_compiler=no
26225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26227 echo "${ECHO_T}$ac_header_compiler" >&6
26229 # Is the header present?
26230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 #include <$ac_header>
26240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26243 grep -v '^ *+' conftest.er1 >conftest.err
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } >/dev/null; then
26248 if test -s conftest.err; then
26249 ac_cpp_err=$ac_c_preproc_warn_flag
26250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26257 if test -z "$ac_cpp_err"; then
26258 ac_header_preproc=yes
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 ac_header_preproc=no
26265 rm -f conftest.err conftest.$ac_ext
26266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26267 echo "${ECHO_T}$ac_header_preproc" >&6
26269 # So? What about this header?
26270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26276 ac_header_preproc=yes
26279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26293 ## --------------------------------------------- ##
26294 ## Report this to <http://www.openldap.org/its/> ##
26295 ## --------------------------------------------- ##
26298 sed "s/^/$as_me: WARNING: /" >&2
26301 echo "$as_me:$LINENO: checking for $ac_header" >&5
26302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26304 echo $ECHO_N "(cached) $ECHO_C" >&6
26306 eval "$as_ac_Header=\$ac_header_preproc"
26308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313 cat >>confdefs.h <<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26321 if test $ac_cv_header_lwp_lwp_h = yes ; then
26322 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26323 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26324 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26325 echo $ECHO_N "(cached) $ECHO_C" >&6
26327 ac_check_lib_save_LIBS=$LIBS
26329 cat >conftest.$ac_ext <<_ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26336 /* Override any gcc2 internal prototype to avoid an error. */
26340 /* We use char because int might match the return type of a gcc2
26341 builtin and then its argument prototype would still apply. */
26342 char lwp_create ();
26351 rm -f conftest.$ac_objext conftest$ac_exeext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353 (eval $ac_link) 2>conftest.er1
26355 grep -v '^ *+' conftest.er1 >conftest.err
26357 cat conftest.err >&5
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); } &&
26360 { ac_try='test -z "$ac_c_werror_flag"
26361 || test ! -s conftest.err'
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; } &&
26367 { ac_try='test -s conftest$ac_exeext'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; }; then
26373 ac_cv_lib_lwp_lwp_create=yes
26375 echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26378 ac_cv_lib_lwp_lwp_create=no
26380 rm -f conftest.err conftest.$ac_objext \
26381 conftest$ac_exeext conftest.$ac_ext
26382 LIBS=$ac_check_lib_save_LIBS
26384 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26385 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26386 if test $ac_cv_lib_lwp_lwp_create = yes; then
26393 if test $have_lwp = yes ; then
26395 cat >>confdefs.h <<\_ACEOF
26399 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26400 ol_link_threads=lwp
26402 if test $ol_with_yielding_select = auto ; then
26403 ol_with_yielding_select=no
26410 if test $ol_with_yielding_select = yes ; then
26412 cat >>confdefs.h <<\_ACEOF
26413 #define HAVE_YIELDING_SELECT 1
26418 if test $ol_with_threads = manual ; then
26419 ol_link_threads=yes
26421 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26422 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26426 for ac_header in pthread.h sched.h
26428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26430 echo "$as_me:$LINENO: checking for $ac_header" >&5
26431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26438 # Is the header compilable?
26439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26441 cat >conftest.$ac_ext <<_ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h. */
26447 $ac_includes_default
26448 #include <$ac_header>
26450 rm -f conftest.$ac_objext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452 (eval $ac_compile) 2>conftest.er1
26454 grep -v '^ *+' conftest.er1 >conftest.err
26456 cat conftest.err >&5
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } &&
26459 { ac_try='test -z "$ac_c_werror_flag"
26460 || test ! -s conftest.err'
26461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462 (eval $ac_try) 2>&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); }; } &&
26466 { ac_try='test -s conftest.$ac_objext'
26467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468 (eval $ac_try) 2>&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; }; then
26472 ac_header_compiler=yes
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 ac_header_compiler=no
26479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26481 echo "${ECHO_T}$ac_header_compiler" >&6
26483 # Is the header present?
26484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26486 cat >conftest.$ac_ext <<_ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26492 #include <$ac_header>
26494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } >/dev/null; then
26502 if test -s conftest.err; then
26503 ac_cpp_err=$ac_c_preproc_warn_flag
26504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26511 if test -z "$ac_cpp_err"; then
26512 ac_header_preproc=yes
26514 echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26517 ac_header_preproc=no
26519 rm -f conftest.err conftest.$ac_ext
26520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26521 echo "${ECHO_T}$ac_header_preproc" >&6
26523 # So? What about this header?
26524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26530 ac_header_preproc=yes
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26547 ## --------------------------------------------- ##
26548 ## Report this to <http://www.openldap.org/its/> ##
26549 ## --------------------------------------------- ##
26552 sed "s/^/$as_me: WARNING: /" >&2
26555 echo "$as_me:$LINENO: checking for $ac_header" >&5
26556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26560 eval "$as_ac_Header=\$ac_header_preproc"
26562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26567 cat >>confdefs.h <<_ACEOF
26568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26577 for ac_func in sched_yield pthread_yield
26579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26580 echo "$as_me:$LINENO: checking for $ac_func" >&5
26581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26582 if eval "test \"\${$as_ac_var+set}\" = set"; then
26583 echo $ECHO_N "(cached) $ECHO_C" >&6
26585 cat >conftest.$ac_ext <<_ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26593 #define $ac_func innocuous_$ac_func
26595 /* System header to define __stub macros and hopefully few prototypes,
26596 which can conflict with char $ac_func (); below.
26597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26598 <limits.h> exists even on freestanding compilers. */
26601 # include <limits.h>
26603 # include <assert.h>
26608 /* Override any gcc2 internal prototype to avoid an error. */
26613 /* We use char because int might match the return type of a gcc2
26614 builtin and then its argument prototype would still apply. */
26616 /* The GNU C library defines this for functions which it implements
26617 to always fail with ENOSYS. Some functions are actually named
26618 something starting with __ and the normal name is an alias. */
26619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26622 char (*f) () = $ac_func;
26631 return f != $ac_func;
26636 rm -f conftest.$ac_objext conftest$ac_exeext
26637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26638 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26663 eval "$as_ac_var=no"
26665 rm -f conftest.err conftest.$ac_objext \
26666 conftest$ac_exeext conftest.$ac_ext
26668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26670 if test `eval echo '${'$as_ac_var'}'` = yes; then
26671 cat >>confdefs.h <<_ACEOF
26672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26679 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26680 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26681 if test "${ol_cv_header_linux_threads+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26684 cat >conftest.$ac_ext <<_ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 #include <pthread.h>
26692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26693 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26694 ol_cv_header_linux_threads=yes
26696 ol_cv_header_linux_threads=no
26702 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26703 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26704 if test $ol_cv_header_linux_threads = yes; then
26706 cat >>confdefs.h <<\_ACEOF
26707 #define HAVE_LINUX_THREADS 1
26714 for ac_header in mach/cthreads.h
26716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26718 echo "$as_me:$LINENO: checking for $ac_header" >&5
26719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26726 # Is the header compilable?
26727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26729 cat >conftest.$ac_ext <<_ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26736 #include <$ac_header>
26738 rm -f conftest.$ac_objext
26739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26740 (eval $ac_compile) 2>conftest.er1
26742 grep -v '^ *+' conftest.er1 >conftest.err
26744 cat conftest.err >&5
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
26747 { ac_try='test -z "$ac_c_werror_flag"
26748 || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_header_compiler=yes
26762 echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26765 ac_header_compiler=no
26767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26769 echo "${ECHO_T}$ac_header_compiler" >&6
26771 # Is the header present?
26772 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26774 cat >conftest.$ac_ext <<_ACEOF
26777 cat confdefs.h >>conftest.$ac_ext
26778 cat >>conftest.$ac_ext <<_ACEOF
26779 /* end confdefs.h. */
26780 #include <$ac_header>
26782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26785 grep -v '^ *+' conftest.er1 >conftest.err
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null; then
26790 if test -s conftest.err; then
26791 ac_cpp_err=$ac_c_preproc_warn_flag
26792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26799 if test -z "$ac_cpp_err"; then
26800 ac_header_preproc=yes
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26805 ac_header_preproc=no
26807 rm -f conftest.err conftest.$ac_ext
26808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809 echo "${ECHO_T}$ac_header_preproc" >&6
26811 # So? What about this header?
26812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26828 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26835 ## --------------------------------------------- ##
26836 ## Report this to <http://www.openldap.org/its/> ##
26837 ## --------------------------------------------- ##
26840 sed "s/^/$as_me: WARNING: /" >&2
26843 echo "$as_me:$LINENO: checking for $ac_header" >&5
26844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 eval "$as_ac_Header=\$ac_header_preproc"
26850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26855 cat >>confdefs.h <<_ACEOF
26856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26864 for ac_header in lwp/lwp.h
26866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26868 echo "$as_me:$LINENO: checking for $ac_header" >&5
26869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26871 echo $ECHO_N "(cached) $ECHO_C" >&6
26873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26876 # Is the header compilable?
26877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885 $ac_includes_default
26886 #include <$ac_header>
26888 rm -f conftest.$ac_objext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26890 (eval $ac_compile) 2>conftest.er1
26892 grep -v '^ *+' conftest.er1 >conftest.err
26894 cat conftest.err >&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } &&
26897 { ac_try='test -z "$ac_c_werror_flag"
26898 || test ! -s conftest.err'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; } &&
26904 { ac_try='test -s conftest.$ac_objext'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
26910 ac_header_compiler=yes
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26915 ac_header_compiler=no
26917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26919 echo "${ECHO_T}$ac_header_compiler" >&6
26921 # Is the header present?
26922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26924 cat >conftest.$ac_ext <<_ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26930 #include <$ac_header>
26932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } >/dev/null; then
26940 if test -s conftest.err; then
26941 ac_cpp_err=$ac_c_preproc_warn_flag
26942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26949 if test -z "$ac_cpp_err"; then
26950 ac_header_preproc=yes
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26955 ac_header_preproc=no
26957 rm -f conftest.err conftest.$ac_ext
26958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26959 echo "${ECHO_T}$ac_header_preproc" >&6
26961 # So? What about this header?
26962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26968 ac_header_preproc=yes
26971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26985 ## --------------------------------------------- ##
26986 ## Report this to <http://www.openldap.org/its/> ##
26987 ## --------------------------------------------- ##
26990 sed "s/^/$as_me: WARNING: /" >&2
26993 echo "$as_me:$LINENO: checking for $ac_header" >&5
26994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 eval "$as_ac_Header=\$ac_header_preproc"
27000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27005 cat >>confdefs.h <<_ACEOF
27006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27015 for ac_header in thread.h synch.h
27017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27019 echo "$as_me:$LINENO: checking for $ac_header" >&5
27020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27022 echo $ECHO_N "(cached) $ECHO_C" >&6
27024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27027 # Is the header compilable?
27028 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27036 $ac_includes_default
27037 #include <$ac_header>
27039 rm -f conftest.$ac_objext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27041 (eval $ac_compile) 2>conftest.er1
27043 grep -v '^ *+' conftest.er1 >conftest.err
27045 cat conftest.err >&5
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); } &&
27048 { ac_try='test -z "$ac_c_werror_flag"
27049 || test ! -s conftest.err'
27050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 (eval $ac_try) 2>&5
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; } &&
27055 { ac_try='test -s conftest.$ac_objext'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27061 ac_header_compiler=yes
27063 echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27066 ac_header_compiler=no
27068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27070 echo "${ECHO_T}$ac_header_compiler" >&6
27072 # Is the header present?
27073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27075 cat >conftest.$ac_ext <<_ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h. */
27081 #include <$ac_header>
27083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } >/dev/null; then
27091 if test -s conftest.err; then
27092 ac_cpp_err=$ac_c_preproc_warn_flag
27093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27100 if test -z "$ac_cpp_err"; then
27101 ac_header_preproc=yes
27103 echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27106 ac_header_preproc=no
27108 rm -f conftest.err conftest.$ac_ext
27109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27110 echo "${ECHO_T}$ac_header_preproc" >&6
27112 # So? What about this header?
27113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27119 ac_header_preproc=yes
27122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27136 ## --------------------------------------------- ##
27137 ## Report this to <http://www.openldap.org/its/> ##
27138 ## --------------------------------------------- ##
27141 sed "s/^/$as_me: WARNING: /" >&2
27144 echo "$as_me:$LINENO: checking for $ac_header" >&5
27145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27147 echo $ECHO_N "(cached) $ECHO_C" >&6
27149 eval "$as_ac_Header=\$ac_header_preproc"
27151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27156 cat >>confdefs.h <<_ACEOF
27157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27166 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27167 cat >>confdefs.h <<\_ACEOF
27168 #define REENTRANT 1
27171 cat >>confdefs.h <<\_ACEOF
27172 #define _REENTRANT 1
27175 cat >>confdefs.h <<\_ACEOF
27176 #define THREAD_SAFE 1
27179 cat >>confdefs.h <<\_ACEOF
27180 #define _THREAD_SAFE 1
27183 cat >>confdefs.h <<\_ACEOF
27184 #define THREADSAFE 1
27187 cat >>confdefs.h <<\_ACEOF
27188 #define _THREADSAFE 1
27191 cat >>confdefs.h <<\_ACEOF
27192 #define _SGI_MP_SOURCE 1
27196 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27197 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27198 if test "${ol_cv_errno_thread_specific+set}" = set; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27202 cat >conftest.$ac_ext <<_ACEOF
27205 cat confdefs.h >>conftest.$ac_ext
27206 cat >>conftest.$ac_ext <<_ACEOF
27207 /* end confdefs.h. */
27217 rm -f conftest.$ac_objext conftest$ac_exeext
27218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27219 (eval $ac_link) 2>conftest.er1
27221 grep -v '^ *+' conftest.er1 >conftest.err
27223 cat conftest.err >&5
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); } &&
27226 { ac_try='test -z "$ac_c_werror_flag"
27227 || test ! -s conftest.err'
27228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229 (eval $ac_try) 2>&5
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; } &&
27233 { ac_try='test -s conftest$ac_exeext'
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 ol_cv_errno_thread_specific=yes
27241 echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27244 ol_cv_errno_thread_specific=no
27246 rm -f conftest.err conftest.$ac_objext \
27247 conftest$ac_exeext conftest.$ac_ext
27250 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27251 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27253 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27254 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27255 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27256 echo $ECHO_N "(cached) $ECHO_C" >&6
27259 cat >conftest.$ac_ext <<_ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27274 rm -f conftest.$ac_objext conftest$ac_exeext
27275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27276 (eval $ac_link) 2>conftest.er1
27278 grep -v '^ *+' conftest.er1 >conftest.err
27280 cat conftest.err >&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } &&
27283 { ac_try='test -z "$ac_c_werror_flag"
27284 || test ! -s conftest.err'
27285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27286 (eval $ac_try) 2>&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); }; } &&
27290 { ac_try='test -s conftest$ac_exeext'
27291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27292 (eval $ac_try) 2>&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; }; then
27296 ol_cv_h_errno_thread_specific=yes
27298 echo "$as_me: failed program was:" >&5
27299 sed 's/^/| /' conftest.$ac_ext >&5
27301 ol_cv_h_errno_thread_specific=no
27303 rm -f conftest.err conftest.$ac_objext \
27304 conftest$ac_exeext conftest.$ac_ext
27307 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27308 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27310 if test $ol_cv_errno_thread_specific != yes ||
27311 test $ol_cv_h_errno_thread_specific != yes ; then
27312 LIBS="$LTHREAD_LIBS $LIBS"
27318 if test $ol_link_threads = no ; then
27319 if test $ol_with_threads = yes ; then
27320 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27321 echo "$as_me: error: no suitable thread support" >&2;}
27322 { (exit 1); exit 1; }; }
27325 if test $ol_with_threads = auto ; then
27326 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27327 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27332 cat >>confdefs.h <<\_ACEOF
27333 #define NO_THREADS 1
27342 if test $ol_link_threads != no ; then
27344 cat >>confdefs.h <<\_ACEOF
27345 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27355 gethostbyname_r gethostbyaddr_r \
27358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27359 echo "$as_me:$LINENO: checking for $ac_func" >&5
27360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27361 if eval "test \"\${$as_ac_var+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. */
27370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27372 #define $ac_func innocuous_$ac_func
27374 /* System header to define __stub macros and hopefully few prototypes,
27375 which can conflict with char $ac_func (); below.
27376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27377 <limits.h> exists even on freestanding compilers. */
27380 # include <limits.h>
27382 # include <assert.h>
27387 /* Override any gcc2 internal prototype to avoid an error. */
27392 /* We use char because int might match the return type of a gcc2
27393 builtin and then its argument prototype would still apply. */
27395 /* The GNU C library defines this for functions which it implements
27396 to always fail with ENOSYS. Some functions are actually named
27397 something starting with __ and the normal name is an alias. */
27398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27401 char (*f) () = $ac_func;
27410 return f != $ac_func;
27415 rm -f conftest.$ac_objext conftest$ac_exeext
27416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27417 (eval $ac_link) 2>conftest.er1
27419 grep -v '^ *+' conftest.er1 >conftest.err
27421 cat conftest.err >&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } &&
27424 { ac_try='test -z "$ac_c_werror_flag"
27425 || test ! -s conftest.err'
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest$ac_exeext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 eval "$as_ac_var=yes"
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27442 eval "$as_ac_var=no"
27444 rm -f conftest.err conftest.$ac_objext \
27445 conftest$ac_exeext conftest.$ac_ext
27447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27449 if test `eval echo '${'$as_ac_var'}'` = yes; then
27450 cat >>confdefs.h <<_ACEOF
27451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27458 if test "$ac_cv_func_ctime_r" = no ; then
27459 ol_cv_func_ctime_r_nargs=0
27461 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27462 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27463 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27464 echo $ECHO_N "(cached) $ECHO_C" >&6
27466 cat >conftest.$ac_ext <<_ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h. */
27476 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27481 rm -f conftest.$ac_objext
27482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27483 (eval $ac_compile) 2>conftest.er1
27485 grep -v '^ *+' conftest.er1 >conftest.err
27487 cat conftest.err >&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } &&
27490 { ac_try='test -z "$ac_c_werror_flag"
27491 || test ! -s conftest.err'
27492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493 (eval $ac_try) 2>&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; } &&
27497 { ac_try='test -s conftest.$ac_objext'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; }; then
27503 ol_cv_func_ctime_r_nargs3=yes
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27508 ol_cv_func_ctime_r_nargs3=no
27510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27522 time_t ti; char *buffer; ctime_r(&ti,buffer);
27527 rm -f conftest.$ac_objext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27529 (eval $ac_compile) 2>conftest.er1
27531 grep -v '^ *+' conftest.er1 >conftest.err
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -z "$ac_c_werror_flag"
27537 || test ! -s conftest.err'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; } &&
27543 { ac_try='test -s conftest.$ac_objext'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; }; then
27549 ol_cv_func_ctime_r_nargs2=yes
27551 echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27554 ol_cv_func_ctime_r_nargs2=no
27556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27558 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27559 test $ol_cv_func_ctime_r_nargs2 = no ; then
27561 ol_cv_func_ctime_r_nargs=3
27563 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27564 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27566 ol_cv_func_ctime_r_nargs=2
27569 ol_cv_func_ctime_r_nargs=0
27573 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27574 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27576 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27578 cat >>confdefs.h <<_ACEOF
27579 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27586 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27587 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27588 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27589 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27590 echo $ECHO_N "(cached) $ECHO_C" >&6
27592 cat >conftest.$ac_ext <<_ACEOF
27595 cat confdefs.h >>conftest.$ac_ext
27596 cat >>conftest.$ac_ext <<_ACEOF
27597 /* end confdefs.h. */
27598 #include <sys/types.h>
27599 #include <sys/socket.h>
27600 #include <netinet/in.h>
27602 #define BUFSIZE (sizeof(struct hostent)+10)
27606 struct hostent hent; char buffer[BUFSIZE];
27607 int bufsize=BUFSIZE;int h_errno;
27608 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27609 buffer, bufsize, &h_errno);
27614 rm -f conftest.$ac_objext
27615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27616 (eval $ac_compile) 2>conftest.er1
27618 grep -v '^ *+' conftest.er1 >conftest.err
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } &&
27623 { ac_try='test -z "$ac_c_werror_flag"
27624 || test ! -s conftest.err'
27625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626 (eval $ac_try) 2>&5
27628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); }; } &&
27630 { ac_try='test -s conftest.$ac_objext'
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; }; then
27636 ol_cv_func_gethostbyname_r_nargs5=yes
27638 echo "$as_me: failed program was:" >&5
27639 sed 's/^/| /' conftest.$ac_ext >&5
27641 ol_cv_func_gethostbyname_r_nargs5=no
27643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27645 cat >conftest.$ac_ext <<_ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27651 #include <sys/types.h>
27652 #include <sys/socket.h>
27653 #include <netinet/in.h>
27655 #define BUFSIZE (sizeof(struct hostent)+10)
27659 struct hostent hent;struct hostent *rhent;
27660 char buffer[BUFSIZE];
27661 int bufsize=BUFSIZE;int h_errno;
27662 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27668 rm -f conftest.$ac_objext
27669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27670 (eval $ac_compile) 2>conftest.er1
27672 grep -v '^ *+' conftest.er1 >conftest.err
27674 cat conftest.err >&5
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); } &&
27677 { ac_try='test -z "$ac_c_werror_flag"
27678 || test ! -s conftest.err'
27679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27680 (eval $ac_try) 2>&5
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; } &&
27684 { ac_try='test -s conftest.$ac_objext'
27685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27686 (eval $ac_try) 2>&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); }; }; then
27690 ol_cv_func_gethostbyname_r_nargs6=yes
27692 echo "$as_me: failed program was:" >&5
27693 sed 's/^/| /' conftest.$ac_ext >&5
27695 ol_cv_func_gethostbyname_r_nargs6=no
27697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27699 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27700 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27702 ol_cv_func_gethostbyname_r_nargs=5
27704 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27705 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27707 ol_cv_func_gethostbyname_r_nargs=6
27710 ol_cv_func_gethostbyname_r_nargs=0
27714 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27715 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27716 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27718 cat >>confdefs.h <<_ACEOF
27719 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27725 ol_cv_func_gethostbyname_r_nargs=0
27728 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27729 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27730 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27731 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27734 cat >conftest.$ac_ext <<_ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 #include <sys/types.h>
27741 #include <sys/socket.h>
27742 #include <netinet/in.h>
27744 #define BUFSIZE (sizeof(struct hostent)+10)
27748 struct hostent hent; char buffer[BUFSIZE];
27749 struct in_addr add;
27750 size_t alen=sizeof(struct in_addr);
27751 int bufsize=BUFSIZE;int h_errno;
27752 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27753 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27758 rm -f conftest.$ac_objext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27760 (eval $ac_compile) 2>conftest.er1
27762 grep -v '^ *+' conftest.er1 >conftest.err
27764 cat conftest.err >&5
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag"
27768 || test ! -s conftest.err'
27769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770 (eval $ac_try) 2>&5
27772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773 (exit $ac_status); }; } &&
27774 { ac_try='test -s conftest.$ac_objext'
27775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776 (eval $ac_try) 2>&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); }; }; then
27780 ol_cv_func_gethostbyaddr_r_nargs7=yes
27782 echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27785 ol_cv_func_gethostbyaddr_r_nargs7=no
27787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 cat >conftest.$ac_ext <<_ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h. */
27795 #include <sys/types.h>
27796 #include <sys/socket.h>
27797 #include <netinet/in.h>
27799 #define BUFSIZE (sizeof(struct hostent)+10)
27803 struct hostent hent;
27804 struct hostent *rhent; char buffer[BUFSIZE];
27805 struct in_addr add;
27806 size_t alen=sizeof(struct in_addr);
27807 int bufsize=BUFSIZE;int h_errno;
27808 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27809 alen, AF_INET, &hent, buffer, bufsize,
27815 rm -f conftest.$ac_objext
27816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27817 (eval $ac_compile) 2>conftest.er1
27819 grep -v '^ *+' conftest.er1 >conftest.err
27821 cat conftest.err >&5
27822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823 (exit $ac_status); } &&
27824 { ac_try='test -z "$ac_c_werror_flag"
27825 || test ! -s conftest.err'
27826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27827 (eval $ac_try) 2>&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); }; } &&
27831 { ac_try='test -s conftest.$ac_objext'
27832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27833 (eval $ac_try) 2>&5
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
27837 ol_cv_func_gethostbyaddr_r_nargs8=yes
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27842 ol_cv_func_gethostbyaddr_r_nargs8=no
27844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27846 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27847 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27849 ol_cv_func_gethostbyaddr_r_nargs=7
27851 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27852 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27854 ol_cv_func_gethostbyaddr_r_nargs=8
27857 ol_cv_func_gethostbyaddr_r_nargs=0
27861 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27862 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27863 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27865 cat >>confdefs.h <<_ACEOF
27866 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27872 ol_cv_func_gethostbyaddr_r_nargs=0
27877 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27879 if test $ol_enable_ldbm_api = bcompat; then \
27882 for ac_header in db_185.h db.h
27884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27886 echo "$as_me:$LINENO: checking for $ac_header" >&5
27887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27894 # Is the header compilable?
27895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27897 cat >conftest.$ac_ext <<_ACEOF
27900 cat confdefs.h >>conftest.$ac_ext
27901 cat >>conftest.$ac_ext <<_ACEOF
27902 /* end confdefs.h. */
27903 $ac_includes_default
27904 #include <$ac_header>
27906 rm -f conftest.$ac_objext
27907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27908 (eval $ac_compile) 2>conftest.er1
27910 grep -v '^ *+' conftest.er1 >conftest.err
27912 cat conftest.err >&5
27913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914 (exit $ac_status); } &&
27915 { ac_try='test -z "$ac_c_werror_flag"
27916 || test ! -s conftest.err'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; } &&
27922 { ac_try='test -s conftest.$ac_objext'
27923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27924 (eval $ac_try) 2>&5
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); }; }; then
27928 ac_header_compiler=yes
27930 echo "$as_me: failed program was:" >&5
27931 sed 's/^/| /' conftest.$ac_ext >&5
27933 ac_header_compiler=no
27935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27937 echo "${ECHO_T}$ac_header_compiler" >&6
27939 # Is the header present?
27940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27942 cat >conftest.$ac_ext <<_ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27948 #include <$ac_header>
27950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27953 grep -v '^ *+' conftest.er1 >conftest.err
27955 cat conftest.err >&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); } >/dev/null; then
27958 if test -s conftest.err; then
27959 ac_cpp_err=$ac_c_preproc_warn_flag
27960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27967 if test -z "$ac_cpp_err"; then
27968 ac_header_preproc=yes
27970 echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27973 ac_header_preproc=no
27975 rm -f conftest.err conftest.$ac_ext
27976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27977 echo "${ECHO_T}$ac_header_preproc" >&6
27979 # So? What about this header?
27980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27986 ac_header_preproc=yes
27989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28003 ## --------------------------------------------- ##
28004 ## Report this to <http://www.openldap.org/its/> ##
28005 ## --------------------------------------------- ##
28008 sed "s/^/$as_me: WARNING: /" >&2
28011 echo "$as_me:$LINENO: checking for $ac_header" >&5
28012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28014 echo $ECHO_N "(cached) $ECHO_C" >&6
28016 eval "$as_ac_Header=\$ac_header_preproc"
28018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28023 cat >>confdefs.h <<_ACEOF
28024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28031 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
28032 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
28033 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
28034 if test "${ol_cv_header_db1+set}" = set; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 cat >conftest.$ac_ext <<_ACEOF
28041 cat confdefs.h >>conftest.$ac_ext
28042 cat >>conftest.$ac_ext <<_ACEOF
28043 /* end confdefs.h. */
28046 # include <db_185.h>
28051 /* this check could be improved */
28052 #ifndef DB_VERSION_MAJOR
28053 # define DB_VERSION_MAJOR 1
28056 #if DB_VERSION_MAJOR == 1
28061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28062 $EGREP "__db_version_1" >/dev/null 2>&1; then
28063 ol_cv_header_db1=yes
28065 ol_cv_header_db1=no
28070 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
28071 echo "${ECHO_T}$ol_cv_header_db1" >&6
28073 if test $ol_cv_header_db1 = yes ; then
28076 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28077 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28078 if test "${ol_cv_bdb_major+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28083 if test $ol_cv_bdb_major = 0 ; then
28084 cat >conftest.$ac_ext <<_ACEOF
28087 cat confdefs.h >>conftest.$ac_ext
28088 cat >>conftest.$ac_ext <<_ACEOF
28089 /* end confdefs.h. */
28092 #ifndef DB_VERSION_MAJOR
28093 # define DB_VERSION_MAJOR 1
28095 #if DB_VERSION_MAJOR == 4
28100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28101 $EGREP "__db_version" >/dev/null 2>&1; then
28109 if test $ol_cv_bdb_major = 0 ; then
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28118 #ifndef DB_VERSION_MAJOR
28119 # define DB_VERSION_MAJOR 1
28121 #if DB_VERSION_MAJOR == 3
28126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28127 $EGREP "__db_version" >/dev/null 2>&1; then
28135 if test $ol_cv_bdb_major = 0 ; then
28136 cat >conftest.$ac_ext <<_ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h. */
28144 #ifndef DB_VERSION_MAJOR
28145 # define DB_VERSION_MAJOR 1
28147 #if DB_VERSION_MAJOR == 2
28152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28153 $EGREP "__db_version" >/dev/null 2>&1; then
28161 if test $ol_cv_bdb_major = 0 ; then
28162 cat >conftest.$ac_ext <<_ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28170 #ifndef DB_VERSION_MAJOR
28171 # define DB_VERSION_MAJOR 1
28173 #if DB_VERSION_MAJOR == 1
28178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28179 $EGREP "__db_version" >/dev/null 2>&1; then
28188 if test $ol_cv_bdb_major = 0 ; then
28189 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28190 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28191 { (exit 1); exit 1; }; }
28195 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28196 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28198 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28199 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28200 if test "${ol_cv_bdb_minor+set}" = set; then
28201 echo $ECHO_N "(cached) $ECHO_C" >&6
28205 if test $ol_cv_bdb_minor = 0 ; then
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28214 #ifndef DB_VERSION_MINOR
28215 # define DB_VERSION_MINOR 0
28217 #if DB_VERSION_MINOR == 9
28222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28223 $EGREP "__db_version" >/dev/null 2>&1; then
28231 if test $ol_cv_bdb_minor = 0 ; then
28232 cat >conftest.$ac_ext <<_ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h. */
28240 #ifndef DB_VERSION_MINOR
28241 # define DB_VERSION_MINOR 0
28243 #if DB_VERSION_MINOR == 8
28248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28249 $EGREP "__db_version" >/dev/null 2>&1; then
28257 if test $ol_cv_bdb_minor = 0 ; then
28258 cat >conftest.$ac_ext <<_ACEOF
28261 cat confdefs.h >>conftest.$ac_ext
28262 cat >>conftest.$ac_ext <<_ACEOF
28263 /* end confdefs.h. */
28266 #ifndef DB_VERSION_MINOR
28267 # define DB_VERSION_MINOR 0
28269 #if DB_VERSION_MINOR == 7
28274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28275 $EGREP "__db_version" >/dev/null 2>&1; then
28283 if test $ol_cv_bdb_minor = 0 ; then
28284 cat >conftest.$ac_ext <<_ACEOF
28287 cat confdefs.h >>conftest.$ac_ext
28288 cat >>conftest.$ac_ext <<_ACEOF
28289 /* end confdefs.h. */
28292 #ifndef DB_VERSION_MINOR
28293 # define DB_VERSION_MINOR 0
28295 #if DB_VERSION_MINOR == 6
28300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28301 $EGREP "__db_version" >/dev/null 2>&1; then
28309 if test $ol_cv_bdb_minor = 0 ; then
28310 cat >conftest.$ac_ext <<_ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h. */
28318 #ifndef DB_VERSION_MINOR
28319 # define DB_VERSION_MINOR 0
28321 #if DB_VERSION_MINOR == 5
28326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28327 $EGREP "__db_version" >/dev/null 2>&1; then
28335 if test $ol_cv_bdb_minor = 0 ; then
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28344 #ifndef DB_VERSION_MINOR
28345 # define DB_VERSION_MINOR 0
28347 #if DB_VERSION_MINOR == 4
28352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28353 $EGREP "__db_version" >/dev/null 2>&1; then
28361 if test $ol_cv_bdb_minor = 0 ; then
28362 cat >conftest.$ac_ext <<_ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28370 #ifndef DB_VERSION_MINOR
28371 # define DB_VERSION_MINOR 0
28373 #if DB_VERSION_MINOR == 3
28378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28379 $EGREP "__db_version" >/dev/null 2>&1; then
28387 if test $ol_cv_bdb_minor = 0 ; then
28388 cat >conftest.$ac_ext <<_ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28396 #ifndef DB_VERSION_MINOR
28397 # define DB_VERSION_MINOR 0
28399 #if DB_VERSION_MINOR == 2
28404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28405 $EGREP "__db_version" >/dev/null 2>&1; then
28413 if test $ol_cv_bdb_minor = 0 ; then
28414 cat >conftest.$ac_ext <<_ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28422 #ifndef DB_VERSION_MINOR
28423 # define DB_VERSION_MINOR 0
28425 #if DB_VERSION_MINOR == 1
28430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28431 $EGREP "__db_version" >/dev/null 2>&1; then
28441 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28442 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28444 if test $ol_cv_bdb_major = 4 ; then
28445 if test $ol_cv_bdb_minor = 4 ; then
28446 if test $ol_cv_lib_db = no ; then
28447 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28448 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28449 if test "${ol_cv_db_db44+set}" = set; then
28450 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28457 cat >conftest.$ac_ext <<_ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28464 #ifdef HAVE_DB_185_H
28465 # include <db_185.h>
28470 #ifndef DB_VERSION_MAJOR
28471 # define DB_VERSION_MAJOR 1
28475 #define NULL ((void*)0)
28482 #if DB_VERSION_MAJOR > 1
28485 int major, minor, patch;
28487 version = db_version( &major, &minor, &patch );
28489 if( major != DB_VERSION_MAJOR ||
28490 minor < DB_VERSION_MINOR )
28492 printf("Berkeley DB version mismatch\n"
28493 "\theader: %s\n\tlibrary: %s\n",
28494 DB_VERSION_STRING, version);
28500 #if DB_VERSION_MAJOR > 2
28501 db_env_create( NULL, 0 );
28502 #elif DB_VERSION_MAJOR > 1
28503 db_appexit( NULL );
28505 (void) dbopen( NULL, 0, 0, 0, NULL);
28512 rm -f conftest.$ac_objext conftest$ac_exeext
28513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28514 (eval $ac_link) 2>conftest.er1
28516 grep -v '^ *+' conftest.er1 >conftest.err
28518 cat conftest.err >&5
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } &&
28521 { ac_try='test -z "$ac_c_werror_flag"
28522 || test ! -s conftest.err'
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest$ac_exeext'
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28536 echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28541 rm -f conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
28547 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28548 echo "${ECHO_T}$ol_cv_db_db44" >&6
28550 if test $ol_cv_db_db44 = yes ; then
28551 ol_cv_lib_db=-ldb44
28555 if test $ol_cv_lib_db = no ; then
28556 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28557 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28558 if test "${ol_cv_db_db_44+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28564 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28566 cat >conftest.$ac_ext <<_ACEOF
28569 cat confdefs.h >>conftest.$ac_ext
28570 cat >>conftest.$ac_ext <<_ACEOF
28571 /* end confdefs.h. */
28573 #ifdef HAVE_DB_185_H
28574 # include <db_185.h>
28579 #ifndef DB_VERSION_MAJOR
28580 # define DB_VERSION_MAJOR 1
28584 #define NULL ((void*)0)
28591 #if DB_VERSION_MAJOR > 1
28594 int major, minor, patch;
28596 version = db_version( &major, &minor, &patch );
28598 if( major != DB_VERSION_MAJOR ||
28599 minor < DB_VERSION_MINOR )
28601 printf("Berkeley DB version mismatch\n"
28602 "\theader: %s\n\tlibrary: %s\n",
28603 DB_VERSION_STRING, version);
28609 #if DB_VERSION_MAJOR > 2
28610 db_env_create( NULL, 0 );
28611 #elif DB_VERSION_MAJOR > 1
28612 db_appexit( NULL );
28614 (void) dbopen( NULL, 0, 0, 0, NULL);
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28623 (eval $ac_link) 2>conftest.er1
28625 grep -v '^ *+' conftest.er1 >conftest.err
28627 cat conftest.err >&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } &&
28630 { ac_try='test -z "$ac_c_werror_flag"
28631 || test ! -s conftest.err'
28632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28633 (eval $ac_try) 2>&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); }; } &&
28637 { ac_try='test -s conftest$ac_exeext'
28638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28639 (eval $ac_try) 2>&5
28641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642 (exit $ac_status); }; }; then
28645 echo "$as_me: failed program was:" >&5
28646 sed 's/^/| /' conftest.$ac_ext >&5
28650 rm -f conftest.err conftest.$ac_objext \
28651 conftest$ac_exeext conftest.$ac_ext
28656 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28657 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28659 if test $ol_cv_db_db_44 = yes ; then
28660 ol_cv_lib_db=-ldb-44
28664 if test $ol_cv_lib_db = no ; then
28665 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28666 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28667 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28668 echo $ECHO_N "(cached) $ECHO_C" >&6
28673 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28675 cat >conftest.$ac_ext <<_ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28682 #ifdef HAVE_DB_185_H
28683 # include <db_185.h>
28688 #ifndef DB_VERSION_MAJOR
28689 # define DB_VERSION_MAJOR 1
28693 #define NULL ((void*)0)
28700 #if DB_VERSION_MAJOR > 1
28703 int major, minor, patch;
28705 version = db_version( &major, &minor, &patch );
28707 if( major != DB_VERSION_MAJOR ||
28708 minor < DB_VERSION_MINOR )
28710 printf("Berkeley DB version mismatch\n"
28711 "\theader: %s\n\tlibrary: %s\n",
28712 DB_VERSION_STRING, version);
28718 #if DB_VERSION_MAJOR > 2
28719 db_env_create( NULL, 0 );
28720 #elif DB_VERSION_MAJOR > 1
28721 db_appexit( NULL );
28723 (void) dbopen( NULL, 0, 0, 0, NULL);
28730 rm -f conftest.$ac_objext conftest$ac_exeext
28731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28732 (eval $ac_link) 2>conftest.er1
28734 grep -v '^ *+' conftest.er1 >conftest.err
28736 cat conftest.err >&5
28737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738 (exit $ac_status); } &&
28739 { ac_try='test -z "$ac_c_werror_flag"
28740 || test ! -s conftest.err'
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; } &&
28746 { ac_try='test -s conftest$ac_exeext'
28747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28748 (eval $ac_try) 2>&5
28750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28751 (exit $ac_status); }; }; then
28752 ol_cv_db_db_4_dot_4=yes
28754 echo "$as_me: failed program was:" >&5
28755 sed 's/^/| /' conftest.$ac_ext >&5
28757 ol_cv_db_db_4_dot_4=no
28759 rm -f conftest.err conftest.$ac_objext \
28760 conftest$ac_exeext conftest.$ac_ext
28765 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28766 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28768 if test $ol_cv_db_db_4_dot_4 = yes ; then
28769 ol_cv_lib_db=-ldb-4.4
28773 if test $ol_cv_lib_db = no ; then
28774 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28775 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28776 if test "${ol_cv_db_db_4_4+set}" = set; then
28777 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28784 cat >conftest.$ac_ext <<_ACEOF
28787 cat confdefs.h >>conftest.$ac_ext
28788 cat >>conftest.$ac_ext <<_ACEOF
28789 /* end confdefs.h. */
28791 #ifdef HAVE_DB_185_H
28792 # include <db_185.h>
28797 #ifndef DB_VERSION_MAJOR
28798 # define DB_VERSION_MAJOR 1
28802 #define NULL ((void*)0)
28809 #if DB_VERSION_MAJOR > 1
28812 int major, minor, patch;
28814 version = db_version( &major, &minor, &patch );
28816 if( major != DB_VERSION_MAJOR ||
28817 minor < DB_VERSION_MINOR )
28819 printf("Berkeley DB version mismatch\n"
28820 "\theader: %s\n\tlibrary: %s\n",
28821 DB_VERSION_STRING, version);
28827 #if DB_VERSION_MAJOR > 2
28828 db_env_create( NULL, 0 );
28829 #elif DB_VERSION_MAJOR > 1
28830 db_appexit( NULL );
28832 (void) dbopen( NULL, 0, 0, 0, NULL);
28839 rm -f conftest.$ac_objext conftest$ac_exeext
28840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28841 (eval $ac_link) 2>conftest.er1
28843 grep -v '^ *+' conftest.er1 >conftest.err
28845 cat conftest.err >&5
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); } &&
28848 { ac_try='test -z "$ac_c_werror_flag"
28849 || test ! -s conftest.err'
28850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28851 (eval $ac_try) 2>&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); }; } &&
28855 { ac_try='test -s conftest$ac_exeext'
28856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857 (eval $ac_try) 2>&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); }; }; then
28861 ol_cv_db_db_4_4=yes
28863 echo "$as_me: failed program was:" >&5
28864 sed 's/^/| /' conftest.$ac_ext >&5
28868 rm -f conftest.err conftest.$ac_objext \
28869 conftest$ac_exeext conftest.$ac_ext
28874 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28875 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28877 if test $ol_cv_db_db_4_4 = yes ; then
28878 ol_cv_lib_db=-ldb-4-4
28882 elif test $ol_cv_bdb_minor = 3 ; then
28883 if test $ol_cv_lib_db = no ; then
28884 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28885 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28886 if test "${ol_cv_db_db43+set}" = set; then
28887 echo $ECHO_N "(cached) $ECHO_C" >&6
28892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28894 cat >conftest.$ac_ext <<_ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28901 #ifdef HAVE_DB_185_H
28902 # include <db_185.h>
28907 #ifndef DB_VERSION_MAJOR
28908 # define DB_VERSION_MAJOR 1
28912 #define NULL ((void*)0)
28919 #if DB_VERSION_MAJOR > 1
28922 int major, minor, patch;
28924 version = db_version( &major, &minor, &patch );
28926 if( major != DB_VERSION_MAJOR ||
28927 minor < DB_VERSION_MINOR )
28929 printf("Berkeley DB version mismatch\n"
28930 "\theader: %s\n\tlibrary: %s\n",
28931 DB_VERSION_STRING, version);
28937 #if DB_VERSION_MAJOR > 2
28938 db_env_create( NULL, 0 );
28939 #elif DB_VERSION_MAJOR > 1
28940 db_appexit( NULL );
28942 (void) dbopen( NULL, 0, 0, 0, NULL);
28949 rm -f conftest.$ac_objext conftest$ac_exeext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951 (eval $ac_link) 2>conftest.er1
28953 grep -v '^ *+' conftest.er1 >conftest.err
28955 cat conftest.err >&5
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } &&
28958 { ac_try='test -z "$ac_c_werror_flag"
28959 || test ! -s conftest.err'
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest$ac_exeext'
28966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; }; then
28973 echo "$as_me: failed program was:" >&5
28974 sed 's/^/| /' conftest.$ac_ext >&5
28978 rm -f conftest.err conftest.$ac_objext \
28979 conftest$ac_exeext conftest.$ac_ext
28984 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28985 echo "${ECHO_T}$ol_cv_db_db43" >&6
28987 if test $ol_cv_db_db43 = yes ; then
28988 ol_cv_lib_db=-ldb43
28992 if test $ol_cv_lib_db = no ; then
28993 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28995 if test "${ol_cv_db_db_43+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
29001 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29003 cat >conftest.$ac_ext <<_ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h. */
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29021 #define NULL ((void*)0)
29028 #if DB_VERSION_MAJOR > 1
29031 int major, minor, patch;
29033 version = db_version( &major, &minor, &patch );
29035 if( major != DB_VERSION_MAJOR ||
29036 minor < DB_VERSION_MINOR )
29038 printf("Berkeley DB version mismatch\n"
29039 "\theader: %s\n\tlibrary: %s\n",
29040 DB_VERSION_STRING, version);
29046 #if DB_VERSION_MAJOR > 2
29047 db_env_create( NULL, 0 );
29048 #elif DB_VERSION_MAJOR > 1
29049 db_appexit( NULL );
29051 (void) dbopen( NULL, 0, 0, 0, NULL);
29058 rm -f conftest.$ac_objext conftest$ac_exeext
29059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29060 (eval $ac_link) 2>conftest.er1
29062 grep -v '^ *+' conftest.er1 >conftest.err
29064 cat conftest.err >&5
29065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066 (exit $ac_status); } &&
29067 { ac_try='test -z "$ac_c_werror_flag"
29068 || test ! -s conftest.err'
29069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070 (eval $ac_try) 2>&5
29072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073 (exit $ac_status); }; } &&
29074 { ac_try='test -s conftest$ac_exeext'
29075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076 (eval $ac_try) 2>&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); }; }; then
29082 echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29087 rm -f conftest.err conftest.$ac_objext \
29088 conftest$ac_exeext conftest.$ac_ext
29093 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29094 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29096 if test $ol_cv_db_db_43 = yes ; then
29097 ol_cv_lib_db=-ldb-43
29101 if test $ol_cv_lib_db = no ; then
29102 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29103 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29104 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29110 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29119 #ifdef HAVE_DB_185_H
29120 # include <db_185.h>
29125 #ifndef DB_VERSION_MAJOR
29126 # define DB_VERSION_MAJOR 1
29130 #define NULL ((void*)0)
29137 #if DB_VERSION_MAJOR > 1
29140 int major, minor, patch;
29142 version = db_version( &major, &minor, &patch );
29144 if( major != DB_VERSION_MAJOR ||
29145 minor < DB_VERSION_MINOR )
29147 printf("Berkeley DB version mismatch\n"
29148 "\theader: %s\n\tlibrary: %s\n",
29149 DB_VERSION_STRING, version);
29155 #if DB_VERSION_MAJOR > 2
29156 db_env_create( NULL, 0 );
29157 #elif DB_VERSION_MAJOR > 1
29158 db_appexit( NULL );
29160 (void) dbopen( NULL, 0, 0, 0, NULL);
29167 rm -f conftest.$ac_objext conftest$ac_exeext
29168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29169 (eval $ac_link) 2>conftest.er1
29171 grep -v '^ *+' conftest.er1 >conftest.err
29173 cat conftest.err >&5
29174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175 (exit $ac_status); } &&
29176 { ac_try='test -z "$ac_c_werror_flag"
29177 || test ! -s conftest.err'
29178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179 (eval $ac_try) 2>&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; } &&
29183 { ac_try='test -s conftest$ac_exeext'
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ol_cv_db_db_4_dot_3=yes
29191 echo "$as_me: failed program was:" >&5
29192 sed 's/^/| /' conftest.$ac_ext >&5
29194 ol_cv_db_db_4_dot_3=no
29196 rm -f conftest.err conftest.$ac_objext \
29197 conftest$ac_exeext conftest.$ac_ext
29202 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29203 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29205 if test $ol_cv_db_db_4_dot_3 = yes ; then
29206 ol_cv_lib_db=-ldb-4.3
29210 if test $ol_cv_lib_db = no ; then
29211 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29212 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29213 if test "${ol_cv_db_db_4_3+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29221 cat >conftest.$ac_ext <<_ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29228 #ifdef HAVE_DB_185_H
29229 # include <db_185.h>
29234 #ifndef DB_VERSION_MAJOR
29235 # define DB_VERSION_MAJOR 1
29239 #define NULL ((void*)0)
29246 #if DB_VERSION_MAJOR > 1
29249 int major, minor, patch;
29251 version = db_version( &major, &minor, &patch );
29253 if( major != DB_VERSION_MAJOR ||
29254 minor < DB_VERSION_MINOR )
29256 printf("Berkeley DB version mismatch\n"
29257 "\theader: %s\n\tlibrary: %s\n",
29258 DB_VERSION_STRING, version);
29264 #if DB_VERSION_MAJOR > 2
29265 db_env_create( NULL, 0 );
29266 #elif DB_VERSION_MAJOR > 1
29267 db_appexit( NULL );
29269 (void) dbopen( NULL, 0, 0, 0, NULL);
29276 rm -f conftest.$ac_objext conftest$ac_exeext
29277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29278 (eval $ac_link) 2>conftest.er1
29280 grep -v '^ *+' conftest.er1 >conftest.err
29282 cat conftest.err >&5
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); } &&
29285 { ac_try='test -z "$ac_c_werror_flag"
29286 || test ! -s conftest.err'
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; } &&
29292 { ac_try='test -s conftest$ac_exeext'
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; }; then
29298 ol_cv_db_db_4_3=yes
29300 echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29305 rm -f conftest.err conftest.$ac_objext \
29306 conftest$ac_exeext conftest.$ac_ext
29311 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29312 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29314 if test $ol_cv_db_db_4_3 = yes ; then
29315 ol_cv_lib_db=-ldb-4-3
29319 elif test $ol_cv_bdb_minor = 2 ; then
29320 if test $ol_cv_lib_db = no ; then
29321 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29322 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29323 if test "${ol_cv_db_db42+set}" = set; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29329 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29331 cat >conftest.$ac_ext <<_ACEOF
29334 cat confdefs.h >>conftest.$ac_ext
29335 cat >>conftest.$ac_ext <<_ACEOF
29336 /* end confdefs.h. */
29338 #ifdef HAVE_DB_185_H
29339 # include <db_185.h>
29344 #ifndef DB_VERSION_MAJOR
29345 # define DB_VERSION_MAJOR 1
29349 #define NULL ((void*)0)
29356 #if DB_VERSION_MAJOR > 1
29359 int major, minor, patch;
29361 version = db_version( &major, &minor, &patch );
29363 if( major != DB_VERSION_MAJOR ||
29364 minor < DB_VERSION_MINOR )
29366 printf("Berkeley DB version mismatch\n"
29367 "\theader: %s\n\tlibrary: %s\n",
29368 DB_VERSION_STRING, version);
29374 #if DB_VERSION_MAJOR > 2
29375 db_env_create( NULL, 0 );
29376 #elif DB_VERSION_MAJOR > 1
29377 db_appexit( NULL );
29379 (void) dbopen( NULL, 0, 0, 0, NULL);
29386 rm -f conftest.$ac_objext conftest$ac_exeext
29387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29388 (eval $ac_link) 2>conftest.er1
29390 grep -v '^ *+' conftest.er1 >conftest.err
29392 cat conftest.err >&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); } &&
29395 { ac_try='test -z "$ac_c_werror_flag"
29396 || test ! -s conftest.err'
29397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398 (eval $ac_try) 2>&5
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); }; } &&
29402 { ac_try='test -s conftest$ac_exeext'
29403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29404 (eval $ac_try) 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; }; then
29410 echo "$as_me: failed program was:" >&5
29411 sed 's/^/| /' conftest.$ac_ext >&5
29415 rm -f conftest.err conftest.$ac_objext \
29416 conftest$ac_exeext conftest.$ac_ext
29421 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29422 echo "${ECHO_T}$ol_cv_db_db42" >&6
29424 if test $ol_cv_db_db42 = yes ; then
29425 ol_cv_lib_db=-ldb42
29429 if test $ol_cv_lib_db = no ; then
29430 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29431 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29432 if test "${ol_cv_db_db_42+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29438 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29440 cat >conftest.$ac_ext <<_ACEOF
29443 cat confdefs.h >>conftest.$ac_ext
29444 cat >>conftest.$ac_ext <<_ACEOF
29445 /* end confdefs.h. */
29447 #ifdef HAVE_DB_185_H
29448 # include <db_185.h>
29453 #ifndef DB_VERSION_MAJOR
29454 # define DB_VERSION_MAJOR 1
29458 #define NULL ((void*)0)
29465 #if DB_VERSION_MAJOR > 1
29468 int major, minor, patch;
29470 version = db_version( &major, &minor, &patch );
29472 if( major != DB_VERSION_MAJOR ||
29473 minor < DB_VERSION_MINOR )
29475 printf("Berkeley DB version mismatch\n"
29476 "\theader: %s\n\tlibrary: %s\n",
29477 DB_VERSION_STRING, version);
29483 #if DB_VERSION_MAJOR > 2
29484 db_env_create( NULL, 0 );
29485 #elif DB_VERSION_MAJOR > 1
29486 db_appexit( NULL );
29488 (void) dbopen( NULL, 0, 0, 0, NULL);
29495 rm -f conftest.$ac_objext conftest$ac_exeext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29497 (eval $ac_link) 2>conftest.er1
29499 grep -v '^ *+' conftest.er1 >conftest.err
29501 cat conftest.err >&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
29504 { ac_try='test -z "$ac_c_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest$ac_exeext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29519 echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29524 rm -f conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
29530 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29531 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29533 if test $ol_cv_db_db_42 = yes ; then
29534 ol_cv_lib_db=-ldb-42
29538 if test $ol_cv_lib_db = no ; then
29539 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29540 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29541 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29542 echo $ECHO_N "(cached) $ECHO_C" >&6
29547 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29549 cat >conftest.$ac_ext <<_ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h. */
29556 #ifdef HAVE_DB_185_H
29557 # include <db_185.h>
29562 #ifndef DB_VERSION_MAJOR
29563 # define DB_VERSION_MAJOR 1
29567 #define NULL ((void*)0)
29574 #if DB_VERSION_MAJOR > 1
29577 int major, minor, patch;
29579 version = db_version( &major, &minor, &patch );
29581 if( major != DB_VERSION_MAJOR ||
29582 minor < DB_VERSION_MINOR )
29584 printf("Berkeley DB version mismatch\n"
29585 "\theader: %s\n\tlibrary: %s\n",
29586 DB_VERSION_STRING, version);
29592 #if DB_VERSION_MAJOR > 2
29593 db_env_create( NULL, 0 );
29594 #elif DB_VERSION_MAJOR > 1
29595 db_appexit( NULL );
29597 (void) dbopen( NULL, 0, 0, 0, NULL);
29604 rm -f conftest.$ac_objext conftest$ac_exeext
29605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29606 (eval $ac_link) 2>conftest.er1
29608 grep -v '^ *+' conftest.er1 >conftest.err
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
29613 { ac_try='test -z "$ac_c_werror_flag"
29614 || test ! -s conftest.err'
29615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616 (eval $ac_try) 2>&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; } &&
29620 { ac_try='test -s conftest$ac_exeext'
29621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29622 (eval $ac_try) 2>&5
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; }; then
29626 ol_cv_db_db_4_dot_2=yes
29628 echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29631 ol_cv_db_db_4_dot_2=no
29633 rm -f conftest.err conftest.$ac_objext \
29634 conftest$ac_exeext conftest.$ac_ext
29639 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29640 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29642 if test $ol_cv_db_db_4_dot_2 = yes ; then
29643 ol_cv_lib_db=-ldb-4.2
29647 if test $ol_cv_lib_db = no ; then
29648 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29649 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29650 if test "${ol_cv_db_db_4_2+set}" = set; then
29651 echo $ECHO_N "(cached) $ECHO_C" >&6
29656 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29658 cat >conftest.$ac_ext <<_ACEOF
29661 cat confdefs.h >>conftest.$ac_ext
29662 cat >>conftest.$ac_ext <<_ACEOF
29663 /* end confdefs.h. */
29665 #ifdef HAVE_DB_185_H
29666 # include <db_185.h>
29671 #ifndef DB_VERSION_MAJOR
29672 # define DB_VERSION_MAJOR 1
29676 #define NULL ((void*)0)
29683 #if DB_VERSION_MAJOR > 1
29686 int major, minor, patch;
29688 version = db_version( &major, &minor, &patch );
29690 if( major != DB_VERSION_MAJOR ||
29691 minor < DB_VERSION_MINOR )
29693 printf("Berkeley DB version mismatch\n"
29694 "\theader: %s\n\tlibrary: %s\n",
29695 DB_VERSION_STRING, version);
29701 #if DB_VERSION_MAJOR > 2
29702 db_env_create( NULL, 0 );
29703 #elif DB_VERSION_MAJOR > 1
29704 db_appexit( NULL );
29706 (void) dbopen( NULL, 0, 0, 0, NULL);
29713 rm -f conftest.$ac_objext conftest$ac_exeext
29714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29715 (eval $ac_link) 2>conftest.er1
29717 grep -v '^ *+' conftest.er1 >conftest.err
29719 cat conftest.err >&5
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); } &&
29722 { ac_try='test -z "$ac_c_werror_flag"
29723 || test ! -s conftest.err'
29724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725 (eval $ac_try) 2>&5
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; } &&
29729 { ac_try='test -s conftest$ac_exeext'
29730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29731 (eval $ac_try) 2>&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 ol_cv_db_db_4_2=yes
29737 echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29742 rm -f conftest.err conftest.$ac_objext \
29743 conftest$ac_exeext conftest.$ac_ext
29748 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29749 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29751 if test $ol_cv_db_db_4_2 = yes ; then
29752 ol_cv_lib_db=-ldb-4-2
29756 elif test $ol_cv_bdb_minor = 1 ; then
29757 if test $ol_cv_lib_db = no ; then
29758 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29759 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29760 if test "${ol_cv_db_db41+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29775 #ifdef HAVE_DB_185_H
29776 # include <db_185.h>
29781 #ifndef DB_VERSION_MAJOR
29782 # define DB_VERSION_MAJOR 1
29786 #define NULL ((void*)0)
29793 #if DB_VERSION_MAJOR > 1
29796 int major, minor, patch;
29798 version = db_version( &major, &minor, &patch );
29800 if( major != DB_VERSION_MAJOR ||
29801 minor < DB_VERSION_MINOR )
29803 printf("Berkeley DB version mismatch\n"
29804 "\theader: %s\n\tlibrary: %s\n",
29805 DB_VERSION_STRING, version);
29811 #if DB_VERSION_MAJOR > 2
29812 db_env_create( NULL, 0 );
29813 #elif DB_VERSION_MAJOR > 1
29814 db_appexit( NULL );
29816 (void) dbopen( NULL, 0, 0, 0, NULL);
29823 rm -f conftest.$ac_objext conftest$ac_exeext
29824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29825 (eval $ac_link) 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
29832 { ac_try='test -z "$ac_c_werror_flag"
29833 || test ! -s conftest.err'
29834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29835 (eval $ac_try) 2>&5
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; } &&
29839 { ac_try='test -s conftest$ac_exeext'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; }; then
29847 echo "$as_me: failed program was:" >&5
29848 sed 's/^/| /' conftest.$ac_ext >&5
29852 rm -f conftest.err conftest.$ac_objext \
29853 conftest$ac_exeext conftest.$ac_ext
29858 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29859 echo "${ECHO_T}$ol_cv_db_db41" >&6
29861 if test $ol_cv_db_db41 = yes ; then
29862 ol_cv_lib_db=-ldb41
29866 if test $ol_cv_lib_db = no ; then
29867 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29868 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29869 if test "${ol_cv_db_db_41+set}" = set; then
29870 echo $ECHO_N "(cached) $ECHO_C" >&6
29875 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29877 cat >conftest.$ac_ext <<_ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h. */
29884 #ifdef HAVE_DB_185_H
29885 # include <db_185.h>
29890 #ifndef DB_VERSION_MAJOR
29891 # define DB_VERSION_MAJOR 1
29895 #define NULL ((void*)0)
29902 #if DB_VERSION_MAJOR > 1
29905 int major, minor, patch;
29907 version = db_version( &major, &minor, &patch );
29909 if( major != DB_VERSION_MAJOR ||
29910 minor < DB_VERSION_MINOR )
29912 printf("Berkeley DB version mismatch\n"
29913 "\theader: %s\n\tlibrary: %s\n",
29914 DB_VERSION_STRING, version);
29920 #if DB_VERSION_MAJOR > 2
29921 db_env_create( NULL, 0 );
29922 #elif DB_VERSION_MAJOR > 1
29923 db_appexit( NULL );
29925 (void) dbopen( NULL, 0, 0, 0, NULL);
29932 rm -f conftest.$ac_objext conftest$ac_exeext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29934 (eval $ac_link) 2>conftest.er1
29936 grep -v '^ *+' conftest.er1 >conftest.err
29938 cat conftest.err >&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } &&
29941 { ac_try='test -z "$ac_c_werror_flag"
29942 || test ! -s conftest.err'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest$ac_exeext'
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29961 rm -f conftest.err conftest.$ac_objext \
29962 conftest$ac_exeext conftest.$ac_ext
29967 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29968 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29970 if test $ol_cv_db_db_41 = yes ; then
29971 ol_cv_lib_db=-ldb-41
29975 if test $ol_cv_lib_db = no ; then
29976 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29977 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29978 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29986 cat >conftest.$ac_ext <<_ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h. */
29993 #ifdef HAVE_DB_185_H
29994 # include <db_185.h>
29999 #ifndef DB_VERSION_MAJOR
30000 # define DB_VERSION_MAJOR 1
30004 #define NULL ((void*)0)
30011 #if DB_VERSION_MAJOR > 1
30014 int major, minor, patch;
30016 version = db_version( &major, &minor, &patch );
30018 if( major != DB_VERSION_MAJOR ||
30019 minor < DB_VERSION_MINOR )
30021 printf("Berkeley DB version mismatch\n"
30022 "\theader: %s\n\tlibrary: %s\n",
30023 DB_VERSION_STRING, version);
30029 #if DB_VERSION_MAJOR > 2
30030 db_env_create( NULL, 0 );
30031 #elif DB_VERSION_MAJOR > 1
30032 db_appexit( NULL );
30034 (void) dbopen( NULL, 0, 0, 0, NULL);
30041 rm -f conftest.$ac_objext conftest$ac_exeext
30042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30043 (eval $ac_link) 2>conftest.er1
30045 grep -v '^ *+' conftest.er1 >conftest.err
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } &&
30050 { ac_try='test -z "$ac_c_werror_flag"
30051 || test ! -s conftest.err'
30052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30053 (eval $ac_try) 2>&5
30055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056 (exit $ac_status); }; } &&
30057 { ac_try='test -s conftest$ac_exeext'
30058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30059 (eval $ac_try) 2>&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; }; then
30063 ol_cv_db_db_4_dot_1=yes
30065 echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ol_cv_db_db_4_dot_1=no
30070 rm -f conftest.err conftest.$ac_objext \
30071 conftest$ac_exeext conftest.$ac_ext
30076 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30077 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30079 if test $ol_cv_db_db_4_dot_1 = yes ; then
30080 ol_cv_lib_db=-ldb-4.1
30084 if test $ol_cv_lib_db = no ; then
30085 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30086 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30087 if test "${ol_cv_db_db_4_1+set}" = set; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30095 cat >conftest.$ac_ext <<_ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h. */
30102 #ifdef HAVE_DB_185_H
30103 # include <db_185.h>
30108 #ifndef DB_VERSION_MAJOR
30109 # define DB_VERSION_MAJOR 1
30113 #define NULL ((void*)0)
30120 #if DB_VERSION_MAJOR > 1
30123 int major, minor, patch;
30125 version = db_version( &major, &minor, &patch );
30127 if( major != DB_VERSION_MAJOR ||
30128 minor < DB_VERSION_MINOR )
30130 printf("Berkeley DB version mismatch\n"
30131 "\theader: %s\n\tlibrary: %s\n",
30132 DB_VERSION_STRING, version);
30138 #if DB_VERSION_MAJOR > 2
30139 db_env_create( NULL, 0 );
30140 #elif DB_VERSION_MAJOR > 1
30141 db_appexit( NULL );
30143 (void) dbopen( NULL, 0, 0, 0, NULL);
30150 rm -f conftest.$ac_objext conftest$ac_exeext
30151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30152 (eval $ac_link) 2>conftest.er1
30154 grep -v '^ *+' conftest.er1 >conftest.err
30156 cat conftest.err >&5
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); } &&
30159 { ac_try='test -z "$ac_c_werror_flag"
30160 || test ! -s conftest.err'
30161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30162 (eval $ac_try) 2>&5
30164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 (exit $ac_status); }; } &&
30166 { ac_try='test -s conftest$ac_exeext'
30167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30168 (eval $ac_try) 2>&5
30170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171 (exit $ac_status); }; }; then
30172 ol_cv_db_db_4_1=yes
30174 echo "$as_me: failed program was:" >&5
30175 sed 's/^/| /' conftest.$ac_ext >&5
30179 rm -f conftest.err conftest.$ac_objext \
30180 conftest$ac_exeext conftest.$ac_ext
30185 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30186 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30188 if test $ol_cv_db_db_4_1 = yes ; then
30189 ol_cv_lib_db=-ldb-4-1
30194 if test $ol_cv_lib_db = no ; then
30195 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30196 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30197 if test "${ol_cv_db_db_4+set}" = set; then
30198 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30205 cat >conftest.$ac_ext <<_ACEOF
30208 cat confdefs.h >>conftest.$ac_ext
30209 cat >>conftest.$ac_ext <<_ACEOF
30210 /* end confdefs.h. */
30212 #ifdef HAVE_DB_185_H
30213 # include <db_185.h>
30218 #ifndef DB_VERSION_MAJOR
30219 # define DB_VERSION_MAJOR 1
30223 #define NULL ((void*)0)
30230 #if DB_VERSION_MAJOR > 1
30233 int major, minor, patch;
30235 version = db_version( &major, &minor, &patch );
30237 if( major != DB_VERSION_MAJOR ||
30238 minor < DB_VERSION_MINOR )
30240 printf("Berkeley DB version mismatch\n"
30241 "\theader: %s\n\tlibrary: %s\n",
30242 DB_VERSION_STRING, version);
30248 #if DB_VERSION_MAJOR > 2
30249 db_env_create( NULL, 0 );
30250 #elif DB_VERSION_MAJOR > 1
30251 db_appexit( NULL );
30253 (void) dbopen( NULL, 0, 0, 0, NULL);
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30262 (eval $ac_link) 2>conftest.er1
30264 grep -v '^ *+' conftest.er1 >conftest.err
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -z "$ac_c_werror_flag"
30270 || test ! -s conftest.err'
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; } &&
30276 { ac_try='test -s conftest$ac_exeext'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30289 rm -f conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
30295 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30296 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30298 if test $ol_cv_db_db_4 = yes ; then
30299 ol_cv_lib_db=-ldb-4
30303 if test $ol_cv_lib_db = no ; then
30304 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30305 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30306 if test "${ol_cv_db_db4+set}" = set; then
30307 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30314 cat >conftest.$ac_ext <<_ACEOF
30317 cat confdefs.h >>conftest.$ac_ext
30318 cat >>conftest.$ac_ext <<_ACEOF
30319 /* end confdefs.h. */
30321 #ifdef HAVE_DB_185_H
30322 # include <db_185.h>
30327 #ifndef DB_VERSION_MAJOR
30328 # define DB_VERSION_MAJOR 1
30332 #define NULL ((void*)0)
30339 #if DB_VERSION_MAJOR > 1
30342 int major, minor, patch;
30344 version = db_version( &major, &minor, &patch );
30346 if( major != DB_VERSION_MAJOR ||
30347 minor < DB_VERSION_MINOR )
30349 printf("Berkeley DB version mismatch\n"
30350 "\theader: %s\n\tlibrary: %s\n",
30351 DB_VERSION_STRING, version);
30357 #if DB_VERSION_MAJOR > 2
30358 db_env_create( NULL, 0 );
30359 #elif DB_VERSION_MAJOR > 1
30360 db_appexit( NULL );
30362 (void) dbopen( NULL, 0, 0, 0, NULL);
30369 rm -f conftest.$ac_objext conftest$ac_exeext
30370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30371 (eval $ac_link) 2>conftest.er1
30373 grep -v '^ *+' conftest.er1 >conftest.err
30375 cat conftest.err >&5
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); } &&
30378 { ac_try='test -z "$ac_c_werror_flag"
30379 || test ! -s conftest.err'
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest$ac_exeext'
30386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387 (eval $ac_try) 2>&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); }; }; then
30393 echo "$as_me: failed program was:" >&5
30394 sed 's/^/| /' conftest.$ac_ext >&5
30398 rm -f conftest.err conftest.$ac_objext \
30399 conftest$ac_exeext conftest.$ac_ext
30404 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30405 echo "${ECHO_T}$ol_cv_db_db4" >&6
30407 if test $ol_cv_db_db4 = yes ; then
30412 if test $ol_cv_lib_db = no ; then
30413 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30414 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30415 if test "${ol_cv_db_db+set}" = set; then
30416 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30423 cat >conftest.$ac_ext <<_ACEOF
30426 cat confdefs.h >>conftest.$ac_ext
30427 cat >>conftest.$ac_ext <<_ACEOF
30428 /* end confdefs.h. */
30430 #ifdef HAVE_DB_185_H
30431 # include <db_185.h>
30436 #ifndef DB_VERSION_MAJOR
30437 # define DB_VERSION_MAJOR 1
30441 #define NULL ((void*)0)
30448 #if DB_VERSION_MAJOR > 1
30451 int major, minor, patch;
30453 version = db_version( &major, &minor, &patch );
30455 if( major != DB_VERSION_MAJOR ||
30456 minor < DB_VERSION_MINOR )
30458 printf("Berkeley DB version mismatch\n"
30459 "\theader: %s\n\tlibrary: %s\n",
30460 DB_VERSION_STRING, version);
30466 #if DB_VERSION_MAJOR > 2
30467 db_env_create( NULL, 0 );
30468 #elif DB_VERSION_MAJOR > 1
30469 db_appexit( NULL );
30471 (void) dbopen( NULL, 0, 0, 0, NULL);
30478 rm -f conftest.$ac_objext conftest$ac_exeext
30479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30480 (eval $ac_link) 2>conftest.er1
30482 grep -v '^ *+' conftest.er1 >conftest.err
30484 cat conftest.err >&5
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); } &&
30487 { ac_try='test -z "$ac_c_werror_flag"
30488 || test ! -s conftest.err'
30489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30490 (eval $ac_try) 2>&5
30492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493 (exit $ac_status); }; } &&
30494 { ac_try='test -s conftest$ac_exeext'
30495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496 (eval $ac_try) 2>&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); }; }; then
30502 echo "$as_me: failed program was:" >&5
30503 sed 's/^/| /' conftest.$ac_ext >&5
30507 rm -f conftest.err conftest.$ac_objext \
30508 conftest$ac_exeext conftest.$ac_ext
30513 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30514 echo "${ECHO_T}$ol_cv_db_db" >&6
30516 if test $ol_cv_db_db = yes ; then
30522 elif test $ol_cv_bdb_major = 3 ; then
30523 if test $ol_cv_lib_db = no ; then
30524 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30525 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30526 if test "${ol_cv_db_db3+set}" = set; then
30527 echo $ECHO_N "(cached) $ECHO_C" >&6
30532 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30534 cat >conftest.$ac_ext <<_ACEOF
30537 cat confdefs.h >>conftest.$ac_ext
30538 cat >>conftest.$ac_ext <<_ACEOF
30539 /* end confdefs.h. */
30541 #ifdef HAVE_DB_185_H
30542 # include <db_185.h>
30547 #ifndef DB_VERSION_MAJOR
30548 # define DB_VERSION_MAJOR 1
30552 #define NULL ((void*)0)
30559 #if DB_VERSION_MAJOR > 1
30562 int major, minor, patch;
30564 version = db_version( &major, &minor, &patch );
30566 if( major != DB_VERSION_MAJOR ||
30567 minor < DB_VERSION_MINOR )
30569 printf("Berkeley DB version mismatch\n"
30570 "\theader: %s\n\tlibrary: %s\n",
30571 DB_VERSION_STRING, version);
30577 #if DB_VERSION_MAJOR > 2
30578 db_env_create( NULL, 0 );
30579 #elif DB_VERSION_MAJOR > 1
30580 db_appexit( NULL );
30582 (void) dbopen( NULL, 0, 0, 0, NULL);
30589 rm -f conftest.$ac_objext conftest$ac_exeext
30590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30591 (eval $ac_link) 2>conftest.er1
30593 grep -v '^ *+' conftest.er1 >conftest.err
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag"
30599 || test ! -s conftest.err'
30600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30601 (eval $ac_try) 2>&5
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; } &&
30605 { ac_try='test -s conftest$ac_exeext'
30606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30607 (eval $ac_try) 2>&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; }; then
30613 echo "$as_me: failed program was:" >&5
30614 sed 's/^/| /' conftest.$ac_ext >&5
30618 rm -f conftest.err conftest.$ac_objext \
30619 conftest$ac_exeext conftest.$ac_ext
30624 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30625 echo "${ECHO_T}$ol_cv_db_db3" >&6
30627 if test $ol_cv_db_db3 = yes ; then
30632 if test $ol_cv_lib_db = no ; then
30633 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30634 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30635 if test "${ol_cv_db_db_3+set}" = set; then
30636 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30650 #ifdef HAVE_DB_185_H
30651 # include <db_185.h>
30656 #ifndef DB_VERSION_MAJOR
30657 # define DB_VERSION_MAJOR 1
30661 #define NULL ((void*)0)
30668 #if DB_VERSION_MAJOR > 1
30671 int major, minor, patch;
30673 version = db_version( &major, &minor, &patch );
30675 if( major != DB_VERSION_MAJOR ||
30676 minor < DB_VERSION_MINOR )
30678 printf("Berkeley DB version mismatch\n"
30679 "\theader: %s\n\tlibrary: %s\n",
30680 DB_VERSION_STRING, version);
30686 #if DB_VERSION_MAJOR > 2
30687 db_env_create( NULL, 0 );
30688 #elif DB_VERSION_MAJOR > 1
30689 db_appexit( NULL );
30691 (void) dbopen( NULL, 0, 0, 0, NULL);
30698 rm -f conftest.$ac_objext conftest$ac_exeext
30699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30700 (eval $ac_link) 2>conftest.er1
30702 grep -v '^ *+' conftest.er1 >conftest.err
30704 cat conftest.err >&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } &&
30707 { ac_try='test -z "$ac_c_werror_flag"
30708 || test ! -s conftest.err'
30709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30710 (eval $ac_try) 2>&5
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
30715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30716 (eval $ac_try) 2>&5
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
30722 echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30727 rm -f conftest.err conftest.$ac_objext \
30728 conftest$ac_exeext conftest.$ac_ext
30733 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30734 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30736 if test $ol_cv_db_db_3 = yes ; then
30737 ol_cv_lib_db=-ldb-3
30742 elif test $ol_cv_bdb_major = 2 ; then
30743 if test $ol_cv_lib_db = no ; then
30744 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30745 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30746 if test "${ol_cv_db_db2+set}" = set; then
30747 echo $ECHO_N "(cached) $ECHO_C" >&6
30752 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30754 cat >conftest.$ac_ext <<_ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h. */
30761 #ifdef HAVE_DB_185_H
30762 # include <db_185.h>
30767 #ifndef DB_VERSION_MAJOR
30768 # define DB_VERSION_MAJOR 1
30772 #define NULL ((void*)0)
30779 #if DB_VERSION_MAJOR > 1
30782 int major, minor, patch;
30784 version = db_version( &major, &minor, &patch );
30786 if( major != DB_VERSION_MAJOR ||
30787 minor < DB_VERSION_MINOR )
30789 printf("Berkeley DB version mismatch\n"
30790 "\theader: %s\n\tlibrary: %s\n",
30791 DB_VERSION_STRING, version);
30797 #if DB_VERSION_MAJOR > 2
30798 db_env_create( NULL, 0 );
30799 #elif DB_VERSION_MAJOR > 1
30800 db_appexit( NULL );
30802 (void) dbopen( NULL, 0, 0, 0, NULL);
30809 rm -f conftest.$ac_objext conftest$ac_exeext
30810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30811 (eval $ac_link) 2>conftest.er1
30813 grep -v '^ *+' conftest.er1 >conftest.err
30815 cat conftest.err >&5
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } &&
30818 { ac_try='test -z "$ac_c_werror_flag"
30819 || test ! -s conftest.err'
30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30821 (eval $ac_try) 2>&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; } &&
30825 { ac_try='test -s conftest$ac_exeext'
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30833 echo "$as_me: failed program was:" >&5
30834 sed 's/^/| /' conftest.$ac_ext >&5
30838 rm -f conftest.err conftest.$ac_objext \
30839 conftest$ac_exeext conftest.$ac_ext
30844 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30845 echo "${ECHO_T}$ol_cv_db_db2" >&6
30847 if test $ol_cv_db_db2 = yes ; then
30852 if test $ol_cv_lib_db = no ; then
30853 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30854 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30855 if test "${ol_cv_db_db_2+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30861 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30863 cat >conftest.$ac_ext <<_ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30870 #ifdef HAVE_DB_185_H
30871 # include <db_185.h>
30876 #ifndef DB_VERSION_MAJOR
30877 # define DB_VERSION_MAJOR 1
30881 #define NULL ((void*)0)
30888 #if DB_VERSION_MAJOR > 1
30891 int major, minor, patch;
30893 version = db_version( &major, &minor, &patch );
30895 if( major != DB_VERSION_MAJOR ||
30896 minor < DB_VERSION_MINOR )
30898 printf("Berkeley DB version mismatch\n"
30899 "\theader: %s\n\tlibrary: %s\n",
30900 DB_VERSION_STRING, version);
30906 #if DB_VERSION_MAJOR > 2
30907 db_env_create( NULL, 0 );
30908 #elif DB_VERSION_MAJOR > 1
30909 db_appexit( NULL );
30911 (void) dbopen( NULL, 0, 0, 0, NULL);
30918 rm -f conftest.$ac_objext conftest$ac_exeext
30919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30920 (eval $ac_link) 2>conftest.er1
30922 grep -v '^ *+' conftest.er1 >conftest.err
30924 cat conftest.err >&5
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } &&
30927 { ac_try='test -z "$ac_c_werror_flag"
30928 || test ! -s conftest.err'
30929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930 (eval $ac_try) 2>&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; } &&
30934 { ac_try='test -s conftest$ac_exeext'
30935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936 (eval $ac_try) 2>&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); }; }; then
30942 echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30947 rm -f conftest.err conftest.$ac_objext \
30948 conftest$ac_exeext conftest.$ac_ext
30953 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30954 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30956 if test $ol_cv_db_db_2 = yes ; then
30957 ol_cv_lib_db=-ldb-2
30962 elif test $ol_cv_bdb_major = 1 ; then
30963 if test $ol_cv_lib_db = no ; then
30964 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30965 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30966 if test "${ol_cv_db_db1+set}" = set; then
30967 echo $ECHO_N "(cached) $ECHO_C" >&6
30972 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30974 cat >conftest.$ac_ext <<_ACEOF
30977 cat confdefs.h >>conftest.$ac_ext
30978 cat >>conftest.$ac_ext <<_ACEOF
30979 /* end confdefs.h. */
30981 #ifdef HAVE_DB_185_H
30982 # include <db_185.h>
30987 #ifndef DB_VERSION_MAJOR
30988 # define DB_VERSION_MAJOR 1
30992 #define NULL ((void*)0)
30999 #if DB_VERSION_MAJOR > 1
31002 int major, minor, patch;
31004 version = db_version( &major, &minor, &patch );
31006 if( major != DB_VERSION_MAJOR ||
31007 minor < DB_VERSION_MINOR )
31009 printf("Berkeley DB version mismatch\n"
31010 "\theader: %s\n\tlibrary: %s\n",
31011 DB_VERSION_STRING, version);
31017 #if DB_VERSION_MAJOR > 2
31018 db_env_create( NULL, 0 );
31019 #elif DB_VERSION_MAJOR > 1
31020 db_appexit( NULL );
31022 (void) dbopen( NULL, 0, 0, 0, NULL);
31029 rm -f conftest.$ac_objext conftest$ac_exeext
31030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31031 (eval $ac_link) 2>conftest.er1
31033 grep -v '^ *+' conftest.er1 >conftest.err
31035 cat conftest.err >&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); } &&
31038 { ac_try='test -z "$ac_c_werror_flag"
31039 || test ! -s conftest.err'
31040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31041 (eval $ac_try) 2>&5
31043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); }; } &&
31045 { ac_try='test -s conftest$ac_exeext'
31046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31047 (eval $ac_try) 2>&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); }; }; then
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31058 rm -f conftest.err conftest.$ac_objext \
31059 conftest$ac_exeext conftest.$ac_ext
31064 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31065 echo "${ECHO_T}$ol_cv_db_db1" >&6
31067 if test $ol_cv_db_db1 = yes ; then
31072 if test $ol_cv_lib_db = no ; then
31073 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31074 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31075 if test "${ol_cv_db_db_1+set}" = set; then
31076 echo $ECHO_N "(cached) $ECHO_C" >&6
31081 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31083 cat >conftest.$ac_ext <<_ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h. */
31090 #ifdef HAVE_DB_185_H
31091 # include <db_185.h>
31096 #ifndef DB_VERSION_MAJOR
31097 # define DB_VERSION_MAJOR 1
31101 #define NULL ((void*)0)
31108 #if DB_VERSION_MAJOR > 1
31111 int major, minor, patch;
31113 version = db_version( &major, &minor, &patch );
31115 if( major != DB_VERSION_MAJOR ||
31116 minor < DB_VERSION_MINOR )
31118 printf("Berkeley DB version mismatch\n"
31119 "\theader: %s\n\tlibrary: %s\n",
31120 DB_VERSION_STRING, version);
31126 #if DB_VERSION_MAJOR > 2
31127 db_env_create( NULL, 0 );
31128 #elif DB_VERSION_MAJOR > 1
31129 db_appexit( NULL );
31131 (void) dbopen( NULL, 0, 0, 0, NULL);
31138 rm -f conftest.$ac_objext conftest$ac_exeext
31139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31140 (eval $ac_link) 2>conftest.er1
31142 grep -v '^ *+' conftest.er1 >conftest.err
31144 cat conftest.err >&5
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } &&
31147 { ac_try='test -z "$ac_c_werror_flag"
31148 || test ! -s conftest.err'
31149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150 (eval $ac_try) 2>&5
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; } &&
31154 { ac_try='test -s conftest$ac_exeext'
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31167 rm -f conftest.err conftest.$ac_objext \
31168 conftest$ac_exeext conftest.$ac_ext
31173 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31174 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31176 if test $ol_cv_db_db_1 = yes ; then
31177 ol_cv_lib_db=-ldb-1
31182 if test $ol_cv_lib_db = no ; then
31183 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31184 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31185 if test "${ol_cv_db_none+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31191 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31193 cat >conftest.$ac_ext <<_ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h. */
31200 #ifdef HAVE_DB_185_H
31201 # include <db_185.h>
31206 #ifndef DB_VERSION_MAJOR
31207 # define DB_VERSION_MAJOR 1
31211 #define NULL ((void*)0)
31218 #if DB_VERSION_MAJOR > 1
31221 int major, minor, patch;
31223 version = db_version( &major, &minor, &patch );
31225 if( major != DB_VERSION_MAJOR ||
31226 minor < DB_VERSION_MINOR )
31228 printf("Berkeley DB version mismatch\n"
31229 "\theader: %s\n\tlibrary: %s\n",
31230 DB_VERSION_STRING, version);
31236 #if DB_VERSION_MAJOR > 2
31237 db_env_create( NULL, 0 );
31238 #elif DB_VERSION_MAJOR > 1
31239 db_appexit( NULL );
31241 (void) dbopen( NULL, 0, 0, 0, NULL);
31248 rm -f conftest.$ac_objext conftest$ac_exeext
31249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31250 (eval $ac_link) 2>conftest.er1
31252 grep -v '^ *+' conftest.er1 >conftest.err
31254 cat conftest.err >&5
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); } &&
31257 { ac_try='test -z "$ac_c_werror_flag"
31258 || test ! -s conftest.err'
31259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31260 (eval $ac_try) 2>&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); }; } &&
31264 { ac_try='test -s conftest$ac_exeext'
31265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31266 (eval $ac_try) 2>&5
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); }; }; then
31272 echo "$as_me: failed program was:" >&5
31273 sed 's/^/| /' conftest.$ac_ext >&5
31277 rm -f conftest.err conftest.$ac_objext \
31278 conftest$ac_exeext conftest.$ac_ext
31283 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31284 echo "${ECHO_T}$ol_cv_db_none" >&6
31286 if test $ol_cv_db_none = yes ; then
31292 if test "$ol_cv_lib_db" != no ; then
31293 ol_cv_berkeley_db=yes
31299 ol_cv_berkeley_db=no
31301 for ac_header in db.h
31303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31305 echo "$as_me:$LINENO: checking for $ac_header" >&5
31306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31308 echo $ECHO_N "(cached) $ECHO_C" >&6
31310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31313 # Is the header compilable?
31314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31322 $ac_includes_default
31323 #include <$ac_header>
31325 rm -f conftest.$ac_objext
31326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31327 (eval $ac_compile) 2>conftest.er1
31329 grep -v '^ *+' conftest.er1 >conftest.err
31331 cat conftest.err >&5
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); } &&
31334 { ac_try='test -z "$ac_c_werror_flag"
31335 || test ! -s conftest.err'
31336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31337 (eval $ac_try) 2>&5
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest.$ac_objext'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; }; then
31347 ac_header_compiler=yes
31349 echo "$as_me: failed program was:" >&5
31350 sed 's/^/| /' conftest.$ac_ext >&5
31352 ac_header_compiler=no
31354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31356 echo "${ECHO_T}$ac_header_compiler" >&6
31358 # Is the header present?
31359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31361 cat >conftest.$ac_ext <<_ACEOF
31364 cat confdefs.h >>conftest.$ac_ext
31365 cat >>conftest.$ac_ext <<_ACEOF
31366 /* end confdefs.h. */
31367 #include <$ac_header>
31369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31372 grep -v '^ *+' conftest.er1 >conftest.err
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } >/dev/null; then
31377 if test -s conftest.err; then
31378 ac_cpp_err=$ac_c_preproc_warn_flag
31379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31386 if test -z "$ac_cpp_err"; then
31387 ac_header_preproc=yes
31389 echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31392 ac_header_preproc=no
31394 rm -f conftest.err conftest.$ac_ext
31395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31396 echo "${ECHO_T}$ac_header_preproc" >&6
31398 # So? What about this header?
31399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31405 ac_header_preproc=yes
31408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31422 ## --------------------------------------------- ##
31423 ## Report this to <http://www.openldap.org/its/> ##
31424 ## --------------------------------------------- ##
31427 sed "s/^/$as_me: WARNING: /" >&2
31430 echo "$as_me:$LINENO: checking for $ac_header" >&5
31431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31435 eval "$as_ac_Header=\$ac_header_preproc"
31437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31442 cat >>confdefs.h <<_ACEOF
31443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31450 if test $ac_cv_header_db_h = yes; then
31453 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31454 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31455 if test "${ol_cv_bdb_major+set}" = set; then
31456 echo $ECHO_N "(cached) $ECHO_C" >&6
31460 if test $ol_cv_bdb_major = 0 ; then
31461 cat >conftest.$ac_ext <<_ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h. */
31469 #ifndef DB_VERSION_MAJOR
31470 # define DB_VERSION_MAJOR 1
31472 #if DB_VERSION_MAJOR == 4
31477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31478 $EGREP "__db_version" >/dev/null 2>&1; then
31486 if test $ol_cv_bdb_major = 0 ; then
31487 cat >conftest.$ac_ext <<_ACEOF
31490 cat confdefs.h >>conftest.$ac_ext
31491 cat >>conftest.$ac_ext <<_ACEOF
31492 /* end confdefs.h. */
31495 #ifndef DB_VERSION_MAJOR
31496 # define DB_VERSION_MAJOR 1
31498 #if DB_VERSION_MAJOR == 3
31503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31504 $EGREP "__db_version" >/dev/null 2>&1; then
31512 if test $ol_cv_bdb_major = 0 ; then
31513 cat >conftest.$ac_ext <<_ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h. */
31521 #ifndef DB_VERSION_MAJOR
31522 # define DB_VERSION_MAJOR 1
31524 #if DB_VERSION_MAJOR == 2
31529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31530 $EGREP "__db_version" >/dev/null 2>&1; then
31538 if test $ol_cv_bdb_major = 0 ; then
31539 cat >conftest.$ac_ext <<_ACEOF
31542 cat confdefs.h >>conftest.$ac_ext
31543 cat >>conftest.$ac_ext <<_ACEOF
31544 /* end confdefs.h. */
31547 #ifndef DB_VERSION_MAJOR
31548 # define DB_VERSION_MAJOR 1
31550 #if DB_VERSION_MAJOR == 1
31555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31556 $EGREP "__db_version" >/dev/null 2>&1; then
31565 if test $ol_cv_bdb_major = 0 ; then
31566 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31567 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31568 { (exit 1); exit 1; }; }
31572 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31573 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31575 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31576 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31577 if test "${ol_cv_bdb_minor+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 if test $ol_cv_bdb_minor = 0 ; then
31583 cat >conftest.$ac_ext <<_ACEOF
31586 cat confdefs.h >>conftest.$ac_ext
31587 cat >>conftest.$ac_ext <<_ACEOF
31588 /* end confdefs.h. */
31591 #ifndef DB_VERSION_MINOR
31592 # define DB_VERSION_MINOR 0
31594 #if DB_VERSION_MINOR == 9
31599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31600 $EGREP "__db_version" >/dev/null 2>&1; then
31608 if test $ol_cv_bdb_minor = 0 ; then
31609 cat >conftest.$ac_ext <<_ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h. */
31617 #ifndef DB_VERSION_MINOR
31618 # define DB_VERSION_MINOR 0
31620 #if DB_VERSION_MINOR == 8
31625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31626 $EGREP "__db_version" >/dev/null 2>&1; then
31634 if test $ol_cv_bdb_minor = 0 ; then
31635 cat >conftest.$ac_ext <<_ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31643 #ifndef DB_VERSION_MINOR
31644 # define DB_VERSION_MINOR 0
31646 #if DB_VERSION_MINOR == 7
31651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31652 $EGREP "__db_version" >/dev/null 2>&1; then
31660 if test $ol_cv_bdb_minor = 0 ; then
31661 cat >conftest.$ac_ext <<_ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31669 #ifndef DB_VERSION_MINOR
31670 # define DB_VERSION_MINOR 0
31672 #if DB_VERSION_MINOR == 6
31677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31678 $EGREP "__db_version" >/dev/null 2>&1; then
31686 if test $ol_cv_bdb_minor = 0 ; then
31687 cat >conftest.$ac_ext <<_ACEOF
31690 cat confdefs.h >>conftest.$ac_ext
31691 cat >>conftest.$ac_ext <<_ACEOF
31692 /* end confdefs.h. */
31695 #ifndef DB_VERSION_MINOR
31696 # define DB_VERSION_MINOR 0
31698 #if DB_VERSION_MINOR == 5
31703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31704 $EGREP "__db_version" >/dev/null 2>&1; then
31712 if test $ol_cv_bdb_minor = 0 ; then
31713 cat >conftest.$ac_ext <<_ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h. */
31721 #ifndef DB_VERSION_MINOR
31722 # define DB_VERSION_MINOR 0
31724 #if DB_VERSION_MINOR == 4
31729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31730 $EGREP "__db_version" >/dev/null 2>&1; then
31738 if test $ol_cv_bdb_minor = 0 ; then
31739 cat >conftest.$ac_ext <<_ACEOF
31742 cat confdefs.h >>conftest.$ac_ext
31743 cat >>conftest.$ac_ext <<_ACEOF
31744 /* end confdefs.h. */
31747 #ifndef DB_VERSION_MINOR
31748 # define DB_VERSION_MINOR 0
31750 #if DB_VERSION_MINOR == 3
31755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31756 $EGREP "__db_version" >/dev/null 2>&1; then
31764 if test $ol_cv_bdb_minor = 0 ; then
31765 cat >conftest.$ac_ext <<_ACEOF
31768 cat confdefs.h >>conftest.$ac_ext
31769 cat >>conftest.$ac_ext <<_ACEOF
31770 /* end confdefs.h. */
31773 #ifndef DB_VERSION_MINOR
31774 # define DB_VERSION_MINOR 0
31776 #if DB_VERSION_MINOR == 2
31781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31782 $EGREP "__db_version" >/dev/null 2>&1; then
31790 if test $ol_cv_bdb_minor = 0 ; then
31791 cat >conftest.$ac_ext <<_ACEOF
31794 cat confdefs.h >>conftest.$ac_ext
31795 cat >>conftest.$ac_ext <<_ACEOF
31796 /* end confdefs.h. */
31799 #ifndef DB_VERSION_MINOR
31800 # define DB_VERSION_MINOR 0
31802 #if DB_VERSION_MINOR == 1
31807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31808 $EGREP "__db_version" >/dev/null 2>&1; then
31818 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31819 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31821 if test $ol_cv_bdb_major = 4 ; then
31822 if test $ol_cv_bdb_minor = 4 ; then
31823 if test $ol_cv_lib_db = no ; then
31824 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31825 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31826 if test "${ol_cv_db_db44+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31832 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31834 cat >conftest.$ac_ext <<_ACEOF
31837 cat confdefs.h >>conftest.$ac_ext
31838 cat >>conftest.$ac_ext <<_ACEOF
31839 /* end confdefs.h. */
31841 #ifdef HAVE_DB_185_H
31842 # include <db_185.h>
31847 #ifndef DB_VERSION_MAJOR
31848 # define DB_VERSION_MAJOR 1
31852 #define NULL ((void*)0)
31859 #if DB_VERSION_MAJOR > 1
31862 int major, minor, patch;
31864 version = db_version( &major, &minor, &patch );
31866 if( major != DB_VERSION_MAJOR ||
31867 minor < DB_VERSION_MINOR )
31869 printf("Berkeley DB version mismatch\n"
31870 "\theader: %s\n\tlibrary: %s\n",
31871 DB_VERSION_STRING, version);
31877 #if DB_VERSION_MAJOR > 2
31878 db_env_create( NULL, 0 );
31879 #elif DB_VERSION_MAJOR > 1
31880 db_appexit( NULL );
31882 (void) dbopen( NULL, 0, 0, 0, NULL);
31889 rm -f conftest.$ac_objext conftest$ac_exeext
31890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31891 (eval $ac_link) 2>conftest.er1
31893 grep -v '^ *+' conftest.er1 >conftest.err
31895 cat conftest.err >&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } &&
31898 { ac_try='test -z "$ac_c_werror_flag"
31899 || test ! -s conftest.err'
31900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31901 (eval $ac_try) 2>&5
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; } &&
31905 { ac_try='test -s conftest$ac_exeext'
31906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31907 (eval $ac_try) 2>&5
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; }; then
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31918 rm -f conftest.err conftest.$ac_objext \
31919 conftest$ac_exeext conftest.$ac_ext
31924 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31925 echo "${ECHO_T}$ol_cv_db_db44" >&6
31927 if test $ol_cv_db_db44 = yes ; then
31928 ol_cv_lib_db=-ldb44
31932 if test $ol_cv_lib_db = no ; then
31933 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31934 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31935 if test "${ol_cv_db_db_44+set}" = set; then
31936 echo $ECHO_N "(cached) $ECHO_C" >&6
31941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31943 cat >conftest.$ac_ext <<_ACEOF
31946 cat confdefs.h >>conftest.$ac_ext
31947 cat >>conftest.$ac_ext <<_ACEOF
31948 /* end confdefs.h. */
31950 #ifdef HAVE_DB_185_H
31951 # include <db_185.h>
31956 #ifndef DB_VERSION_MAJOR
31957 # define DB_VERSION_MAJOR 1
31961 #define NULL ((void*)0)
31968 #if DB_VERSION_MAJOR > 1
31971 int major, minor, patch;
31973 version = db_version( &major, &minor, &patch );
31975 if( major != DB_VERSION_MAJOR ||
31976 minor < DB_VERSION_MINOR )
31978 printf("Berkeley DB version mismatch\n"
31979 "\theader: %s\n\tlibrary: %s\n",
31980 DB_VERSION_STRING, version);
31986 #if DB_VERSION_MAJOR > 2
31987 db_env_create( NULL, 0 );
31988 #elif DB_VERSION_MAJOR > 1
31989 db_appexit( NULL );
31991 (void) dbopen( NULL, 0, 0, 0, NULL);
31998 rm -f conftest.$ac_objext conftest$ac_exeext
31999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32000 (eval $ac_link) 2>conftest.er1
32002 grep -v '^ *+' conftest.er1 >conftest.err
32004 cat conftest.err >&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } &&
32007 { ac_try='test -z "$ac_c_werror_flag"
32008 || test ! -s conftest.err'
32009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32010 (eval $ac_try) 2>&5
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); }; } &&
32014 { ac_try='test -s conftest$ac_exeext'
32015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32016 (eval $ac_try) 2>&5
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); }; }; then
32022 echo "$as_me: failed program was:" >&5
32023 sed 's/^/| /' conftest.$ac_ext >&5
32027 rm -f conftest.err conftest.$ac_objext \
32028 conftest$ac_exeext conftest.$ac_ext
32033 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
32034 echo "${ECHO_T}$ol_cv_db_db_44" >&6
32036 if test $ol_cv_db_db_44 = yes ; then
32037 ol_cv_lib_db=-ldb-44
32041 if test $ol_cv_lib_db = no ; then
32042 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
32043 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
32044 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
32045 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32052 cat >conftest.$ac_ext <<_ACEOF
32055 cat confdefs.h >>conftest.$ac_ext
32056 cat >>conftest.$ac_ext <<_ACEOF
32057 /* end confdefs.h. */
32059 #ifdef HAVE_DB_185_H
32060 # include <db_185.h>
32065 #ifndef DB_VERSION_MAJOR
32066 # define DB_VERSION_MAJOR 1
32070 #define NULL ((void*)0)
32077 #if DB_VERSION_MAJOR > 1
32080 int major, minor, patch;
32082 version = db_version( &major, &minor, &patch );
32084 if( major != DB_VERSION_MAJOR ||
32085 minor < DB_VERSION_MINOR )
32087 printf("Berkeley DB version mismatch\n"
32088 "\theader: %s\n\tlibrary: %s\n",
32089 DB_VERSION_STRING, version);
32095 #if DB_VERSION_MAJOR > 2
32096 db_env_create( NULL, 0 );
32097 #elif DB_VERSION_MAJOR > 1
32098 db_appexit( NULL );
32100 (void) dbopen( NULL, 0, 0, 0, NULL);
32107 rm -f conftest.$ac_objext conftest$ac_exeext
32108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32109 (eval $ac_link) 2>conftest.er1
32111 grep -v '^ *+' conftest.er1 >conftest.err
32113 cat conftest.err >&5
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); } &&
32116 { ac_try='test -z "$ac_c_werror_flag"
32117 || test ! -s conftest.err'
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; } &&
32123 { ac_try='test -s conftest$ac_exeext'
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 ol_cv_db_db_4_dot_4=yes
32131 echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32134 ol_cv_db_db_4_dot_4=no
32136 rm -f conftest.err conftest.$ac_objext \
32137 conftest$ac_exeext conftest.$ac_ext
32142 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
32143 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
32145 if test $ol_cv_db_db_4_dot_4 = yes ; then
32146 ol_cv_lib_db=-ldb-4.4
32150 if test $ol_cv_lib_db = no ; then
32151 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
32152 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
32153 if test "${ol_cv_db_db_4_4+set}" = set; then
32154 echo $ECHO_N "(cached) $ECHO_C" >&6
32159 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32161 cat >conftest.$ac_ext <<_ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h. */
32168 #ifdef HAVE_DB_185_H
32169 # include <db_185.h>
32174 #ifndef DB_VERSION_MAJOR
32175 # define DB_VERSION_MAJOR 1
32179 #define NULL ((void*)0)
32186 #if DB_VERSION_MAJOR > 1
32189 int major, minor, patch;
32191 version = db_version( &major, &minor, &patch );
32193 if( major != DB_VERSION_MAJOR ||
32194 minor < DB_VERSION_MINOR )
32196 printf("Berkeley DB version mismatch\n"
32197 "\theader: %s\n\tlibrary: %s\n",
32198 DB_VERSION_STRING, version);
32204 #if DB_VERSION_MAJOR > 2
32205 db_env_create( NULL, 0 );
32206 #elif DB_VERSION_MAJOR > 1
32207 db_appexit( NULL );
32209 (void) dbopen( NULL, 0, 0, 0, NULL);
32216 rm -f conftest.$ac_objext conftest$ac_exeext
32217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32218 (eval $ac_link) 2>conftest.er1
32220 grep -v '^ *+' conftest.er1 >conftest.err
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32224 (exit $ac_status); } &&
32225 { ac_try='test -z "$ac_c_werror_flag"
32226 || test ! -s conftest.err'
32227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32228 (eval $ac_try) 2>&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; } &&
32232 { ac_try='test -s conftest$ac_exeext'
32233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32234 (eval $ac_try) 2>&5
32236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237 (exit $ac_status); }; }; then
32238 ol_cv_db_db_4_4=yes
32240 echo "$as_me: failed program was:" >&5
32241 sed 's/^/| /' conftest.$ac_ext >&5
32245 rm -f conftest.err conftest.$ac_objext \
32246 conftest$ac_exeext conftest.$ac_ext
32251 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32252 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32254 if test $ol_cv_db_db_4_4 = yes ; then
32255 ol_cv_lib_db=-ldb-4-4
32259 elif test $ol_cv_bdb_minor = 3 ; then
32260 if test $ol_cv_lib_db = no ; then
32261 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32262 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32263 if test "${ol_cv_db_db43+set}" = set; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32271 cat >conftest.$ac_ext <<_ACEOF
32274 cat confdefs.h >>conftest.$ac_ext
32275 cat >>conftest.$ac_ext <<_ACEOF
32276 /* end confdefs.h. */
32278 #ifdef HAVE_DB_185_H
32279 # include <db_185.h>
32284 #ifndef DB_VERSION_MAJOR
32285 # define DB_VERSION_MAJOR 1
32289 #define NULL ((void*)0)
32296 #if DB_VERSION_MAJOR > 1
32299 int major, minor, patch;
32301 version = db_version( &major, &minor, &patch );
32303 if( major != DB_VERSION_MAJOR ||
32304 minor < DB_VERSION_MINOR )
32306 printf("Berkeley DB version mismatch\n"
32307 "\theader: %s\n\tlibrary: %s\n",
32308 DB_VERSION_STRING, version);
32314 #if DB_VERSION_MAJOR > 2
32315 db_env_create( NULL, 0 );
32316 #elif DB_VERSION_MAJOR > 1
32317 db_appexit( NULL );
32319 (void) dbopen( NULL, 0, 0, 0, NULL);
32326 rm -f conftest.$ac_objext conftest$ac_exeext
32327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32328 (eval $ac_link) 2>conftest.er1
32330 grep -v '^ *+' conftest.er1 >conftest.err
32332 cat conftest.err >&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); } &&
32335 { ac_try='test -z "$ac_c_werror_flag"
32336 || test ! -s conftest.err'
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; } &&
32342 { ac_try='test -s conftest$ac_exeext'
32343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32344 (eval $ac_try) 2>&5
32346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32347 (exit $ac_status); }; }; then
32350 echo "$as_me: failed program was:" >&5
32351 sed 's/^/| /' conftest.$ac_ext >&5
32355 rm -f conftest.err conftest.$ac_objext \
32356 conftest$ac_exeext conftest.$ac_ext
32361 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32362 echo "${ECHO_T}$ol_cv_db_db43" >&6
32364 if test $ol_cv_db_db43 = yes ; then
32365 ol_cv_lib_db=-ldb43
32369 if test $ol_cv_lib_db = no ; then
32370 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32371 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32372 if test "${ol_cv_db_db_43+set}" = set; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32380 cat >conftest.$ac_ext <<_ACEOF
32383 cat confdefs.h >>conftest.$ac_ext
32384 cat >>conftest.$ac_ext <<_ACEOF
32385 /* end confdefs.h. */
32387 #ifdef HAVE_DB_185_H
32388 # include <db_185.h>
32393 #ifndef DB_VERSION_MAJOR
32394 # define DB_VERSION_MAJOR 1
32398 #define NULL ((void*)0)
32405 #if DB_VERSION_MAJOR > 1
32408 int major, minor, patch;
32410 version = db_version( &major, &minor, &patch );
32412 if( major != DB_VERSION_MAJOR ||
32413 minor < DB_VERSION_MINOR )
32415 printf("Berkeley DB version mismatch\n"
32416 "\theader: %s\n\tlibrary: %s\n",
32417 DB_VERSION_STRING, version);
32423 #if DB_VERSION_MAJOR > 2
32424 db_env_create( NULL, 0 );
32425 #elif DB_VERSION_MAJOR > 1
32426 db_appexit( NULL );
32428 (void) dbopen( NULL, 0, 0, 0, NULL);
32435 rm -f conftest.$ac_objext conftest$ac_exeext
32436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32437 (eval $ac_link) 2>conftest.er1
32439 grep -v '^ *+' conftest.er1 >conftest.err
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_c_werror_flag"
32445 || test ! -s conftest.err'
32446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32447 (eval $ac_try) 2>&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); }; } &&
32451 { ac_try='test -s conftest$ac_exeext'
32452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32453 (eval $ac_try) 2>&5
32455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456 (exit $ac_status); }; }; then
32459 echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32464 rm -f conftest.err conftest.$ac_objext \
32465 conftest$ac_exeext conftest.$ac_ext
32470 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32471 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32473 if test $ol_cv_db_db_43 = yes ; then
32474 ol_cv_lib_db=-ldb-43
32478 if test $ol_cv_lib_db = no ; then
32479 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32480 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32481 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32482 echo $ECHO_N "(cached) $ECHO_C" >&6
32487 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32489 cat >conftest.$ac_ext <<_ACEOF
32492 cat confdefs.h >>conftest.$ac_ext
32493 cat >>conftest.$ac_ext <<_ACEOF
32494 /* end confdefs.h. */
32496 #ifdef HAVE_DB_185_H
32497 # include <db_185.h>
32502 #ifndef DB_VERSION_MAJOR
32503 # define DB_VERSION_MAJOR 1
32507 #define NULL ((void*)0)
32514 #if DB_VERSION_MAJOR > 1
32517 int major, minor, patch;
32519 version = db_version( &major, &minor, &patch );
32521 if( major != DB_VERSION_MAJOR ||
32522 minor < DB_VERSION_MINOR )
32524 printf("Berkeley DB version mismatch\n"
32525 "\theader: %s\n\tlibrary: %s\n",
32526 DB_VERSION_STRING, version);
32532 #if DB_VERSION_MAJOR > 2
32533 db_env_create( NULL, 0 );
32534 #elif DB_VERSION_MAJOR > 1
32535 db_appexit( NULL );
32537 (void) dbopen( NULL, 0, 0, 0, NULL);
32544 rm -f conftest.$ac_objext conftest$ac_exeext
32545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32546 (eval $ac_link) 2>conftest.er1
32548 grep -v '^ *+' conftest.er1 >conftest.err
32550 cat conftest.err >&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } &&
32553 { ac_try='test -z "$ac_c_werror_flag"
32554 || test ! -s conftest.err'
32555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32556 (eval $ac_try) 2>&5
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; } &&
32560 { ac_try='test -s conftest$ac_exeext'
32561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32562 (eval $ac_try) 2>&5
32564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565 (exit $ac_status); }; }; then
32566 ol_cv_db_db_4_dot_3=yes
32568 echo "$as_me: failed program was:" >&5
32569 sed 's/^/| /' conftest.$ac_ext >&5
32571 ol_cv_db_db_4_dot_3=no
32573 rm -f conftest.err conftest.$ac_objext \
32574 conftest$ac_exeext conftest.$ac_ext
32579 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32580 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32582 if test $ol_cv_db_db_4_dot_3 = yes ; then
32583 ol_cv_lib_db=-ldb-4.3
32587 if test $ol_cv_lib_db = no ; then
32588 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32589 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32590 if test "${ol_cv_db_db_4_3+set}" = set; then
32591 echo $ECHO_N "(cached) $ECHO_C" >&6
32596 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32598 cat >conftest.$ac_ext <<_ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h. */
32605 #ifdef HAVE_DB_185_H
32606 # include <db_185.h>
32611 #ifndef DB_VERSION_MAJOR
32612 # define DB_VERSION_MAJOR 1
32616 #define NULL ((void*)0)
32623 #if DB_VERSION_MAJOR > 1
32626 int major, minor, patch;
32628 version = db_version( &major, &minor, &patch );
32630 if( major != DB_VERSION_MAJOR ||
32631 minor < DB_VERSION_MINOR )
32633 printf("Berkeley DB version mismatch\n"
32634 "\theader: %s\n\tlibrary: %s\n",
32635 DB_VERSION_STRING, version);
32641 #if DB_VERSION_MAJOR > 2
32642 db_env_create( NULL, 0 );
32643 #elif DB_VERSION_MAJOR > 1
32644 db_appexit( NULL );
32646 (void) dbopen( NULL, 0, 0, 0, NULL);
32653 rm -f conftest.$ac_objext conftest$ac_exeext
32654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32655 (eval $ac_link) 2>conftest.er1
32657 grep -v '^ *+' conftest.er1 >conftest.err
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } &&
32662 { ac_try='test -z "$ac_c_werror_flag"
32663 || test ! -s conftest.err'
32664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665 (eval $ac_try) 2>&5
32667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668 (exit $ac_status); }; } &&
32669 { ac_try='test -s conftest$ac_exeext'
32670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32671 (eval $ac_try) 2>&5
32673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674 (exit $ac_status); }; }; then
32675 ol_cv_db_db_4_3=yes
32677 echo "$as_me: failed program was:" >&5
32678 sed 's/^/| /' conftest.$ac_ext >&5
32682 rm -f conftest.err conftest.$ac_objext \
32683 conftest$ac_exeext conftest.$ac_ext
32688 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32689 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32691 if test $ol_cv_db_db_4_3 = yes ; then
32692 ol_cv_lib_db=-ldb-4-3
32696 elif test $ol_cv_bdb_minor = 2 ; then
32697 if test $ol_cv_lib_db = no ; then
32698 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32699 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32700 if test "${ol_cv_db_db42+set}" = set; then
32701 echo $ECHO_N "(cached) $ECHO_C" >&6
32706 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32708 cat >conftest.$ac_ext <<_ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32715 #ifdef HAVE_DB_185_H
32716 # include <db_185.h>
32721 #ifndef DB_VERSION_MAJOR
32722 # define DB_VERSION_MAJOR 1
32726 #define NULL ((void*)0)
32733 #if DB_VERSION_MAJOR > 1
32736 int major, minor, patch;
32738 version = db_version( &major, &minor, &patch );
32740 if( major != DB_VERSION_MAJOR ||
32741 minor < DB_VERSION_MINOR )
32743 printf("Berkeley DB version mismatch\n"
32744 "\theader: %s\n\tlibrary: %s\n",
32745 DB_VERSION_STRING, version);
32751 #if DB_VERSION_MAJOR > 2
32752 db_env_create( NULL, 0 );
32753 #elif DB_VERSION_MAJOR > 1
32754 db_appexit( NULL );
32756 (void) dbopen( NULL, 0, 0, 0, NULL);
32763 rm -f conftest.$ac_objext conftest$ac_exeext
32764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32765 (eval $ac_link) 2>conftest.er1
32767 grep -v '^ *+' conftest.er1 >conftest.err
32769 cat conftest.err >&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); } &&
32772 { ac_try='test -z "$ac_c_werror_flag"
32773 || test ! -s conftest.err'
32774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775 (eval $ac_try) 2>&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest$ac_exeext'
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32787 echo "$as_me: failed program was:" >&5
32788 sed 's/^/| /' conftest.$ac_ext >&5
32792 rm -f conftest.err conftest.$ac_objext \
32793 conftest$ac_exeext conftest.$ac_ext
32798 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32799 echo "${ECHO_T}$ol_cv_db_db42" >&6
32801 if test $ol_cv_db_db42 = yes ; then
32802 ol_cv_lib_db=-ldb42
32806 if test $ol_cv_lib_db = no ; then
32807 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32808 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32809 if test "${ol_cv_db_db_42+set}" = set; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32815 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32817 cat >conftest.$ac_ext <<_ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h. */
32824 #ifdef HAVE_DB_185_H
32825 # include <db_185.h>
32830 #ifndef DB_VERSION_MAJOR
32831 # define DB_VERSION_MAJOR 1
32835 #define NULL ((void*)0)
32842 #if DB_VERSION_MAJOR > 1
32845 int major, minor, patch;
32847 version = db_version( &major, &minor, &patch );
32849 if( major != DB_VERSION_MAJOR ||
32850 minor < DB_VERSION_MINOR )
32852 printf("Berkeley DB version mismatch\n"
32853 "\theader: %s\n\tlibrary: %s\n",
32854 DB_VERSION_STRING, version);
32860 #if DB_VERSION_MAJOR > 2
32861 db_env_create( NULL, 0 );
32862 #elif DB_VERSION_MAJOR > 1
32863 db_appexit( NULL );
32865 (void) dbopen( NULL, 0, 0, 0, NULL);
32872 rm -f conftest.$ac_objext conftest$ac_exeext
32873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32874 (eval $ac_link) 2>conftest.er1
32876 grep -v '^ *+' conftest.er1 >conftest.err
32878 cat conftest.err >&5
32879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32880 (exit $ac_status); } &&
32881 { ac_try='test -z "$ac_c_werror_flag"
32882 || test ! -s conftest.err'
32883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32884 (eval $ac_try) 2>&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; } &&
32888 { ac_try='test -s conftest$ac_exeext'
32889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32890 (eval $ac_try) 2>&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; }; then
32896 echo "$as_me: failed program was:" >&5
32897 sed 's/^/| /' conftest.$ac_ext >&5
32901 rm -f conftest.err conftest.$ac_objext \
32902 conftest$ac_exeext conftest.$ac_ext
32907 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32908 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32910 if test $ol_cv_db_db_42 = yes ; then
32911 ol_cv_lib_db=-ldb-42
32915 if test $ol_cv_lib_db = no ; then
32916 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32917 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32918 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32919 echo $ECHO_N "(cached) $ECHO_C" >&6
32924 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32926 cat >conftest.$ac_ext <<_ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32933 #ifdef HAVE_DB_185_H
32934 # include <db_185.h>
32939 #ifndef DB_VERSION_MAJOR
32940 # define DB_VERSION_MAJOR 1
32944 #define NULL ((void*)0)
32951 #if DB_VERSION_MAJOR > 1
32954 int major, minor, patch;
32956 version = db_version( &major, &minor, &patch );
32958 if( major != DB_VERSION_MAJOR ||
32959 minor < DB_VERSION_MINOR )
32961 printf("Berkeley DB version mismatch\n"
32962 "\theader: %s\n\tlibrary: %s\n",
32963 DB_VERSION_STRING, version);
32969 #if DB_VERSION_MAJOR > 2
32970 db_env_create( NULL, 0 );
32971 #elif DB_VERSION_MAJOR > 1
32972 db_appexit( NULL );
32974 (void) dbopen( NULL, 0, 0, 0, NULL);
32981 rm -f conftest.$ac_objext conftest$ac_exeext
32982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32983 (eval $ac_link) 2>conftest.er1
32985 grep -v '^ *+' conftest.er1 >conftest.err
32987 cat conftest.err >&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); } &&
32990 { ac_try='test -z "$ac_c_werror_flag"
32991 || test ! -s conftest.err'
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; } &&
32997 { ac_try='test -s conftest$ac_exeext'
32998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32999 (eval $ac_try) 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ol_cv_db_db_4_dot_2=yes
33005 echo "$as_me: failed program was:" >&5
33006 sed 's/^/| /' conftest.$ac_ext >&5
33008 ol_cv_db_db_4_dot_2=no
33010 rm -f conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
33016 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
33017 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
33019 if test $ol_cv_db_db_4_dot_2 = yes ; then
33020 ol_cv_lib_db=-ldb-4.2
33024 if test $ol_cv_lib_db = no ; then
33025 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
33026 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
33027 if test "${ol_cv_db_db_4_2+set}" = set; then
33028 echo $ECHO_N "(cached) $ECHO_C" >&6
33033 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33035 cat >conftest.$ac_ext <<_ACEOF
33038 cat confdefs.h >>conftest.$ac_ext
33039 cat >>conftest.$ac_ext <<_ACEOF
33040 /* end confdefs.h. */
33042 #ifdef HAVE_DB_185_H
33043 # include <db_185.h>
33048 #ifndef DB_VERSION_MAJOR
33049 # define DB_VERSION_MAJOR 1
33053 #define NULL ((void*)0)
33060 #if DB_VERSION_MAJOR > 1
33063 int major, minor, patch;
33065 version = db_version( &major, &minor, &patch );
33067 if( major != DB_VERSION_MAJOR ||
33068 minor < DB_VERSION_MINOR )
33070 printf("Berkeley DB version mismatch\n"
33071 "\theader: %s\n\tlibrary: %s\n",
33072 DB_VERSION_STRING, version);
33078 #if DB_VERSION_MAJOR > 2
33079 db_env_create( NULL, 0 );
33080 #elif DB_VERSION_MAJOR > 1
33081 db_appexit( NULL );
33083 (void) dbopen( NULL, 0, 0, 0, NULL);
33090 rm -f conftest.$ac_objext conftest$ac_exeext
33091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33092 (eval $ac_link) 2>conftest.er1
33094 grep -v '^ *+' conftest.er1 >conftest.err
33096 cat conftest.err >&5
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } &&
33099 { ac_try='test -z "$ac_c_werror_flag"
33100 || test ! -s conftest.err'
33101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102 (eval $ac_try) 2>&5
33104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105 (exit $ac_status); }; } &&
33106 { ac_try='test -s conftest$ac_exeext'
33107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108 (eval $ac_try) 2>&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33112 ol_cv_db_db_4_2=yes
33114 echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33119 rm -f conftest.err conftest.$ac_objext \
33120 conftest$ac_exeext conftest.$ac_ext
33125 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
33126 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
33128 if test $ol_cv_db_db_4_2 = yes ; then
33129 ol_cv_lib_db=-ldb-4-2
33133 elif test $ol_cv_bdb_minor = 1 ; then
33134 if test $ol_cv_lib_db = no ; then
33135 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
33136 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
33137 if test "${ol_cv_db_db41+set}" = set; then
33138 echo $ECHO_N "(cached) $ECHO_C" >&6
33143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33145 cat >conftest.$ac_ext <<_ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h. */
33152 #ifdef HAVE_DB_185_H
33153 # include <db_185.h>
33158 #ifndef DB_VERSION_MAJOR
33159 # define DB_VERSION_MAJOR 1
33163 #define NULL ((void*)0)
33170 #if DB_VERSION_MAJOR > 1
33173 int major, minor, patch;
33175 version = db_version( &major, &minor, &patch );
33177 if( major != DB_VERSION_MAJOR ||
33178 minor < DB_VERSION_MINOR )
33180 printf("Berkeley DB version mismatch\n"
33181 "\theader: %s\n\tlibrary: %s\n",
33182 DB_VERSION_STRING, version);
33188 #if DB_VERSION_MAJOR > 2
33189 db_env_create( NULL, 0 );
33190 #elif DB_VERSION_MAJOR > 1
33191 db_appexit( NULL );
33193 (void) dbopen( NULL, 0, 0, 0, NULL);
33200 rm -f conftest.$ac_objext conftest$ac_exeext
33201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33202 (eval $ac_link) 2>conftest.er1
33204 grep -v '^ *+' conftest.er1 >conftest.err
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_c_werror_flag"
33210 || test ! -s conftest.err'
33211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33212 (eval $ac_try) 2>&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; } &&
33216 { ac_try='test -s conftest$ac_exeext'
33217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218 (eval $ac_try) 2>&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); }; }; then
33224 echo "$as_me: failed program was:" >&5
33225 sed 's/^/| /' conftest.$ac_ext >&5
33229 rm -f conftest.err conftest.$ac_objext \
33230 conftest$ac_exeext conftest.$ac_ext
33235 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33236 echo "${ECHO_T}$ol_cv_db_db41" >&6
33238 if test $ol_cv_db_db41 = yes ; then
33239 ol_cv_lib_db=-ldb41
33243 if test $ol_cv_lib_db = no ; then
33244 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33245 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33246 if test "${ol_cv_db_db_41+set}" = set; then
33247 echo $ECHO_N "(cached) $ECHO_C" >&6
33252 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33254 cat >conftest.$ac_ext <<_ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h. */
33261 #ifdef HAVE_DB_185_H
33262 # include <db_185.h>
33267 #ifndef DB_VERSION_MAJOR
33268 # define DB_VERSION_MAJOR 1
33272 #define NULL ((void*)0)
33279 #if DB_VERSION_MAJOR > 1
33282 int major, minor, patch;
33284 version = db_version( &major, &minor, &patch );
33286 if( major != DB_VERSION_MAJOR ||
33287 minor < DB_VERSION_MINOR )
33289 printf("Berkeley DB version mismatch\n"
33290 "\theader: %s\n\tlibrary: %s\n",
33291 DB_VERSION_STRING, version);
33297 #if DB_VERSION_MAJOR > 2
33298 db_env_create( NULL, 0 );
33299 #elif DB_VERSION_MAJOR > 1
33300 db_appexit( NULL );
33302 (void) dbopen( NULL, 0, 0, 0, NULL);
33309 rm -f conftest.$ac_objext conftest$ac_exeext
33310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33311 (eval $ac_link) 2>conftest.er1
33313 grep -v '^ *+' conftest.er1 >conftest.err
33315 cat conftest.err >&5
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); } &&
33318 { ac_try='test -z "$ac_c_werror_flag"
33319 || test ! -s conftest.err'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; } &&
33325 { ac_try='test -s conftest$ac_exeext'
33326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33327 (eval $ac_try) 2>&5
33329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33330 (exit $ac_status); }; }; then
33333 echo "$as_me: failed program was:" >&5
33334 sed 's/^/| /' conftest.$ac_ext >&5
33338 rm -f conftest.err conftest.$ac_objext \
33339 conftest$ac_exeext conftest.$ac_ext
33344 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33345 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33347 if test $ol_cv_db_db_41 = yes ; then
33348 ol_cv_lib_db=-ldb-41
33352 if test $ol_cv_lib_db = no ; then
33353 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33354 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33355 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33356 echo $ECHO_N "(cached) $ECHO_C" >&6
33361 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33363 cat >conftest.$ac_ext <<_ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h. */
33370 #ifdef HAVE_DB_185_H
33371 # include <db_185.h>
33376 #ifndef DB_VERSION_MAJOR
33377 # define DB_VERSION_MAJOR 1
33381 #define NULL ((void*)0)
33388 #if DB_VERSION_MAJOR > 1
33391 int major, minor, patch;
33393 version = db_version( &major, &minor, &patch );
33395 if( major != DB_VERSION_MAJOR ||
33396 minor < DB_VERSION_MINOR )
33398 printf("Berkeley DB version mismatch\n"
33399 "\theader: %s\n\tlibrary: %s\n",
33400 DB_VERSION_STRING, version);
33406 #if DB_VERSION_MAJOR > 2
33407 db_env_create( NULL, 0 );
33408 #elif DB_VERSION_MAJOR > 1
33409 db_appexit( NULL );
33411 (void) dbopen( NULL, 0, 0, 0, NULL);
33418 rm -f conftest.$ac_objext conftest$ac_exeext
33419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33420 (eval $ac_link) 2>conftest.er1
33422 grep -v '^ *+' conftest.er1 >conftest.err
33424 cat conftest.err >&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } &&
33427 { ac_try='test -z "$ac_c_werror_flag"
33428 || test ! -s conftest.err'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; } &&
33434 { ac_try='test -s conftest$ac_exeext'
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; }; then
33440 ol_cv_db_db_4_dot_1=yes
33442 echo "$as_me: failed program was:" >&5
33443 sed 's/^/| /' conftest.$ac_ext >&5
33445 ol_cv_db_db_4_dot_1=no
33447 rm -f conftest.err conftest.$ac_objext \
33448 conftest$ac_exeext conftest.$ac_ext
33453 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33454 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33456 if test $ol_cv_db_db_4_dot_1 = yes ; then
33457 ol_cv_lib_db=-ldb-4.1
33461 if test $ol_cv_lib_db = no ; then
33462 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33463 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33464 if test "${ol_cv_db_db_4_1+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33470 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33472 cat >conftest.$ac_ext <<_ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h. */
33479 #ifdef HAVE_DB_185_H
33480 # include <db_185.h>
33485 #ifndef DB_VERSION_MAJOR
33486 # define DB_VERSION_MAJOR 1
33490 #define NULL ((void*)0)
33497 #if DB_VERSION_MAJOR > 1
33500 int major, minor, patch;
33502 version = db_version( &major, &minor, &patch );
33504 if( major != DB_VERSION_MAJOR ||
33505 minor < DB_VERSION_MINOR )
33507 printf("Berkeley DB version mismatch\n"
33508 "\theader: %s\n\tlibrary: %s\n",
33509 DB_VERSION_STRING, version);
33515 #if DB_VERSION_MAJOR > 2
33516 db_env_create( NULL, 0 );
33517 #elif DB_VERSION_MAJOR > 1
33518 db_appexit( NULL );
33520 (void) dbopen( NULL, 0, 0, 0, NULL);
33527 rm -f conftest.$ac_objext conftest$ac_exeext
33528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33529 (eval $ac_link) 2>conftest.er1
33531 grep -v '^ *+' conftest.er1 >conftest.err
33533 cat conftest.err >&5
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); } &&
33536 { ac_try='test -z "$ac_c_werror_flag"
33537 || test ! -s conftest.err'
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; } &&
33543 { ac_try='test -s conftest$ac_exeext'
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; }; then
33549 ol_cv_db_db_4_1=yes
33551 echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33556 rm -f conftest.err conftest.$ac_objext \
33557 conftest$ac_exeext conftest.$ac_ext
33562 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33563 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33565 if test $ol_cv_db_db_4_1 = yes ; then
33566 ol_cv_lib_db=-ldb-4-1
33571 if test $ol_cv_lib_db = no ; then
33572 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33573 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33574 if test "${ol_cv_db_db_4+set}" = set; then
33575 echo $ECHO_N "(cached) $ECHO_C" >&6
33580 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33582 cat >conftest.$ac_ext <<_ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33589 #ifdef HAVE_DB_185_H
33590 # include <db_185.h>
33595 #ifndef DB_VERSION_MAJOR
33596 # define DB_VERSION_MAJOR 1
33600 #define NULL ((void*)0)
33607 #if DB_VERSION_MAJOR > 1
33610 int major, minor, patch;
33612 version = db_version( &major, &minor, &patch );
33614 if( major != DB_VERSION_MAJOR ||
33615 minor < DB_VERSION_MINOR )
33617 printf("Berkeley DB version mismatch\n"
33618 "\theader: %s\n\tlibrary: %s\n",
33619 DB_VERSION_STRING, version);
33625 #if DB_VERSION_MAJOR > 2
33626 db_env_create( NULL, 0 );
33627 #elif DB_VERSION_MAJOR > 1
33628 db_appexit( NULL );
33630 (void) dbopen( NULL, 0, 0, 0, NULL);
33637 rm -f conftest.$ac_objext conftest$ac_exeext
33638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33639 (eval $ac_link) 2>conftest.er1
33641 grep -v '^ *+' conftest.er1 >conftest.err
33643 cat conftest.err >&5
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); } &&
33646 { ac_try='test -z "$ac_c_werror_flag"
33647 || test ! -s conftest.err'
33648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33649 (eval $ac_try) 2>&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33652 (exit $ac_status); }; } &&
33653 { ac_try='test -s conftest$ac_exeext'
33654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655 (eval $ac_try) 2>&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); }; }; then
33661 echo "$as_me: failed program was:" >&5
33662 sed 's/^/| /' conftest.$ac_ext >&5
33666 rm -f conftest.err conftest.$ac_objext \
33667 conftest$ac_exeext conftest.$ac_ext
33672 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33673 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33675 if test $ol_cv_db_db_4 = yes ; then
33676 ol_cv_lib_db=-ldb-4
33680 if test $ol_cv_lib_db = no ; then
33681 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33682 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33683 if test "${ol_cv_db_db4+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33689 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33691 cat >conftest.$ac_ext <<_ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h. */
33698 #ifdef HAVE_DB_185_H
33699 # include <db_185.h>
33704 #ifndef DB_VERSION_MAJOR
33705 # define DB_VERSION_MAJOR 1
33709 #define NULL ((void*)0)
33716 #if DB_VERSION_MAJOR > 1
33719 int major, minor, patch;
33721 version = db_version( &major, &minor, &patch );
33723 if( major != DB_VERSION_MAJOR ||
33724 minor < DB_VERSION_MINOR )
33726 printf("Berkeley DB version mismatch\n"
33727 "\theader: %s\n\tlibrary: %s\n",
33728 DB_VERSION_STRING, version);
33734 #if DB_VERSION_MAJOR > 2
33735 db_env_create( NULL, 0 );
33736 #elif DB_VERSION_MAJOR > 1
33737 db_appexit( NULL );
33739 (void) dbopen( NULL, 0, 0, 0, NULL);
33746 rm -f conftest.$ac_objext conftest$ac_exeext
33747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33748 (eval $ac_link) 2>conftest.er1
33750 grep -v '^ *+' conftest.er1 >conftest.err
33752 cat conftest.err >&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } &&
33755 { ac_try='test -z "$ac_c_werror_flag"
33756 || test ! -s conftest.err'
33757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33758 (eval $ac_try) 2>&5
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); }; } &&
33762 { ac_try='test -s conftest$ac_exeext'
33763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33764 (eval $ac_try) 2>&5
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33775 rm -f conftest.err conftest.$ac_objext \
33776 conftest$ac_exeext conftest.$ac_ext
33781 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33782 echo "${ECHO_T}$ol_cv_db_db4" >&6
33784 if test $ol_cv_db_db4 = yes ; then
33789 if test $ol_cv_lib_db = no ; then
33790 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33791 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33792 if test "${ol_cv_db_db+set}" = set; then
33793 echo $ECHO_N "(cached) $ECHO_C" >&6
33798 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33800 cat >conftest.$ac_ext <<_ACEOF
33803 cat confdefs.h >>conftest.$ac_ext
33804 cat >>conftest.$ac_ext <<_ACEOF
33805 /* end confdefs.h. */
33807 #ifdef HAVE_DB_185_H
33808 # include <db_185.h>
33813 #ifndef DB_VERSION_MAJOR
33814 # define DB_VERSION_MAJOR 1
33818 #define NULL ((void*)0)
33825 #if DB_VERSION_MAJOR > 1
33828 int major, minor, patch;
33830 version = db_version( &major, &minor, &patch );
33832 if( major != DB_VERSION_MAJOR ||
33833 minor < DB_VERSION_MINOR )
33835 printf("Berkeley DB version mismatch\n"
33836 "\theader: %s\n\tlibrary: %s\n",
33837 DB_VERSION_STRING, version);
33843 #if DB_VERSION_MAJOR > 2
33844 db_env_create( NULL, 0 );
33845 #elif DB_VERSION_MAJOR > 1
33846 db_appexit( NULL );
33848 (void) dbopen( NULL, 0, 0, 0, NULL);
33855 rm -f conftest.$ac_objext conftest$ac_exeext
33856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33857 (eval $ac_link) 2>conftest.er1
33859 grep -v '^ *+' conftest.er1 >conftest.err
33861 cat conftest.err >&5
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); } &&
33864 { ac_try='test -z "$ac_c_werror_flag"
33865 || test ! -s conftest.err'
33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33867 (eval $ac_try) 2>&5
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); }; } &&
33871 { ac_try='test -s conftest$ac_exeext'
33872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33873 (eval $ac_try) 2>&5
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); }; }; then
33879 echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33884 rm -f conftest.err conftest.$ac_objext \
33885 conftest$ac_exeext conftest.$ac_ext
33890 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33891 echo "${ECHO_T}$ol_cv_db_db" >&6
33893 if test $ol_cv_db_db = yes ; then
33899 elif test $ol_cv_bdb_major = 3 ; then
33900 if test $ol_cv_lib_db = no ; then
33901 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33902 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33903 if test "${ol_cv_db_db3+set}" = set; then
33904 echo $ECHO_N "(cached) $ECHO_C" >&6
33909 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33911 cat >conftest.$ac_ext <<_ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33918 #ifdef HAVE_DB_185_H
33919 # include <db_185.h>
33924 #ifndef DB_VERSION_MAJOR
33925 # define DB_VERSION_MAJOR 1
33929 #define NULL ((void*)0)
33936 #if DB_VERSION_MAJOR > 1
33939 int major, minor, patch;
33941 version = db_version( &major, &minor, &patch );
33943 if( major != DB_VERSION_MAJOR ||
33944 minor < DB_VERSION_MINOR )
33946 printf("Berkeley DB version mismatch\n"
33947 "\theader: %s\n\tlibrary: %s\n",
33948 DB_VERSION_STRING, version);
33954 #if DB_VERSION_MAJOR > 2
33955 db_env_create( NULL, 0 );
33956 #elif DB_VERSION_MAJOR > 1
33957 db_appexit( NULL );
33959 (void) dbopen( NULL, 0, 0, 0, NULL);
33966 rm -f conftest.$ac_objext conftest$ac_exeext
33967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33968 (eval $ac_link) 2>conftest.er1
33970 grep -v '^ *+' conftest.er1 >conftest.err
33972 cat conftest.err >&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } &&
33975 { ac_try='test -z "$ac_c_werror_flag"
33976 || test ! -s conftest.err'
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; } &&
33982 { ac_try='test -s conftest$ac_exeext'
33983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33984 (eval $ac_try) 2>&5
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); }; }; then
33990 echo "$as_me: failed program was:" >&5
33991 sed 's/^/| /' conftest.$ac_ext >&5
33995 rm -f conftest.err conftest.$ac_objext \
33996 conftest$ac_exeext conftest.$ac_ext
34001 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
34002 echo "${ECHO_T}$ol_cv_db_db3" >&6
34004 if test $ol_cv_db_db3 = yes ; then
34009 if test $ol_cv_lib_db = no ; then
34010 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
34011 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
34012 if test "${ol_cv_db_db_3+set}" = set; then
34013 echo $ECHO_N "(cached) $ECHO_C" >&6
34018 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34020 cat >conftest.$ac_ext <<_ACEOF
34023 cat confdefs.h >>conftest.$ac_ext
34024 cat >>conftest.$ac_ext <<_ACEOF
34025 /* end confdefs.h. */
34027 #ifdef HAVE_DB_185_H
34028 # include <db_185.h>
34033 #ifndef DB_VERSION_MAJOR
34034 # define DB_VERSION_MAJOR 1
34038 #define NULL ((void*)0)
34045 #if DB_VERSION_MAJOR > 1
34048 int major, minor, patch;
34050 version = db_version( &major, &minor, &patch );
34052 if( major != DB_VERSION_MAJOR ||
34053 minor < DB_VERSION_MINOR )
34055 printf("Berkeley DB version mismatch\n"
34056 "\theader: %s\n\tlibrary: %s\n",
34057 DB_VERSION_STRING, version);
34063 #if DB_VERSION_MAJOR > 2
34064 db_env_create( NULL, 0 );
34065 #elif DB_VERSION_MAJOR > 1
34066 db_appexit( NULL );
34068 (void) dbopen( NULL, 0, 0, 0, NULL);
34075 rm -f conftest.$ac_objext conftest$ac_exeext
34076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34077 (eval $ac_link) 2>conftest.er1
34079 grep -v '^ *+' conftest.er1 >conftest.err
34081 cat conftest.err >&5
34082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); } &&
34084 { ac_try='test -z "$ac_c_werror_flag"
34085 || test ! -s conftest.err'
34086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34087 (eval $ac_try) 2>&5
34089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 (exit $ac_status); }; } &&
34091 { ac_try='test -s conftest$ac_exeext'
34092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34093 (eval $ac_try) 2>&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34096 (exit $ac_status); }; }; then
34099 echo "$as_me: failed program was:" >&5
34100 sed 's/^/| /' conftest.$ac_ext >&5
34104 rm -f conftest.err conftest.$ac_objext \
34105 conftest$ac_exeext conftest.$ac_ext
34110 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
34111 echo "${ECHO_T}$ol_cv_db_db_3" >&6
34113 if test $ol_cv_db_db_3 = yes ; then
34114 ol_cv_lib_db=-ldb-3
34119 elif test $ol_cv_bdb_major = 2 ; then
34120 if test $ol_cv_lib_db = no ; then
34121 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
34122 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
34123 if test "${ol_cv_db_db2+set}" = set; then
34124 echo $ECHO_N "(cached) $ECHO_C" >&6
34129 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34131 cat >conftest.$ac_ext <<_ACEOF
34134 cat confdefs.h >>conftest.$ac_ext
34135 cat >>conftest.$ac_ext <<_ACEOF
34136 /* end confdefs.h. */
34138 #ifdef HAVE_DB_185_H
34139 # include <db_185.h>
34144 #ifndef DB_VERSION_MAJOR
34145 # define DB_VERSION_MAJOR 1
34149 #define NULL ((void*)0)
34156 #if DB_VERSION_MAJOR > 1
34159 int major, minor, patch;
34161 version = db_version( &major, &minor, &patch );
34163 if( major != DB_VERSION_MAJOR ||
34164 minor < DB_VERSION_MINOR )
34166 printf("Berkeley DB version mismatch\n"
34167 "\theader: %s\n\tlibrary: %s\n",
34168 DB_VERSION_STRING, version);
34174 #if DB_VERSION_MAJOR > 2
34175 db_env_create( NULL, 0 );
34176 #elif DB_VERSION_MAJOR > 1
34177 db_appexit( NULL );
34179 (void) dbopen( NULL, 0, 0, 0, NULL);
34186 rm -f conftest.$ac_objext conftest$ac_exeext
34187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34188 (eval $ac_link) 2>conftest.er1
34190 grep -v '^ *+' conftest.er1 >conftest.err
34192 cat conftest.err >&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); } &&
34195 { ac_try='test -z "$ac_c_werror_flag"
34196 || test ! -s conftest.err'
34197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34198 (eval $ac_try) 2>&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); }; } &&
34202 { ac_try='test -s conftest$ac_exeext'
34203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204 (eval $ac_try) 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; }; then
34210 echo "$as_me: failed program was:" >&5
34211 sed 's/^/| /' conftest.$ac_ext >&5
34215 rm -f conftest.err conftest.$ac_objext \
34216 conftest$ac_exeext conftest.$ac_ext
34221 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34222 echo "${ECHO_T}$ol_cv_db_db2" >&6
34224 if test $ol_cv_db_db2 = yes ; then
34229 if test $ol_cv_lib_db = no ; then
34230 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34231 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34232 if test "${ol_cv_db_db_2+set}" = set; then
34233 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34240 cat >conftest.$ac_ext <<_ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h. */
34247 #ifdef HAVE_DB_185_H
34248 # include <db_185.h>
34253 #ifndef DB_VERSION_MAJOR
34254 # define DB_VERSION_MAJOR 1
34258 #define NULL ((void*)0)
34265 #if DB_VERSION_MAJOR > 1
34268 int major, minor, patch;
34270 version = db_version( &major, &minor, &patch );
34272 if( major != DB_VERSION_MAJOR ||
34273 minor < DB_VERSION_MINOR )
34275 printf("Berkeley DB version mismatch\n"
34276 "\theader: %s\n\tlibrary: %s\n",
34277 DB_VERSION_STRING, version);
34283 #if DB_VERSION_MAJOR > 2
34284 db_env_create( NULL, 0 );
34285 #elif DB_VERSION_MAJOR > 1
34286 db_appexit( NULL );
34288 (void) dbopen( NULL, 0, 0, 0, NULL);
34295 rm -f conftest.$ac_objext conftest$ac_exeext
34296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34297 (eval $ac_link) 2>conftest.er1
34299 grep -v '^ *+' conftest.er1 >conftest.err
34301 cat conftest.err >&5
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); } &&
34304 { ac_try='test -z "$ac_c_werror_flag"
34305 || test ! -s conftest.err'
34306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34307 (eval $ac_try) 2>&5
34309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310 (exit $ac_status); }; } &&
34311 { ac_try='test -s conftest$ac_exeext'
34312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34313 (eval $ac_try) 2>&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); }; }; then
34319 echo "$as_me: failed program was:" >&5
34320 sed 's/^/| /' conftest.$ac_ext >&5
34324 rm -f conftest.err conftest.$ac_objext \
34325 conftest$ac_exeext conftest.$ac_ext
34330 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34331 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34333 if test $ol_cv_db_db_2 = yes ; then
34334 ol_cv_lib_db=-ldb-2
34339 elif test $ol_cv_bdb_major = 1 ; then
34340 if test $ol_cv_lib_db = no ; then
34341 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34342 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34343 if test "${ol_cv_db_db1+set}" = set; then
34344 echo $ECHO_N "(cached) $ECHO_C" >&6
34349 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34351 cat >conftest.$ac_ext <<_ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h. */
34358 #ifdef HAVE_DB_185_H
34359 # include <db_185.h>
34364 #ifndef DB_VERSION_MAJOR
34365 # define DB_VERSION_MAJOR 1
34369 #define NULL ((void*)0)
34376 #if DB_VERSION_MAJOR > 1
34379 int major, minor, patch;
34381 version = db_version( &major, &minor, &patch );
34383 if( major != DB_VERSION_MAJOR ||
34384 minor < DB_VERSION_MINOR )
34386 printf("Berkeley DB version mismatch\n"
34387 "\theader: %s\n\tlibrary: %s\n",
34388 DB_VERSION_STRING, version);
34394 #if DB_VERSION_MAJOR > 2
34395 db_env_create( NULL, 0 );
34396 #elif DB_VERSION_MAJOR > 1
34397 db_appexit( NULL );
34399 (void) dbopen( NULL, 0, 0, 0, NULL);
34406 rm -f conftest.$ac_objext conftest$ac_exeext
34407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34408 (eval $ac_link) 2>conftest.er1
34410 grep -v '^ *+' conftest.er1 >conftest.err
34412 cat conftest.err >&5
34413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414 (exit $ac_status); } &&
34415 { ac_try='test -z "$ac_c_werror_flag"
34416 || test ! -s conftest.err'
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; } &&
34422 { ac_try='test -s conftest$ac_exeext'
34423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34424 (eval $ac_try) 2>&5
34426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427 (exit $ac_status); }; }; then
34430 echo "$as_me: failed program was:" >&5
34431 sed 's/^/| /' conftest.$ac_ext >&5
34435 rm -f conftest.err conftest.$ac_objext \
34436 conftest$ac_exeext conftest.$ac_ext
34441 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34442 echo "${ECHO_T}$ol_cv_db_db1" >&6
34444 if test $ol_cv_db_db1 = yes ; then
34449 if test $ol_cv_lib_db = no ; then
34450 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34451 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34452 if test "${ol_cv_db_db_1+set}" = set; then
34453 echo $ECHO_N "(cached) $ECHO_C" >&6
34458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34460 cat >conftest.$ac_ext <<_ACEOF
34463 cat confdefs.h >>conftest.$ac_ext
34464 cat >>conftest.$ac_ext <<_ACEOF
34465 /* end confdefs.h. */
34467 #ifdef HAVE_DB_185_H
34468 # include <db_185.h>
34473 #ifndef DB_VERSION_MAJOR
34474 # define DB_VERSION_MAJOR 1
34478 #define NULL ((void*)0)
34485 #if DB_VERSION_MAJOR > 1
34488 int major, minor, patch;
34490 version = db_version( &major, &minor, &patch );
34492 if( major != DB_VERSION_MAJOR ||
34493 minor < DB_VERSION_MINOR )
34495 printf("Berkeley DB version mismatch\n"
34496 "\theader: %s\n\tlibrary: %s\n",
34497 DB_VERSION_STRING, version);
34503 #if DB_VERSION_MAJOR > 2
34504 db_env_create( NULL, 0 );
34505 #elif DB_VERSION_MAJOR > 1
34506 db_appexit( NULL );
34508 (void) dbopen( NULL, 0, 0, 0, NULL);
34515 rm -f conftest.$ac_objext conftest$ac_exeext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517 (eval $ac_link) 2>conftest.er1
34519 grep -v '^ *+' conftest.er1 >conftest.err
34521 cat conftest.err >&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); } &&
34524 { ac_try='test -z "$ac_c_werror_flag"
34525 || test ! -s conftest.err'
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; } &&
34531 { ac_try='test -s conftest$ac_exeext'
34532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34533 (eval $ac_try) 2>&5
34535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536 (exit $ac_status); }; }; then
34539 echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34544 rm -f conftest.err conftest.$ac_objext \
34545 conftest$ac_exeext conftest.$ac_ext
34550 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34551 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34553 if test $ol_cv_db_db_1 = yes ; then
34554 ol_cv_lib_db=-ldb-1
34559 if test $ol_cv_lib_db = no ; then
34560 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34561 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34562 if test "${ol_cv_db_none+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34568 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34570 cat >conftest.$ac_ext <<_ACEOF
34573 cat confdefs.h >>conftest.$ac_ext
34574 cat >>conftest.$ac_ext <<_ACEOF
34575 /* end confdefs.h. */
34577 #ifdef HAVE_DB_185_H
34578 # include <db_185.h>
34583 #ifndef DB_VERSION_MAJOR
34584 # define DB_VERSION_MAJOR 1
34588 #define NULL ((void*)0)
34595 #if DB_VERSION_MAJOR > 1
34598 int major, minor, patch;
34600 version = db_version( &major, &minor, &patch );
34602 if( major != DB_VERSION_MAJOR ||
34603 minor < DB_VERSION_MINOR )
34605 printf("Berkeley DB version mismatch\n"
34606 "\theader: %s\n\tlibrary: %s\n",
34607 DB_VERSION_STRING, version);
34613 #if DB_VERSION_MAJOR > 2
34614 db_env_create( NULL, 0 );
34615 #elif DB_VERSION_MAJOR > 1
34616 db_appexit( NULL );
34618 (void) dbopen( NULL, 0, 0, 0, NULL);
34625 rm -f conftest.$ac_objext conftest$ac_exeext
34626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34627 (eval $ac_link) 2>conftest.er1
34629 grep -v '^ *+' conftest.er1 >conftest.err
34631 cat conftest.err >&5
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); } &&
34634 { ac_try='test -z "$ac_c_werror_flag"
34635 || test ! -s conftest.err'
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest$ac_exeext'
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34649 echo "$as_me: failed program was:" >&5
34650 sed 's/^/| /' conftest.$ac_ext >&5
34654 rm -f conftest.err conftest.$ac_objext \
34655 conftest$ac_exeext conftest.$ac_ext
34660 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34661 echo "${ECHO_T}$ol_cv_db_none" >&6
34663 if test $ol_cv_db_none = yes ; then
34669 if test "$ol_cv_lib_db" != no ; then
34670 ol_cv_berkeley_db=yes
34671 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34672 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34673 if test "${ol_cv_berkeley_db_version+set}" = set; then
34674 echo $ECHO_N "(cached) $ECHO_C" >&6
34678 LIBS="$LTHREAD_LIBS $LIBS"
34679 if test $ol_cv_lib_db != yes ; then
34680 LIBS="$ol_cv_lib_db $LIBS"
34683 if test "$cross_compiling" = yes; then
34684 ol_cv_berkeley_db_version=cross
34686 cat >conftest.$ac_ext <<_ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h. */
34693 #ifdef HAVE_DB_185_H
34698 #ifndef DB_VERSION_MAJOR
34699 # define DB_VERSION_MAJOR 1
34702 #define NULL ((void *)0)
34706 #if DB_VERSION_MAJOR > 1
34708 int major, minor, patch;
34710 version = db_version( &major, &minor, &patch );
34712 if( major != DB_VERSION_MAJOR ||
34713 minor != DB_VERSION_MINOR ||
34714 patch != DB_VERSION_PATCH )
34716 printf("Berkeley DB version mismatch\n"
34717 "\theader: %s\n\tlibrary: %s\n",
34718 DB_VERSION_STRING, version);
34726 rm -f conftest$ac_exeext
34727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34728 (eval $ac_link) 2>&5
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733 (eval $ac_try) 2>&5
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); }; }; then
34737 ol_cv_berkeley_db_version=yes
34739 echo "$as_me: program exited with status $ac_status" >&5
34740 echo "$as_me: failed program was:" >&5
34741 sed 's/^/| /' conftest.$ac_ext >&5
34743 ( exit $ac_status )
34744 ol_cv_berkeley_db_version=no
34746 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34752 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34753 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34755 if test $ol_cv_berkeley_db_version = no ; then
34756 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34757 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34758 { (exit 1); exit 1; }; }
34761 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34762 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34763 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34764 echo $ECHO_N "(cached) $ECHO_C" >&6
34768 LIBS="$LTHREAD_LIBS $LIBS"
34769 if test $ol_cv_lib_db != yes ; then
34770 LIBS="$ol_cv_lib_db $LIBS"
34773 if test "$cross_compiling" = yes; then
34774 ol_cv_berkeley_db_thread=cross
34776 cat >conftest.$ac_ext <<_ACEOF
34779 cat confdefs.h >>conftest.$ac_ext
34780 cat >>conftest.$ac_ext <<_ACEOF
34781 /* end confdefs.h. */
34783 #ifdef HAVE_DB_185_H
34789 #define NULL ((void *)0)
34794 u_int32_t flags = DB_CREATE |
34800 #if DB_VERSION_MAJOR > 2
34801 DB_ENV *env = NULL;
34803 rc = db_env_create( &env, 0 );
34805 flags |= DB_INIT_MPOOL;
34806 #ifdef DB_MPOOL_PRIVATE
34807 flags |= DB_MPOOL_PRIVATE;
34811 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34815 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34816 rc = env->open( env, NULL, flags, 0 );
34818 rc = env->open( env, NULL, NULL, flags, 0 );
34822 rc = env->close( env, 0 );
34826 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34832 memset( &env, '\0', sizeof(env) );
34834 rc = db_appinit( NULL, NULL, &env, flags );
34837 db_appexit( &env );
34840 unlink("__db_mpool.share");
34841 unlink("__db_lock.share");
34847 rm -f conftest$ac_exeext
34848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34849 (eval $ac_link) 2>&5
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; }; then
34858 ol_cv_berkeley_db_thread=yes
34860 echo "$as_me: program exited with status $ac_status" >&5
34861 echo "$as_me: failed program was:" >&5
34862 sed 's/^/| /' conftest.$ac_ext >&5
34864 ( exit $ac_status )
34865 ol_cv_berkeley_db_thread=no
34867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34873 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34874 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34876 if test $ol_cv_berkeley_db_thread != no ; then
34878 cat >>confdefs.h <<\_ACEOF
34879 #define HAVE_BERKELEY_DB_THREAD 1
34889 if test $ol_cv_berkeley_db != no ; then
34891 cat >>confdefs.h <<\_ACEOF
34892 #define HAVE_BERKELEY_DB 1
34896 ol_link_ldbm=berkeley
34897 ol_enable_ldbm_api=berkeley
34899 if test $ol_enable_ldbm_type = hash ; then
34901 cat >>confdefs.h <<\_ACEOF
34902 #define LDBM_USE_DBHASH 1
34907 cat >>confdefs.h <<\_ACEOF
34908 #define LDBM_USE_DBBTREE 1
34913 if test $ol_cv_lib_db != yes ; then
34914 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34920 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34921 if test $ol_link_ldbm != berkeley ; then
34922 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34923 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34924 { (exit 1); exit 1; }; }
34926 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34927 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34928 if test "${ol_cv_bdb_compat+set}" = set; then
34929 echo $ECHO_N "(cached) $ECHO_C" >&6
34932 cat >conftest.$ac_ext <<_ACEOF
34935 cat confdefs.h >>conftest.$ac_ext
34936 cat >>conftest.$ac_ext <<_ACEOF
34937 /* end confdefs.h. */
34941 /* this check could be improved */
34942 #ifndef DB_VERSION_MAJOR
34943 # define DB_VERSION_MAJOR 1
34945 #ifndef DB_VERSION_MINOR
34946 # define DB_VERSION_MINOR 0
34949 /* require 4.2 or later */
34950 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34951 __db_version_compat
34955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34956 $EGREP "__db_version_compat" >/dev/null 2>&1; then
34957 ol_cv_bdb_compat=yes
34959 ol_cv_bdb_compat=no
34964 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34965 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34968 if test $ol_cv_bdb_compat != yes ; then
34969 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34970 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34971 { (exit 1); exit 1; }; }
34976 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34977 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34978 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34979 ol_enable_ldbm_api=none
34982 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34983 echo "$as_me:$LINENO: checking for MDBM library" >&5
34984 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34985 if test "${ol_cv_lib_mdbm+set}" = set; then
34986 echo $ECHO_N "(cached) $ECHO_C" >&6
34989 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34990 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34991 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34992 echo $ECHO_N "(cached) $ECHO_C" >&6
34994 cat >conftest.$ac_ext <<_ACEOF
34997 cat confdefs.h >>conftest.$ac_ext
34998 cat >>conftest.$ac_ext <<_ACEOF
34999 /* end confdefs.h. */
35000 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
35001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35002 #define mdbm_set_chain innocuous_mdbm_set_chain
35004 /* System header to define __stub macros and hopefully few prototypes,
35005 which can conflict with char mdbm_set_chain (); below.
35006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35007 <limits.h> exists even on freestanding compilers. */
35010 # include <limits.h>
35012 # include <assert.h>
35015 #undef mdbm_set_chain
35017 /* Override any gcc2 internal prototype to avoid an error. */
35022 /* We use char because int might match the return type of a gcc2
35023 builtin and then its argument prototype would still apply. */
35024 char mdbm_set_chain ();
35025 /* The GNU C library defines this for functions which it implements
35026 to always fail with ENOSYS. Some functions are actually named
35027 something starting with __ and the normal name is an alias. */
35028 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
35031 char (*f) () = mdbm_set_chain;
35040 return f != mdbm_set_chain;
35045 rm -f conftest.$ac_objext conftest$ac_exeext
35046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35047 (eval $ac_link) 2>conftest.er1
35049 grep -v '^ *+' conftest.er1 >conftest.err
35051 cat conftest.err >&5
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } &&
35054 { ac_try='test -z "$ac_c_werror_flag"
35055 || test ! -s conftest.err'
35056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35057 (eval $ac_try) 2>&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); }; } &&
35061 { ac_try='test -s conftest$ac_exeext'
35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35063 (eval $ac_try) 2>&5
35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); }; }; then
35067 ac_cv_func_mdbm_set_chain=yes
35069 echo "$as_me: failed program was:" >&5
35070 sed 's/^/| /' conftest.$ac_ext >&5
35072 ac_cv_func_mdbm_set_chain=no
35074 rm -f conftest.err conftest.$ac_objext \
35075 conftest$ac_exeext conftest.$ac_ext
35077 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
35078 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
35079 if test $ac_cv_func_mdbm_set_chain = yes; then
35083 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
35084 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
35085 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
35086 echo $ECHO_N "(cached) $ECHO_C" >&6
35088 ac_check_lib_save_LIBS=$LIBS
35089 LIBS="-lmdbm $LIBS"
35090 cat >conftest.$ac_ext <<_ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h. */
35097 /* Override any gcc2 internal prototype to avoid an error. */
35101 /* We use char because int might match the return type of a gcc2
35102 builtin and then its argument prototype would still apply. */
35103 char mdbm_set_chain ();
35112 rm -f conftest.$ac_objext conftest$ac_exeext
35113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35114 (eval $ac_link) 2>conftest.er1
35116 grep -v '^ *+' conftest.er1 >conftest.err
35118 cat conftest.err >&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } &&
35121 { ac_try='test -z "$ac_c_werror_flag"
35122 || test ! -s conftest.err'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; } &&
35128 { ac_try='test -s conftest$ac_exeext'
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; }; then
35134 ac_cv_lib_mdbm_mdbm_set_chain=yes
35136 echo "$as_me: failed program was:" >&5
35137 sed 's/^/| /' conftest.$ac_ext >&5
35139 ac_cv_lib_mdbm_mdbm_set_chain=no
35141 rm -f conftest.err conftest.$ac_objext \
35142 conftest$ac_exeext conftest.$ac_ext
35143 LIBS=$ac_check_lib_save_LIBS
35145 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
35146 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
35147 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
35148 ol_cv_lib_mdbm=-lmdbm
35159 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
35160 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
35164 for ac_header in mdbm.h
35166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35168 echo "$as_me:$LINENO: checking for $ac_header" >&5
35169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35171 echo $ECHO_N "(cached) $ECHO_C" >&6
35173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35176 # Is the header compilable?
35177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35179 cat >conftest.$ac_ext <<_ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h. */
35185 $ac_includes_default
35186 #include <$ac_header>
35188 rm -f conftest.$ac_objext
35189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35190 (eval $ac_compile) 2>conftest.er1
35192 grep -v '^ *+' conftest.er1 >conftest.err
35194 cat conftest.err >&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); } &&
35197 { ac_try='test -z "$ac_c_werror_flag"
35198 || test ! -s conftest.err'
35199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200 (eval $ac_try) 2>&5
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); }; } &&
35204 { ac_try='test -s conftest.$ac_objext'
35205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206 (eval $ac_try) 2>&5
35208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; }; then
35210 ac_header_compiler=yes
35212 echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35215 ac_header_compiler=no
35217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35219 echo "${ECHO_T}$ac_header_compiler" >&6
35221 # Is the header present?
35222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35224 cat >conftest.$ac_ext <<_ACEOF
35227 cat confdefs.h >>conftest.$ac_ext
35228 cat >>conftest.$ac_ext <<_ACEOF
35229 /* end confdefs.h. */
35230 #include <$ac_header>
35232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35235 grep -v '^ *+' conftest.er1 >conftest.err
35237 cat conftest.err >&5
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } >/dev/null; then
35240 if test -s conftest.err; then
35241 ac_cpp_err=$ac_c_preproc_warn_flag
35242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35249 if test -z "$ac_cpp_err"; then
35250 ac_header_preproc=yes
35252 echo "$as_me: failed program was:" >&5
35253 sed 's/^/| /' conftest.$ac_ext >&5
35255 ac_header_preproc=no
35257 rm -f conftest.err conftest.$ac_ext
35258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35259 echo "${ECHO_T}$ac_header_preproc" >&6
35261 # So? What about this header?
35262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35268 ac_header_preproc=yes
35271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35285 ## --------------------------------------------- ##
35286 ## Report this to <http://www.openldap.org/its/> ##
35287 ## --------------------------------------------- ##
35290 sed "s/^/$as_me: WARNING: /" >&2
35293 echo "$as_me:$LINENO: checking for $ac_header" >&5
35294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35296 echo $ECHO_N "(cached) $ECHO_C" >&6
35298 eval "$as_ac_Header=\$ac_header_preproc"
35300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35305 cat >>confdefs.h <<_ACEOF
35306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35313 echo "$as_me:$LINENO: checking for db" >&5
35314 echo $ECHO_N "checking for db... $ECHO_C" >&6
35315 if test "${ol_cv_mdbm+set}" = set; then
35316 echo $ECHO_N "(cached) $ECHO_C" >&6
35319 if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35326 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35327 echo "${ECHO_T}$ol_cv_mdbm" >&6
35328 if test $ol_cv_mdbm = yes ; then
35330 cat >>confdefs.h <<\_ACEOF
35331 #define HAVE_MDBM 1
35337 if test $ol_cv_mdbm = yes ; then
35339 ol_enable_ldbm_api=mdbm
35340 if test $ol_cv_lib_mdbm != yes ; then
35341 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35346 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35347 echo "$as_me:$LINENO: checking for GDBM library" >&5
35348 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35349 if test "${ol_cv_lib_gdbm+set}" = set; then
35350 echo $ECHO_N "(cached) $ECHO_C" >&6
35353 echo "$as_me:$LINENO: checking for gdbm_open" >&5
35354 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35355 if test "${ac_cv_func_gdbm_open+set}" = set; then
35356 echo $ECHO_N "(cached) $ECHO_C" >&6
35358 cat >conftest.$ac_ext <<_ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h. */
35364 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35366 #define gdbm_open innocuous_gdbm_open
35368 /* System header to define __stub macros and hopefully few prototypes,
35369 which can conflict with char gdbm_open (); below.
35370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35371 <limits.h> exists even on freestanding compilers. */
35374 # include <limits.h>
35376 # include <assert.h>
35381 /* Override any gcc2 internal prototype to avoid an error. */
35386 /* We use char because int might match the return type of a gcc2
35387 builtin and then its argument prototype would still apply. */
35389 /* The GNU C library defines this for functions which it implements
35390 to always fail with ENOSYS. Some functions are actually named
35391 something starting with __ and the normal name is an alias. */
35392 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35395 char (*f) () = gdbm_open;
35404 return f != gdbm_open;
35409 rm -f conftest.$ac_objext conftest$ac_exeext
35410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35411 (eval $ac_link) 2>conftest.er1
35413 grep -v '^ *+' conftest.er1 >conftest.err
35415 cat conftest.err >&5
35416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35417 (exit $ac_status); } &&
35418 { ac_try='test -z "$ac_c_werror_flag"
35419 || test ! -s conftest.err'
35420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35421 (eval $ac_try) 2>&5
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); }; } &&
35425 { ac_try='test -s conftest$ac_exeext'
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; }; then
35431 ac_cv_func_gdbm_open=yes
35433 echo "$as_me: failed program was:" >&5
35434 sed 's/^/| /' conftest.$ac_ext >&5
35436 ac_cv_func_gdbm_open=no
35438 rm -f conftest.err conftest.$ac_objext \
35439 conftest$ac_exeext conftest.$ac_ext
35441 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35442 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35443 if test $ac_cv_func_gdbm_open = yes; then
35447 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35448 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35449 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35450 echo $ECHO_N "(cached) $ECHO_C" >&6
35452 ac_check_lib_save_LIBS=$LIBS
35453 LIBS="-lgdbm $LIBS"
35454 cat >conftest.$ac_ext <<_ACEOF
35457 cat confdefs.h >>conftest.$ac_ext
35458 cat >>conftest.$ac_ext <<_ACEOF
35459 /* end confdefs.h. */
35461 /* Override any gcc2 internal prototype to avoid an error. */
35465 /* We use char because int might match the return type of a gcc2
35466 builtin and then its argument prototype would still apply. */
35476 rm -f conftest.$ac_objext conftest$ac_exeext
35477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35478 (eval $ac_link) 2>conftest.er1
35480 grep -v '^ *+' conftest.er1 >conftest.err
35482 cat conftest.err >&5
35483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } &&
35485 { ac_try='test -z "$ac_c_werror_flag"
35486 || test ! -s conftest.err'
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; } &&
35492 { ac_try='test -s conftest$ac_exeext'
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; }; then
35498 ac_cv_lib_gdbm_gdbm_open=yes
35500 echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35503 ac_cv_lib_gdbm_gdbm_open=no
35505 rm -f conftest.err conftest.$ac_objext \
35506 conftest$ac_exeext conftest.$ac_ext
35507 LIBS=$ac_check_lib_save_LIBS
35509 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35510 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35511 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35512 ol_cv_lib_gdbm=-lgdbm
35523 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35524 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35528 for ac_header in gdbm.h
35530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35532 echo "$as_me:$LINENO: checking for $ac_header" >&5
35533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35535 echo $ECHO_N "(cached) $ECHO_C" >&6
35537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35540 # Is the header compilable?
35541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35543 cat >conftest.$ac_ext <<_ACEOF
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h. */
35549 $ac_includes_default
35550 #include <$ac_header>
35552 rm -f conftest.$ac_objext
35553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35554 (eval $ac_compile) 2>conftest.er1
35556 grep -v '^ *+' conftest.er1 >conftest.err
35558 cat conftest.err >&5
35559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560 (exit $ac_status); } &&
35561 { ac_try='test -z "$ac_c_werror_flag"
35562 || test ! -s conftest.err'
35563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35564 (eval $ac_try) 2>&5
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); }; } &&
35568 { ac_try='test -s conftest.$ac_objext'
35569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570 (eval $ac_try) 2>&5
35572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573 (exit $ac_status); }; }; then
35574 ac_header_compiler=yes
35576 echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35579 ac_header_compiler=no
35581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35583 echo "${ECHO_T}$ac_header_compiler" >&6
35585 # Is the header present?
35586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35588 cat >conftest.$ac_ext <<_ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h. */
35594 #include <$ac_header>
35596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35599 grep -v '^ *+' conftest.er1 >conftest.err
35601 cat conftest.err >&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); } >/dev/null; then
35604 if test -s conftest.err; then
35605 ac_cpp_err=$ac_c_preproc_warn_flag
35606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35613 if test -z "$ac_cpp_err"; then
35614 ac_header_preproc=yes
35616 echo "$as_me: failed program was:" >&5
35617 sed 's/^/| /' conftest.$ac_ext >&5
35619 ac_header_preproc=no
35621 rm -f conftest.err conftest.$ac_ext
35622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35623 echo "${ECHO_T}$ac_header_preproc" >&6
35625 # So? What about this header?
35626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35632 ac_header_preproc=yes
35635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35649 ## --------------------------------------------- ##
35650 ## Report this to <http://www.openldap.org/its/> ##
35651 ## --------------------------------------------- ##
35654 sed "s/^/$as_me: WARNING: /" >&2
35657 echo "$as_me:$LINENO: checking for $ac_header" >&5
35658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35660 echo $ECHO_N "(cached) $ECHO_C" >&6
35662 eval "$as_ac_Header=\$ac_header_preproc"
35664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35669 cat >>confdefs.h <<_ACEOF
35670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35677 echo "$as_me:$LINENO: checking for db" >&5
35678 echo $ECHO_N "checking for db... $ECHO_C" >&6
35679 if test "${ol_cv_gdbm+set}" = set; then
35680 echo $ECHO_N "(cached) $ECHO_C" >&6
35683 if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35690 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35691 echo "${ECHO_T}$ol_cv_gdbm" >&6
35692 if test $ol_cv_gdbm = yes ; then
35694 cat >>confdefs.h <<\_ACEOF
35695 #define HAVE_GDBM 1
35701 if test $ol_cv_gdbm = yes ; then
35703 ol_enable_ldbm_api=gdbm
35705 if test $ol_cv_lib_gdbm != yes ; then
35706 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35711 if test $ol_enable_ldbm_api = ndbm ; then
35712 echo "$as_me:$LINENO: checking for NDBM library" >&5
35713 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35714 if test "${ol_cv_lib_ndbm+set}" = set; then
35715 echo $ECHO_N "(cached) $ECHO_C" >&6
35718 echo "$as_me:$LINENO: checking for dbm_open" >&5
35719 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35720 if test "${ac_cv_func_dbm_open+set}" = set; then
35721 echo $ECHO_N "(cached) $ECHO_C" >&6
35723 cat >conftest.$ac_ext <<_ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35729 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35731 #define dbm_open innocuous_dbm_open
35733 /* System header to define __stub macros and hopefully few prototypes,
35734 which can conflict with char dbm_open (); below.
35735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35736 <limits.h> exists even on freestanding compilers. */
35739 # include <limits.h>
35741 # include <assert.h>
35746 /* Override any gcc2 internal prototype to avoid an error. */
35751 /* We use char because int might match the return type of a gcc2
35752 builtin and then its argument prototype would still apply. */
35754 /* The GNU C library defines this for functions which it implements
35755 to always fail with ENOSYS. Some functions are actually named
35756 something starting with __ and the normal name is an alias. */
35757 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35760 char (*f) () = dbm_open;
35769 return f != dbm_open;
35774 rm -f conftest.$ac_objext conftest$ac_exeext
35775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35776 (eval $ac_link) 2>conftest.er1
35778 grep -v '^ *+' conftest.er1 >conftest.err
35780 cat conftest.err >&5
35781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782 (exit $ac_status); } &&
35783 { ac_try='test -z "$ac_c_werror_flag"
35784 || test ! -s conftest.err'
35785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35786 (eval $ac_try) 2>&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); }; } &&
35790 { ac_try='test -s conftest$ac_exeext'
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; }; then
35796 ac_cv_func_dbm_open=yes
35798 echo "$as_me: failed program was:" >&5
35799 sed 's/^/| /' conftest.$ac_ext >&5
35801 ac_cv_func_dbm_open=no
35803 rm -f conftest.err conftest.$ac_objext \
35804 conftest$ac_exeext conftest.$ac_ext
35806 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35807 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35808 if test $ac_cv_func_dbm_open = yes; then
35812 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35813 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35814 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35815 echo $ECHO_N "(cached) $ECHO_C" >&6
35817 ac_check_lib_save_LIBS=$LIBS
35818 LIBS="-lndbm $LIBS"
35819 cat >conftest.$ac_ext <<_ACEOF
35822 cat confdefs.h >>conftest.$ac_ext
35823 cat >>conftest.$ac_ext <<_ACEOF
35824 /* end confdefs.h. */
35826 /* Override any gcc2 internal prototype to avoid an error. */
35830 /* We use char because int might match the return type of a gcc2
35831 builtin and then its argument prototype would still apply. */
35841 rm -f conftest.$ac_objext conftest$ac_exeext
35842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35843 (eval $ac_link) 2>conftest.er1
35845 grep -v '^ *+' conftest.er1 >conftest.err
35847 cat conftest.err >&5
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); } &&
35850 { ac_try='test -z "$ac_c_werror_flag"
35851 || test ! -s conftest.err'
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } &&
35857 { ac_try='test -s conftest$ac_exeext'
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; }; then
35863 ac_cv_lib_ndbm_dbm_open=yes
35865 echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35868 ac_cv_lib_ndbm_dbm_open=no
35870 rm -f conftest.err conftest.$ac_objext \
35871 conftest$ac_exeext conftest.$ac_ext
35872 LIBS=$ac_check_lib_save_LIBS
35874 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35875 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35876 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35877 ol_cv_lib_ndbm=-lndbm
35880 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35881 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35882 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35883 echo $ECHO_N "(cached) $ECHO_C" >&6
35885 ac_check_lib_save_LIBS=$LIBS
35887 cat >conftest.$ac_ext <<_ACEOF
35890 cat confdefs.h >>conftest.$ac_ext
35891 cat >>conftest.$ac_ext <<_ACEOF
35892 /* end confdefs.h. */
35894 /* Override any gcc2 internal prototype to avoid an error. */
35898 /* We use char because int might match the return type of a gcc2
35899 builtin and then its argument prototype would still apply. */
35909 rm -f conftest.$ac_objext conftest$ac_exeext
35910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35911 (eval $ac_link) 2>conftest.er1
35913 grep -v '^ *+' conftest.er1 >conftest.err
35915 cat conftest.err >&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); } &&
35918 { ac_try='test -z "$ac_c_werror_flag"
35919 || test ! -s conftest.err'
35920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35921 (eval $ac_try) 2>&5
35923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924 (exit $ac_status); }; } &&
35925 { ac_try='test -s conftest$ac_exeext'
35926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35927 (eval $ac_try) 2>&5
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); }; }; then
35931 ac_cv_lib_dbm_dbm_open=yes
35933 echo "$as_me: failed program was:" >&5
35934 sed 's/^/| /' conftest.$ac_ext >&5
35936 ac_cv_lib_dbm_dbm_open=no
35938 rm -f conftest.err conftest.$ac_objext \
35939 conftest$ac_exeext conftest.$ac_ext
35940 LIBS=$ac_check_lib_save_LIBS
35942 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35943 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35944 if test $ac_cv_lib_dbm_dbm_open = yes; then
35945 ol_cv_lib_ndbm=-ldbm
35958 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35959 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35963 for ac_header in ndbm.h
35965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35967 echo "$as_me:$LINENO: checking for $ac_header" >&5
35968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35970 echo $ECHO_N "(cached) $ECHO_C" >&6
35972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35975 # Is the header compilable?
35976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35978 cat >conftest.$ac_ext <<_ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h. */
35984 $ac_includes_default
35985 #include <$ac_header>
35987 rm -f conftest.$ac_objext
35988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35989 (eval $ac_compile) 2>conftest.er1
35991 grep -v '^ *+' conftest.er1 >conftest.err
35993 cat conftest.err >&5
35994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995 (exit $ac_status); } &&
35996 { ac_try='test -z "$ac_c_werror_flag"
35997 || test ! -s conftest.err'
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; } &&
36003 { ac_try='test -s conftest.$ac_objext'
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; }; then
36009 ac_header_compiler=yes
36011 echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.$ac_ext >&5
36014 ac_header_compiler=no
36016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36018 echo "${ECHO_T}$ac_header_compiler" >&6
36020 # Is the header present?
36021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36023 cat >conftest.$ac_ext <<_ACEOF
36026 cat confdefs.h >>conftest.$ac_ext
36027 cat >>conftest.$ac_ext <<_ACEOF
36028 /* end confdefs.h. */
36029 #include <$ac_header>
36031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36034 grep -v '^ *+' conftest.er1 >conftest.err
36036 cat conftest.err >&5
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); } >/dev/null; then
36039 if test -s conftest.err; then
36040 ac_cpp_err=$ac_c_preproc_warn_flag
36041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36048 if test -z "$ac_cpp_err"; then
36049 ac_header_preproc=yes
36051 echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36054 ac_header_preproc=no
36056 rm -f conftest.err conftest.$ac_ext
36057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36058 echo "${ECHO_T}$ac_header_preproc" >&6
36060 # So? What about this header?
36061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36067 ac_header_preproc=yes
36070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36084 ## --------------------------------------------- ##
36085 ## Report this to <http://www.openldap.org/its/> ##
36086 ## --------------------------------------------- ##
36089 sed "s/^/$as_me: WARNING: /" >&2
36092 echo "$as_me:$LINENO: checking for $ac_header" >&5
36093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36095 echo $ECHO_N "(cached) $ECHO_C" >&6
36097 eval "$as_ac_Header=\$ac_header_preproc"
36099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36104 cat >>confdefs.h <<_ACEOF
36105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36112 echo "$as_me:$LINENO: checking for db" >&5
36113 echo $ECHO_N "checking for db... $ECHO_C" >&6
36114 if test "${ol_cv_ndbm+set}" = set; then
36115 echo $ECHO_N "(cached) $ECHO_C" >&6
36118 if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
36125 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
36126 echo "${ECHO_T}$ol_cv_ndbm" >&6
36127 if test $ol_cv_ndbm = yes ; then
36129 cat >>confdefs.h <<\_ACEOF
36130 #define HAVE_NDBM 1
36136 if test $ol_cv_ndbm = yes ; then
36138 ol_enable_ldbm_api=ndbm
36140 if test $ol_cv_lib_ndbm != yes ; then
36141 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
36146 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
36147 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
36148 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
36149 { (exit 1); exit 1; }; }
36152 if test $ol_enable_bdb = yes ||
36153 test $ol_enable_hdb = yes ||
36154 test $ol_enable_ldbm = yes ; then
36155 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
36159 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
36160 BUILD_LIBS_DYNAMIC=shared
36162 cat >>confdefs.h <<\_ACEOF
36163 #define LDAP_LIBS_DYNAMIC 1
36168 BUILD_LIBS_DYNAMIC=static
36172 if test $ol_enable_wrappers != no ; then
36174 for ac_header in tcpd.h
36176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36178 echo "$as_me:$LINENO: checking for $ac_header" >&5
36179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36181 echo $ECHO_N "(cached) $ECHO_C" >&6
36183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36186 # Is the header compilable?
36187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36189 cat >conftest.$ac_ext <<_ACEOF
36192 cat confdefs.h >>conftest.$ac_ext
36193 cat >>conftest.$ac_ext <<_ACEOF
36194 /* end confdefs.h. */
36195 $ac_includes_default
36196 #include <$ac_header>
36198 rm -f conftest.$ac_objext
36199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36200 (eval $ac_compile) 2>conftest.er1
36202 grep -v '^ *+' conftest.er1 >conftest.err
36204 cat conftest.err >&5
36205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206 (exit $ac_status); } &&
36207 { ac_try='test -z "$ac_c_werror_flag"
36208 || test ! -s conftest.err'
36209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36210 (eval $ac_try) 2>&5
36212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213 (exit $ac_status); }; } &&
36214 { ac_try='test -s conftest.$ac_objext'
36215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36216 (eval $ac_try) 2>&5
36218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36219 (exit $ac_status); }; }; then
36220 ac_header_compiler=yes
36222 echo "$as_me: failed program was:" >&5
36223 sed 's/^/| /' conftest.$ac_ext >&5
36225 ac_header_compiler=no
36227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36229 echo "${ECHO_T}$ac_header_compiler" >&6
36231 # Is the header present?
36232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36234 cat >conftest.$ac_ext <<_ACEOF
36237 cat confdefs.h >>conftest.$ac_ext
36238 cat >>conftest.$ac_ext <<_ACEOF
36239 /* end confdefs.h. */
36240 #include <$ac_header>
36242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36245 grep -v '^ *+' conftest.er1 >conftest.err
36247 cat conftest.err >&5
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); } >/dev/null; then
36250 if test -s conftest.err; then
36251 ac_cpp_err=$ac_c_preproc_warn_flag
36252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36259 if test -z "$ac_cpp_err"; then
36260 ac_header_preproc=yes
36262 echo "$as_me: failed program was:" >&5
36263 sed 's/^/| /' conftest.$ac_ext >&5
36265 ac_header_preproc=no
36267 rm -f conftest.err conftest.$ac_ext
36268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36269 echo "${ECHO_T}$ac_header_preproc" >&6
36271 # So? What about this header?
36272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36278 ac_header_preproc=yes
36281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36295 ## --------------------------------------------- ##
36296 ## Report this to <http://www.openldap.org/its/> ##
36297 ## --------------------------------------------- ##
36300 sed "s/^/$as_me: WARNING: /" >&2
36303 echo "$as_me:$LINENO: checking for $ac_header" >&5
36304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36306 echo $ECHO_N "(cached) $ECHO_C" >&6
36308 eval "$as_ac_Header=\$ac_header_preproc"
36310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36315 cat >>confdefs.h <<_ACEOF
36316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36319 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36320 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36322 LIBS="$LIBS -lwrap"
36323 cat >conftest.$ac_ext <<_ACEOF
36326 cat confdefs.h >>conftest.$ac_ext
36327 cat >>conftest.$ac_ext <<_ACEOF
36328 /* end confdefs.h. */
36331 int allow_severity = 0;
36332 int deny_severity = 0;
36334 struct request_info *req;
36346 rm -f conftest.$ac_objext conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348 (eval $ac_link) 2>conftest.er1
36350 grep -v '^ *+' conftest.er1 >conftest.err
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } &&
36355 { ac_try='test -z "$ac_c_werror_flag"
36356 || test ! -s conftest.err'
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; } &&
36362 { ac_try='test -s conftest$ac_exeext'
36363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364 (eval $ac_try) 2>&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); }; }; then
36368 echo "$as_me:$LINENO: result: -lwrap" >&5
36369 echo "${ECHO_T}-lwrap" >&6
36373 echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36378 cat >conftest.$ac_ext <<_ACEOF
36381 cat confdefs.h >>conftest.$ac_ext
36382 cat >>conftest.$ac_ext <<_ACEOF
36383 /* end confdefs.h. */
36386 int allow_severity = 0;
36387 int deny_severity = 0;
36389 struct request_info *req;
36401 rm -f conftest.$ac_objext conftest$ac_exeext
36402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36403 (eval $ac_link) 2>conftest.er1
36405 grep -v '^ *+' conftest.er1 >conftest.err
36407 cat conftest.err >&5
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); } &&
36410 { ac_try='test -z "$ac_c_werror_flag"
36411 || test ! -s conftest.err'
36412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413 (eval $ac_try) 2>&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); }; } &&
36417 { ac_try='test -s conftest$ac_exeext'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; }; then
36423 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36424 echo "${ECHO_T}-lwrap -lnsl" >&6
36426 LIBS="$save_LIBS -lnsl"
36428 echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36432 echo "$as_me:$LINENO: result: no" >&5
36433 echo "${ECHO_T}no" >&6
36437 rm -f conftest.err conftest.$ac_objext \
36438 conftest$ac_exeext conftest.$ac_ext
36440 rm -f conftest.err conftest.$ac_objext \
36441 conftest$ac_exeext conftest.$ac_ext
36449 if test $have_wrappers = yes ; then
36451 cat >>confdefs.h <<\_ACEOF
36452 #define HAVE_TCPD 1
36456 elif test $ol_enable_wrappers = yes ; then
36457 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36458 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36459 { (exit 1); exit 1; }; }
36461 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36462 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36467 if test $ol_enable_syslog != no ; then
36468 echo "$as_me:$LINENO: checking for openlog" >&5
36469 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36470 if test "${ac_cv_func_openlog+set}" = set; then
36471 echo $ECHO_N "(cached) $ECHO_C" >&6
36473 cat >conftest.$ac_ext <<_ACEOF
36476 cat confdefs.h >>conftest.$ac_ext
36477 cat >>conftest.$ac_ext <<_ACEOF
36478 /* end confdefs.h. */
36479 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36481 #define openlog innocuous_openlog
36483 /* System header to define __stub macros and hopefully few prototypes,
36484 which can conflict with char openlog (); below.
36485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36486 <limits.h> exists even on freestanding compilers. */
36489 # include <limits.h>
36491 # include <assert.h>
36496 /* Override any gcc2 internal prototype to avoid an error. */
36501 /* We use char because int might match the return type of a gcc2
36502 builtin and then its argument prototype would still apply. */
36504 /* The GNU C library defines this for functions which it implements
36505 to always fail with ENOSYS. Some functions are actually named
36506 something starting with __ and the normal name is an alias. */
36507 #if defined (__stub_openlog) || defined (__stub___openlog)
36510 char (*f) () = openlog;
36519 return f != openlog;
36524 rm -f conftest.$ac_objext conftest$ac_exeext
36525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36526 (eval $ac_link) 2>conftest.er1
36528 grep -v '^ *+' conftest.er1 >conftest.err
36530 cat conftest.err >&5
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
36533 { ac_try='test -z "$ac_c_werror_flag"
36534 || test ! -s conftest.err'
36535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36536 (eval $ac_try) 2>&5
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); }; } &&
36540 { ac_try='test -s conftest$ac_exeext'
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; }; then
36546 ac_cv_func_openlog=yes
36548 echo "$as_me: failed program was:" >&5
36549 sed 's/^/| /' conftest.$ac_ext >&5
36551 ac_cv_func_openlog=no
36553 rm -f conftest.err conftest.$ac_objext \
36554 conftest$ac_exeext conftest.$ac_ext
36556 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36557 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36559 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36560 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36561 echo "$as_me: error: could not find syslog" >&2;}
36562 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36564 ol_enable_syslog=$ac_cv_func_openlog
36568 if test $ol_enable_sql != no ; then
36571 for ac_header in sql.h sqlext.h
36573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36575 echo "$as_me:$LINENO: checking for $ac_header" >&5
36576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36578 echo $ECHO_N "(cached) $ECHO_C" >&6
36580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36583 # Is the header compilable?
36584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36586 cat >conftest.$ac_ext <<_ACEOF
36589 cat confdefs.h >>conftest.$ac_ext
36590 cat >>conftest.$ac_ext <<_ACEOF
36591 /* end confdefs.h. */
36592 $ac_includes_default
36593 #include <$ac_header>
36595 rm -f conftest.$ac_objext
36596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36597 (eval $ac_compile) 2>conftest.er1
36599 grep -v '^ *+' conftest.er1 >conftest.err
36601 cat conftest.err >&5
36602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603 (exit $ac_status); } &&
36604 { ac_try='test -z "$ac_c_werror_flag"
36605 || test ! -s conftest.err'
36606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607 (eval $ac_try) 2>&5
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); }; } &&
36611 { ac_try='test -s conftest.$ac_objext'
36612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613 (eval $ac_try) 2>&5
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); }; }; then
36617 ac_header_compiler=yes
36619 echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36622 ac_header_compiler=no
36624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36626 echo "${ECHO_T}$ac_header_compiler" >&6
36628 # Is the header present?
36629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36631 cat >conftest.$ac_ext <<_ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h. */
36637 #include <$ac_header>
36639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36642 grep -v '^ *+' conftest.er1 >conftest.err
36644 cat conftest.err >&5
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); } >/dev/null; then
36647 if test -s conftest.err; then
36648 ac_cpp_err=$ac_c_preproc_warn_flag
36649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36656 if test -z "$ac_cpp_err"; then
36657 ac_header_preproc=yes
36659 echo "$as_me: failed program was:" >&5
36660 sed 's/^/| /' conftest.$ac_ext >&5
36662 ac_header_preproc=no
36664 rm -f conftest.err conftest.$ac_ext
36665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36666 echo "${ECHO_T}$ac_header_preproc" >&6
36668 # So? What about this header?
36669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36675 ac_header_preproc=yes
36678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36692 ## --------------------------------------------- ##
36693 ## Report this to <http://www.openldap.org/its/> ##
36694 ## --------------------------------------------- ##
36697 sed "s/^/$as_me: WARNING: /" >&2
36700 echo "$as_me:$LINENO: checking for $ac_header" >&5
36701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36703 echo $ECHO_N "(cached) $ECHO_C" >&6
36705 eval "$as_ac_Header=\$ac_header_preproc"
36707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36712 cat >>confdefs.h <<_ACEOF
36713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36718 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36719 echo "$as_me: error: could not locate SQL headers" >&2;}
36720 { (exit 1); exit 1; }; }
36728 LIBS="$LTHREAD_LIBS"
36730 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36731 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36732 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36733 echo $ECHO_N "(cached) $ECHO_C" >&6
36735 ac_check_lib_save_LIBS=$LIBS
36736 LIBS="-liodbc $LIBS"
36737 cat >conftest.$ac_ext <<_ACEOF
36740 cat confdefs.h >>conftest.$ac_ext
36741 cat >>conftest.$ac_ext <<_ACEOF
36742 /* end confdefs.h. */
36744 /* Override any gcc2 internal prototype to avoid an error. */
36748 /* We use char because int might match the return type of a gcc2
36749 builtin and then its argument prototype would still apply. */
36750 char SQLDriverConnect ();
36754 SQLDriverConnect ();
36759 rm -f conftest.$ac_objext conftest$ac_exeext
36760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36761 (eval $ac_link) 2>conftest.er1
36763 grep -v '^ *+' conftest.er1 >conftest.err
36765 cat conftest.err >&5
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); } &&
36768 { ac_try='test -z "$ac_c_werror_flag"
36769 || test ! -s conftest.err'
36770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36771 (eval $ac_try) 2>&5
36773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36774 (exit $ac_status); }; } &&
36775 { ac_try='test -s conftest$ac_exeext'
36776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36777 (eval $ac_try) 2>&5
36779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36780 (exit $ac_status); }; }; then
36781 ac_cv_lib_iodbc_SQLDriverConnect=yes
36783 echo "$as_me: failed program was:" >&5
36784 sed 's/^/| /' conftest.$ac_ext >&5
36786 ac_cv_lib_iodbc_SQLDriverConnect=no
36788 rm -f conftest.err conftest.$ac_objext \
36789 conftest$ac_exeext conftest.$ac_ext
36790 LIBS=$ac_check_lib_save_LIBS
36792 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36793 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36794 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36800 if test $have_iodbc = yes ; then
36801 ol_link_sql="-liodbc"
36803 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36804 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36805 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36806 echo $ECHO_N "(cached) $ECHO_C" >&6
36808 ac_check_lib_save_LIBS=$LIBS
36809 LIBS="-lodbc $LIBS"
36810 cat >conftest.$ac_ext <<_ACEOF
36813 cat confdefs.h >>conftest.$ac_ext
36814 cat >>conftest.$ac_ext <<_ACEOF
36815 /* end confdefs.h. */
36817 /* Override any gcc2 internal prototype to avoid an error. */
36821 /* We use char because int might match the return type of a gcc2
36822 builtin and then its argument prototype would still apply. */
36823 char SQLDriverConnect ();
36827 SQLDriverConnect ();
36832 rm -f conftest.$ac_objext conftest$ac_exeext
36833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36834 (eval $ac_link) 2>conftest.er1
36836 grep -v '^ *+' conftest.er1 >conftest.err
36838 cat conftest.err >&5
36839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840 (exit $ac_status); } &&
36841 { ac_try='test -z "$ac_c_werror_flag"
36842 || test ! -s conftest.err'
36843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36844 (eval $ac_try) 2>&5
36846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36847 (exit $ac_status); }; } &&
36848 { ac_try='test -s conftest$ac_exeext'
36849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36850 (eval $ac_try) 2>&5
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); }; }; then
36854 ac_cv_lib_odbc_SQLDriverConnect=yes
36856 echo "$as_me: failed program was:" >&5
36857 sed 's/^/| /' conftest.$ac_ext >&5
36859 ac_cv_lib_odbc_SQLDriverConnect=no
36861 rm -f conftest.err conftest.$ac_objext \
36862 conftest$ac_exeext conftest.$ac_ext
36863 LIBS=$ac_check_lib_save_LIBS
36865 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36866 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36867 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36873 if test $have_odbc = yes ; then
36874 ol_link_sql="-lodbc"
36880 if test $ol_link_sql != no ; then
36881 SLAPD_SQL_LIBS="$ol_link_sql"
36883 elif test $ol_enable_sql != auto ; then
36884 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36885 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36886 { (exit 1); exit 1; }; }
36892 for ac_header in unicode/utypes.h
36894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36896 echo "$as_me:$LINENO: checking for $ac_header" >&5
36897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36899 echo $ECHO_N "(cached) $ECHO_C" >&6
36901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36904 # Is the header compilable?
36905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36907 cat >conftest.$ac_ext <<_ACEOF
36910 cat confdefs.h >>conftest.$ac_ext
36911 cat >>conftest.$ac_ext <<_ACEOF
36912 /* end confdefs.h. */
36913 $ac_includes_default
36914 #include <$ac_header>
36916 rm -f conftest.$ac_objext
36917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36918 (eval $ac_compile) 2>conftest.er1
36920 grep -v '^ *+' conftest.er1 >conftest.err
36922 cat conftest.err >&5
36923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); } &&
36925 { ac_try='test -z "$ac_c_werror_flag"
36926 || test ! -s conftest.err'
36927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36928 (eval $ac_try) 2>&5
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); }; } &&
36932 { ac_try='test -s conftest.$ac_objext'
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934 (eval $ac_try) 2>&5
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; }; then
36938 ac_header_compiler=yes
36940 echo "$as_me: failed program was:" >&5
36941 sed 's/^/| /' conftest.$ac_ext >&5
36943 ac_header_compiler=no
36945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36947 echo "${ECHO_T}$ac_header_compiler" >&6
36949 # Is the header present?
36950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36952 cat >conftest.$ac_ext <<_ACEOF
36955 cat confdefs.h >>conftest.$ac_ext
36956 cat >>conftest.$ac_ext <<_ACEOF
36957 /* end confdefs.h. */
36958 #include <$ac_header>
36960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36963 grep -v '^ *+' conftest.er1 >conftest.err
36965 cat conftest.err >&5
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); } >/dev/null; then
36968 if test -s conftest.err; then
36969 ac_cpp_err=$ac_c_preproc_warn_flag
36970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36977 if test -z "$ac_cpp_err"; then
36978 ac_header_preproc=yes
36980 echo "$as_me: failed program was:" >&5
36981 sed 's/^/| /' conftest.$ac_ext >&5
36983 ac_header_preproc=no
36985 rm -f conftest.err conftest.$ac_ext
36986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36987 echo "${ECHO_T}$ac_header_preproc" >&6
36989 # So? What about this header?
36990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36996 ac_header_preproc=yes
36999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37013 ## --------------------------------------------- ##
37014 ## Report this to <http://www.openldap.org/its/> ##
37015 ## --------------------------------------------- ##
37018 sed "s/^/$as_me: WARNING: /" >&2
37021 echo "$as_me:$LINENO: checking for $ac_header" >&5
37022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37024 echo $ECHO_N "(cached) $ECHO_C" >&6
37026 eval "$as_ac_Header=\$ac_header_preproc"
37028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37033 cat >>confdefs.h <<_ACEOF
37034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37041 if test $ac_cv_header_unicode_utypes_h = yes ; then
37042 OL_ICULIBS="-licuuc -licudata"
37044 echo "$as_me:$LINENO: checking for ICU libraries" >&5
37045 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
37046 if test "${ol_cv_lib_icu+set}" = set; then
37047 echo $ECHO_N "(cached) $ECHO_C" >&6
37051 LIBS="$OL_ICULIBS $LIBS"
37052 cat >conftest.$ac_ext <<_ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h. */
37059 #include <unicode/utypes.h>
37065 (void) u_errorName(0);
37071 rm -f conftest.$ac_objext conftest$ac_exeext
37072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37073 (eval $ac_link) 2>conftest.er1
37075 grep -v '^ *+' conftest.er1 >conftest.err
37077 cat conftest.err >&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } &&
37080 { ac_try='test -z "$ac_c_werror_flag"
37081 || test ! -s conftest.err'
37082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083 (eval $ac_try) 2>&5
37085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086 (exit $ac_status); }; } &&
37087 { ac_try='test -s conftest$ac_exeext'
37088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37089 (eval $ac_try) 2>&5
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); }; }; then
37095 echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37100 rm -f conftest.err conftest.$ac_objext \
37101 conftest$ac_exeext conftest.$ac_ext
37105 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
37106 echo "${ECHO_T}$ol_cv_lib_icu" >&6
37108 if test $ol_cv_lib_icu != no ; then
37109 ol_icu="$OL_ICULIBS"
37111 cat >>confdefs.h <<\_ACEOF
37118 if test "$ol_icu" = no ; then
37119 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
37120 echo "$as_me: WARNING: ICU not available" >&2;}
37127 if test $ol_with_cyrus_sasl != no ; then
37130 for ac_header in sasl/sasl.h sasl.h
37132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37134 echo "$as_me:$LINENO: checking for $ac_header" >&5
37135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37137 echo $ECHO_N "(cached) $ECHO_C" >&6
37139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37142 # Is the header compilable?
37143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37145 cat >conftest.$ac_ext <<_ACEOF
37148 cat confdefs.h >>conftest.$ac_ext
37149 cat >>conftest.$ac_ext <<_ACEOF
37150 /* end confdefs.h. */
37151 $ac_includes_default
37152 #include <$ac_header>
37154 rm -f conftest.$ac_objext
37155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37156 (eval $ac_compile) 2>conftest.er1
37158 grep -v '^ *+' conftest.er1 >conftest.err
37160 cat conftest.err >&5
37161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162 (exit $ac_status); } &&
37163 { ac_try='test -z "$ac_c_werror_flag"
37164 || test ! -s conftest.err'
37165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166 (eval $ac_try) 2>&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); }; } &&
37170 { ac_try='test -s conftest.$ac_objext'
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; }; then
37176 ac_header_compiler=yes
37178 echo "$as_me: failed program was:" >&5
37179 sed 's/^/| /' conftest.$ac_ext >&5
37181 ac_header_compiler=no
37183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37185 echo "${ECHO_T}$ac_header_compiler" >&6
37187 # Is the header present?
37188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37190 cat >conftest.$ac_ext <<_ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h. */
37196 #include <$ac_header>
37198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37201 grep -v '^ *+' conftest.er1 >conftest.err
37203 cat conftest.err >&5
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); } >/dev/null; then
37206 if test -s conftest.err; then
37207 ac_cpp_err=$ac_c_preproc_warn_flag
37208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37215 if test -z "$ac_cpp_err"; then
37216 ac_header_preproc=yes
37218 echo "$as_me: failed program was:" >&5
37219 sed 's/^/| /' conftest.$ac_ext >&5
37221 ac_header_preproc=no
37223 rm -f conftest.err conftest.$ac_ext
37224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37225 echo "${ECHO_T}$ac_header_preproc" >&6
37227 # So? What about this header?
37228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37234 ac_header_preproc=yes
37237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37251 ## --------------------------------------------- ##
37252 ## Report this to <http://www.openldap.org/its/> ##
37253 ## --------------------------------------------- ##
37256 sed "s/^/$as_me: WARNING: /" >&2
37259 echo "$as_me:$LINENO: checking for $ac_header" >&5
37260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37262 echo $ECHO_N "(cached) $ECHO_C" >&6
37264 eval "$as_ac_Header=\$ac_header_preproc"
37266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37271 cat >>confdefs.h <<_ACEOF
37272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37280 if test $ac_cv_header_sasl_sasl_h = yes ||
37281 test $ac_cv_header_sasl_h = yes; then
37282 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37283 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37284 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37285 echo $ECHO_N "(cached) $ECHO_C" >&6
37287 ac_check_lib_save_LIBS=$LIBS
37288 LIBS="-lsasl2 $LIBS"
37289 cat >conftest.$ac_ext <<_ACEOF
37292 cat confdefs.h >>conftest.$ac_ext
37293 cat >>conftest.$ac_ext <<_ACEOF
37294 /* end confdefs.h. */
37296 /* Override any gcc2 internal prototype to avoid an error. */
37300 /* We use char because int might match the return type of a gcc2
37301 builtin and then its argument prototype would still apply. */
37302 char sasl_client_init ();
37306 sasl_client_init ();
37311 rm -f conftest.$ac_objext conftest$ac_exeext
37312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37313 (eval $ac_link) 2>conftest.er1
37315 grep -v '^ *+' conftest.er1 >conftest.err
37317 cat conftest.err >&5
37318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319 (exit $ac_status); } &&
37320 { ac_try='test -z "$ac_c_werror_flag"
37321 || test ! -s conftest.err'
37322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37323 (eval $ac_try) 2>&5
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); }; } &&
37327 { ac_try='test -s conftest$ac_exeext'
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; }; then
37333 ac_cv_lib_sasl2_sasl_client_init=yes
37335 echo "$as_me: failed program was:" >&5
37336 sed 's/^/| /' conftest.$ac_ext >&5
37338 ac_cv_lib_sasl2_sasl_client_init=no
37340 rm -f conftest.err conftest.$ac_objext \
37341 conftest$ac_exeext conftest.$ac_ext
37342 LIBS=$ac_check_lib_save_LIBS
37344 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37345 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37346 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37347 ol_link_sasl="-lsasl2"
37349 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37350 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37351 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37352 echo $ECHO_N "(cached) $ECHO_C" >&6
37354 ac_check_lib_save_LIBS=$LIBS
37355 LIBS="-lsasl $LIBS"
37356 cat >conftest.$ac_ext <<_ACEOF
37359 cat confdefs.h >>conftest.$ac_ext
37360 cat >>conftest.$ac_ext <<_ACEOF
37361 /* end confdefs.h. */
37363 /* Override any gcc2 internal prototype to avoid an error. */
37367 /* We use char because int might match the return type of a gcc2
37368 builtin and then its argument prototype would still apply. */
37369 char sasl_client_init ();
37373 sasl_client_init ();
37378 rm -f conftest.$ac_objext conftest$ac_exeext
37379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37380 (eval $ac_link) 2>conftest.er1
37382 grep -v '^ *+' conftest.er1 >conftest.err
37384 cat conftest.err >&5
37385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386 (exit $ac_status); } &&
37387 { ac_try='test -z "$ac_c_werror_flag"
37388 || test ! -s conftest.err'
37389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390 (eval $ac_try) 2>&5
37392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393 (exit $ac_status); }; } &&
37394 { ac_try='test -s conftest$ac_exeext'
37395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37396 (eval $ac_try) 2>&5
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); }; }; then
37400 ac_cv_lib_sasl_sasl_client_init=yes
37402 echo "$as_me: failed program was:" >&5
37403 sed 's/^/| /' conftest.$ac_ext >&5
37405 ac_cv_lib_sasl_sasl_client_init=no
37407 rm -f conftest.err conftest.$ac_objext \
37408 conftest$ac_exeext conftest.$ac_ext
37409 LIBS=$ac_check_lib_save_LIBS
37411 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37412 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37413 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37414 ol_link_sasl="-lsasl"
37421 if test $ol_link_sasl = no ; then
37422 if test $ol_with_cyrus_sasl != auto ; then
37423 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37424 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37425 { (exit 1); exit 1; }; }
37427 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37428 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37429 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37430 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37431 if test $ol_link_tls = no ; then
37432 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37433 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37437 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37438 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37439 if test "${ol_cv_sasl_compat+set}" = set; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37443 cat >conftest.$ac_ext <<_ACEOF
37446 cat confdefs.h >>conftest.$ac_ext
37447 cat >>conftest.$ac_ext <<_ACEOF
37448 /* end confdefs.h. */
37450 #ifdef HAVE_SASL_SASL_H
37451 #include <sasl/sasl.h>
37456 /* Require 2.1.15+ */
37457 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
37458 char *__sasl_compat = "2.2+ or better okay (we guess)";
37459 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
37460 && SASL_VERSION_STEP >=15
37461 char *__sasl_compat = "2.1.15+ or better okay";
37465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37466 $EGREP "__sasl_compat" >/dev/null 2>&1; then
37467 ol_cv_sasl_compat=yes
37469 ol_cv_sasl_compat=no
37474 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37475 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37477 if test $ol_cv_sasl_compat = no ; then
37479 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37480 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37481 { (exit 1); exit 1; }; }
37485 cat >>confdefs.h <<\_ACEOF
37486 #define HAVE_CYRUS_SASL 1
37489 SASL_LIBS="$ol_link_sasl"
37490 if test $ol_enable_spasswd != no ; then
37491 ol_link_spasswd=yes
37494 ac_save_LIBS="$LIBS"
37495 LIBS="$LIBS $ol_link_sasl"
37496 echo "$as_me:$LINENO: checking for sasl_version" >&5
37497 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37498 if test "${ac_cv_func_sasl_version+set}" = set; then
37499 echo $ECHO_N "(cached) $ECHO_C" >&6
37501 cat >conftest.$ac_ext <<_ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h. */
37507 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37509 #define sasl_version innocuous_sasl_version
37511 /* System header to define __stub macros and hopefully few prototypes,
37512 which can conflict with char sasl_version (); below.
37513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37514 <limits.h> exists even on freestanding compilers. */
37517 # include <limits.h>
37519 # include <assert.h>
37522 #undef sasl_version
37524 /* Override any gcc2 internal prototype to avoid an error. */
37529 /* We use char because int might match the return type of a gcc2
37530 builtin and then its argument prototype would still apply. */
37531 char sasl_version ();
37532 /* The GNU C library defines this for functions which it implements
37533 to always fail with ENOSYS. Some functions are actually named
37534 something starting with __ and the normal name is an alias. */
37535 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37538 char (*f) () = sasl_version;
37547 return f != sasl_version;
37552 rm -f conftest.$ac_objext conftest$ac_exeext
37553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37554 (eval $ac_link) 2>conftest.er1
37556 grep -v '^ *+' conftest.er1 >conftest.err
37558 cat conftest.err >&5
37559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560 (exit $ac_status); } &&
37561 { ac_try='test -z "$ac_c_werror_flag"
37562 || test ! -s conftest.err'
37563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564 (eval $ac_try) 2>&5
37566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567 (exit $ac_status); }; } &&
37568 { ac_try='test -s conftest$ac_exeext'
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; }; then
37574 ac_cv_func_sasl_version=yes
37576 echo "$as_me: failed program was:" >&5
37577 sed 's/^/| /' conftest.$ac_ext >&5
37579 ac_cv_func_sasl_version=no
37581 rm -f conftest.err conftest.$ac_objext \
37582 conftest$ac_exeext conftest.$ac_ext
37584 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37585 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37586 if test $ac_cv_func_sasl_version = yes; then
37588 cat >>confdefs.h <<\_ACEOF
37589 #define HAVE_SASL_VERSION 1
37594 LIBS="$ac_save_LIBS"
37600 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37601 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37602 if test $ol_link_tls = no ; then
37603 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37604 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37608 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37610 if test -r /dev/urandom ; then
37611 dev="/dev/urandom";
37612 elif test -r /idev/urandom ; then
37613 dev="/idev/urandom";
37614 elif test -r /dev/srandom ; then
37615 dev="/dev/srandom";
37616 elif test -r /dev/random ; then
37618 elif test -r /idev/random ; then
37619 dev="/idev/random";
37622 if test $dev != no ; then
37624 cat >>confdefs.h <<_ACEOF
37625 #define URANDOM_DEVICE "$dev"
37632 if test $ol_with_fetch != no ; then
37634 LIBS="-lfetch -lcom_err $LIBS"
37635 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37636 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37637 if test "${ol_cv_lib_fetch+set}" = set; then
37638 echo $ECHO_N "(cached) $ECHO_C" >&6
37641 cat >conftest.$ac_ext <<_ACEOF
37644 cat confdefs.h >>conftest.$ac_ext
37645 cat >>conftest.$ac_ext <<_ACEOF
37646 /* end confdefs.h. */
37648 #include <sys/param.h>
37654 struct url *u = fetchParseURL("file:///");
37659 rm -f conftest.$ac_objext conftest$ac_exeext
37660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37661 (eval $ac_link) 2>conftest.er1
37663 grep -v '^ *+' conftest.er1 >conftest.err
37665 cat conftest.err >&5
37666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37667 (exit $ac_status); } &&
37668 { ac_try='test -z "$ac_c_werror_flag"
37669 || test ! -s conftest.err'
37670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671 (eval $ac_try) 2>&5
37673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674 (exit $ac_status); }; } &&
37675 { ac_try='test -s conftest$ac_exeext'
37676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37677 (eval $ac_try) 2>&5
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); }; }; then
37681 ol_cv_lib_fetch=yes
37683 echo "$as_me: failed program was:" >&5
37684 sed 's/^/| /' conftest.$ac_ext >&5
37688 rm -f conftest.err conftest.$ac_objext \
37689 conftest$ac_exeext conftest.$ac_ext
37691 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37692 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37694 if test $ol_cv_lib_fetch != no ; then
37695 ol_link_fetch="-lfetch -lcom_err"
37697 cat >>confdefs.h <<\_ACEOF
37698 #define HAVE_FETCH 1
37704 if test $ol_cv_lib_fetch != no ; then
37705 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37706 ol_link_fetch=freebsd
37708 elif test $ol_with_fetch != auto ; then
37709 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37710 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37711 { (exit 1); exit 1; }; }
37715 if test $ol_enable_crypt != no ; then
37717 LIBS="$TLS_LIBS $LIBS"
37719 echo "$as_me:$LINENO: checking for crypt" >&5
37720 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37721 if test "${ac_cv_func_crypt+set}" = set; then
37722 echo $ECHO_N "(cached) $ECHO_C" >&6
37724 cat >conftest.$ac_ext <<_ACEOF
37727 cat confdefs.h >>conftest.$ac_ext
37728 cat >>conftest.$ac_ext <<_ACEOF
37729 /* end confdefs.h. */
37730 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37732 #define crypt innocuous_crypt
37734 /* System header to define __stub macros and hopefully few prototypes,
37735 which can conflict with char crypt (); below.
37736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37737 <limits.h> exists even on freestanding compilers. */
37740 # include <limits.h>
37742 # include <assert.h>
37747 /* Override any gcc2 internal prototype to avoid an error. */
37752 /* We use char because int might match the return type of a gcc2
37753 builtin and then its argument prototype would still apply. */
37755 /* The GNU C library defines this for functions which it implements
37756 to always fail with ENOSYS. Some functions are actually named
37757 something starting with __ and the normal name is an alias. */
37758 #if defined (__stub_crypt) || defined (__stub___crypt)
37761 char (*f) () = crypt;
37775 rm -f conftest.$ac_objext conftest$ac_exeext
37776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37777 (eval $ac_link) 2>conftest.er1
37779 grep -v '^ *+' conftest.er1 >conftest.err
37781 cat conftest.err >&5
37782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783 (exit $ac_status); } &&
37784 { ac_try='test -z "$ac_c_werror_flag"
37785 || test ! -s conftest.err'
37786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37787 (eval $ac_try) 2>&5
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); }; } &&
37791 { ac_try='test -s conftest$ac_exeext'
37792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793 (eval $ac_try) 2>&5
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); }; }; then
37797 ac_cv_func_crypt=yes
37799 echo "$as_me: failed program was:" >&5
37800 sed 's/^/| /' conftest.$ac_ext >&5
37802 ac_cv_func_crypt=no
37804 rm -f conftest.err conftest.$ac_objext \
37805 conftest$ac_exeext conftest.$ac_ext
37807 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37808 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37809 if test $ac_cv_func_crypt = yes; then
37814 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37815 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37816 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37817 echo $ECHO_N "(cached) $ECHO_C" >&6
37819 ac_check_lib_save_LIBS=$LIBS
37820 LIBS="-lcrypt $LIBS"
37821 cat >conftest.$ac_ext <<_ACEOF
37824 cat confdefs.h >>conftest.$ac_ext
37825 cat >>conftest.$ac_ext <<_ACEOF
37826 /* end confdefs.h. */
37828 /* Override any gcc2 internal prototype to avoid an error. */
37832 /* We use char because int might match the return type of a gcc2
37833 builtin and then its argument prototype would still apply. */
37843 rm -f conftest.$ac_objext conftest$ac_exeext
37844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37845 (eval $ac_link) 2>conftest.er1
37847 grep -v '^ *+' conftest.er1 >conftest.err
37849 cat conftest.err >&5
37850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37851 (exit $ac_status); } &&
37852 { ac_try='test -z "$ac_c_werror_flag"
37853 || test ! -s conftest.err'
37854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855 (eval $ac_try) 2>&5
37857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858 (exit $ac_status); }; } &&
37859 { ac_try='test -s conftest$ac_exeext'
37860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37861 (eval $ac_try) 2>&5
37863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864 (exit $ac_status); }; }; then
37865 ac_cv_lib_crypt_crypt=yes
37867 echo "$as_me: failed program was:" >&5
37868 sed 's/^/| /' conftest.$ac_ext >&5
37870 ac_cv_lib_crypt_crypt=no
37872 rm -f conftest.err conftest.$ac_objext \
37873 conftest$ac_exeext conftest.$ac_ext
37874 LIBS=$ac_check_lib_save_LIBS
37876 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37877 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37878 if test $ac_cv_lib_crypt_crypt = yes; then
37879 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37890 if test $have_crypt = yes ; then
37892 cat >>confdefs.h <<\_ACEOF
37893 #define HAVE_CRYPT 1
37897 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37898 echo "$as_me: WARNING: could not find crypt" >&2;}
37899 if test $ol_enable_crypt = yes ; then
37900 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37901 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37902 { (exit 1); exit 1; }; }
37905 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37906 echo "$as_me: WARNING: disabling crypt support" >&2;}
37911 if test $ol_enable_proctitle != no ; then
37912 echo "$as_me:$LINENO: checking for setproctitle" >&5
37913 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37914 if test "${ac_cv_func_setproctitle+set}" = set; then
37915 echo $ECHO_N "(cached) $ECHO_C" >&6
37917 cat >conftest.$ac_ext <<_ACEOF
37920 cat confdefs.h >>conftest.$ac_ext
37921 cat >>conftest.$ac_ext <<_ACEOF
37922 /* end confdefs.h. */
37923 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37925 #define setproctitle innocuous_setproctitle
37927 /* System header to define __stub macros and hopefully few prototypes,
37928 which can conflict with char setproctitle (); below.
37929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37930 <limits.h> exists even on freestanding compilers. */
37933 # include <limits.h>
37935 # include <assert.h>
37938 #undef setproctitle
37940 /* Override any gcc2 internal prototype to avoid an error. */
37945 /* We use char because int might match the return type of a gcc2
37946 builtin and then its argument prototype would still apply. */
37947 char setproctitle ();
37948 /* The GNU C library defines this for functions which it implements
37949 to always fail with ENOSYS. Some functions are actually named
37950 something starting with __ and the normal name is an alias. */
37951 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37954 char (*f) () = setproctitle;
37963 return f != setproctitle;
37968 rm -f conftest.$ac_objext conftest$ac_exeext
37969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37970 (eval $ac_link) 2>conftest.er1
37972 grep -v '^ *+' conftest.er1 >conftest.err
37974 cat conftest.err >&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); } &&
37977 { ac_try='test -z "$ac_c_werror_flag"
37978 || test ! -s conftest.err'
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; } &&
37984 { ac_try='test -s conftest$ac_exeext'
37985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37986 (eval $ac_try) 2>&5
37988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37989 (exit $ac_status); }; }; then
37990 ac_cv_func_setproctitle=yes
37992 echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37995 ac_cv_func_setproctitle=no
37997 rm -f conftest.err conftest.$ac_objext \
37998 conftest$ac_exeext conftest.$ac_ext
38000 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
38001 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
38002 if test $ac_cv_func_setproctitle = yes; then
38003 have_setproctitle=yes
38006 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
38007 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
38008 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
38009 echo $ECHO_N "(cached) $ECHO_C" >&6
38011 ac_check_lib_save_LIBS=$LIBS
38012 LIBS="-lutil $LIBS"
38013 cat >conftest.$ac_ext <<_ACEOF
38016 cat confdefs.h >>conftest.$ac_ext
38017 cat >>conftest.$ac_ext <<_ACEOF
38018 /* end confdefs.h. */
38020 /* Override any gcc2 internal prototype to avoid an error. */
38024 /* We use char because int might match the return type of a gcc2
38025 builtin and then its argument prototype would still apply. */
38026 char setproctitle ();
38035 rm -f conftest.$ac_objext conftest$ac_exeext
38036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38037 (eval $ac_link) 2>conftest.er1
38039 grep -v '^ *+' conftest.er1 >conftest.err
38041 cat conftest.err >&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); } &&
38044 { ac_try='test -z "$ac_c_werror_flag"
38045 || test ! -s conftest.err'
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047 (eval $ac_try) 2>&5
38049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; } &&
38051 { ac_try='test -s conftest$ac_exeext'
38052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38053 (eval $ac_try) 2>&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); }; }; then
38057 ac_cv_lib_util_setproctitle=yes
38059 echo "$as_me: failed program was:" >&5
38060 sed 's/^/| /' conftest.$ac_ext >&5
38062 ac_cv_lib_util_setproctitle=no
38064 rm -f conftest.err conftest.$ac_objext \
38065 conftest$ac_exeext conftest.$ac_ext
38066 LIBS=$ac_check_lib_save_LIBS
38068 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
38069 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
38070 if test $ac_cv_lib_util_setproctitle = yes; then
38071 have_setproctitle=yes
38072 LUTIL_LIBS="$LUTIL_LIBS -lutil"
38074 have_setproctitle=no
38076 "setproctitle.$ac_objext" | \
38077 *" setproctitle.$ac_objext" | \
38078 "setproctitle.$ac_objext "* | \
38079 *" setproctitle.$ac_objext "* ) ;;
38080 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
38083 LIBSRCS="$LIBSRCS setproctitle.c"
38089 if test $have_setproctitle = yes ; then
38091 cat >>confdefs.h <<\_ACEOF
38092 #define HAVE_SETPROCTITLE 1
38098 if test $ol_enable_slp != no ; then
38100 for ac_header in slp.h
38102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38104 echo "$as_me:$LINENO: checking for $ac_header" >&5
38105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38107 echo $ECHO_N "(cached) $ECHO_C" >&6
38109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38112 # Is the header compilable?
38113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38115 cat >conftest.$ac_ext <<_ACEOF
38118 cat confdefs.h >>conftest.$ac_ext
38119 cat >>conftest.$ac_ext <<_ACEOF
38120 /* end confdefs.h. */
38121 $ac_includes_default
38122 #include <$ac_header>
38124 rm -f conftest.$ac_objext
38125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38126 (eval $ac_compile) 2>conftest.er1
38128 grep -v '^ *+' conftest.er1 >conftest.err
38130 cat conftest.err >&5
38131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132 (exit $ac_status); } &&
38133 { ac_try='test -z "$ac_c_werror_flag"
38134 || test ! -s conftest.err'
38135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38136 (eval $ac_try) 2>&5
38138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139 (exit $ac_status); }; } &&
38140 { ac_try='test -s conftest.$ac_objext'
38141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38142 (eval $ac_try) 2>&5
38144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38145 (exit $ac_status); }; }; then
38146 ac_header_compiler=yes
38148 echo "$as_me: failed program was:" >&5
38149 sed 's/^/| /' conftest.$ac_ext >&5
38151 ac_header_compiler=no
38153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38155 echo "${ECHO_T}$ac_header_compiler" >&6
38157 # Is the header present?
38158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38160 cat >conftest.$ac_ext <<_ACEOF
38163 cat confdefs.h >>conftest.$ac_ext
38164 cat >>conftest.$ac_ext <<_ACEOF
38165 /* end confdefs.h. */
38166 #include <$ac_header>
38168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38171 grep -v '^ *+' conftest.er1 >conftest.err
38173 cat conftest.err >&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } >/dev/null; then
38176 if test -s conftest.err; then
38177 ac_cpp_err=$ac_c_preproc_warn_flag
38178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38185 if test -z "$ac_cpp_err"; then
38186 ac_header_preproc=yes
38188 echo "$as_me: failed program was:" >&5
38189 sed 's/^/| /' conftest.$ac_ext >&5
38191 ac_header_preproc=no
38193 rm -f conftest.err conftest.$ac_ext
38194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38195 echo "${ECHO_T}$ac_header_preproc" >&6
38197 # So? What about this header?
38198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38204 ac_header_preproc=yes
38207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38221 ## --------------------------------------------- ##
38222 ## Report this to <http://www.openldap.org/its/> ##
38223 ## --------------------------------------------- ##
38226 sed "s/^/$as_me: WARNING: /" >&2
38229 echo "$as_me:$LINENO: checking for $ac_header" >&5
38230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38232 echo $ECHO_N "(cached) $ECHO_C" >&6
38234 eval "$as_ac_Header=\$ac_header_preproc"
38236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38241 cat >>confdefs.h <<_ACEOF
38242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38250 if test $ac_cv_header_slp_h = yes ; then
38251 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38252 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38253 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38256 ac_check_lib_save_LIBS=$LIBS
38258 cat >conftest.$ac_ext <<_ACEOF
38261 cat confdefs.h >>conftest.$ac_ext
38262 cat >>conftest.$ac_ext <<_ACEOF
38263 /* end confdefs.h. */
38265 /* Override any gcc2 internal prototype to avoid an error. */
38269 /* We use char because int might match the return type of a gcc2
38270 builtin and then its argument prototype would still apply. */
38280 rm -f conftest.$ac_objext conftest$ac_exeext
38281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38282 (eval $ac_link) 2>conftest.er1
38284 grep -v '^ *+' conftest.er1 >conftest.err
38286 cat conftest.err >&5
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); } &&
38289 { ac_try='test -z "$ac_c_werror_flag"
38290 || test ! -s conftest.err'
38291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38292 (eval $ac_try) 2>&5
38294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38295 (exit $ac_status); }; } &&
38296 { ac_try='test -s conftest$ac_exeext'
38297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38298 (eval $ac_try) 2>&5
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); }; }; then
38302 ac_cv_lib_slp_SLPOpen=yes
38304 echo "$as_me: failed program was:" >&5
38305 sed 's/^/| /' conftest.$ac_ext >&5
38307 ac_cv_lib_slp_SLPOpen=no
38309 rm -f conftest.err conftest.$ac_objext \
38310 conftest$ac_exeext conftest.$ac_ext
38311 LIBS=$ac_check_lib_save_LIBS
38313 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38314 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38315 if test $ac_cv_lib_slp_SLPOpen = yes; then
38321 if test $have_slp = yes ; then
38323 cat >>confdefs.h <<\_ACEOF
38327 SLAPD_SLP_LIBS=-lslp
38330 elif test $ol_enable_slp = yes ; then
38331 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38332 echo "$as_me: error: SLP not found" >&2;}
38333 { (exit 1); exit 1; }; }
38337 if test "$ol_with_multiple_precision" != "no" ; then
38343 for ac_header in openssl/bn.h bn.h
38345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38347 echo "$as_me:$LINENO: checking for $ac_header" >&5
38348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38355 # Is the header compilable?
38356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38358 cat >conftest.$ac_ext <<_ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h. */
38364 $ac_includes_default
38365 #include <$ac_header>
38367 rm -f conftest.$ac_objext
38368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38369 (eval $ac_compile) 2>conftest.er1
38371 grep -v '^ *+' conftest.er1 >conftest.err
38373 cat conftest.err >&5
38374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); } &&
38376 { ac_try='test -z "$ac_c_werror_flag"
38377 || test ! -s conftest.err'
38378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38379 (eval $ac_try) 2>&5
38381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382 (exit $ac_status); }; } &&
38383 { ac_try='test -s conftest.$ac_objext'
38384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38385 (eval $ac_try) 2>&5
38387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388 (exit $ac_status); }; }; then
38389 ac_header_compiler=yes
38391 echo "$as_me: failed program was:" >&5
38392 sed 's/^/| /' conftest.$ac_ext >&5
38394 ac_header_compiler=no
38396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38398 echo "${ECHO_T}$ac_header_compiler" >&6
38400 # Is the header present?
38401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38403 cat >conftest.$ac_ext <<_ACEOF
38406 cat confdefs.h >>conftest.$ac_ext
38407 cat >>conftest.$ac_ext <<_ACEOF
38408 /* end confdefs.h. */
38409 #include <$ac_header>
38411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38414 grep -v '^ *+' conftest.er1 >conftest.err
38416 cat conftest.err >&5
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); } >/dev/null; then
38419 if test -s conftest.err; then
38420 ac_cpp_err=$ac_c_preproc_warn_flag
38421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38428 if test -z "$ac_cpp_err"; then
38429 ac_header_preproc=yes
38431 echo "$as_me: failed program was:" >&5
38432 sed 's/^/| /' conftest.$ac_ext >&5
38434 ac_header_preproc=no
38436 rm -f conftest.err conftest.$ac_ext
38437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38438 echo "${ECHO_T}$ac_header_preproc" >&6
38440 # So? What about this header?
38441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38447 ac_header_preproc=yes
38450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38464 ## --------------------------------------------- ##
38465 ## Report this to <http://www.openldap.org/its/> ##
38466 ## --------------------------------------------- ##
38469 sed "s/^/$as_me: WARNING: /" >&2
38472 echo "$as_me:$LINENO: checking for $ac_header" >&5
38473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38475 echo $ECHO_N "(cached) $ECHO_C" >&6
38477 eval "$as_ac_Header=\$ac_header_preproc"
38479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38484 cat >>confdefs.h <<_ACEOF
38485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38494 for ac_header in openssl/crypto.h crypto.h
38496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38498 echo "$as_me:$LINENO: checking for $ac_header" >&5
38499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38501 echo $ECHO_N "(cached) $ECHO_C" >&6
38503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38506 # Is the header compilable?
38507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38509 cat >conftest.$ac_ext <<_ACEOF
38512 cat confdefs.h >>conftest.$ac_ext
38513 cat >>conftest.$ac_ext <<_ACEOF
38514 /* end confdefs.h. */
38515 $ac_includes_default
38516 #include <$ac_header>
38518 rm -f conftest.$ac_objext
38519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38520 (eval $ac_compile) 2>conftest.er1
38522 grep -v '^ *+' conftest.er1 >conftest.err
38524 cat conftest.err >&5
38525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38526 (exit $ac_status); } &&
38527 { ac_try='test -z "$ac_c_werror_flag"
38528 || test ! -s conftest.err'
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; } &&
38534 { ac_try='test -s conftest.$ac_objext'
38535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38536 (eval $ac_try) 2>&5
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); }; }; then
38540 ac_header_compiler=yes
38542 echo "$as_me: failed program was:" >&5
38543 sed 's/^/| /' conftest.$ac_ext >&5
38545 ac_header_compiler=no
38547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38549 echo "${ECHO_T}$ac_header_compiler" >&6
38551 # Is the header present?
38552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38554 cat >conftest.$ac_ext <<_ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h. */
38560 #include <$ac_header>
38562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38565 grep -v '^ *+' conftest.er1 >conftest.err
38567 cat conftest.err >&5
38568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38569 (exit $ac_status); } >/dev/null; then
38570 if test -s conftest.err; then
38571 ac_cpp_err=$ac_c_preproc_warn_flag
38572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38579 if test -z "$ac_cpp_err"; then
38580 ac_header_preproc=yes
38582 echo "$as_me: failed program was:" >&5
38583 sed 's/^/| /' conftest.$ac_ext >&5
38585 ac_header_preproc=no
38587 rm -f conftest.err conftest.$ac_ext
38588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38589 echo "${ECHO_T}$ac_header_preproc" >&6
38591 # So? What about this header?
38592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38598 ac_header_preproc=yes
38601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38615 ## --------------------------------------------- ##
38616 ## Report this to <http://www.openldap.org/its/> ##
38617 ## --------------------------------------------- ##
38620 sed "s/^/$as_me: WARNING: /" >&2
38623 echo "$as_me:$LINENO: checking for $ac_header" >&5
38624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38628 eval "$as_ac_Header=\$ac_header_preproc"
38630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38635 cat >>confdefs.h <<_ACEOF
38636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38644 for ac_header in gmp.h
38646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38648 echo "$as_me:$LINENO: checking for $ac_header" >&5
38649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38651 echo $ECHO_N "(cached) $ECHO_C" >&6
38653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38656 # Is the header compilable?
38657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38659 cat >conftest.$ac_ext <<_ACEOF
38662 cat confdefs.h >>conftest.$ac_ext
38663 cat >>conftest.$ac_ext <<_ACEOF
38664 /* end confdefs.h. */
38665 $ac_includes_default
38666 #include <$ac_header>
38668 rm -f conftest.$ac_objext
38669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38670 (eval $ac_compile) 2>conftest.er1
38672 grep -v '^ *+' conftest.er1 >conftest.err
38674 cat conftest.err >&5
38675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); } &&
38677 { ac_try='test -z "$ac_c_werror_flag"
38678 || test ! -s conftest.err'
38679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680 (eval $ac_try) 2>&5
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); }; } &&
38684 { ac_try='test -s conftest.$ac_objext'
38685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686 (eval $ac_try) 2>&5
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); }; }; then
38690 ac_header_compiler=yes
38692 echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38695 ac_header_compiler=no
38697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38699 echo "${ECHO_T}$ac_header_compiler" >&6
38701 # Is the header present?
38702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38704 cat >conftest.$ac_ext <<_ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h. */
38710 #include <$ac_header>
38712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38715 grep -v '^ *+' conftest.er1 >conftest.err
38717 cat conftest.err >&5
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); } >/dev/null; then
38720 if test -s conftest.err; then
38721 ac_cpp_err=$ac_c_preproc_warn_flag
38722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38729 if test -z "$ac_cpp_err"; then
38730 ac_header_preproc=yes
38732 echo "$as_me: failed program was:" >&5
38733 sed 's/^/| /' conftest.$ac_ext >&5
38735 ac_header_preproc=no
38737 rm -f conftest.err conftest.$ac_ext
38738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38739 echo "${ECHO_T}$ac_header_preproc" >&6
38741 # So? What about this header?
38742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38748 ac_header_preproc=yes
38751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38765 ## --------------------------------------------- ##
38766 ## Report this to <http://www.openldap.org/its/> ##
38767 ## --------------------------------------------- ##
38770 sed "s/^/$as_me: WARNING: /" >&2
38773 echo "$as_me:$LINENO: checking for $ac_header" >&5
38774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38776 echo $ECHO_N "(cached) $ECHO_C" >&6
38778 eval "$as_ac_Header=\$ac_header_preproc"
38780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38785 cat >>confdefs.h <<_ACEOF
38786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38794 if test "$ol_with_tls" = "found" ; then
38796 ol_have_crypto_h=no
38798 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38799 test "$ac_cv_header_bn_h" = "yes" ; then
38803 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38804 test "$ac_cv_header_crypto_h" = "yes" ; then
38805 ol_have_crypto_h=yes
38808 if test "$ol_have_bn_h" = "yes" &&
38809 test "$ol_have_crypto_h" = "yes" ; then
38814 if test $ac_cv_header_gmp_h = yes ; then
38815 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38816 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38817 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38820 ac_check_lib_save_LIBS=$LIBS
38822 cat >conftest.$ac_ext <<_ACEOF
38825 cat confdefs.h >>conftest.$ac_ext
38826 cat >>conftest.$ac_ext <<_ACEOF
38827 /* end confdefs.h. */
38829 /* Override any gcc2 internal prototype to avoid an error. */
38833 /* We use char because int might match the return type of a gcc2
38834 builtin and then its argument prototype would still apply. */
38835 char __gmpz_add_ui ();
38844 rm -f conftest.$ac_objext conftest$ac_exeext
38845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38846 (eval $ac_link) 2>conftest.er1
38848 grep -v '^ *+' conftest.er1 >conftest.err
38850 cat conftest.err >&5
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); } &&
38853 { ac_try='test -z "$ac_c_werror_flag"
38854 || test ! -s conftest.err'
38855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856 (eval $ac_try) 2>&5
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); }; } &&
38860 { ac_try='test -s conftest$ac_exeext'
38861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38862 (eval $ac_try) 2>&5
38864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865 (exit $ac_status); }; }; then
38866 ac_cv_lib_gmp___gmpz_add_ui=yes
38868 echo "$as_me: failed program was:" >&5
38869 sed 's/^/| /' conftest.$ac_ext >&5
38871 ac_cv_lib_gmp___gmpz_add_ui=no
38873 rm -f conftest.err conftest.$ac_objext \
38874 conftest$ac_exeext conftest.$ac_ext
38875 LIBS=$ac_check_lib_save_LIBS
38877 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38878 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38879 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38885 if test $have_gmp = yes ; then
38890 echo "$as_me:$LINENO: checking for multiple precision support" >&5
38891 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38893 ol_mp_support="none"
38894 case "$ol_with_multiple_precision" in
38896 if test "$ol_have_bignum" = "yes" ; then
38897 ol_mp_support="bignum"
38899 if test "$ol_have_gmp" = "yes" ; then
38900 ol_mp_support="gmp"
38905 if test "$ol_have_bignum" != "yes" ; then
38906 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38907 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38908 { (exit 1); exit 1; }; }
38910 ol_mp_support="bignum"
38913 if test "$ol_have_gmp" != "yes" ; then
38914 { { echo "$as_me:$LINENO: error: GMP not available" >&5
38915 echo "$as_me: error: GMP not available" >&2;}
38916 { (exit 1); exit 1; }; }
38918 ol_mp_support="gmp"
38921 if test "$ol_have_bignum" = "yes" ; then
38922 ol_mp_support="bignum"
38923 elif test "$ol_have_gmp" = "yes" ; then
38924 ol_mp_support="gmp"
38926 { { echo "$as_me:$LINENO: error: not available" >&5
38927 echo "$as_me: error: not available" >&2;}
38928 { (exit 1); exit 1; }; }
38933 case "$ol_mp_support" in
38936 cat >>confdefs.h <<\_ACEOF
38937 #define HAVE_BIGNUM 1
38943 cat >>confdefs.h <<\_ACEOF
38947 SLAPD_GMP_LIBS=-lgmp
38953 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38954 echo "${ECHO_T}$ol_mp_support" >&6
38958 echo "$as_me:$LINENO: checking for mode_t" >&5
38959 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38960 if test "${ac_cv_type_mode_t+set}" = set; then
38961 echo $ECHO_N "(cached) $ECHO_C" >&6
38963 cat >conftest.$ac_ext <<_ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h. */
38969 $ac_includes_default
38975 if (sizeof (mode_t))
38981 rm -f conftest.$ac_objext
38982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38983 (eval $ac_compile) 2>conftest.er1
38985 grep -v '^ *+' conftest.er1 >conftest.err
38987 cat conftest.err >&5
38988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38989 (exit $ac_status); } &&
38990 { ac_try='test -z "$ac_c_werror_flag"
38991 || test ! -s conftest.err'
38992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38993 (eval $ac_try) 2>&5
38995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38996 (exit $ac_status); }; } &&
38997 { ac_try='test -s conftest.$ac_objext'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; }; then
39003 ac_cv_type_mode_t=yes
39005 echo "$as_me: failed program was:" >&5
39006 sed 's/^/| /' conftest.$ac_ext >&5
39008 ac_cv_type_mode_t=no
39010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39012 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39013 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
39014 if test $ac_cv_type_mode_t = yes; then
39018 cat >>confdefs.h <<_ACEOF
39024 echo "$as_me:$LINENO: checking for off_t" >&5
39025 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39026 if test "${ac_cv_type_off_t+set}" = set; then
39027 echo $ECHO_N "(cached) $ECHO_C" >&6
39029 cat >conftest.$ac_ext <<_ACEOF
39032 cat confdefs.h >>conftest.$ac_ext
39033 cat >>conftest.$ac_ext <<_ACEOF
39034 /* end confdefs.h. */
39035 $ac_includes_default
39041 if (sizeof (off_t))
39047 rm -f conftest.$ac_objext
39048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39049 (eval $ac_compile) 2>conftest.er1
39051 grep -v '^ *+' conftest.er1 >conftest.err
39053 cat conftest.err >&5
39054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39055 (exit $ac_status); } &&
39056 { ac_try='test -z "$ac_c_werror_flag"
39057 || test ! -s conftest.err'
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; } &&
39063 { ac_try='test -s conftest.$ac_objext'
39064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39065 (eval $ac_try) 2>&5
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); }; }; then
39069 ac_cv_type_off_t=yes
39071 echo "$as_me: failed program was:" >&5
39072 sed 's/^/| /' conftest.$ac_ext >&5
39074 ac_cv_type_off_t=no
39076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39078 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39079 echo "${ECHO_T}$ac_cv_type_off_t" >&6
39080 if test $ac_cv_type_off_t = yes; then
39084 cat >>confdefs.h <<_ACEOF
39090 echo "$as_me:$LINENO: checking for pid_t" >&5
39091 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
39092 if test "${ac_cv_type_pid_t+set}" = set; then
39093 echo $ECHO_N "(cached) $ECHO_C" >&6
39095 cat >conftest.$ac_ext <<_ACEOF
39098 cat confdefs.h >>conftest.$ac_ext
39099 cat >>conftest.$ac_ext <<_ACEOF
39100 /* end confdefs.h. */
39101 $ac_includes_default
39107 if (sizeof (pid_t))
39113 rm -f conftest.$ac_objext
39114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39115 (eval $ac_compile) 2>conftest.er1
39117 grep -v '^ *+' conftest.er1 >conftest.err
39119 cat conftest.err >&5
39120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39121 (exit $ac_status); } &&
39122 { ac_try='test -z "$ac_c_werror_flag"
39123 || test ! -s conftest.err'
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125 (eval $ac_try) 2>&5
39127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; } &&
39129 { ac_try='test -s conftest.$ac_objext'
39130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39131 (eval $ac_try) 2>&5
39133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134 (exit $ac_status); }; }; then
39135 ac_cv_type_pid_t=yes
39137 echo "$as_me: failed program was:" >&5
39138 sed 's/^/| /' conftest.$ac_ext >&5
39140 ac_cv_type_pid_t=no
39142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39144 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39145 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39146 if test $ac_cv_type_pid_t = yes; then
39150 cat >>confdefs.h <<_ACEOF
39156 echo "$as_me:$LINENO: checking for ssize_t" >&5
39157 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39158 if test "${ac_cv_type_ssize_t+set}" = set; then
39159 echo $ECHO_N "(cached) $ECHO_C" >&6
39161 cat >conftest.$ac_ext <<_ACEOF
39164 cat confdefs.h >>conftest.$ac_ext
39165 cat >>conftest.$ac_ext <<_ACEOF
39166 /* end confdefs.h. */
39167 $ac_includes_default
39173 if (sizeof (ssize_t))
39179 rm -f conftest.$ac_objext
39180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39181 (eval $ac_compile) 2>conftest.er1
39183 grep -v '^ *+' conftest.er1 >conftest.err
39185 cat conftest.err >&5
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); } &&
39188 { ac_try='test -z "$ac_c_werror_flag"
39189 || test ! -s conftest.err'
39190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39191 (eval $ac_try) 2>&5
39193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39194 (exit $ac_status); }; } &&
39195 { ac_try='test -s conftest.$ac_objext'
39196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39197 (eval $ac_try) 2>&5
39199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39200 (exit $ac_status); }; }; then
39201 ac_cv_type_ssize_t=yes
39203 echo "$as_me: failed program was:" >&5
39204 sed 's/^/| /' conftest.$ac_ext >&5
39206 ac_cv_type_ssize_t=no
39208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39210 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39211 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39212 if test $ac_cv_type_ssize_t = yes; then
39216 cat >>confdefs.h <<_ACEOF
39217 #define ssize_t signed int
39222 echo "$as_me:$LINENO: checking for caddr_t" >&5
39223 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39224 if test "${ac_cv_type_caddr_t+set}" = set; then
39225 echo $ECHO_N "(cached) $ECHO_C" >&6
39227 cat >conftest.$ac_ext <<_ACEOF
39230 cat confdefs.h >>conftest.$ac_ext
39231 cat >>conftest.$ac_ext <<_ACEOF
39232 /* end confdefs.h. */
39233 $ac_includes_default
39239 if (sizeof (caddr_t))
39245 rm -f conftest.$ac_objext
39246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39247 (eval $ac_compile) 2>conftest.er1
39249 grep -v '^ *+' conftest.er1 >conftest.err
39251 cat conftest.err >&5
39252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39253 (exit $ac_status); } &&
39254 { ac_try='test -z "$ac_c_werror_flag"
39255 || test ! -s conftest.err'
39256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39257 (eval $ac_try) 2>&5
39259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39260 (exit $ac_status); }; } &&
39261 { ac_try='test -s conftest.$ac_objext'
39262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39263 (eval $ac_try) 2>&5
39265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39266 (exit $ac_status); }; }; then
39267 ac_cv_type_caddr_t=yes
39269 echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.$ac_ext >&5
39272 ac_cv_type_caddr_t=no
39274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39276 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39277 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39278 if test $ac_cv_type_caddr_t = yes; then
39282 cat >>confdefs.h <<_ACEOF
39283 #define caddr_t char *
39288 echo "$as_me:$LINENO: checking for size_t" >&5
39289 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39290 if test "${ac_cv_type_size_t+set}" = set; then
39291 echo $ECHO_N "(cached) $ECHO_C" >&6
39293 cat >conftest.$ac_ext <<_ACEOF
39296 cat confdefs.h >>conftest.$ac_ext
39297 cat >>conftest.$ac_ext <<_ACEOF
39298 /* end confdefs.h. */
39299 $ac_includes_default
39305 if (sizeof (size_t))
39311 rm -f conftest.$ac_objext
39312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39313 (eval $ac_compile) 2>conftest.er1
39315 grep -v '^ *+' conftest.er1 >conftest.err
39317 cat conftest.err >&5
39318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39319 (exit $ac_status); } &&
39320 { ac_try='test -z "$ac_c_werror_flag"
39321 || test ! -s conftest.err'
39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323 (eval $ac_try) 2>&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; } &&
39327 { ac_try='test -s conftest.$ac_objext'
39328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39329 (eval $ac_try) 2>&5
39331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332 (exit $ac_status); }; }; then
39333 ac_cv_type_size_t=yes
39335 echo "$as_me: failed program was:" >&5
39336 sed 's/^/| /' conftest.$ac_ext >&5
39338 ac_cv_type_size_t=no
39340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39342 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39343 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39344 if test $ac_cv_type_size_t = yes; then
39348 cat >>confdefs.h <<_ACEOF
39349 #define size_t unsigned
39355 echo "$as_me:$LINENO: checking for long long" >&5
39356 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39357 if test "${ac_cv_type_long_long+set}" = set; then
39358 echo $ECHO_N "(cached) $ECHO_C" >&6
39360 cat >conftest.$ac_ext <<_ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h. */
39366 $ac_includes_default
39370 if ((long long *) 0)
39372 if (sizeof (long long))
39378 rm -f conftest.$ac_objext
39379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39380 (eval $ac_compile) 2>conftest.er1
39382 grep -v '^ *+' conftest.er1 >conftest.err
39384 cat conftest.err >&5
39385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386 (exit $ac_status); } &&
39387 { ac_try='test -z "$ac_c_werror_flag"
39388 || test ! -s conftest.err'
39389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39390 (eval $ac_try) 2>&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); }; } &&
39394 { ac_try='test -s conftest.$ac_objext'
39395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39396 (eval $ac_try) 2>&5
39398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39399 (exit $ac_status); }; }; then
39400 ac_cv_type_long_long=yes
39402 echo "$as_me: failed program was:" >&5
39403 sed 's/^/| /' conftest.$ac_ext >&5
39405 ac_cv_type_long_long=no
39407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39409 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39410 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39411 if test $ac_cv_type_long_long = yes; then
39413 cat >>confdefs.h <<_ACEOF
39414 #define HAVE_LONG_LONG 1
39420 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39421 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39422 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39423 echo $ECHO_N "(cached) $ECHO_C" >&6
39425 cat >conftest.$ac_ext <<_ACEOF
39428 cat confdefs.h >>conftest.$ac_ext
39429 cat >>conftest.$ac_ext <<_ACEOF
39430 /* end confdefs.h. */
39431 $ac_includes_default
39435 if ((ptrdiff_t *) 0)
39437 if (sizeof (ptrdiff_t))
39443 rm -f conftest.$ac_objext
39444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39445 (eval $ac_compile) 2>conftest.er1
39447 grep -v '^ *+' conftest.er1 >conftest.err
39449 cat conftest.err >&5
39450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451 (exit $ac_status); } &&
39452 { ac_try='test -z "$ac_c_werror_flag"
39453 || test ! -s conftest.err'
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; } &&
39459 { ac_try='test -s conftest.$ac_objext'
39460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39461 (eval $ac_try) 2>&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); }; }; then
39465 ac_cv_type_ptrdiff_t=yes
39467 echo "$as_me: failed program was:" >&5
39468 sed 's/^/| /' conftest.$ac_ext >&5
39470 ac_cv_type_ptrdiff_t=no
39472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39474 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39475 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39476 if test $ac_cv_type_ptrdiff_t = yes; then
39478 cat >>confdefs.h <<_ACEOF
39479 #define HAVE_PTRDIFF_T 1
39486 echo "$as_me:$LINENO: checking for socklen_t" >&5
39487 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39488 if test "${ac_cv_type_socklen_t+set}" = set; then
39489 echo $ECHO_N "(cached) $ECHO_C" >&6
39491 cat >conftest.$ac_ext <<_ACEOF
39494 cat confdefs.h >>conftest.$ac_ext
39495 cat >>conftest.$ac_ext <<_ACEOF
39496 /* end confdefs.h. */
39497 $ac_includes_default
39498 #ifdef HAVE_SYS_SOCKET_H
39499 #include <sys/socket.h>
39506 if ((socklen_t *) 0)
39508 if (sizeof (socklen_t))
39514 rm -f conftest.$ac_objext
39515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39516 (eval $ac_compile) 2>conftest.er1
39518 grep -v '^ *+' conftest.er1 >conftest.err
39520 cat conftest.err >&5
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); } &&
39523 { ac_try='test -z "$ac_c_werror_flag"
39524 || test ! -s conftest.err'
39525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526 (eval $ac_try) 2>&5
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); }; } &&
39530 { ac_try='test -s conftest.$ac_objext'
39531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39532 (eval $ac_try) 2>&5
39534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); }; }; then
39536 ac_cv_type_socklen_t=yes
39538 echo "$as_me: failed program was:" >&5
39539 sed 's/^/| /' conftest.$ac_ext >&5
39541 ac_cv_type_socklen_t=no
39543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39545 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39546 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39547 if test $ac_cv_type_socklen_t = yes; then
39551 cat >>confdefs.h <<_ACEOF
39552 #define socklen_t int
39558 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39559 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39560 if test "${ac_cv_type_signal+set}" = set; then
39561 echo $ECHO_N "(cached) $ECHO_C" >&6
39563 cat >conftest.$ac_ext <<_ACEOF
39566 cat confdefs.h >>conftest.$ac_ext
39567 cat >>conftest.$ac_ext <<_ACEOF
39568 /* end confdefs.h. */
39569 #include <sys/types.h>
39570 #include <signal.h>
39575 extern "C" void (*signal (int, void (*)(int)))(int);
39577 void (*signal ()) ();
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590 (eval $ac_compile) 2>conftest.er1
39592 grep -v '^ *+' conftest.er1 >conftest.err
39594 cat conftest.err >&5
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); } &&
39597 { ac_try='test -z "$ac_c_werror_flag"
39598 || test ! -s conftest.err'
39599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600 (eval $ac_try) 2>&5
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); }; } &&
39604 { ac_try='test -s conftest.$ac_objext'
39605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606 (eval $ac_try) 2>&5
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; }; then
39610 ac_cv_type_signal=void
39612 echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39615 ac_cv_type_signal=int
39617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39619 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39620 echo "${ECHO_T}$ac_cv_type_signal" >&6
39622 cat >>confdefs.h <<_ACEOF
39623 #define RETSIGTYPE $ac_cv_type_signal
39628 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39629 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39630 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39633 cat >conftest.$ac_ext <<_ACEOF
39636 cat confdefs.h >>conftest.$ac_ext
39637 cat >>conftest.$ac_ext <<_ACEOF
39638 /* end confdefs.h. */
39639 $ac_includes_default
39640 #include <signal.h>
39646 if ((sig_atomic_t *) 0)
39648 if (sizeof (sig_atomic_t))
39654 rm -f conftest.$ac_objext
39655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39656 (eval $ac_compile) 2>conftest.er1
39658 grep -v '^ *+' conftest.er1 >conftest.err
39660 cat conftest.err >&5
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); } &&
39663 { ac_try='test -z "$ac_c_werror_flag"
39664 || test ! -s conftest.err'
39665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39666 (eval $ac_try) 2>&5
39668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); }; } &&
39670 { ac_try='test -s conftest.$ac_objext'
39671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39672 (eval $ac_try) 2>&5
39674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675 (exit $ac_status); }; }; then
39676 ac_cv_type_sig_atomic_t=yes
39678 echo "$as_me: failed program was:" >&5
39679 sed 's/^/| /' conftest.$ac_ext >&5
39681 ac_cv_type_sig_atomic_t=no
39683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39685 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39686 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39687 if test $ac_cv_type_sig_atomic_t = yes; then
39691 cat >>confdefs.h <<_ACEOF
39692 #define sig_atomic_t int
39698 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39699 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39700 if test "${ac_cv_type_uid_t+set}" = set; then
39701 echo $ECHO_N "(cached) $ECHO_C" >&6
39703 cat >conftest.$ac_ext <<_ACEOF
39706 cat confdefs.h >>conftest.$ac_ext
39707 cat >>conftest.$ac_ext <<_ACEOF
39708 /* end confdefs.h. */
39709 #include <sys/types.h>
39712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39713 $EGREP "uid_t" >/dev/null 2>&1; then
39714 ac_cv_type_uid_t=yes
39716 ac_cv_type_uid_t=no
39721 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39722 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39723 if test $ac_cv_type_uid_t = no; then
39725 cat >>confdefs.h <<\_ACEOF
39730 cat >>confdefs.h <<\_ACEOF
39737 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39738 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39739 if test "${ac_cv_header_time+set}" = set; then
39740 echo $ECHO_N "(cached) $ECHO_C" >&6
39742 cat >conftest.$ac_ext <<_ACEOF
39745 cat confdefs.h >>conftest.$ac_ext
39746 cat >>conftest.$ac_ext <<_ACEOF
39747 /* end confdefs.h. */
39748 #include <sys/types.h>
39749 #include <sys/time.h>
39755 if ((struct tm *) 0)
39761 rm -f conftest.$ac_objext
39762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39763 (eval $ac_compile) 2>conftest.er1
39765 grep -v '^ *+' conftest.er1 >conftest.err
39767 cat conftest.err >&5
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); } &&
39770 { ac_try='test -z "$ac_c_werror_flag"
39771 || test ! -s conftest.err'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; } &&
39777 { ac_try='test -s conftest.$ac_objext'
39778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39779 (eval $ac_try) 2>&5
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); }; }; then
39783 ac_cv_header_time=yes
39785 echo "$as_me: failed program was:" >&5
39786 sed 's/^/| /' conftest.$ac_ext >&5
39788 ac_cv_header_time=no
39790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39792 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39793 echo "${ECHO_T}$ac_cv_header_time" >&6
39794 if test $ac_cv_header_time = yes; then
39796 cat >>confdefs.h <<\_ACEOF
39797 #define TIME_WITH_SYS_TIME 1
39802 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39803 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39804 if test "${ac_cv_struct_tm+set}" = set; then
39805 echo $ECHO_N "(cached) $ECHO_C" >&6
39807 cat >conftest.$ac_ext <<_ACEOF
39810 cat confdefs.h >>conftest.$ac_ext
39811 cat >>conftest.$ac_ext <<_ACEOF
39812 /* end confdefs.h. */
39813 #include <sys/types.h>
39819 struct tm *tp; tp->tm_sec;
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826 (eval $ac_compile) 2>conftest.er1
39828 grep -v '^ *+' conftest.er1 >conftest.err
39830 cat conftest.err >&5
39831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832 (exit $ac_status); } &&
39833 { ac_try='test -z "$ac_c_werror_flag"
39834 || test ! -s conftest.err'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; } &&
39840 { ac_try='test -s conftest.$ac_objext'
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; }; then
39846 ac_cv_struct_tm=time.h
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39851 ac_cv_struct_tm=sys/time.h
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39855 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39856 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39857 if test $ac_cv_struct_tm = sys/time.h; then
39859 cat >>confdefs.h <<\_ACEOF
39860 #define TM_IN_SYS_TIME 1
39865 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39866 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39867 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39868 echo $ECHO_N "(cached) $ECHO_C" >&6
39870 cat >conftest.$ac_ext <<_ACEOF
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h. */
39876 $ac_includes_default
39880 static struct stat ac_aggr;
39881 if (ac_aggr.st_blksize)
39887 rm -f conftest.$ac_objext
39888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39889 (eval $ac_compile) 2>conftest.er1
39891 grep -v '^ *+' conftest.er1 >conftest.err
39893 cat conftest.err >&5
39894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39895 (exit $ac_status); } &&
39896 { ac_try='test -z "$ac_c_werror_flag"
39897 || test ! -s conftest.err'
39898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39899 (eval $ac_try) 2>&5
39901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39902 (exit $ac_status); }; } &&
39903 { ac_try='test -s conftest.$ac_objext'
39904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39905 (eval $ac_try) 2>&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); }; }; then
39909 ac_cv_member_struct_stat_st_blksize=yes
39911 echo "$as_me: failed program was:" >&5
39912 sed 's/^/| /' conftest.$ac_ext >&5
39914 cat >conftest.$ac_ext <<_ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h. */
39920 $ac_includes_default
39924 static struct stat ac_aggr;
39925 if (sizeof ac_aggr.st_blksize)
39931 rm -f conftest.$ac_objext
39932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39933 (eval $ac_compile) 2>conftest.er1
39935 grep -v '^ *+' conftest.er1 >conftest.err
39937 cat conftest.err >&5
39938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939 (exit $ac_status); } &&
39940 { ac_try='test -z "$ac_c_werror_flag"
39941 || test ! -s conftest.err'
39942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39943 (eval $ac_try) 2>&5
39945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39946 (exit $ac_status); }; } &&
39947 { ac_try='test -s conftest.$ac_objext'
39948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39949 (eval $ac_try) 2>&5
39951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952 (exit $ac_status); }; }; then
39953 ac_cv_member_struct_stat_st_blksize=yes
39955 echo "$as_me: failed program was:" >&5
39956 sed 's/^/| /' conftest.$ac_ext >&5
39958 ac_cv_member_struct_stat_st_blksize=no
39960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39965 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39966 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39968 cat >>confdefs.h <<_ACEOF
39969 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39975 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39976 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39977 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39978 echo $ECHO_N "(cached) $ECHO_C" >&6
39980 cat >conftest.$ac_ext <<_ACEOF
39983 cat confdefs.h >>conftest.$ac_ext
39984 cat >>conftest.$ac_ext <<_ACEOF
39985 /* end confdefs.h. */
39986 $ac_includes_default
39992 static struct passwd ac_aggr;
39993 if (ac_aggr.pw_gecos)
39999 rm -f conftest.$ac_objext
40000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40001 (eval $ac_compile) 2>conftest.er1
40003 grep -v '^ *+' conftest.er1 >conftest.err
40005 cat conftest.err >&5
40006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007 (exit $ac_status); } &&
40008 { ac_try='test -z "$ac_c_werror_flag"
40009 || test ! -s conftest.err'
40010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011 (eval $ac_try) 2>&5
40013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014 (exit $ac_status); }; } &&
40015 { ac_try='test -s conftest.$ac_objext'
40016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017 (eval $ac_try) 2>&5
40019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020 (exit $ac_status); }; }; then
40021 ac_cv_member_struct_passwd_pw_gecos=yes
40023 echo "$as_me: failed program was:" >&5
40024 sed 's/^/| /' conftest.$ac_ext >&5
40026 cat >conftest.$ac_ext <<_ACEOF
40029 cat confdefs.h >>conftest.$ac_ext
40030 cat >>conftest.$ac_ext <<_ACEOF
40031 /* end confdefs.h. */
40032 $ac_includes_default
40038 static struct passwd ac_aggr;
40039 if (sizeof ac_aggr.pw_gecos)
40045 rm -f conftest.$ac_objext
40046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40047 (eval $ac_compile) 2>conftest.er1
40049 grep -v '^ *+' conftest.er1 >conftest.err
40051 cat conftest.err >&5
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } &&
40054 { ac_try='test -z "$ac_c_werror_flag"
40055 || test ! -s conftest.err'
40056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40057 (eval $ac_try) 2>&5
40059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40060 (exit $ac_status); }; } &&
40061 { ac_try='test -s conftest.$ac_objext'
40062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063 (eval $ac_try) 2>&5
40065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 (exit $ac_status); }; }; then
40067 ac_cv_member_struct_passwd_pw_gecos=yes
40069 echo "$as_me: failed program was:" >&5
40070 sed 's/^/| /' conftest.$ac_ext >&5
40072 ac_cv_member_struct_passwd_pw_gecos=no
40074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40078 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
40079 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
40080 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
40082 cat >>confdefs.h <<_ACEOF
40083 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
40089 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
40090 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
40091 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
40092 echo $ECHO_N "(cached) $ECHO_C" >&6
40094 cat >conftest.$ac_ext <<_ACEOF
40097 cat confdefs.h >>conftest.$ac_ext
40098 cat >>conftest.$ac_ext <<_ACEOF
40099 /* end confdefs.h. */
40100 $ac_includes_default
40106 static struct passwd ac_aggr;
40107 if (ac_aggr.pw_passwd)
40113 rm -f conftest.$ac_objext
40114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40115 (eval $ac_compile) 2>conftest.er1
40117 grep -v '^ *+' conftest.er1 >conftest.err
40119 cat conftest.err >&5
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); } &&
40122 { ac_try='test -z "$ac_c_werror_flag"
40123 || test ! -s conftest.err'
40124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40125 (eval $ac_try) 2>&5
40127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128 (exit $ac_status); }; } &&
40129 { ac_try='test -s conftest.$ac_objext'
40130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40131 (eval $ac_try) 2>&5
40133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40134 (exit $ac_status); }; }; then
40135 ac_cv_member_struct_passwd_pw_passwd=yes
40137 echo "$as_me: failed program was:" >&5
40138 sed 's/^/| /' conftest.$ac_ext >&5
40140 cat >conftest.$ac_ext <<_ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h. */
40146 $ac_includes_default
40152 static struct passwd ac_aggr;
40153 if (sizeof ac_aggr.pw_passwd)
40159 rm -f conftest.$ac_objext
40160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40161 (eval $ac_compile) 2>conftest.er1
40163 grep -v '^ *+' conftest.er1 >conftest.err
40165 cat conftest.err >&5
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); } &&
40168 { ac_try='test -z "$ac_c_werror_flag"
40169 || test ! -s conftest.err'
40170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171 (eval $ac_try) 2>&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); }; } &&
40175 { ac_try='test -s conftest.$ac_objext'
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; }; then
40181 ac_cv_member_struct_passwd_pw_passwd=yes
40183 echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40186 ac_cv_member_struct_passwd_pw_passwd=no
40188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40193 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40194 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40196 cat >>confdefs.h <<_ACEOF
40197 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40204 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40205 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40206 if test "${ol_cv_c_upper_lower+set}" = set; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40210 if test "$cross_compiling" = yes; then
40211 ol_cv_c_upper_lower=safe
40213 cat >conftest.$ac_ext <<_ACEOF
40216 cat confdefs.h >>conftest.$ac_ext
40217 cat >>conftest.$ac_ext <<_ACEOF
40218 /* end confdefs.h. */
40223 if ('C' == toupper('C'))
40229 rm -f conftest$ac_exeext
40230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40231 (eval $ac_link) 2>&5
40233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; }; then
40240 ol_cv_c_upper_lower=no
40242 echo "$as_me: program exited with status $ac_status" >&5
40243 echo "$as_me: failed program was:" >&5
40244 sed 's/^/| /' conftest.$ac_ext >&5
40246 ( exit $ac_status )
40247 ol_cv_c_upper_lower=yes
40249 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40252 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40253 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40254 if test $ol_cv_c_upper_lower != no ; then
40256 cat >>confdefs.h <<\_ACEOF
40257 #define C_UPPER_LOWER 1
40262 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40263 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40264 if test "${ac_cv_c_const+set}" = set; then
40265 echo $ECHO_N "(cached) $ECHO_C" >&6
40267 cat >conftest.$ac_ext <<_ACEOF
40270 cat confdefs.h >>conftest.$ac_ext
40271 cat >>conftest.$ac_ext <<_ACEOF
40272 /* end confdefs.h. */
40277 /* FIXME: Include the comments suggested by Paul. */
40278 #ifndef __cplusplus
40279 /* Ultrix mips cc rejects this. */
40280 typedef int charset[2];
40282 /* SunOS 4.1.1 cc rejects this. */
40283 char const *const *ccp;
40285 /* NEC SVR4.0.2 mips cc rejects this. */
40286 struct point {int x, y;};
40287 static struct point const zero = {0,0};
40288 /* AIX XL C 1.02.0.0 rejects this.
40289 It does not let you subtract one const X* pointer from another in
40290 an arm of an if-expression whose if-part is not a constant
40292 const char *g = "string";
40293 ccp = &g + (g ? g-g : 0);
40294 /* HPUX 7.0 cc rejects these. */
40297 ccp = (char const *const *) p;
40298 { /* SCO 3.2v4 cc rejects this. */
40300 char const *s = 0 ? (char *) 0 : (char const *) 0;
40304 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
40305 int x[] = {25, 17};
40306 const int *foo = &x[0];
40309 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40310 typedef const int *iptr;
40314 { /* AIX XL C 1.02.0.0 rejects this saying
40315 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40316 struct s { int j; const int *ap[3]; };
40317 struct s *b; b->j = 5;
40319 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40320 const int foo = 10;
40328 rm -f conftest.$ac_objext
40329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40330 (eval $ac_compile) 2>conftest.er1
40332 grep -v '^ *+' conftest.er1 >conftest.err
40334 cat conftest.err >&5
40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336 (exit $ac_status); } &&
40337 { ac_try='test -z "$ac_c_werror_flag"
40338 || test ! -s conftest.err'
40339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340 (eval $ac_try) 2>&5
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); }; } &&
40344 { ac_try='test -s conftest.$ac_objext'
40345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40346 (eval $ac_try) 2>&5
40348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349 (exit $ac_status); }; }; then
40352 echo "$as_me: failed program was:" >&5
40353 sed 's/^/| /' conftest.$ac_ext >&5
40357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40359 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40360 echo "${ECHO_T}$ac_cv_c_const" >&6
40361 if test $ac_cv_c_const = no; then
40363 cat >>confdefs.h <<\_ACEOF
40369 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40370 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40371 if test "${ol_cv_c_volatile+set}" = set; then
40372 echo $ECHO_N "(cached) $ECHO_C" >&6
40374 cat >conftest.$ac_ext <<_ACEOF
40377 cat confdefs.h >>conftest.$ac_ext
40378 cat >>conftest.$ac_ext <<_ACEOF
40379 /* end confdefs.h. */
40384 volatile int a; int * volatile b = x ? &y : &z;
40385 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40391 rm -f conftest.$ac_objext
40392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40393 (eval $ac_compile) 2>conftest.er1
40395 grep -v '^ *+' conftest.er1 >conftest.err
40397 cat conftest.err >&5
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); } &&
40400 { ac_try='test -z "$ac_c_werror_flag"
40401 || test ! -s conftest.err'
40402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40403 (eval $ac_try) 2>&5
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); }; } &&
40407 { ac_try='test -s conftest.$ac_objext'
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; }; then
40413 ol_cv_c_volatile=yes
40415 echo "$as_me: failed program was:" >&5
40416 sed 's/^/| /' conftest.$ac_ext >&5
40418 ol_cv_c_volatile=no
40420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40422 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40423 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40424 if test $ol_cv_c_volatile = yes; then
40428 cat >>confdefs.h <<\_ACEOF
40435 if test $cross_compiling = yes ; then
40436 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40437 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40439 cat >>confdefs.h <<\_ACEOF
40440 #define CROSS_COMPILING 1
40444 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40445 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40446 if test "${ac_cv_c_bigendian+set}" = set; then
40447 echo $ECHO_N "(cached) $ECHO_C" >&6
40449 # See if sys/param.h defines the BYTE_ORDER macro.
40450 cat >conftest.$ac_ext <<_ACEOF
40453 cat confdefs.h >>conftest.$ac_ext
40454 cat >>conftest.$ac_ext <<_ACEOF
40455 /* end confdefs.h. */
40456 #include <sys/types.h>
40457 #include <sys/param.h>
40462 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40463 bogus endian macros
40470 rm -f conftest.$ac_objext
40471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40472 (eval $ac_compile) 2>conftest.er1
40474 grep -v '^ *+' conftest.er1 >conftest.err
40476 cat conftest.err >&5
40477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478 (exit $ac_status); } &&
40479 { ac_try='test -z "$ac_c_werror_flag"
40480 || test ! -s conftest.err'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; } &&
40486 { ac_try='test -s conftest.$ac_objext'
40487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40488 (eval $ac_try) 2>&5
40490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40491 (exit $ac_status); }; }; then
40492 # It does; now see whether it defined to BIG_ENDIAN or not.
40493 cat >conftest.$ac_ext <<_ACEOF
40496 cat confdefs.h >>conftest.$ac_ext
40497 cat >>conftest.$ac_ext <<_ACEOF
40498 /* end confdefs.h. */
40499 #include <sys/types.h>
40500 #include <sys/param.h>
40505 #if BYTE_ORDER != BIG_ENDIAN
40513 rm -f conftest.$ac_objext
40514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40515 (eval $ac_compile) 2>conftest.er1
40517 grep -v '^ *+' conftest.er1 >conftest.err
40519 cat conftest.err >&5
40520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40521 (exit $ac_status); } &&
40522 { ac_try='test -z "$ac_c_werror_flag"
40523 || test ! -s conftest.err'
40524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40525 (eval $ac_try) 2>&5
40527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40528 (exit $ac_status); }; } &&
40529 { ac_try='test -s conftest.$ac_objext'
40530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40531 (eval $ac_try) 2>&5
40533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534 (exit $ac_status); }; }; then
40535 ac_cv_c_bigendian=yes
40537 echo "$as_me: failed program was:" >&5
40538 sed 's/^/| /' conftest.$ac_ext >&5
40540 ac_cv_c_bigendian=no
40542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40544 echo "$as_me: failed program was:" >&5
40545 sed 's/^/| /' conftest.$ac_ext >&5
40547 # It does not; compile a test program.
40548 if test "$cross_compiling" = yes; then
40549 # try to guess the endianness by grepping values into an object file
40550 ac_cv_c_bigendian=unknown
40551 cat >conftest.$ac_ext <<_ACEOF
40554 cat confdefs.h >>conftest.$ac_ext
40555 cat >>conftest.$ac_ext <<_ACEOF
40556 /* end confdefs.h. */
40557 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40558 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40559 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40560 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40561 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40562 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40566 _ascii (); _ebcdic ();
40571 rm -f conftest.$ac_objext
40572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40573 (eval $ac_compile) 2>conftest.er1
40575 grep -v '^ *+' conftest.er1 >conftest.err
40577 cat conftest.err >&5
40578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579 (exit $ac_status); } &&
40580 { ac_try='test -z "$ac_c_werror_flag"
40581 || test ! -s conftest.err'
40582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40583 (eval $ac_try) 2>&5
40585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40586 (exit $ac_status); }; } &&
40587 { ac_try='test -s conftest.$ac_objext'
40588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40589 (eval $ac_try) 2>&5
40591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40592 (exit $ac_status); }; }; then
40593 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40594 ac_cv_c_bigendian=yes
40596 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40597 if test "$ac_cv_c_bigendian" = unknown; then
40598 ac_cv_c_bigendian=no
40600 # finding both strings is unlikely to happen, but who knows?
40601 ac_cv_c_bigendian=unknown
40605 echo "$as_me: failed program was:" >&5
40606 sed 's/^/| /' conftest.$ac_ext >&5
40609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40611 cat >conftest.$ac_ext <<_ACEOF
40614 cat confdefs.h >>conftest.$ac_ext
40615 cat >>conftest.$ac_ext <<_ACEOF
40616 /* end confdefs.h. */
40620 /* Are we little or big endian? From Harbison&Steele. */
40624 char c[sizeof (long)];
40627 exit (u.c[sizeof (long) - 1] == 1);
40630 rm -f conftest$ac_exeext
40631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40632 (eval $ac_link) 2>&5
40634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637 (eval $ac_try) 2>&5
40639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640 (exit $ac_status); }; }; then
40641 ac_cv_c_bigendian=no
40643 echo "$as_me: program exited with status $ac_status" >&5
40644 echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40647 ( exit $ac_status )
40648 ac_cv_c_bigendian=yes
40650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40655 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40656 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40657 case $ac_cv_c_bigendian in
40660 cat >>confdefs.h <<\_ACEOF
40661 #define WORDS_BIGENDIAN 1
40667 { { echo "$as_me:$LINENO: error: unknown endianness
40668 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40669 echo "$as_me: error: unknown endianness
40670 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40671 { (exit 1); exit 1; }; } ;;
40676 echo "$as_me:$LINENO: checking for short" >&5
40677 echo $ECHO_N "checking for short... $ECHO_C" >&6
40678 if test "${ac_cv_type_short+set}" = set; then
40679 echo $ECHO_N "(cached) $ECHO_C" >&6
40681 cat >conftest.$ac_ext <<_ACEOF
40684 cat confdefs.h >>conftest.$ac_ext
40685 cat >>conftest.$ac_ext <<_ACEOF
40686 /* end confdefs.h. */
40687 $ac_includes_default
40693 if (sizeof (short))
40699 rm -f conftest.$ac_objext
40700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40701 (eval $ac_compile) 2>conftest.er1
40703 grep -v '^ *+' conftest.er1 >conftest.err
40705 cat conftest.err >&5
40706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707 (exit $ac_status); } &&
40708 { ac_try='test -z "$ac_c_werror_flag"
40709 || test ! -s conftest.err'
40710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40711 (eval $ac_try) 2>&5
40713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40714 (exit $ac_status); }; } &&
40715 { ac_try='test -s conftest.$ac_objext'
40716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717 (eval $ac_try) 2>&5
40719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720 (exit $ac_status); }; }; then
40721 ac_cv_type_short=yes
40723 echo "$as_me: failed program was:" >&5
40724 sed 's/^/| /' conftest.$ac_ext >&5
40726 ac_cv_type_short=no
40728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40730 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40731 echo "${ECHO_T}$ac_cv_type_short" >&6
40733 echo "$as_me:$LINENO: checking size of short" >&5
40734 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40735 if test "${ac_cv_sizeof_short+set}" = set; then
40736 echo $ECHO_N "(cached) $ECHO_C" >&6
40738 if test "$ac_cv_type_short" = yes; then
40739 # The cast to unsigned long works around a bug in the HP C Compiler
40740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40742 # This bug is HP SR number 8606223364.
40743 if test "$cross_compiling" = yes; then
40744 # Depending upon the size, compute the lo and hi bounds.
40745 cat >conftest.$ac_ext <<_ACEOF
40748 cat confdefs.h >>conftest.$ac_ext
40749 cat >>conftest.$ac_ext <<_ACEOF
40750 /* end confdefs.h. */
40751 $ac_includes_default
40755 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40762 rm -f conftest.$ac_objext
40763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40764 (eval $ac_compile) 2>conftest.er1
40766 grep -v '^ *+' conftest.er1 >conftest.err
40768 cat conftest.err >&5
40769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770 (exit $ac_status); } &&
40771 { ac_try='test -z "$ac_c_werror_flag"
40772 || test ! -s conftest.err'
40773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774 (eval $ac_try) 2>&5
40776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); }; } &&
40778 { ac_try='test -s conftest.$ac_objext'
40779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40780 (eval $ac_try) 2>&5
40782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40783 (exit $ac_status); }; }; then
40786 cat >conftest.$ac_ext <<_ACEOF
40789 cat confdefs.h >>conftest.$ac_ext
40790 cat >>conftest.$ac_ext <<_ACEOF
40791 /* end confdefs.h. */
40792 $ac_includes_default
40796 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40803 rm -f conftest.$ac_objext
40804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40805 (eval $ac_compile) 2>conftest.er1
40807 grep -v '^ *+' conftest.er1 >conftest.err
40809 cat conftest.err >&5
40810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811 (exit $ac_status); } &&
40812 { ac_try='test -z "$ac_c_werror_flag"
40813 || test ! -s conftest.err'
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; } &&
40819 { ac_try='test -s conftest.$ac_objext'
40820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40821 (eval $ac_try) 2>&5
40823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824 (exit $ac_status); }; }; then
40825 ac_hi=$ac_mid; break
40827 echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40830 ac_lo=`expr $ac_mid + 1`
40831 if test $ac_lo -le $ac_mid; then
40835 ac_mid=`expr 2 '*' $ac_mid + 1`
40837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40840 echo "$as_me: failed program was:" >&5
40841 sed 's/^/| /' conftest.$ac_ext >&5
40843 cat >conftest.$ac_ext <<_ACEOF
40846 cat confdefs.h >>conftest.$ac_ext
40847 cat >>conftest.$ac_ext <<_ACEOF
40848 /* end confdefs.h. */
40849 $ac_includes_default
40853 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40860 rm -f conftest.$ac_objext
40861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40862 (eval $ac_compile) 2>conftest.er1
40864 grep -v '^ *+' conftest.er1 >conftest.err
40866 cat conftest.err >&5
40867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868 (exit $ac_status); } &&
40869 { ac_try='test -z "$ac_c_werror_flag"
40870 || test ! -s conftest.err'
40871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40872 (eval $ac_try) 2>&5
40874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875 (exit $ac_status); }; } &&
40876 { ac_try='test -s conftest.$ac_objext'
40877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40878 (eval $ac_try) 2>&5
40880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881 (exit $ac_status); }; }; then
40884 cat >conftest.$ac_ext <<_ACEOF
40887 cat confdefs.h >>conftest.$ac_ext
40888 cat >>conftest.$ac_ext <<_ACEOF
40889 /* end confdefs.h. */
40890 $ac_includes_default
40894 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40901 rm -f conftest.$ac_objext
40902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40903 (eval $ac_compile) 2>conftest.er1
40905 grep -v '^ *+' conftest.er1 >conftest.err
40907 cat conftest.err >&5
40908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909 (exit $ac_status); } &&
40910 { ac_try='test -z "$ac_c_werror_flag"
40911 || test ! -s conftest.err'
40912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40913 (eval $ac_try) 2>&5
40915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40916 (exit $ac_status); }; } &&
40917 { ac_try='test -s conftest.$ac_objext'
40918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40919 (eval $ac_try) 2>&5
40921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40922 (exit $ac_status); }; }; then
40923 ac_lo=$ac_mid; break
40925 echo "$as_me: failed program was:" >&5
40926 sed 's/^/| /' conftest.$ac_ext >&5
40928 ac_hi=`expr '(' $ac_mid ')' - 1`
40929 if test $ac_mid -le $ac_hi; then
40933 ac_mid=`expr 2 '*' $ac_mid`
40935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40938 echo "$as_me: failed program was:" >&5
40939 sed 's/^/| /' conftest.$ac_ext >&5
40943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40946 # Binary search between lo and hi bounds.
40947 while test "x$ac_lo" != "x$ac_hi"; do
40948 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40949 cat >conftest.$ac_ext <<_ACEOF
40952 cat confdefs.h >>conftest.$ac_ext
40953 cat >>conftest.$ac_ext <<_ACEOF
40954 /* end confdefs.h. */
40955 $ac_includes_default
40959 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40966 rm -f conftest.$ac_objext
40967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40968 (eval $ac_compile) 2>conftest.er1
40970 grep -v '^ *+' conftest.er1 >conftest.err
40972 cat conftest.err >&5
40973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } &&
40975 { ac_try='test -z "$ac_c_werror_flag"
40976 || test ! -s conftest.err'
40977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40978 (eval $ac_try) 2>&5
40980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981 (exit $ac_status); }; } &&
40982 { ac_try='test -s conftest.$ac_objext'
40983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984 (eval $ac_try) 2>&5
40986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987 (exit $ac_status); }; }; then
40990 echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40993 ac_lo=`expr '(' $ac_mid ')' + 1`
40995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40998 ?*) ac_cv_sizeof_short=$ac_lo;;
40999 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
41000 See \`config.log' for more details." >&5
41001 echo "$as_me: error: cannot compute sizeof (short), 77
41002 See \`config.log' for more details." >&2;}
41003 { (exit 1); exit 1; }; } ;;
41006 if test "$cross_compiling" = yes; then
41007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41008 See \`config.log' for more details." >&5
41009 echo "$as_me: error: cannot run test program while cross compiling
41010 See \`config.log' for more details." >&2;}
41011 { (exit 1); exit 1; }; }
41013 cat >conftest.$ac_ext <<_ACEOF
41016 cat confdefs.h >>conftest.$ac_ext
41017 cat >>conftest.$ac_ext <<_ACEOF
41018 /* end confdefs.h. */
41019 $ac_includes_default
41020 long longval () { return (long) (sizeof (short)); }
41021 unsigned long ulongval () { return (long) (sizeof (short)); }
41023 #include <stdlib.h>
41028 FILE *f = fopen ("conftest.val", "w");
41031 if (((long) (sizeof (short))) < 0)
41033 long i = longval ();
41034 if (i != ((long) (sizeof (short))))
41036 fprintf (f, "%ld\n", i);
41040 unsigned long i = ulongval ();
41041 if (i != ((long) (sizeof (short))))
41043 fprintf (f, "%lu\n", i);
41045 exit (ferror (f) || fclose (f) != 0);
41051 rm -f conftest$ac_exeext
41052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41053 (eval $ac_link) 2>&5
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41058 (eval $ac_try) 2>&5
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); }; }; then
41062 ac_cv_sizeof_short=`cat conftest.val`
41064 echo "$as_me: program exited with status $ac_status" >&5
41065 echo "$as_me: failed program was:" >&5
41066 sed 's/^/| /' conftest.$ac_ext >&5
41068 ( exit $ac_status )
41069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
41070 See \`config.log' for more details." >&5
41071 echo "$as_me: error: cannot compute sizeof (short), 77
41072 See \`config.log' for more details." >&2;}
41073 { (exit 1); exit 1; }; }
41075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41080 ac_cv_sizeof_short=0
41083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
41084 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
41085 cat >>confdefs.h <<_ACEOF
41086 #define SIZEOF_SHORT $ac_cv_sizeof_short
41090 echo "$as_me:$LINENO: checking for int" >&5
41091 echo $ECHO_N "checking for int... $ECHO_C" >&6
41092 if test "${ac_cv_type_int+set}" = set; then
41093 echo $ECHO_N "(cached) $ECHO_C" >&6
41095 cat >conftest.$ac_ext <<_ACEOF
41098 cat confdefs.h >>conftest.$ac_ext
41099 cat >>conftest.$ac_ext <<_ACEOF
41100 /* end confdefs.h. */
41101 $ac_includes_default
41113 rm -f conftest.$ac_objext
41114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41115 (eval $ac_compile) 2>conftest.er1
41117 grep -v '^ *+' conftest.er1 >conftest.err
41119 cat conftest.err >&5
41120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121 (exit $ac_status); } &&
41122 { ac_try='test -z "$ac_c_werror_flag"
41123 || test ! -s conftest.err'
41124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41125 (eval $ac_try) 2>&5
41127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); }; } &&
41129 { ac_try='test -s conftest.$ac_objext'
41130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131 (eval $ac_try) 2>&5
41133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134 (exit $ac_status); }; }; then
41137 echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41144 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
41145 echo "${ECHO_T}$ac_cv_type_int" >&6
41147 echo "$as_me:$LINENO: checking size of int" >&5
41148 echo $ECHO_N "checking size of int... $ECHO_C" >&6
41149 if test "${ac_cv_sizeof_int+set}" = set; then
41150 echo $ECHO_N "(cached) $ECHO_C" >&6
41152 if test "$ac_cv_type_int" = yes; then
41153 # The cast to unsigned long works around a bug in the HP C Compiler
41154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41156 # This bug is HP SR number 8606223364.
41157 if test "$cross_compiling" = yes; then
41158 # Depending upon the size, compute the lo and hi bounds.
41159 cat >conftest.$ac_ext <<_ACEOF
41162 cat confdefs.h >>conftest.$ac_ext
41163 cat >>conftest.$ac_ext <<_ACEOF
41164 /* end confdefs.h. */
41165 $ac_includes_default
41169 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41176 rm -f conftest.$ac_objext
41177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41178 (eval $ac_compile) 2>conftest.er1
41180 grep -v '^ *+' conftest.er1 >conftest.err
41182 cat conftest.err >&5
41183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184 (exit $ac_status); } &&
41185 { ac_try='test -z "$ac_c_werror_flag"
41186 || test ! -s conftest.err'
41187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41188 (eval $ac_try) 2>&5
41190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191 (exit $ac_status); }; } &&
41192 { ac_try='test -s conftest.$ac_objext'
41193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41194 (eval $ac_try) 2>&5
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); }; }; then
41200 cat >conftest.$ac_ext <<_ACEOF
41203 cat confdefs.h >>conftest.$ac_ext
41204 cat >>conftest.$ac_ext <<_ACEOF
41205 /* end confdefs.h. */
41206 $ac_includes_default
41210 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41217 rm -f conftest.$ac_objext
41218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41219 (eval $ac_compile) 2>conftest.er1
41221 grep -v '^ *+' conftest.er1 >conftest.err
41223 cat conftest.err >&5
41224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225 (exit $ac_status); } &&
41226 { ac_try='test -z "$ac_c_werror_flag"
41227 || test ! -s conftest.err'
41228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41229 (eval $ac_try) 2>&5
41231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); }; } &&
41233 { ac_try='test -s conftest.$ac_objext'
41234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41235 (eval $ac_try) 2>&5
41237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238 (exit $ac_status); }; }; then
41239 ac_hi=$ac_mid; break
41241 echo "$as_me: failed program was:" >&5
41242 sed 's/^/| /' conftest.$ac_ext >&5
41244 ac_lo=`expr $ac_mid + 1`
41245 if test $ac_lo -le $ac_mid; then
41249 ac_mid=`expr 2 '*' $ac_mid + 1`
41251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41254 echo "$as_me: failed program was:" >&5
41255 sed 's/^/| /' conftest.$ac_ext >&5
41257 cat >conftest.$ac_ext <<_ACEOF
41260 cat confdefs.h >>conftest.$ac_ext
41261 cat >>conftest.$ac_ext <<_ACEOF
41262 /* end confdefs.h. */
41263 $ac_includes_default
41267 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41274 rm -f conftest.$ac_objext
41275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41276 (eval $ac_compile) 2>conftest.er1
41278 grep -v '^ *+' conftest.er1 >conftest.err
41280 cat conftest.err >&5
41281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282 (exit $ac_status); } &&
41283 { ac_try='test -z "$ac_c_werror_flag"
41284 || test ! -s conftest.err'
41285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41286 (eval $ac_try) 2>&5
41288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289 (exit $ac_status); }; } &&
41290 { ac_try='test -s conftest.$ac_objext'
41291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41292 (eval $ac_try) 2>&5
41294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295 (exit $ac_status); }; }; then
41298 cat >conftest.$ac_ext <<_ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h. */
41304 $ac_includes_default
41308 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41315 rm -f conftest.$ac_objext
41316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41317 (eval $ac_compile) 2>conftest.er1
41319 grep -v '^ *+' conftest.er1 >conftest.err
41321 cat conftest.err >&5
41322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323 (exit $ac_status); } &&
41324 { ac_try='test -z "$ac_c_werror_flag"
41325 || test ! -s conftest.err'
41326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41327 (eval $ac_try) 2>&5
41329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330 (exit $ac_status); }; } &&
41331 { ac_try='test -s conftest.$ac_objext'
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; }; then
41337 ac_lo=$ac_mid; break
41339 echo "$as_me: failed program was:" >&5
41340 sed 's/^/| /' conftest.$ac_ext >&5
41342 ac_hi=`expr '(' $ac_mid ')' - 1`
41343 if test $ac_mid -le $ac_hi; then
41347 ac_mid=`expr 2 '*' $ac_mid`
41349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41352 echo "$as_me: failed program was:" >&5
41353 sed 's/^/| /' conftest.$ac_ext >&5
41357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41360 # Binary search between lo and hi bounds.
41361 while test "x$ac_lo" != "x$ac_hi"; do
41362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41363 cat >conftest.$ac_ext <<_ACEOF
41366 cat confdefs.h >>conftest.$ac_ext
41367 cat >>conftest.$ac_ext <<_ACEOF
41368 /* end confdefs.h. */
41369 $ac_includes_default
41373 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41380 rm -f conftest.$ac_objext
41381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41382 (eval $ac_compile) 2>conftest.er1
41384 grep -v '^ *+' conftest.er1 >conftest.err
41386 cat conftest.err >&5
41387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41388 (exit $ac_status); } &&
41389 { ac_try='test -z "$ac_c_werror_flag"
41390 || test ! -s conftest.err'
41391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41392 (eval $ac_try) 2>&5
41394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395 (exit $ac_status); }; } &&
41396 { ac_try='test -s conftest.$ac_objext'
41397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41398 (eval $ac_try) 2>&5
41400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41401 (exit $ac_status); }; }; then
41404 echo "$as_me: failed program was:" >&5
41405 sed 's/^/| /' conftest.$ac_ext >&5
41407 ac_lo=`expr '(' $ac_mid ')' + 1`
41409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41412 ?*) ac_cv_sizeof_int=$ac_lo;;
41413 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41414 See \`config.log' for more details." >&5
41415 echo "$as_me: error: cannot compute sizeof (int), 77
41416 See \`config.log' for more details." >&2;}
41417 { (exit 1); exit 1; }; } ;;
41420 if test "$cross_compiling" = yes; then
41421 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41422 See \`config.log' for more details." >&5
41423 echo "$as_me: error: cannot run test program while cross compiling
41424 See \`config.log' for more details." >&2;}
41425 { (exit 1); exit 1; }; }
41427 cat >conftest.$ac_ext <<_ACEOF
41430 cat confdefs.h >>conftest.$ac_ext
41431 cat >>conftest.$ac_ext <<_ACEOF
41432 /* end confdefs.h. */
41433 $ac_includes_default
41434 long longval () { return (long) (sizeof (int)); }
41435 unsigned long ulongval () { return (long) (sizeof (int)); }
41437 #include <stdlib.h>
41442 FILE *f = fopen ("conftest.val", "w");
41445 if (((long) (sizeof (int))) < 0)
41447 long i = longval ();
41448 if (i != ((long) (sizeof (int))))
41450 fprintf (f, "%ld\n", i);
41454 unsigned long i = ulongval ();
41455 if (i != ((long) (sizeof (int))))
41457 fprintf (f, "%lu\n", i);
41459 exit (ferror (f) || fclose (f) != 0);
41465 rm -f conftest$ac_exeext
41466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41467 (eval $ac_link) 2>&5
41469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41472 (eval $ac_try) 2>&5
41474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475 (exit $ac_status); }; }; then
41476 ac_cv_sizeof_int=`cat conftest.val`
41478 echo "$as_me: program exited with status $ac_status" >&5
41479 echo "$as_me: failed program was:" >&5
41480 sed 's/^/| /' conftest.$ac_ext >&5
41482 ( exit $ac_status )
41483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41484 See \`config.log' for more details." >&5
41485 echo "$as_me: error: cannot compute sizeof (int), 77
41486 See \`config.log' for more details." >&2;}
41487 { (exit 1); exit 1; }; }
41489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41497 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41498 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41499 cat >>confdefs.h <<_ACEOF
41500 #define SIZEOF_INT $ac_cv_sizeof_int
41504 echo "$as_me:$LINENO: checking for long" >&5
41505 echo $ECHO_N "checking for long... $ECHO_C" >&6
41506 if test "${ac_cv_type_long+set}" = set; then
41507 echo $ECHO_N "(cached) $ECHO_C" >&6
41509 cat >conftest.$ac_ext <<_ACEOF
41512 cat confdefs.h >>conftest.$ac_ext
41513 cat >>conftest.$ac_ext <<_ACEOF
41514 /* end confdefs.h. */
41515 $ac_includes_default
41527 rm -f conftest.$ac_objext
41528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41529 (eval $ac_compile) 2>conftest.er1
41531 grep -v '^ *+' conftest.er1 >conftest.err
41533 cat conftest.err >&5
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); } &&
41536 { ac_try='test -z "$ac_c_werror_flag"
41537 || test ! -s conftest.err'
41538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41539 (eval $ac_try) 2>&5
41541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542 (exit $ac_status); }; } &&
41543 { ac_try='test -s conftest.$ac_objext'
41544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545 (eval $ac_try) 2>&5
41547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548 (exit $ac_status); }; }; then
41549 ac_cv_type_long=yes
41551 echo "$as_me: failed program was:" >&5
41552 sed 's/^/| /' conftest.$ac_ext >&5
41556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41558 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41559 echo "${ECHO_T}$ac_cv_type_long" >&6
41561 echo "$as_me:$LINENO: checking size of long" >&5
41562 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41563 if test "${ac_cv_sizeof_long+set}" = set; then
41564 echo $ECHO_N "(cached) $ECHO_C" >&6
41566 if test "$ac_cv_type_long" = yes; then
41567 # The cast to unsigned long works around a bug in the HP C Compiler
41568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41570 # This bug is HP SR number 8606223364.
41571 if test "$cross_compiling" = yes; then
41572 # Depending upon the size, compute the lo and hi bounds.
41573 cat >conftest.$ac_ext <<_ACEOF
41576 cat confdefs.h >>conftest.$ac_ext
41577 cat >>conftest.$ac_ext <<_ACEOF
41578 /* end confdefs.h. */
41579 $ac_includes_default
41583 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41590 rm -f conftest.$ac_objext
41591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41592 (eval $ac_compile) 2>conftest.er1
41594 grep -v '^ *+' conftest.er1 >conftest.err
41596 cat conftest.err >&5
41597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41598 (exit $ac_status); } &&
41599 { ac_try='test -z "$ac_c_werror_flag"
41600 || test ! -s conftest.err'
41601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41602 (eval $ac_try) 2>&5
41604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41605 (exit $ac_status); }; } &&
41606 { ac_try='test -s conftest.$ac_objext'
41607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41608 (eval $ac_try) 2>&5
41610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41611 (exit $ac_status); }; }; then
41614 cat >conftest.$ac_ext <<_ACEOF
41617 cat confdefs.h >>conftest.$ac_ext
41618 cat >>conftest.$ac_ext <<_ACEOF
41619 /* end confdefs.h. */
41620 $ac_includes_default
41624 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41631 rm -f conftest.$ac_objext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41633 (eval $ac_compile) 2>conftest.er1
41635 grep -v '^ *+' conftest.er1 >conftest.err
41637 cat conftest.err >&5
41638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639 (exit $ac_status); } &&
41640 { ac_try='test -z "$ac_c_werror_flag"
41641 || test ! -s conftest.err'
41642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643 (eval $ac_try) 2>&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); }; } &&
41647 { ac_try='test -s conftest.$ac_objext'
41648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649 (eval $ac_try) 2>&5
41651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652 (exit $ac_status); }; }; then
41653 ac_hi=$ac_mid; break
41655 echo "$as_me: failed program was:" >&5
41656 sed 's/^/| /' conftest.$ac_ext >&5
41658 ac_lo=`expr $ac_mid + 1`
41659 if test $ac_lo -le $ac_mid; then
41663 ac_mid=`expr 2 '*' $ac_mid + 1`
41665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41668 echo "$as_me: failed program was:" >&5
41669 sed 's/^/| /' conftest.$ac_ext >&5
41671 cat >conftest.$ac_ext <<_ACEOF
41674 cat confdefs.h >>conftest.$ac_ext
41675 cat >>conftest.$ac_ext <<_ACEOF
41676 /* end confdefs.h. */
41677 $ac_includes_default
41681 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41688 rm -f conftest.$ac_objext
41689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41690 (eval $ac_compile) 2>conftest.er1
41692 grep -v '^ *+' conftest.er1 >conftest.err
41694 cat conftest.err >&5
41695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696 (exit $ac_status); } &&
41697 { ac_try='test -z "$ac_c_werror_flag"
41698 || test ! -s conftest.err'
41699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41700 (eval $ac_try) 2>&5
41702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703 (exit $ac_status); }; } &&
41704 { ac_try='test -s conftest.$ac_objext'
41705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706 (eval $ac_try) 2>&5
41708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709 (exit $ac_status); }; }; then
41712 cat >conftest.$ac_ext <<_ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h. */
41718 $ac_includes_default
41722 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41729 rm -f conftest.$ac_objext
41730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41731 (eval $ac_compile) 2>conftest.er1
41733 grep -v '^ *+' conftest.er1 >conftest.err
41735 cat conftest.err >&5
41736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737 (exit $ac_status); } &&
41738 { ac_try='test -z "$ac_c_werror_flag"
41739 || test ! -s conftest.err'
41740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741 (eval $ac_try) 2>&5
41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; } &&
41745 { ac_try='test -s conftest.$ac_objext'
41746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747 (eval $ac_try) 2>&5
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); }; }; then
41751 ac_lo=$ac_mid; break
41753 echo "$as_me: failed program was:" >&5
41754 sed 's/^/| /' conftest.$ac_ext >&5
41756 ac_hi=`expr '(' $ac_mid ')' - 1`
41757 if test $ac_mid -le $ac_hi; then
41761 ac_mid=`expr 2 '*' $ac_mid`
41763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41766 echo "$as_me: failed program was:" >&5
41767 sed 's/^/| /' conftest.$ac_ext >&5
41771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41774 # Binary search between lo and hi bounds.
41775 while test "x$ac_lo" != "x$ac_hi"; do
41776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41777 cat >conftest.$ac_ext <<_ACEOF
41780 cat confdefs.h >>conftest.$ac_ext
41781 cat >>conftest.$ac_ext <<_ACEOF
41782 /* end confdefs.h. */
41783 $ac_includes_default
41787 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41794 rm -f conftest.$ac_objext
41795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41796 (eval $ac_compile) 2>conftest.er1
41798 grep -v '^ *+' conftest.er1 >conftest.err
41800 cat conftest.err >&5
41801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802 (exit $ac_status); } &&
41803 { ac_try='test -z "$ac_c_werror_flag"
41804 || test ! -s conftest.err'
41805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41806 (eval $ac_try) 2>&5
41808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41809 (exit $ac_status); }; } &&
41810 { ac_try='test -s conftest.$ac_objext'
41811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41812 (eval $ac_try) 2>&5
41814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41815 (exit $ac_status); }; }; then
41818 echo "$as_me: failed program was:" >&5
41819 sed 's/^/| /' conftest.$ac_ext >&5
41821 ac_lo=`expr '(' $ac_mid ')' + 1`
41823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41826 ?*) ac_cv_sizeof_long=$ac_lo;;
41827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41828 See \`config.log' for more details." >&5
41829 echo "$as_me: error: cannot compute sizeof (long), 77
41830 See \`config.log' for more details." >&2;}
41831 { (exit 1); exit 1; }; } ;;
41834 if test "$cross_compiling" = yes; then
41835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41836 See \`config.log' for more details." >&5
41837 echo "$as_me: error: cannot run test program while cross compiling
41838 See \`config.log' for more details." >&2;}
41839 { (exit 1); exit 1; }; }
41841 cat >conftest.$ac_ext <<_ACEOF
41844 cat confdefs.h >>conftest.$ac_ext
41845 cat >>conftest.$ac_ext <<_ACEOF
41846 /* end confdefs.h. */
41847 $ac_includes_default
41848 long longval () { return (long) (sizeof (long)); }
41849 unsigned long ulongval () { return (long) (sizeof (long)); }
41851 #include <stdlib.h>
41856 FILE *f = fopen ("conftest.val", "w");
41859 if (((long) (sizeof (long))) < 0)
41861 long i = longval ();
41862 if (i != ((long) (sizeof (long))))
41864 fprintf (f, "%ld\n", i);
41868 unsigned long i = ulongval ();
41869 if (i != ((long) (sizeof (long))))
41871 fprintf (f, "%lu\n", i);
41873 exit (ferror (f) || fclose (f) != 0);
41879 rm -f conftest$ac_exeext
41880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41881 (eval $ac_link) 2>&5
41883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41886 (eval $ac_try) 2>&5
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); }; }; then
41890 ac_cv_sizeof_long=`cat conftest.val`
41892 echo "$as_me: program exited with status $ac_status" >&5
41893 echo "$as_me: failed program was:" >&5
41894 sed 's/^/| /' conftest.$ac_ext >&5
41896 ( exit $ac_status )
41897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41898 See \`config.log' for more details." >&5
41899 echo "$as_me: error: cannot compute sizeof (long), 77
41900 See \`config.log' for more details." >&2;}
41901 { (exit 1); exit 1; }; }
41903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41908 ac_cv_sizeof_long=0
41911 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41912 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41913 cat >>confdefs.h <<_ACEOF
41914 #define SIZEOF_LONG $ac_cv_sizeof_long
41918 echo "$as_me:$LINENO: checking for wchar_t" >&5
41919 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41920 if test "${ac_cv_type_wchar_t+set}" = set; then
41921 echo $ECHO_N "(cached) $ECHO_C" >&6
41923 cat >conftest.$ac_ext <<_ACEOF
41926 cat confdefs.h >>conftest.$ac_ext
41927 cat >>conftest.$ac_ext <<_ACEOF
41928 /* end confdefs.h. */
41929 $ac_includes_default
41935 if (sizeof (wchar_t))
41941 rm -f conftest.$ac_objext
41942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41943 (eval $ac_compile) 2>conftest.er1
41945 grep -v '^ *+' conftest.er1 >conftest.err
41947 cat conftest.err >&5
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); } &&
41950 { ac_try='test -z "$ac_c_werror_flag"
41951 || test ! -s conftest.err'
41952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41953 (eval $ac_try) 2>&5
41955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41956 (exit $ac_status); }; } &&
41957 { ac_try='test -s conftest.$ac_objext'
41958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959 (eval $ac_try) 2>&5
41961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962 (exit $ac_status); }; }; then
41963 ac_cv_type_wchar_t=yes
41965 echo "$as_me: failed program was:" >&5
41966 sed 's/^/| /' conftest.$ac_ext >&5
41968 ac_cv_type_wchar_t=no
41970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41972 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41973 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41975 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41976 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41977 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41978 echo $ECHO_N "(cached) $ECHO_C" >&6
41980 if test "$ac_cv_type_wchar_t" = yes; then
41981 # The cast to unsigned long works around a bug in the HP C Compiler
41982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41984 # This bug is HP SR number 8606223364.
41985 if test "$cross_compiling" = yes; then
41986 # Depending upon the size, compute the lo and hi bounds.
41987 cat >conftest.$ac_ext <<_ACEOF
41990 cat confdefs.h >>conftest.$ac_ext
41991 cat >>conftest.$ac_ext <<_ACEOF
41992 /* end confdefs.h. */
41993 $ac_includes_default
41997 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
42004 rm -f conftest.$ac_objext
42005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42006 (eval $ac_compile) 2>conftest.er1
42008 grep -v '^ *+' conftest.er1 >conftest.err
42010 cat conftest.err >&5
42011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012 (exit $ac_status); } &&
42013 { ac_try='test -z "$ac_c_werror_flag"
42014 || test ! -s conftest.err'
42015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42016 (eval $ac_try) 2>&5
42018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019 (exit $ac_status); }; } &&
42020 { ac_try='test -s conftest.$ac_objext'
42021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42022 (eval $ac_try) 2>&5
42024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); }; }; then
42028 cat >conftest.$ac_ext <<_ACEOF
42031 cat confdefs.h >>conftest.$ac_ext
42032 cat >>conftest.$ac_ext <<_ACEOF
42033 /* end confdefs.h. */
42034 $ac_includes_default
42038 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42045 rm -f conftest.$ac_objext
42046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42047 (eval $ac_compile) 2>conftest.er1
42049 grep -v '^ *+' conftest.er1 >conftest.err
42051 cat conftest.err >&5
42052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053 (exit $ac_status); } &&
42054 { ac_try='test -z "$ac_c_werror_flag"
42055 || test ! -s conftest.err'
42056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057 (eval $ac_try) 2>&5
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); }; } &&
42061 { ac_try='test -s conftest.$ac_objext'
42062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063 (eval $ac_try) 2>&5
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; }; then
42067 ac_hi=$ac_mid; break
42069 echo "$as_me: failed program was:" >&5
42070 sed 's/^/| /' conftest.$ac_ext >&5
42072 ac_lo=`expr $ac_mid + 1`
42073 if test $ac_lo -le $ac_mid; then
42077 ac_mid=`expr 2 '*' $ac_mid + 1`
42079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42082 echo "$as_me: failed program was:" >&5
42083 sed 's/^/| /' conftest.$ac_ext >&5
42085 cat >conftest.$ac_ext <<_ACEOF
42088 cat confdefs.h >>conftest.$ac_ext
42089 cat >>conftest.$ac_ext <<_ACEOF
42090 /* end confdefs.h. */
42091 $ac_includes_default
42095 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
42102 rm -f conftest.$ac_objext
42103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42104 (eval $ac_compile) 2>conftest.er1
42106 grep -v '^ *+' conftest.er1 >conftest.err
42108 cat conftest.err >&5
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); } &&
42111 { ac_try='test -z "$ac_c_werror_flag"
42112 || test ! -s conftest.err'
42113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42114 (eval $ac_try) 2>&5
42116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42117 (exit $ac_status); }; } &&
42118 { ac_try='test -s conftest.$ac_objext'
42119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42120 (eval $ac_try) 2>&5
42122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42123 (exit $ac_status); }; }; then
42126 cat >conftest.$ac_ext <<_ACEOF
42129 cat confdefs.h >>conftest.$ac_ext
42130 cat >>conftest.$ac_ext <<_ACEOF
42131 /* end confdefs.h. */
42132 $ac_includes_default
42136 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
42143 rm -f conftest.$ac_objext
42144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42145 (eval $ac_compile) 2>conftest.er1
42147 grep -v '^ *+' conftest.er1 >conftest.err
42149 cat conftest.err >&5
42150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151 (exit $ac_status); } &&
42152 { ac_try='test -z "$ac_c_werror_flag"
42153 || test ! -s conftest.err'
42154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42155 (eval $ac_try) 2>&5
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); }; } &&
42159 { ac_try='test -s conftest.$ac_objext'
42160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42161 (eval $ac_try) 2>&5
42163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42164 (exit $ac_status); }; }; then
42165 ac_lo=$ac_mid; break
42167 echo "$as_me: failed program was:" >&5
42168 sed 's/^/| /' conftest.$ac_ext >&5
42170 ac_hi=`expr '(' $ac_mid ')' - 1`
42171 if test $ac_mid -le $ac_hi; then
42175 ac_mid=`expr 2 '*' $ac_mid`
42177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42180 echo "$as_me: failed program was:" >&5
42181 sed 's/^/| /' conftest.$ac_ext >&5
42185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42188 # Binary search between lo and hi bounds.
42189 while test "x$ac_lo" != "x$ac_hi"; do
42190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42191 cat >conftest.$ac_ext <<_ACEOF
42194 cat confdefs.h >>conftest.$ac_ext
42195 cat >>conftest.$ac_ext <<_ACEOF
42196 /* end confdefs.h. */
42197 $ac_includes_default
42201 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42208 rm -f conftest.$ac_objext
42209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42210 (eval $ac_compile) 2>conftest.er1
42212 grep -v '^ *+' conftest.er1 >conftest.err
42214 cat conftest.err >&5
42215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216 (exit $ac_status); } &&
42217 { ac_try='test -z "$ac_c_werror_flag"
42218 || test ! -s conftest.err'
42219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220 (eval $ac_try) 2>&5
42222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223 (exit $ac_status); }; } &&
42224 { ac_try='test -s conftest.$ac_objext'
42225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226 (eval $ac_try) 2>&5
42228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229 (exit $ac_status); }; }; then
42232 echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42235 ac_lo=`expr '(' $ac_mid ')' + 1`
42237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42240 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42241 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42242 See \`config.log' for more details." >&5
42243 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42244 See \`config.log' for more details." >&2;}
42245 { (exit 1); exit 1; }; } ;;
42248 if test "$cross_compiling" = yes; then
42249 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42250 See \`config.log' for more details." >&5
42251 echo "$as_me: error: cannot run test program while cross compiling
42252 See \`config.log' for more details." >&2;}
42253 { (exit 1); exit 1; }; }
42255 cat >conftest.$ac_ext <<_ACEOF
42258 cat confdefs.h >>conftest.$ac_ext
42259 cat >>conftest.$ac_ext <<_ACEOF
42260 /* end confdefs.h. */
42261 $ac_includes_default
42262 long longval () { return (long) (sizeof (wchar_t)); }
42263 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42265 #include <stdlib.h>
42270 FILE *f = fopen ("conftest.val", "w");
42273 if (((long) (sizeof (wchar_t))) < 0)
42275 long i = longval ();
42276 if (i != ((long) (sizeof (wchar_t))))
42278 fprintf (f, "%ld\n", i);
42282 unsigned long i = ulongval ();
42283 if (i != ((long) (sizeof (wchar_t))))
42285 fprintf (f, "%lu\n", i);
42287 exit (ferror (f) || fclose (f) != 0);
42293 rm -f conftest$ac_exeext
42294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42295 (eval $ac_link) 2>&5
42297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42300 (eval $ac_try) 2>&5
42302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42303 (exit $ac_status); }; }; then
42304 ac_cv_sizeof_wchar_t=`cat conftest.val`
42306 echo "$as_me: program exited with status $ac_status" >&5
42307 echo "$as_me: failed program was:" >&5
42308 sed 's/^/| /' conftest.$ac_ext >&5
42310 ( exit $ac_status )
42311 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42312 See \`config.log' for more details." >&5
42313 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42314 See \`config.log' for more details." >&2;}
42315 { (exit 1); exit 1; }; }
42317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42322 ac_cv_sizeof_wchar_t=0
42325 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42326 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42327 cat >>confdefs.h <<_ACEOF
42328 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42333 if test "$ac_cv_sizeof_int" -lt 4 ; then
42334 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42335 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42338 cat >>confdefs.h <<\_ACEOF
42339 #define LBER_INT_T long
42344 cat >>confdefs.h <<\_ACEOF
42345 #define LBER_INT_T int
42351 cat >>confdefs.h <<\_ACEOF
42352 #define LBER_LEN_T long
42356 cat >>confdefs.h <<\_ACEOF
42357 #define LBER_SOCKET_T int
42361 cat >>confdefs.h <<\_ACEOF
42362 #define LBER_TAG_T long
42366 echo "$as_me:$LINENO: checking for working memcmp" >&5
42367 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42368 if test "${ac_cv_func_memcmp_working+set}" = set; then
42369 echo $ECHO_N "(cached) $ECHO_C" >&6
42371 if test "$cross_compiling" = yes; then
42372 ac_cv_func_memcmp_working=no
42374 cat >conftest.$ac_ext <<_ACEOF
42377 cat confdefs.h >>conftest.$ac_ext
42378 cat >>conftest.$ac_ext <<_ACEOF
42379 /* end confdefs.h. */
42380 $ac_includes_default
42385 /* Some versions of memcmp are not 8-bit clean. */
42386 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42387 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42390 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42391 or more and with at least one buffer not starting on a 4-byte boundary.
42392 William Lewis provided this test program. */
42397 for (i = 0; i < 4; i++)
42401 strcpy (a, "--------01111111");
42402 strcpy (b, "--------10000000");
42403 if (memcmp (a, b, 16) >= 0)
42413 rm -f conftest$ac_exeext
42414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42415 (eval $ac_link) 2>&5
42417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42420 (eval $ac_try) 2>&5
42422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42423 (exit $ac_status); }; }; then
42424 ac_cv_func_memcmp_working=yes
42426 echo "$as_me: program exited with status $ac_status" >&5
42427 echo "$as_me: failed program was:" >&5
42428 sed 's/^/| /' conftest.$ac_ext >&5
42430 ( exit $ac_status )
42431 ac_cv_func_memcmp_working=no
42433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42436 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42437 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42438 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42439 "memcmp.$ac_objext" | \
42440 *" memcmp.$ac_objext" | \
42441 "memcmp.$ac_objext "* | \
42442 *" memcmp.$ac_objext "* ) ;;
42443 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42448 if test $ac_cv_func_memcmp_working = no ; then
42450 cat >>confdefs.h <<\_ACEOF
42451 #define NEED_MEMCMP_REPLACEMENT 1
42457 for ac_func in strftime
42459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42460 echo "$as_me:$LINENO: checking for $ac_func" >&5
42461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42462 if eval "test \"\${$as_ac_var+set}\" = set"; then
42463 echo $ECHO_N "(cached) $ECHO_C" >&6
42465 cat >conftest.$ac_ext <<_ACEOF
42468 cat confdefs.h >>conftest.$ac_ext
42469 cat >>conftest.$ac_ext <<_ACEOF
42470 /* end confdefs.h. */
42471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42473 #define $ac_func innocuous_$ac_func
42475 /* System header to define __stub macros and hopefully few prototypes,
42476 which can conflict with char $ac_func (); below.
42477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42478 <limits.h> exists even on freestanding compilers. */
42481 # include <limits.h>
42483 # include <assert.h>
42488 /* Override any gcc2 internal prototype to avoid an error. */
42493 /* We use char because int might match the return type of a gcc2
42494 builtin and then its argument prototype would still apply. */
42496 /* The GNU C library defines this for functions which it implements
42497 to always fail with ENOSYS. Some functions are actually named
42498 something starting with __ and the normal name is an alias. */
42499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42502 char (*f) () = $ac_func;
42511 return f != $ac_func;
42516 rm -f conftest.$ac_objext conftest$ac_exeext
42517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42518 (eval $ac_link) 2>conftest.er1
42520 grep -v '^ *+' conftest.er1 >conftest.err
42522 cat conftest.err >&5
42523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); } &&
42525 { ac_try='test -z "$ac_c_werror_flag"
42526 || test ! -s conftest.err'
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; } &&
42532 { ac_try='test -s conftest$ac_exeext'
42533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534 (eval $ac_try) 2>&5
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); }; }; then
42538 eval "$as_ac_var=yes"
42540 echo "$as_me: failed program was:" >&5
42541 sed 's/^/| /' conftest.$ac_ext >&5
42543 eval "$as_ac_var=no"
42545 rm -f conftest.err conftest.$ac_objext \
42546 conftest$ac_exeext conftest.$ac_ext
42548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42550 if test `eval echo '${'$as_ac_var'}'` = yes; then
42551 cat >>confdefs.h <<_ACEOF
42552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42556 # strftime is in -lintl on SCO UNIX.
42557 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42558 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42559 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42560 echo $ECHO_N "(cached) $ECHO_C" >&6
42562 ac_check_lib_save_LIBS=$LIBS
42563 LIBS="-lintl $LIBS"
42564 cat >conftest.$ac_ext <<_ACEOF
42567 cat confdefs.h >>conftest.$ac_ext
42568 cat >>conftest.$ac_ext <<_ACEOF
42569 /* end confdefs.h. */
42571 /* Override any gcc2 internal prototype to avoid an error. */
42575 /* We use char because int might match the return type of a gcc2
42576 builtin and then its argument prototype would still apply. */
42586 rm -f conftest.$ac_objext conftest$ac_exeext
42587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42588 (eval $ac_link) 2>conftest.er1
42590 grep -v '^ *+' conftest.er1 >conftest.err
42592 cat conftest.err >&5
42593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594 (exit $ac_status); } &&
42595 { ac_try='test -z "$ac_c_werror_flag"
42596 || test ! -s conftest.err'
42597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42598 (eval $ac_try) 2>&5
42600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601 (exit $ac_status); }; } &&
42602 { ac_try='test -s conftest$ac_exeext'
42603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42604 (eval $ac_try) 2>&5
42606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607 (exit $ac_status); }; }; then
42608 ac_cv_lib_intl_strftime=yes
42610 echo "$as_me: failed program was:" >&5
42611 sed 's/^/| /' conftest.$ac_ext >&5
42613 ac_cv_lib_intl_strftime=no
42615 rm -f conftest.err conftest.$ac_objext \
42616 conftest$ac_exeext conftest.$ac_ext
42617 LIBS=$ac_check_lib_save_LIBS
42619 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42620 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42621 if test $ac_cv_lib_intl_strftime = yes; then
42622 cat >>confdefs.h <<\_ACEOF
42623 #define HAVE_STRFTIME 1
42626 LIBS="-lintl $LIBS"
42633 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42634 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42635 if test "${ol_cv_func_inet_aton+set}" = set; then
42636 echo $ECHO_N "(cached) $ECHO_C" >&6
42638 cat >conftest.$ac_ext <<_ACEOF
42641 cat confdefs.h >>conftest.$ac_ext
42642 cat >>conftest.$ac_ext <<_ACEOF
42643 /* end confdefs.h. */
42645 #ifdef HAVE_SYS_TYPES_H
42646 # include <sys/types.h>
42648 #ifdef HAVE_SYS_SOCKET_H
42649 # include <sys/socket.h>
42650 # ifdef HAVE_SYS_SELECT_H
42651 # include <sys/select.h>
42653 # include <netinet/in.h>
42654 # ifdef HAVE_ARPA_INET_H
42655 # include <arpa/inet.h>
42663 int rc = inet_aton( "255.255.255.255", &in );
42668 rm -f conftest.$ac_objext conftest$ac_exeext
42669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42670 (eval $ac_link) 2>conftest.er1
42672 grep -v '^ *+' conftest.er1 >conftest.err
42674 cat conftest.err >&5
42675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42676 (exit $ac_status); } &&
42677 { ac_try='test -z "$ac_c_werror_flag"
42678 || test ! -s conftest.err'
42679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42680 (eval $ac_try) 2>&5
42682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42683 (exit $ac_status); }; } &&
42684 { ac_try='test -s conftest$ac_exeext'
42685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42686 (eval $ac_try) 2>&5
42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689 (exit $ac_status); }; }; then
42690 ol_cv_func_inet_aton=yes
42692 echo "$as_me: failed program was:" >&5
42693 sed 's/^/| /' conftest.$ac_ext >&5
42695 ol_cv_func_inet_aton=no
42697 rm -f conftest.err conftest.$ac_objext \
42698 conftest$ac_exeext conftest.$ac_ext
42700 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42701 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42702 if test $ol_cv_func_inet_aton != no; then
42704 cat >>confdefs.h <<\_ACEOF
42705 #define HAVE_INET_ATON 1
42711 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42712 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42713 if test "${ac_cv_func__spawnlp+set}" = set; then
42714 echo $ECHO_N "(cached) $ECHO_C" >&6
42716 cat >conftest.$ac_ext <<_ACEOF
42719 cat confdefs.h >>conftest.$ac_ext
42720 cat >>conftest.$ac_ext <<_ACEOF
42721 /* end confdefs.h. */
42722 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42724 #define _spawnlp innocuous__spawnlp
42726 /* System header to define __stub macros and hopefully few prototypes,
42727 which can conflict with char _spawnlp (); below.
42728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42729 <limits.h> exists even on freestanding compilers. */
42732 # include <limits.h>
42734 # include <assert.h>
42739 /* Override any gcc2 internal prototype to avoid an error. */
42744 /* We use char because int might match the return type of a gcc2
42745 builtin and then its argument prototype would still apply. */
42747 /* The GNU C library defines this for functions which it implements
42748 to always fail with ENOSYS. Some functions are actually named
42749 something starting with __ and the normal name is an alias. */
42750 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42753 char (*f) () = _spawnlp;
42762 return f != _spawnlp;
42767 rm -f conftest.$ac_objext conftest$ac_exeext
42768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42769 (eval $ac_link) 2>conftest.er1
42771 grep -v '^ *+' conftest.er1 >conftest.err
42773 cat conftest.err >&5
42774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42775 (exit $ac_status); } &&
42776 { ac_try='test -z "$ac_c_werror_flag"
42777 || test ! -s conftest.err'
42778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42779 (eval $ac_try) 2>&5
42781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); }; } &&
42783 { ac_try='test -s conftest$ac_exeext'
42784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42785 (eval $ac_try) 2>&5
42787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42788 (exit $ac_status); }; }; then
42789 ac_cv_func__spawnlp=yes
42791 echo "$as_me: failed program was:" >&5
42792 sed 's/^/| /' conftest.$ac_ext >&5
42794 ac_cv_func__spawnlp=no
42796 rm -f conftest.err conftest.$ac_objext \
42797 conftest$ac_exeext conftest.$ac_ext
42799 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42800 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42801 if test $ac_cv_func__spawnlp = yes; then
42803 cat >>confdefs.h <<\_ACEOF
42804 #define HAVE_SPAWNLP 1
42810 echo "$as_me:$LINENO: checking for _snprintf" >&5
42811 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42812 if test "${ac_cv_func__snprintf+set}" = set; then
42813 echo $ECHO_N "(cached) $ECHO_C" >&6
42815 cat >conftest.$ac_ext <<_ACEOF
42818 cat confdefs.h >>conftest.$ac_ext
42819 cat >>conftest.$ac_ext <<_ACEOF
42820 /* end confdefs.h. */
42821 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42823 #define _snprintf innocuous__snprintf
42825 /* System header to define __stub macros and hopefully few prototypes,
42826 which can conflict with char _snprintf (); below.
42827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42828 <limits.h> exists even on freestanding compilers. */
42831 # include <limits.h>
42833 # include <assert.h>
42838 /* Override any gcc2 internal prototype to avoid an error. */
42843 /* We use char because int might match the return type of a gcc2
42844 builtin and then its argument prototype would still apply. */
42846 /* The GNU C library defines this for functions which it implements
42847 to always fail with ENOSYS. Some functions are actually named
42848 something starting with __ and the normal name is an alias. */
42849 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42852 char (*f) () = _snprintf;
42861 return f != _snprintf;
42866 rm -f conftest.$ac_objext conftest$ac_exeext
42867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42868 (eval $ac_link) 2>conftest.er1
42870 grep -v '^ *+' conftest.er1 >conftest.err
42872 cat conftest.err >&5
42873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42874 (exit $ac_status); } &&
42875 { ac_try='test -z "$ac_c_werror_flag"
42876 || test ! -s conftest.err'
42877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878 (eval $ac_try) 2>&5
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); }; } &&
42882 { ac_try='test -s conftest$ac_exeext'
42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42884 (eval $ac_try) 2>&5
42886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; }; then
42888 ac_cv_func__snprintf=yes
42890 echo "$as_me: failed program was:" >&5
42891 sed 's/^/| /' conftest.$ac_ext >&5
42893 ac_cv_func__snprintf=no
42895 rm -f conftest.err conftest.$ac_objext \
42896 conftest$ac_exeext conftest.$ac_ext
42898 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42899 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42900 if test $ac_cv_func__snprintf = yes; then
42901 ac_cv_func_snprintf=yes
42903 cat >>confdefs.h <<\_ACEOF
42904 #define snprintf _snprintf
42911 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42912 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42913 if test "${ac_cv_func__vsnprintf+set}" = set; then
42914 echo $ECHO_N "(cached) $ECHO_C" >&6
42916 cat >conftest.$ac_ext <<_ACEOF
42919 cat confdefs.h >>conftest.$ac_ext
42920 cat >>conftest.$ac_ext <<_ACEOF
42921 /* end confdefs.h. */
42922 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42924 #define _vsnprintf innocuous__vsnprintf
42926 /* System header to define __stub macros and hopefully few prototypes,
42927 which can conflict with char _vsnprintf (); below.
42928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42929 <limits.h> exists even on freestanding compilers. */
42932 # include <limits.h>
42934 # include <assert.h>
42939 /* Override any gcc2 internal prototype to avoid an error. */
42944 /* We use char because int might match the return type of a gcc2
42945 builtin and then its argument prototype would still apply. */
42946 char _vsnprintf ();
42947 /* The GNU C library defines this for functions which it implements
42948 to always fail with ENOSYS. Some functions are actually named
42949 something starting with __ and the normal name is an alias. */
42950 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42953 char (*f) () = _vsnprintf;
42962 return f != _vsnprintf;
42967 rm -f conftest.$ac_objext conftest$ac_exeext
42968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42969 (eval $ac_link) 2>conftest.er1
42971 grep -v '^ *+' conftest.er1 >conftest.err
42973 cat conftest.err >&5
42974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); } &&
42976 { ac_try='test -z "$ac_c_werror_flag"
42977 || test ! -s conftest.err'
42978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42979 (eval $ac_try) 2>&5
42981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42982 (exit $ac_status); }; } &&
42983 { ac_try='test -s conftest$ac_exeext'
42984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42985 (eval $ac_try) 2>&5
42987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42988 (exit $ac_status); }; }; then
42989 ac_cv_func__vsnprintf=yes
42991 echo "$as_me: failed program was:" >&5
42992 sed 's/^/| /' conftest.$ac_ext >&5
42994 ac_cv_func__vsnprintf=no
42996 rm -f conftest.err conftest.$ac_objext \
42997 conftest$ac_exeext conftest.$ac_ext
42999 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
43000 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
43001 if test $ac_cv_func__vsnprintf = yes; then
43002 ac_cv_func_vsnprintf=yes
43004 cat >>confdefs.h <<\_ACEOF
43005 #define vsnprintf _vsnprintf
43013 for ac_func in vprintf
43015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43016 echo "$as_me:$LINENO: checking for $ac_func" >&5
43017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43018 if eval "test \"\${$as_ac_var+set}\" = set"; then
43019 echo $ECHO_N "(cached) $ECHO_C" >&6
43021 cat >conftest.$ac_ext <<_ACEOF
43024 cat confdefs.h >>conftest.$ac_ext
43025 cat >>conftest.$ac_ext <<_ACEOF
43026 /* end confdefs.h. */
43027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43029 #define $ac_func innocuous_$ac_func
43031 /* System header to define __stub macros and hopefully few prototypes,
43032 which can conflict with char $ac_func (); below.
43033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43034 <limits.h> exists even on freestanding compilers. */
43037 # include <limits.h>
43039 # include <assert.h>
43044 /* Override any gcc2 internal prototype to avoid an error. */
43049 /* We use char because int might match the return type of a gcc2
43050 builtin and then its argument prototype would still apply. */
43052 /* The GNU C library defines this for functions which it implements
43053 to always fail with ENOSYS. Some functions are actually named
43054 something starting with __ and the normal name is an alias. */
43055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43058 char (*f) () = $ac_func;
43067 return f != $ac_func;
43072 rm -f conftest.$ac_objext conftest$ac_exeext
43073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43074 (eval $ac_link) 2>conftest.er1
43076 grep -v '^ *+' conftest.er1 >conftest.err
43078 cat conftest.err >&5
43079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43080 (exit $ac_status); } &&
43081 { ac_try='test -z "$ac_c_werror_flag"
43082 || test ! -s conftest.err'
43083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43084 (eval $ac_try) 2>&5
43086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087 (exit $ac_status); }; } &&
43088 { ac_try='test -s conftest$ac_exeext'
43089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43090 (eval $ac_try) 2>&5
43092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093 (exit $ac_status); }; }; then
43094 eval "$as_ac_var=yes"
43096 echo "$as_me: failed program was:" >&5
43097 sed 's/^/| /' conftest.$ac_ext >&5
43099 eval "$as_ac_var=no"
43101 rm -f conftest.err conftest.$ac_objext \
43102 conftest$ac_exeext conftest.$ac_ext
43104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43106 if test `eval echo '${'$as_ac_var'}'` = yes; then
43107 cat >>confdefs.h <<_ACEOF
43108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43111 echo "$as_me:$LINENO: checking for _doprnt" >&5
43112 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
43113 if test "${ac_cv_func__doprnt+set}" = set; then
43114 echo $ECHO_N "(cached) $ECHO_C" >&6
43116 cat >conftest.$ac_ext <<_ACEOF
43119 cat confdefs.h >>conftest.$ac_ext
43120 cat >>conftest.$ac_ext <<_ACEOF
43121 /* end confdefs.h. */
43122 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
43123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43124 #define _doprnt innocuous__doprnt
43126 /* System header to define __stub macros and hopefully few prototypes,
43127 which can conflict with char _doprnt (); below.
43128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43129 <limits.h> exists even on freestanding compilers. */
43132 # include <limits.h>
43134 # include <assert.h>
43139 /* Override any gcc2 internal prototype to avoid an error. */
43144 /* We use char because int might match the return type of a gcc2
43145 builtin and then its argument prototype would still apply. */
43147 /* The GNU C library defines this for functions which it implements
43148 to always fail with ENOSYS. Some functions are actually named
43149 something starting with __ and the normal name is an alias. */
43150 #if defined (__stub__doprnt) || defined (__stub____doprnt)
43153 char (*f) () = _doprnt;
43162 return f != _doprnt;
43167 rm -f conftest.$ac_objext conftest$ac_exeext
43168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43169 (eval $ac_link) 2>conftest.er1
43171 grep -v '^ *+' conftest.er1 >conftest.err
43173 cat conftest.err >&5
43174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43175 (exit $ac_status); } &&
43176 { ac_try='test -z "$ac_c_werror_flag"
43177 || test ! -s conftest.err'
43178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43179 (eval $ac_try) 2>&5
43181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182 (exit $ac_status); }; } &&
43183 { ac_try='test -s conftest$ac_exeext'
43184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43185 (eval $ac_try) 2>&5
43187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188 (exit $ac_status); }; }; then
43189 ac_cv_func__doprnt=yes
43191 echo "$as_me: failed program was:" >&5
43192 sed 's/^/| /' conftest.$ac_ext >&5
43194 ac_cv_func__doprnt=no
43196 rm -f conftest.err conftest.$ac_objext \
43197 conftest$ac_exeext conftest.$ac_ext
43199 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43200 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43201 if test $ac_cv_func__doprnt = yes; then
43203 cat >>confdefs.h <<\_ACEOF
43204 #define HAVE_DOPRNT 1
43214 if test $ac_cv_func_vprintf = yes ; then
43217 for ac_func in snprintf vsnprintf
43219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43220 echo "$as_me:$LINENO: checking for $ac_func" >&5
43221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43222 if eval "test \"\${$as_ac_var+set}\" = set"; then
43223 echo $ECHO_N "(cached) $ECHO_C" >&6
43225 cat >conftest.$ac_ext <<_ACEOF
43228 cat confdefs.h >>conftest.$ac_ext
43229 cat >>conftest.$ac_ext <<_ACEOF
43230 /* end confdefs.h. */
43231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43233 #define $ac_func innocuous_$ac_func
43235 /* System header to define __stub macros and hopefully few prototypes,
43236 which can conflict with char $ac_func (); below.
43237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43238 <limits.h> exists even on freestanding compilers. */
43241 # include <limits.h>
43243 # include <assert.h>
43248 /* Override any gcc2 internal prototype to avoid an error. */
43253 /* We use char because int might match the return type of a gcc2
43254 builtin and then its argument prototype would still apply. */
43256 /* The GNU C library defines this for functions which it implements
43257 to always fail with ENOSYS. Some functions are actually named
43258 something starting with __ and the normal name is an alias. */
43259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43262 char (*f) () = $ac_func;
43271 return f != $ac_func;
43276 rm -f conftest.$ac_objext conftest$ac_exeext
43277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43278 (eval $ac_link) 2>conftest.er1
43280 grep -v '^ *+' conftest.er1 >conftest.err
43282 cat conftest.err >&5
43283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43284 (exit $ac_status); } &&
43285 { ac_try='test -z "$ac_c_werror_flag"
43286 || test ! -s conftest.err'
43287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43288 (eval $ac_try) 2>&5
43290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291 (exit $ac_status); }; } &&
43292 { ac_try='test -s conftest$ac_exeext'
43293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43294 (eval $ac_try) 2>&5
43296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43297 (exit $ac_status); }; }; then
43298 eval "$as_ac_var=yes"
43300 echo "$as_me: failed program was:" >&5
43301 sed 's/^/| /' conftest.$ac_ext >&5
43303 eval "$as_ac_var=no"
43305 rm -f conftest.err conftest.$ac_objext \
43306 conftest$ac_exeext conftest.$ac_ext
43308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43310 if test `eval echo '${'$as_ac_var'}'` = yes; then
43311 cat >>confdefs.h <<_ACEOF
43312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43432 echo "$as_me:$LINENO: checking for $ac_func" >&5
43433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43434 if eval "test \"\${$as_ac_var+set}\" = set"; then
43435 echo $ECHO_N "(cached) $ECHO_C" >&6
43437 cat >conftest.$ac_ext <<_ACEOF
43440 cat confdefs.h >>conftest.$ac_ext
43441 cat >>conftest.$ac_ext <<_ACEOF
43442 /* end confdefs.h. */
43443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43445 #define $ac_func innocuous_$ac_func
43447 /* System header to define __stub macros and hopefully few prototypes,
43448 which can conflict with char $ac_func (); below.
43449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43450 <limits.h> exists even on freestanding compilers. */
43453 # include <limits.h>
43455 # include <assert.h>
43460 /* Override any gcc2 internal prototype to avoid an error. */
43465 /* We use char because int might match the return type of a gcc2
43466 builtin and then its argument prototype would still apply. */
43468 /* The GNU C library defines this for functions which it implements
43469 to always fail with ENOSYS. Some functions are actually named
43470 something starting with __ and the normal name is an alias. */
43471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43474 char (*f) () = $ac_func;
43483 return f != $ac_func;
43488 rm -f conftest.$ac_objext conftest$ac_exeext
43489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43490 (eval $ac_link) 2>conftest.er1
43492 grep -v '^ *+' conftest.er1 >conftest.err
43494 cat conftest.err >&5
43495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43496 (exit $ac_status); } &&
43497 { ac_try='test -z "$ac_c_werror_flag"
43498 || test ! -s conftest.err'
43499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43500 (eval $ac_try) 2>&5
43502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503 (exit $ac_status); }; } &&
43504 { ac_try='test -s conftest$ac_exeext'
43505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506 (eval $ac_try) 2>&5
43508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; }; then
43510 eval "$as_ac_var=yes"
43512 echo "$as_me: failed program was:" >&5
43513 sed 's/^/| /' conftest.$ac_ext >&5
43515 eval "$as_ac_var=no"
43517 rm -f conftest.err conftest.$ac_objext \
43518 conftest$ac_exeext conftest.$ac_ext
43520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43522 if test `eval echo '${'$as_ac_var'}'` = yes; then
43523 cat >>confdefs.h <<_ACEOF
43524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43533 for ac_func in getopt getpeereid
43535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43536 echo "$as_me:$LINENO: checking for $ac_func" >&5
43537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43538 if eval "test \"\${$as_ac_var+set}\" = set"; then
43539 echo $ECHO_N "(cached) $ECHO_C" >&6
43541 cat >conftest.$ac_ext <<_ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h. */
43547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43549 #define $ac_func innocuous_$ac_func
43551 /* System header to define __stub macros and hopefully few prototypes,
43552 which can conflict with char $ac_func (); below.
43553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43554 <limits.h> exists even on freestanding compilers. */
43557 # include <limits.h>
43559 # include <assert.h>
43564 /* Override any gcc2 internal prototype to avoid an error. */
43569 /* We use char because int might match the return type of a gcc2
43570 builtin and then its argument prototype would still apply. */
43572 /* The GNU C library defines this for functions which it implements
43573 to always fail with ENOSYS. Some functions are actually named
43574 something starting with __ and the normal name is an alias. */
43575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43578 char (*f) () = $ac_func;
43587 return f != $ac_func;
43592 rm -f conftest.$ac_objext conftest$ac_exeext
43593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43594 (eval $ac_link) 2>conftest.er1
43596 grep -v '^ *+' conftest.er1 >conftest.err
43598 cat conftest.err >&5
43599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600 (exit $ac_status); } &&
43601 { ac_try='test -z "$ac_c_werror_flag"
43602 || test ! -s conftest.err'
43603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604 (eval $ac_try) 2>&5
43606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607 (exit $ac_status); }; } &&
43608 { ac_try='test -s conftest$ac_exeext'
43609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43610 (eval $ac_try) 2>&5
43612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43613 (exit $ac_status); }; }; then
43614 eval "$as_ac_var=yes"
43616 echo "$as_me: failed program was:" >&5
43617 sed 's/^/| /' conftest.$ac_ext >&5
43619 eval "$as_ac_var=no"
43621 rm -f conftest.err conftest.$ac_objext \
43622 conftest$ac_exeext conftest.$ac_ext
43624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43626 if test `eval echo '${'$as_ac_var'}'` = yes; then
43627 cat >>confdefs.h <<_ACEOF
43628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43633 "$ac_func.$ac_objext" | \
43634 *" $ac_func.$ac_objext" | \
43635 "$ac_func.$ac_objext "* | \
43636 *" $ac_func.$ac_objext "* ) ;;
43637 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43645 if test "$ac_cv_func_getopt" != yes; then
43646 LIBSRCS="$LIBSRCS getopt.c"
43649 if test "$ac_cv_func_getpeereid" != yes; then
43651 for ac_func in getpeerucred
43653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43654 echo "$as_me:$LINENO: checking for $ac_func" >&5
43655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43656 if eval "test \"\${$as_ac_var+set}\" = set"; then
43657 echo $ECHO_N "(cached) $ECHO_C" >&6
43659 cat >conftest.$ac_ext <<_ACEOF
43662 cat confdefs.h >>conftest.$ac_ext
43663 cat >>conftest.$ac_ext <<_ACEOF
43664 /* end confdefs.h. */
43665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43667 #define $ac_func innocuous_$ac_func
43669 /* System header to define __stub macros and hopefully few prototypes,
43670 which can conflict with char $ac_func (); below.
43671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43672 <limits.h> exists even on freestanding compilers. */
43675 # include <limits.h>
43677 # include <assert.h>
43682 /* Override any gcc2 internal prototype to avoid an error. */
43687 /* We use char because int might match the return type of a gcc2
43688 builtin and then its argument prototype would still apply. */
43690 /* The GNU C library defines this for functions which it implements
43691 to always fail with ENOSYS. Some functions are actually named
43692 something starting with __ and the normal name is an alias. */
43693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43696 char (*f) () = $ac_func;
43705 return f != $ac_func;
43710 rm -f conftest.$ac_objext conftest$ac_exeext
43711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43712 (eval $ac_link) 2>conftest.er1
43714 grep -v '^ *+' conftest.er1 >conftest.err
43716 cat conftest.err >&5
43717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718 (exit $ac_status); } &&
43719 { ac_try='test -z "$ac_c_werror_flag"
43720 || test ! -s conftest.err'
43721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43722 (eval $ac_try) 2>&5
43724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725 (exit $ac_status); }; } &&
43726 { ac_try='test -s conftest$ac_exeext'
43727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43728 (eval $ac_try) 2>&5
43730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731 (exit $ac_status); }; }; then
43732 eval "$as_ac_var=yes"
43734 echo "$as_me: failed program was:" >&5
43735 sed 's/^/| /' conftest.$ac_ext >&5
43737 eval "$as_ac_var=no"
43739 rm -f conftest.err conftest.$ac_objext \
43740 conftest$ac_exeext conftest.$ac_ext
43742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43744 if test `eval echo '${'$as_ac_var'}'` = yes; then
43745 cat >>confdefs.h <<_ACEOF
43746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43752 if test "$ac_cv_func_getpeerucred" != yes ; then
43753 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43754 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43755 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43756 echo $ECHO_N "(cached) $ECHO_C" >&6
43758 cat >conftest.$ac_ext <<_ACEOF
43761 cat confdefs.h >>conftest.$ac_ext
43762 cat >>conftest.$ac_ext <<_ACEOF
43763 /* end confdefs.h. */
43764 $ac_includes_default
43765 #ifdef HAVE_SYS_SOCKET_H
43766 #include <sys/socket.h>
43772 static struct msghdr ac_aggr;
43773 if (ac_aggr.msg_accrightslen)
43779 rm -f conftest.$ac_objext
43780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43781 (eval $ac_compile) 2>conftest.er1
43783 grep -v '^ *+' conftest.er1 >conftest.err
43785 cat conftest.err >&5
43786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787 (exit $ac_status); } &&
43788 { ac_try='test -z "$ac_c_werror_flag"
43789 || test ! -s conftest.err'
43790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43791 (eval $ac_try) 2>&5
43793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794 (exit $ac_status); }; } &&
43795 { ac_try='test -s conftest.$ac_objext'
43796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43797 (eval $ac_try) 2>&5
43799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43800 (exit $ac_status); }; }; then
43801 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43803 echo "$as_me: failed program was:" >&5
43804 sed 's/^/| /' conftest.$ac_ext >&5
43806 cat >conftest.$ac_ext <<_ACEOF
43809 cat confdefs.h >>conftest.$ac_ext
43810 cat >>conftest.$ac_ext <<_ACEOF
43811 /* end confdefs.h. */
43812 $ac_includes_default
43813 #ifdef HAVE_SYS_SOCKET_H
43814 #include <sys/socket.h>
43820 static struct msghdr ac_aggr;
43821 if (sizeof ac_aggr.msg_accrightslen)
43827 rm -f conftest.$ac_objext
43828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43829 (eval $ac_compile) 2>conftest.er1
43831 grep -v '^ *+' conftest.er1 >conftest.err
43833 cat conftest.err >&5
43834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43835 (exit $ac_status); } &&
43836 { ac_try='test -z "$ac_c_werror_flag"
43837 || test ! -s conftest.err'
43838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43839 (eval $ac_try) 2>&5
43841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43842 (exit $ac_status); }; } &&
43843 { ac_try='test -s conftest.$ac_objext'
43844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43845 (eval $ac_try) 2>&5
43847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43848 (exit $ac_status); }; }; then
43849 ac_cv_member_struct_msghdr_msg_accrightslen=yes
43851 echo "$as_me: failed program was:" >&5
43852 sed 's/^/| /' conftest.$ac_ext >&5
43854 ac_cv_member_struct_msghdr_msg_accrightslen=no
43856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43861 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43862 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43864 cat >>confdefs.h <<_ACEOF
43865 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43871 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43872 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43873 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43874 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43875 echo $ECHO_N "(cached) $ECHO_C" >&6
43877 cat >conftest.$ac_ext <<_ACEOF
43880 cat confdefs.h >>conftest.$ac_ext
43881 cat >>conftest.$ac_ext <<_ACEOF
43882 /* end confdefs.h. */
43883 $ac_includes_default
43884 #ifdef HAVE_SYS_SOCKET_H
43885 #include <sys/socket.h>
43891 static struct msghdr ac_aggr;
43892 if (ac_aggr.msg_control)
43898 rm -f conftest.$ac_objext
43899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43900 (eval $ac_compile) 2>conftest.er1
43902 grep -v '^ *+' conftest.er1 >conftest.err
43904 cat conftest.err >&5
43905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43906 (exit $ac_status); } &&
43907 { ac_try='test -z "$ac_c_werror_flag"
43908 || test ! -s conftest.err'
43909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43910 (eval $ac_try) 2>&5
43912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43913 (exit $ac_status); }; } &&
43914 { ac_try='test -s conftest.$ac_objext'
43915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43916 (eval $ac_try) 2>&5
43918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43919 (exit $ac_status); }; }; then
43920 ac_cv_member_struct_msghdr_msg_control=yes
43922 echo "$as_me: failed program was:" >&5
43923 sed 's/^/| /' conftest.$ac_ext >&5
43925 cat >conftest.$ac_ext <<_ACEOF
43928 cat confdefs.h >>conftest.$ac_ext
43929 cat >>conftest.$ac_ext <<_ACEOF
43930 /* end confdefs.h. */
43931 $ac_includes_default
43932 #ifdef HAVE_SYS_SOCKET_H
43933 #include <sys/socket.h>
43939 static struct msghdr ac_aggr;
43940 if (sizeof ac_aggr.msg_control)
43946 rm -f conftest.$ac_objext
43947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43948 (eval $ac_compile) 2>conftest.er1
43950 grep -v '^ *+' conftest.er1 >conftest.err
43952 cat conftest.err >&5
43953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43954 (exit $ac_status); } &&
43955 { ac_try='test -z "$ac_c_werror_flag"
43956 || test ! -s conftest.err'
43957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43958 (eval $ac_try) 2>&5
43960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43961 (exit $ac_status); }; } &&
43962 { ac_try='test -s conftest.$ac_objext'
43963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43964 (eval $ac_try) 2>&5
43966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43967 (exit $ac_status); }; }; then
43968 ac_cv_member_struct_msghdr_msg_control=yes
43970 echo "$as_me: failed program was:" >&5
43971 sed 's/^/| /' conftest.$ac_ext >&5
43973 ac_cv_member_struct_msghdr_msg_control=no
43975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43979 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43980 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43981 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43983 cat >>confdefs.h <<_ACEOF
43984 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43992 LIBSRCS="$LIBSRCS getpeereid.c"
43995 if test "$ac_cv_func_snprintf" != yes ||
43996 test "$ac_cv_func_vsnprintf" != yes; then
43997 if test "$ac_cv_func_snprintf" != yes; then
43999 cat >>confdefs.h <<\_ACEOF
44000 #define snprintf ber_pvt_snprintf
44004 if test "$ac_cv_func_vsnprintf" != yes; then
44006 cat >>confdefs.h <<\_ACEOF
44007 #define vsnprintf ber_pvt_vsnprintf
44014 if test "$ol_enable_slapi" != no ; then
44016 for ac_header in ltdl.h
44018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44020 echo "$as_me:$LINENO: checking for $ac_header" >&5
44021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44023 echo $ECHO_N "(cached) $ECHO_C" >&6
44025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44028 # Is the header compilable?
44029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44031 cat >conftest.$ac_ext <<_ACEOF
44034 cat confdefs.h >>conftest.$ac_ext
44035 cat >>conftest.$ac_ext <<_ACEOF
44036 /* end confdefs.h. */
44037 $ac_includes_default
44038 #include <$ac_header>
44040 rm -f conftest.$ac_objext
44041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44042 (eval $ac_compile) 2>conftest.er1
44044 grep -v '^ *+' conftest.er1 >conftest.err
44046 cat conftest.err >&5
44047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048 (exit $ac_status); } &&
44049 { ac_try='test -z "$ac_c_werror_flag"
44050 || test ! -s conftest.err'
44051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44052 (eval $ac_try) 2>&5
44054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44055 (exit $ac_status); }; } &&
44056 { ac_try='test -s conftest.$ac_objext'
44057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44058 (eval $ac_try) 2>&5
44060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44061 (exit $ac_status); }; }; then
44062 ac_header_compiler=yes
44064 echo "$as_me: failed program was:" >&5
44065 sed 's/^/| /' conftest.$ac_ext >&5
44067 ac_header_compiler=no
44069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44071 echo "${ECHO_T}$ac_header_compiler" >&6
44073 # Is the header present?
44074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44076 cat >conftest.$ac_ext <<_ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h. */
44082 #include <$ac_header>
44084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44087 grep -v '^ *+' conftest.er1 >conftest.err
44089 cat conftest.err >&5
44090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44091 (exit $ac_status); } >/dev/null; then
44092 if test -s conftest.err; then
44093 ac_cpp_err=$ac_c_preproc_warn_flag
44094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44101 if test -z "$ac_cpp_err"; then
44102 ac_header_preproc=yes
44104 echo "$as_me: failed program was:" >&5
44105 sed 's/^/| /' conftest.$ac_ext >&5
44107 ac_header_preproc=no
44109 rm -f conftest.err conftest.$ac_ext
44110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44111 echo "${ECHO_T}$ac_header_preproc" >&6
44113 # So? What about this header?
44114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44120 ac_header_preproc=yes
44123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44137 ## --------------------------------------------- ##
44138 ## Report this to <http://www.openldap.org/its/> ##
44139 ## --------------------------------------------- ##
44142 sed "s/^/$as_me: WARNING: /" >&2
44145 echo "$as_me:$LINENO: checking for $ac_header" >&5
44146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148 echo $ECHO_N "(cached) $ECHO_C" >&6
44150 eval "$as_ac_Header=\$ac_header_preproc"
44152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44157 cat >>confdefs.h <<_ACEOF
44158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44166 if test $ac_cv_header_ltdl_h != yes ; then
44167 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
44168 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44169 { (exit 1); exit 1; }; }
44171 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44172 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44173 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44174 echo $ECHO_N "(cached) $ECHO_C" >&6
44176 ac_check_lib_save_LIBS=$LIBS
44177 LIBS="-lltdl $LIBS"
44178 cat >conftest.$ac_ext <<_ACEOF
44181 cat confdefs.h >>conftest.$ac_ext
44182 cat >>conftest.$ac_ext <<_ACEOF
44183 /* end confdefs.h. */
44185 /* Override any gcc2 internal prototype to avoid an error. */
44189 /* We use char because int might match the return type of a gcc2
44190 builtin and then its argument prototype would still apply. */
44200 rm -f conftest.$ac_objext conftest$ac_exeext
44201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44202 (eval $ac_link) 2>conftest.er1
44204 grep -v '^ *+' conftest.er1 >conftest.err
44206 cat conftest.err >&5
44207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44208 (exit $ac_status); } &&
44209 { ac_try='test -z "$ac_c_werror_flag"
44210 || test ! -s conftest.err'
44211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44212 (eval $ac_try) 2>&5
44214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44215 (exit $ac_status); }; } &&
44216 { ac_try='test -s conftest$ac_exeext'
44217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44218 (eval $ac_try) 2>&5
44220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44221 (exit $ac_status); }; }; then
44222 ac_cv_lib_ltdl_lt_dlinit=yes
44224 echo "$as_me: failed program was:" >&5
44225 sed 's/^/| /' conftest.$ac_ext >&5
44227 ac_cv_lib_ltdl_lt_dlinit=no
44229 rm -f conftest.err conftest.$ac_objext \
44230 conftest$ac_exeext conftest.$ac_ext
44231 LIBS=$ac_check_lib_save_LIBS
44233 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44234 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44235 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44238 LIBSLAPI=libslapi.a
44239 LIBSLAPITOOLS=../libslapi.a
44241 cat >>confdefs.h <<\_ACEOF
44242 #define HAVE_LIBLTDL 1
44247 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44248 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44249 { (exit 1); exit 1; }; }
44254 cat >>confdefs.h <<\_ACEOF
44255 #define LDAP_SLAPI 1
44260 if test "$ol_enable_debug" != no ; then
44261 if test "$ol_enable_debug" = traditional; then
44263 cat >>confdefs.h <<\_ACEOF
44264 #define OLD_DEBUG 1
44269 cat >>confdefs.h <<\_ACEOF
44270 #define LDAP_DEBUG 1
44274 if test "$ol_enable_syslog" = yes ; then
44276 cat >>confdefs.h <<\_ACEOF
44277 #define LDAP_SYSLOG 1
44281 if test "$ol_link_kbind" != no ; then
44283 cat >>confdefs.h <<\_ACEOF
44284 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44288 if test "$ol_enable_proctitle" != no ; then
44290 cat >>confdefs.h <<\_ACEOF
44291 #define LDAP_PROCTITLE 1
44295 if test "$ol_enable_referrals" != no ; then
44297 cat >>confdefs.h <<\_ACEOF
44298 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44302 if test "$ol_enable_local" != no; then
44304 cat >>confdefs.h <<\_ACEOF
44305 #define LDAP_PF_LOCAL 1
44309 if test "$ol_link_ipv6" != no; then
44311 cat >>confdefs.h <<\_ACEOF
44312 #define LDAP_PF_INET6 1
44316 if test "$ol_enable_cleartext" != no ; then
44318 cat >>confdefs.h <<\_ACEOF
44319 #define SLAPD_CLEARTEXT 1
44323 if test "$ol_enable_crypt" != no ; then
44325 cat >>confdefs.h <<\_ACEOF
44326 #define SLAPD_CRYPT 1
44330 if test "$ol_link_spasswd" != no ; then
44332 cat >>confdefs.h <<\_ACEOF
44333 #define SLAPD_SPASSWD 1
44337 if test "$ol_enable_multimaster" != no ; then
44339 cat >>confdefs.h <<\_ACEOF
44340 #define SLAPD_MULTIMASTER 1
44344 if test "$ol_enable_rlookups" != no ; then
44346 cat >>confdefs.h <<\_ACEOF
44347 #define SLAPD_RLOOKUPS 1
44351 if test "$ol_enable_aci" != no ; then
44352 if test $ol_enable_dynacl = no ; then
44353 ol_enable_dynacl=yes
44354 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44355 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44357 if test "$ol_enable_aci" = mod ; then
44358 MFLAG=SLAPD_MOD_DYNAMIC
44359 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44360 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44361 { (exit 1); exit 1; }; }
44363 MFLAG=SLAPD_MOD_STATIC
44365 WITH_ACI_ENABLED=$ol_enable_aci
44367 cat >>confdefs.h <<_ACEOF
44368 #define SLAPD_ACI_ENABLED $MFLAG
44372 WITH_ACI_ENABLED=no
44374 if test "$ol_enable_dynacl" != no ; then
44376 cat >>confdefs.h <<\_ACEOF
44377 #define SLAP_DYNACL 1
44382 if test "$ol_link_modules" != no ; then
44384 cat >>confdefs.h <<\_ACEOF
44385 #define SLAPD_MODULES 1
44389 SLAPD_MODULES_LDFLAGS="-dlopen self"
44393 cat >>confdefs.h <<\_ACEOF
44394 #define SLAPD_MOD_STATIC 1
44398 cat >>confdefs.h <<\_ACEOF
44399 #define SLAPD_MOD_DYNAMIC 2
44403 if test "$ol_enable_bdb" != no ; then
44405 BUILD_BDB=$ol_enable_bdb
44406 if test "$ol_enable_bdb" = mod ; then
44407 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44408 MFLAG=SLAPD_MOD_DYNAMIC
44410 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44411 MFLAG=SLAPD_MOD_STATIC
44414 cat >>confdefs.h <<_ACEOF
44415 #define SLAPD_BDB $MFLAG
44420 if test "$ol_enable_dnssrv" != no ; then
44422 BUILD_DNSSRV=$ol_enable_dnssrv
44423 if test "$ol_enable_dnssrv" = mod ; then
44424 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44425 MFLAG=SLAPD_MOD_DYNAMIC
44427 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44428 MFLAG=SLAPD_MOD_STATIC
44431 cat >>confdefs.h <<_ACEOF
44432 #define SLAPD_DNSSRV $MFLAG
44437 if test "$ol_enable_hdb" != no ; then
44439 BUILD_HDB=$ol_enable_hdb
44440 if test "$ol_enable_hdb" = mod ; then
44441 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44442 MFLAG=SLAPD_MOD_DYNAMIC
44444 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44445 MFLAG=SLAPD_MOD_STATIC
44448 cat >>confdefs.h <<_ACEOF
44449 #define SLAPD_HDB $MFLAG
44454 if test "$ol_enable_ldap" != no ; then
44456 BUILD_LDAP=$ol_enable_ldap
44457 if test "$ol_enable_ldap" = mod ; then
44458 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44459 MFLAG=SLAPD_MOD_DYNAMIC
44461 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44462 MFLAG=SLAPD_MOD_STATIC
44465 cat >>confdefs.h <<_ACEOF
44466 #define SLAPD_LDAP $MFLAG
44471 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44473 BUILD_LDBM=$ol_enable_ldbm
44474 if test "$ol_enable_ldbm" = mod ; then
44475 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44476 MFLAG=SLAPD_MOD_DYNAMIC
44478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44479 MFLAG=SLAPD_MOD_STATIC
44482 cat >>confdefs.h <<_ACEOF
44483 #define SLAPD_LDBM $MFLAG
44488 if test "$ol_enable_meta" != no ; then
44490 BUILD_META=$ol_enable_meta
44492 if test "$ol_enable_meta" = mod ; then
44493 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44494 MFLAG=SLAPD_MOD_DYNAMIC
44496 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44497 MFLAG=SLAPD_MOD_STATIC
44500 cat >>confdefs.h <<_ACEOF
44501 #define SLAPD_META $MFLAG
44506 if test "$ol_enable_monitor" != no ; then
44508 BUILD_MONITOR=$ol_enable_monitor
44509 if test "$ol_enable_monitor" = mod ; then
44510 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44511 MFLAG=SLAPD_MOD_DYNAMIC
44513 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44514 MFLAG=SLAPD_MOD_STATIC
44517 cat >>confdefs.h <<_ACEOF
44518 #define SLAPD_MONITOR $MFLAG
44523 if test "$ol_enable_null" != no ; then
44525 BUILD_NULL=$ol_enable_null
44526 if test "$ol_enable_null" = mod ; then
44527 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44528 MFLAG=SLAPD_MOD_DYNAMIC
44530 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44531 MFLAG=SLAPD_MOD_STATIC
44534 cat >>confdefs.h <<_ACEOF
44535 #define SLAPD_NULL $MFLAG
44540 if test "$ol_enable_passwd" != no ; then
44542 BUILD_PASSWD=$ol_enable_passwd
44543 if test "$ol_enable_passwd" = mod ; then
44544 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44545 MFLAG=SLAPD_MOD_DYNAMIC
44547 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44548 MFLAG=SLAPD_MOD_STATIC
44551 cat >>confdefs.h <<_ACEOF
44552 #define SLAPD_PASSWD $MFLAG
44557 if test "$ol_link_perl" != no ; then
44559 BUILD_PERL=$ol_enable_perl
44560 if test "$ol_enable_perl" = mod ; then
44561 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44562 MFLAG=SLAPD_MOD_DYNAMIC
44564 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44565 MFLAG=SLAPD_MOD_STATIC
44568 cat >>confdefs.h <<_ACEOF
44569 #define SLAPD_PERL $MFLAG
44574 if test "$ol_enable_relay" != no ; then
44576 BUILD_RELAY=$ol_enable_relay
44577 if test "$ol_enable_relay" = mod ; then
44578 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44579 MFLAG=SLAPD_MOD_DYNAMIC
44581 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44582 MFLAG=SLAPD_MOD_STATIC
44585 cat >>confdefs.h <<_ACEOF
44586 #define SLAPD_RELAY $MFLAG
44591 if test "$ol_enable_shell" != no ; then
44592 if test "$ol_link_threads" != no ; then
44593 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44594 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44597 BUILD_SHELL=$ol_enable_shell
44598 if test "$ol_enable_shell" = mod ; then
44599 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44600 MFLAG=SLAPD_MOD_DYNAMIC
44602 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44603 MFLAG=SLAPD_MOD_STATIC
44606 cat >>confdefs.h <<_ACEOF
44607 #define SLAPD_SHELL $MFLAG
44612 if test "$ol_link_sql" != no ; then
44614 BUILD_SQL=$ol_enable_sql
44615 if test "$ol_enable_sql" = mod; then
44616 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44617 MFLAG=SLAPD_MOD_DYNAMIC
44619 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44620 MFLAG=SLAPD_MOD_STATIC
44623 cat >>confdefs.h <<_ACEOF
44624 #define SLAPD_SQL $MFLAG
44629 if test "$ol_enable_accesslog" != no ; then
44630 BUILD_ACCESSLOG=$ol_enable_accesslog
44631 if test "$ol_enable_accesslog" = mod ; then
44632 MFLAG=SLAPD_MOD_DYNAMIC
44633 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44635 MFLAG=SLAPD_MOD_STATIC
44636 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44639 cat >>confdefs.h <<_ACEOF
44640 #define SLAPD_OVER_ACCESSLOG $MFLAG
44645 if test "$ol_enable_dds" != no ; then
44646 BUILD_DDS=$ol_enable_dds
44647 if test "$ol_enable_dds" = mod ; then
44648 MFLAG=SLAPD_MOD_DYNAMIC
44649 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44651 MFLAG=SLAPD_MOD_STATIC
44652 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44655 cat >>confdefs.h <<_ACEOF
44656 #define SLAPD_OVER_DDS $MFLAG
44661 if test "$ol_enable_denyop" != no ; then
44662 BUILD_DENYOP=$ol_enable_denyop
44663 if test "$ol_enable_denyop" = mod ; then
44664 MFLAG=SLAPD_MOD_DYNAMIC
44665 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44667 MFLAG=SLAPD_MOD_STATIC
44668 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44671 cat >>confdefs.h <<_ACEOF
44672 #define SLAPD_OVER_DENYOP $MFLAG
44677 if test "$ol_enable_dyngroup" != no ; then
44678 BUILD_DYNGROUP=$ol_enable_dyngroup
44679 if test "$ol_enable_dyngroup" = mod ; then
44680 MFLAG=SLAPD_MOD_DYNAMIC
44681 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44683 MFLAG=SLAPD_MOD_STATIC
44684 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44687 cat >>confdefs.h <<_ACEOF
44688 #define SLAPD_OVER_DYNGROUP $MFLAG
44693 if test "$ol_enable_dynlist" != no ; then
44694 BUILD_DYNLIST=$ol_enable_dynlist
44695 if test "$ol_enable_dynlist" = mod ; then
44696 MFLAG=SLAPD_MOD_DYNAMIC
44697 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44699 MFLAG=SLAPD_MOD_STATIC
44700 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44703 cat >>confdefs.h <<_ACEOF
44704 #define SLAPD_OVER_DYNLIST $MFLAG
44709 if test "$ol_enable_lastmod" != no ; then
44710 BUILD_LASTMOD=$ol_enable_lastmod
44711 if test "$ol_enable_lastmod" = mod ; then
44712 MFLAG=SLAPD_MOD_DYNAMIC
44713 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44715 MFLAG=SLAPD_MOD_STATIC
44716 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44719 cat >>confdefs.h <<_ACEOF
44720 #define SLAPD_OVER_LASTMOD $MFLAG
44725 if test "$ol_enable_ppolicy" != no ; then
44726 BUILD_PPOLICY=$ol_enable_ppolicy
44727 if test "$ol_enable_ppolicy" = mod ; then
44728 MFLAG=SLAPD_MOD_DYNAMIC
44729 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44731 MFLAG=SLAPD_MOD_STATIC
44732 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44735 cat >>confdefs.h <<_ACEOF
44736 #define SLAPD_OVER_PPOLICY $MFLAG
44741 if test "$ol_enable_proxycache" != no ; then
44742 BUILD_PROXYCACHE=$ol_enable_proxycache
44743 if test "$ol_enable_proxycache" = mod ; then
44744 MFLAG=SLAPD_MOD_DYNAMIC
44745 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44747 MFLAG=SLAPD_MOD_STATIC
44748 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44751 cat >>confdefs.h <<_ACEOF
44752 #define SLAPD_OVER_PROXYCACHE $MFLAG
44757 if test "$ol_enable_refint" != no ; then
44758 BUILD_REFINT=$ol_enable_refint
44759 if test "$ol_enable_refint" = mod ; then
44760 MFLAG=SLAPD_MOD_DYNAMIC
44761 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44763 MFLAG=SLAPD_MOD_STATIC
44764 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44767 cat >>confdefs.h <<_ACEOF
44768 #define SLAPD_OVER_REFINT $MFLAG
44773 if test "$ol_enable_retcode" != no ; then
44774 BUILD_RETCODE=$ol_enable_retcode
44775 if test "$ol_enable_retcode" = mod ; then
44776 MFLAG=SLAPD_MOD_DYNAMIC
44777 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44779 MFLAG=SLAPD_MOD_STATIC
44780 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44783 cat >>confdefs.h <<_ACEOF
44784 #define SLAPD_OVER_RETCODE $MFLAG
44789 if test "$ol_enable_rwm" != no ; then
44791 BUILD_RWM=$ol_enable_rwm
44792 if test "$ol_enable_rwm" = mod ; then
44793 MFLAG=SLAPD_MOD_DYNAMIC
44794 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44796 MFLAG=SLAPD_MOD_STATIC
44797 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44800 cat >>confdefs.h <<_ACEOF
44801 #define SLAPD_OVER_RWM $MFLAG
44806 if test "$ol_enable_syncprov" != no ; then
44807 BUILD_SYNCPROV=$ol_enable_syncprov
44808 if test "$ol_enable_syncprov" = mod ; then
44809 MFLAG=SLAPD_MOD_DYNAMIC
44810 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44812 MFLAG=SLAPD_MOD_STATIC
44813 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44816 cat >>confdefs.h <<_ACEOF
44817 #define SLAPD_OVER_SYNCPROV $MFLAG
44822 if test "$ol_enable_translucent" != no ; then
44823 BUILD_TRANSLUCENT=$ol_enable_translucent
44824 if test "$ol_enable_translucent" = mod ; then
44825 MFLAG=SLAPD_MOD_DYNAMIC
44826 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44828 MFLAG=SLAPD_MOD_STATIC
44829 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44832 cat >>confdefs.h <<_ACEOF
44833 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44838 if test "$ol_enable_unique" != no ; then
44839 BUILD_UNIQUE=$ol_enable_unique
44840 if test "$ol_enable_unique" = mod ; then
44841 MFLAG=SLAPD_MOD_DYNAMIC
44842 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44844 MFLAG=SLAPD_MOD_STATIC
44845 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44848 cat >>confdefs.h <<_ACEOF
44849 #define SLAPD_OVER_UNIQUE $MFLAG
44854 if test "$ol_enable_valsort" != no ; then
44855 BUILD_VALSORT=$ol_enable_valsort
44856 if test "$ol_enable_valsort" = mod ; then
44857 MFLAG=SLAPD_MOD_DYNAMIC
44858 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44860 MFLAG=SLAPD_MOD_STATIC
44861 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44864 cat >>confdefs.h <<_ACEOF
44865 #define SLAPD_OVER_VALSORT $MFLAG
44870 if test "$ol_enable_slurpd" != no &&
44871 test "$ol_link_threads" != no &&
44872 test $BUILD_SLAPD = yes ; then
44876 if test "$ol_enable_rewrite" != no ; then
44878 cat >>confdefs.h <<\_ACEOF
44879 #define ENABLE_REWRITE 1
44885 if test "$ol_enable_slapi" != no ; then
44887 cat >>confdefs.h <<\_ACEOF
44888 #define ENABLE_SLAPI 1
44892 SLAPD_SLAPI_DEPEND=libslapi.a
44897 if test "$ac_cv_mingw32" = yes ; then
44899 SLAPD_MODULES_LDFLAGS=
44986 # Check whether --with-xxinstall or --without-xxinstall was given.
44987 if test "${with_xxinstall+set}" = set; then
44988 withval="$with_xxinstall"
44993 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"
44996 ac_config_commands="$ac_config_commands default"
45000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45001 # Let make expand exec_prefix.
45002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45004 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45005 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45006 # trailing colons and then remove the whole line if VPATH becomes empty
45007 # (actually we leave an empty line to preserve line numbers).
45008 if test "x$srcdir" = x.; then
45009 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45010 s/:*\$(srcdir):*/:/;
45011 s/:*\${srcdir}:*/:/;
45013 s/^\([^=]*=[ ]*\):*/\1/;
45019 DEFS=-DHAVE_CONFIG_H
45023 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45024 # 1. Remove the extension, and $U if already installed.
45025 ac_i=`echo "$ac_i" |
45026 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
45028 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45029 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45031 LIBOBJS=$ac_libobjs
45033 LTLIBOBJS=$ac_ltlibobjs
45036 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45037 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45038 Usually this means the macro was only invoked conditionally." >&5
45039 echo "$as_me: error: conditional \"AMDEP\" was never defined.
45040 Usually this means the macro was only invoked conditionally." >&2;}
45041 { (exit 1); exit 1; }; }
45043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45044 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45045 Usually this means the macro was only invoked conditionally." >&5
45046 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45047 Usually this means the macro was only invoked conditionally." >&2;}
45048 { (exit 1); exit 1; }; }
45050 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45051 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45052 Usually this means the macro was only invoked conditionally." >&5
45053 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45054 Usually this means the macro was only invoked conditionally." >&2;}
45055 { (exit 1); exit 1; }; }
45058 : ${CONFIG_STATUS=./config.status}
45059 ac_clean_files_save=$ac_clean_files
45060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
45063 cat >$CONFIG_STATUS <<_ACEOF
45065 # Generated by $as_me.
45066 # Run this file to recreate the current configuration.
45067 # Compiler output produced by configure, useful for debugging
45068 # configure, is in config.log if it exists.
45071 ac_cs_recheck=false
45073 SHELL=\${CONFIG_SHELL-$SHELL}
45076 cat >>$CONFIG_STATUS <<\_ACEOF
45077 ## --------------------- ##
45078 ## M4sh Initialization. ##
45079 ## --------------------- ##
45081 # Be Bourne compatible
45082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45086 # is contrary to our usage. Disable this feature.
45087 alias -g '${1+"$@"}'='"$@"'
45088 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45091 DUALCASE=1; export DUALCASE # for MKS sh
45093 # Support unset when possible.
45094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45101 # Work around bugs in pre-3.0 UWIN ksh.
45102 $as_unset ENV MAIL MAILPATH
45109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45111 LC_TELEPHONE LC_TIME
45113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45114 eval $as_var=C; export $as_var
45120 # Required to use basename.
45121 if expr a : '\(a\)' >/dev/null 2>&1; then
45127 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45128 as_basename=basename
45134 # Name of the executable.
45135 as_me=`$as_basename "$0" ||
45136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45137 X"$0" : 'X\(//\)$' \| \
45138 X"$0" : 'X\(/\)$' \| \
45139 . : '\(.\)' 2>/dev/null ||
45141 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45142 /^X\/\(\/\/\)$/{ s//\1/; q; }
45143 /^X\/\(\/\).*/{ s//\1/; q; }
45147 # PATH needs CR, and LINENO needs CR and PATH.
45148 # Avoid depending upon Character Ranges.
45149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45152 as_cr_digits='0123456789'
45153 as_cr_alnum=$as_cr_Letters$as_cr_digits
45155 # The user is always right.
45156 if test "${PATH_SEPARATOR+set}" != set; then
45157 echo "#! /bin/sh" >conf$$.sh
45158 echo "exit 0" >>conf$$.sh
45160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45169 as_lineno_1=$LINENO
45170 as_lineno_2=$LINENO
45171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45172 test "x$as_lineno_1" != "x$as_lineno_2" &&
45173 test "x$as_lineno_3" = "x$as_lineno_2" || {
45174 # Find who we are. Look in the path if we contain no path at all
45177 *[\\/]* ) as_myself=$0 ;;
45178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45179 for as_dir in $PATH
45182 test -z "$as_dir" && as_dir=.
45183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45188 # We did not find ourselves, most probably we were run as `sh COMMAND'
45189 # in which case we are not to be found in the path.
45190 if test "x$as_myself" = x; then
45193 if test ! -f "$as_myself"; then
45194 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45196 { (exit 1); exit 1; }; }
45198 case $CONFIG_SHELL in
45200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45204 test -z "$as_dir" && as_dir=.
45205 for as_base in sh bash ksh sh5; do
45208 if ("$as_dir/$as_base" -c '
45209 as_lineno_1=$LINENO
45210 as_lineno_2=$LINENO
45211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45212 test "x$as_lineno_1" != "x$as_lineno_2" &&
45213 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45214 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45215 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45216 CONFIG_SHELL=$as_dir/$as_base
45217 export CONFIG_SHELL
45218 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45227 # uniformly replaced by the line number. The first 'sed' inserts a
45228 # line-number line before each line; the second 'sed' does the real
45229 # work. The second script uses 'N' to pair each line-number line
45230 # with the numbered line, and appends trailing '-' during
45231 # substitution so that $LINENO is not a special case at line end.
45232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45233 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45234 sed '=' <$as_myself |
45239 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45242 s,^['$as_cr_digits']*\n,,
45243 ' >$as_me.lineno &&
45244 chmod +x $as_me.lineno ||
45245 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45246 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45247 { (exit 1); exit 1; }; }
45249 # Don't try to exec as it changes $[0], causing all sort of problems
45250 # (the dirname of $[0] is not the place where we might find the
45251 # original and so on. Autoconf is especially sensible to this).
45253 # Exit status is that of the last command.
45258 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45259 *c*,-n*) ECHO_N= ECHO_C='
45261 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45262 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45265 if expr a : '\(a\)' >/dev/null 2>&1; then
45271 rm -f conf$$ conf$$.exe conf$$.file
45273 if ln -s conf$$.file conf$$ 2>/dev/null; then
45274 # We could just check for DJGPP; but this test a) works b) is more generic
45275 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45276 if test -f conf$$.exe; then
45277 # Don't use ln at all; we don't have any links
45282 elif ln conf$$.file conf$$ 2>/dev/null; then
45287 rm -f conf$$ conf$$.exe conf$$.file
45289 if mkdir -p . 2>/dev/null; then
45292 test -d ./-p && rmdir ./-p
45296 as_executable_p="test -f"
45298 # Sed expression to map a string onto a valid CPP name.
45299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45301 # Sed expression to map a string onto a valid variable name.
45302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45306 # We need space, tab and new line, in precisely that order.
45316 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45317 # report actual input values of CONFIG_FILES etc. instead of their
45318 # values after options handling. Logging --version etc. is OK.
45322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45323 ## Running $as_me. ##
45328 This file was extended by $as_me, which was
45329 generated by GNU Autoconf 2.59. Invocation command line was
45331 CONFIG_FILES = $CONFIG_FILES
45332 CONFIG_HEADERS = $CONFIG_HEADERS
45333 CONFIG_LINKS = $CONFIG_LINKS
45334 CONFIG_COMMANDS = $CONFIG_COMMANDS
45338 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45342 # Files that config.status was made for.
45343 if test -n "$ac_config_files"; then
45344 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45347 if test -n "$ac_config_headers"; then
45348 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45351 if test -n "$ac_config_links"; then
45352 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45355 if test -n "$ac_config_commands"; then
45356 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45359 cat >>$CONFIG_STATUS <<\_ACEOF
45362 \`$as_me' instantiates files from templates according to the
45363 current configuration.
45365 Usage: $0 [OPTIONS] [FILE]...
45367 -h, --help print this help, then exit
45368 -V, --version print version number, then exit
45369 -q, --quiet do not print progress messages
45370 -d, --debug don't remove temporary files
45371 --recheck update $as_me by reconfiguring in the same conditions
45372 --file=FILE[:TEMPLATE]
45373 instantiate the configuration file FILE
45374 --header=FILE[:TEMPLATE]
45375 instantiate the configuration header FILE
45377 Configuration files:
45380 Configuration headers:
45383 Configuration commands:
45386 Report bugs to <bug-autoconf@gnu.org>."
45389 cat >>$CONFIG_STATUS <<_ACEOF
45392 configured by $0, generated by GNU Autoconf 2.59,
45393 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45395 Copyright (C) 2003 Free Software Foundation, Inc.
45396 This config.status script is free software; the Free Software Foundation
45397 gives unlimited permission to copy, distribute and modify it."
45402 cat >>$CONFIG_STATUS <<\_ACEOF
45403 # If no file are specified by the user, then we need to provide default
45404 # value. By we need to know if files were specified by the user.
45410 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45411 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45419 *) # This is not an option, so the user has probably given explicit
45422 ac_need_defaults=false;;
45426 # Handling of the options.
45428 cat >>$CONFIG_STATUS <<\_ACEOF
45429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45431 --version | --vers* | -V )
45432 echo "$ac_cs_version"; exit 0 ;;
45434 # Conflict between --help and --header
45435 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45436 Try \`$0 --help' for more information." >&5
45437 echo "$as_me: error: ambiguous option: $1
45438 Try \`$0 --help' for more information." >&2;}
45439 { (exit 1); exit 1; }; };;
45440 --help | --hel | -h )
45441 echo "$ac_cs_usage"; exit 0 ;;
45442 --debug | --d* | -d )
45444 --file | --fil | --fi | --f )
45446 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45447 ac_need_defaults=false;;
45448 --header | --heade | --head | --hea )
45450 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45451 ac_need_defaults=false;;
45452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45456 # This is an error.
45457 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45458 Try \`$0 --help' for more information." >&5
45459 echo "$as_me: error: unrecognized option: $1
45460 Try \`$0 --help' for more information." >&2;}
45461 { (exit 1); exit 1; }; } ;;
45463 *) ac_config_targets="$ac_config_targets $1" ;;
45469 ac_configure_extra_args=
45471 if $ac_cs_silent; then
45473 ac_configure_extra_args="$ac_configure_extra_args --silent"
45477 cat >>$CONFIG_STATUS <<_ACEOF
45478 if \$ac_cs_recheck; then
45479 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45480 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45485 cat >>$CONFIG_STATUS <<_ACEOF
45487 # INIT-COMMANDS section.
45490 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45492 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45493 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45500 cat >>$CONFIG_STATUS <<\_ACEOF
45501 for ac_config_target in $ac_config_targets
45503 case "$ac_config_target" in
45504 # Handling of arguments.
45505 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45506 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45507 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45508 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45509 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45510 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45511 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45512 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45513 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45514 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45515 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45516 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45517 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45518 "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" ;;
45519 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45520 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45521 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45522 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45523 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45524 "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" ;;
45525 "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" ;;
45526 "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" ;;
45527 "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" ;;
45528 "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" ;;
45529 "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" ;;
45530 "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" ;;
45531 "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" ;;
45532 "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" ;;
45533 "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" ;;
45534 "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" ;;
45535 "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" ;;
45536 "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" ;;
45537 "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" ;;
45538 "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" ;;
45539 "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" ;;
45540 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45541 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45542 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45543 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45544 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45545 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45546 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45547 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45548 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45549 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45550 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45551 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45552 { (exit 1); exit 1; }; };;
45556 # If the user did not use the arguments to specify the items to instantiate,
45557 # then the envvar interface is used. Set only those that are not.
45558 # We use the long form for the default assignment because of an extremely
45559 # bizarre bug on SunOS 4.1.3.
45560 if $ac_need_defaults; then
45561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45566 # Have a temporary directory for convenience. Make it in the build tree
45567 # simply because there is no reason to put it here, and in addition,
45568 # creating and moving files from /tmp can sometimes cause problems.
45569 # Create a temporary directory, and hook for its removal unless debugging.
45572 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45573 trap '{ (exit 1); exit 1; }' 1 2 13 15
45576 # Create a (secure) tmp directory for tmp files.
45579 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45580 test -n "$tmp" && test -d "$tmp"
45583 tmp=./confstat$$-$RANDOM
45584 (umask 077 && mkdir $tmp)
45587 echo "$me: cannot create a temporary directory in ." >&2
45588 { (exit 1); exit 1; }
45593 cat >>$CONFIG_STATUS <<_ACEOF
45596 # CONFIG_FILES section.
45599 # No need to generate the scripts if there are no CONFIG_FILES.
45600 # This happens for instance when ./config.status config.h
45601 if test -n "\$CONFIG_FILES"; then
45602 # Protect against being on the right side of a sed subst in config.status.
45603 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45604 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45605 s,@SHELL@,$SHELL,;t t
45606 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45607 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45608 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45609 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45610 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45611 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45612 s,@exec_prefix@,$exec_prefix,;t t
45613 s,@prefix@,$prefix,;t t
45614 s,@program_transform_name@,$program_transform_name,;t t
45615 s,@bindir@,$bindir,;t t
45616 s,@sbindir@,$sbindir,;t t
45617 s,@libexecdir@,$libexecdir,;t t
45618 s,@datadir@,$datadir,;t t
45619 s,@sysconfdir@,$sysconfdir,;t t
45620 s,@sharedstatedir@,$sharedstatedir,;t t
45621 s,@localstatedir@,$localstatedir,;t t
45622 s,@libdir@,$libdir,;t t
45623 s,@includedir@,$includedir,;t t
45624 s,@oldincludedir@,$oldincludedir,;t t
45625 s,@infodir@,$infodir,;t t
45626 s,@mandir@,$mandir,;t t
45627 s,@build_alias@,$build_alias,;t t
45628 s,@host_alias@,$host_alias,;t t
45629 s,@target_alias@,$target_alias,;t t
45630 s,@DEFS@,$DEFS,;t t
45631 s,@ECHO_C@,$ECHO_C,;t t
45632 s,@ECHO_N@,$ECHO_N,;t t
45633 s,@ECHO_T@,$ECHO_T,;t t
45634 s,@LIBS@,$LIBS,;t t
45635 s,@build@,$build,;t t
45636 s,@build_cpu@,$build_cpu,;t t
45637 s,@build_vendor@,$build_vendor,;t t
45638 s,@build_os@,$build_os,;t t
45639 s,@host@,$host,;t t
45640 s,@host_cpu@,$host_cpu,;t t
45641 s,@host_vendor@,$host_vendor,;t t
45642 s,@host_os@,$host_os,;t t
45643 s,@target@,$target,;t t
45644 s,@target_cpu@,$target_cpu,;t t
45645 s,@target_vendor@,$target_vendor,;t t
45646 s,@target_os@,$target_os,;t t
45647 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45648 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45649 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45650 s,@CYGPATH_W@,$CYGPATH_W,;t t
45651 s,@PACKAGE@,$PACKAGE,;t t
45652 s,@VERSION@,$VERSION,;t t
45653 s,@ACLOCAL@,$ACLOCAL,;t t
45654 s,@AUTOCONF@,$AUTOCONF,;t t
45655 s,@AUTOMAKE@,$AUTOMAKE,;t t
45656 s,@AUTOHEADER@,$AUTOHEADER,;t t
45657 s,@MAKEINFO@,$MAKEINFO,;t t
45658 s,@install_sh@,$install_sh,;t t
45659 s,@STRIP@,$STRIP,;t t
45660 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45661 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45662 s,@mkdir_p@,$mkdir_p,;t t
45664 s,@SET_MAKE@,$SET_MAKE,;t t
45665 s,@am__leading_dot@,$am__leading_dot,;t t
45666 s,@AMTAR@,$AMTAR,;t t
45667 s,@am__tar@,$am__tar,;t t
45668 s,@am__untar@,$am__untar,;t t
45669 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45670 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45671 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45672 s,@top_builddir@,$top_builddir,;t t
45673 s,@ldap_subdir@,$ldap_subdir,;t t
45676 s,@CFLAGS@,$CFLAGS,;t t
45677 s,@LDFLAGS@,$LDFLAGS,;t t
45678 s,@CPPFLAGS@,$CPPFLAGS,;t t
45679 s,@ac_ct_CC@,$ac_ct_CC,;t t
45680 s,@EXEEXT@,$EXEEXT,;t t
45681 s,@OBJEXT@,$OBJEXT,;t t
45682 s,@DEPDIR@,$DEPDIR,;t t
45683 s,@am__include@,$am__include,;t t
45684 s,@am__quote@,$am__quote,;t t
45685 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45686 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45687 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45688 s,@CCDEPMODE@,$CCDEPMODE,;t t
45689 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45690 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45691 s,@EGREP@,$EGREP,;t t
45692 s,@LN_S@,$LN_S,;t t
45693 s,@ECHO@,$ECHO,;t t
45694 s,@ac_ct_AR@,$ac_ct_AR,;t t
45695 s,@RANLIB@,$RANLIB,;t t
45696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45697 s,@DLLTOOL@,$DLLTOOL,;t t
45698 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45700 s,@ac_ct_AS@,$ac_ct_AS,;t t
45701 s,@OBJDUMP@,$OBJDUMP,;t t
45702 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45704 s,@LIBTOOL@,$LIBTOOL,;t t
45705 s,@PERLBIN@,$PERLBIN,;t t
45706 s,@OL_MKDEP@,$OL_MKDEP,;t t
45707 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45708 s,@LTSTATIC@,$LTSTATIC,;t t
45709 s,@LIBOBJS@,$LIBOBJS,;t t
45710 s,@LIBSRCS@,$LIBSRCS,;t t
45711 s,@PLAT@,$PLAT,;t t
45712 s,@WITH_SASL@,$WITH_SASL,;t t
45713 s,@WITH_TLS@,$WITH_TLS,;t t
45714 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45715 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45716 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45717 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45718 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45719 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45720 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45721 s,@BUILD_BDB@,$BUILD_BDB,;t t
45722 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45723 s,@BUILD_HDB@,$BUILD_HDB,;t t
45724 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45725 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45726 s,@BUILD_META@,$BUILD_META,;t t
45727 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45728 s,@BUILD_NULL@,$BUILD_NULL,;t t
45729 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45730 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45731 s,@BUILD_PERL@,$BUILD_PERL,;t t
45732 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45733 s,@BUILD_SQL@,$BUILD_SQL,;t t
45734 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45735 s,@BUILD_DDS@,$BUILD_DDS,;t t
45736 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45737 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45738 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45739 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45740 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45741 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45742 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45743 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45744 s,@BUILD_RWM@,$BUILD_RWM,;t t
45745 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45746 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45747 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45748 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45749 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45750 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45751 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45752 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45753 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45754 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45755 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45756 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45757 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45758 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45759 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45760 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45761 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45762 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45763 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45764 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45765 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45766 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45767 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45768 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45769 s,@SASL_LIBS@,$SASL_LIBS,;t t
45770 s,@TLS_LIBS@,$TLS_LIBS,;t t
45771 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45772 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45773 s,@LIBSLAPI@,$LIBSLAPI,;t t
45774 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45775 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45776 s,@ICU_LIBS@,$ICU_LIBS,;t t
45777 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45778 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45779 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45780 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45781 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45782 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45787 cat >>$CONFIG_STATUS <<\_ACEOF
45788 # Split the substitutions into bite-sized pieces for seds with
45789 # small command number limits, like on Digital OSF/1 and HP-UX.
45790 ac_max_sed_lines=48
45791 ac_sed_frag=1 # Number of current file.
45792 ac_beg=1 # First line for current file.
45793 ac_end=$ac_max_sed_lines # Line after last line for current file.
45796 while $ac_more_lines; do
45797 if test $ac_beg -gt 1; then
45798 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45800 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45802 if test ! -s $tmp/subs.frag; then
45803 ac_more_lines=false
45805 # The purpose of the label and of the branching condition is to
45806 # speed up the sed processing (if there are no `@' at all, there
45807 # is no need to browse any of the substitutions).
45808 # These are the two extra sed commands mentioned above.
45810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45811 if test -z "$ac_sed_cmds"; then
45812 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45814 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45816 ac_sed_frag=`expr $ac_sed_frag + 1`
45818 ac_end=`expr $ac_end + $ac_max_sed_lines`
45821 if test -z "$ac_sed_cmds"; then
45824 fi # test -n "$CONFIG_FILES"
45827 cat >>$CONFIG_STATUS <<\_ACEOF
45828 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45829 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45831 - | *:- | *:-:* ) # input from stdin
45833 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45834 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45835 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45836 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45837 * ) ac_file_in=$ac_file.in ;;
45840 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45841 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45842 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45843 X"$ac_file" : 'X\(//\)[^/]' \| \
45844 X"$ac_file" : 'X\(//\)$' \| \
45845 X"$ac_file" : 'X\(/\)' \| \
45846 . : '\(.\)' 2>/dev/null ||
45848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45850 /^X\(\/\/\)$/{ s//\1/; q; }
45851 /^X\(\/\).*/{ s//\1/; q; }
45853 { if $as_mkdir_p; then
45858 while test ! -d "$as_dir"; do
45859 as_dirs="$as_dir $as_dirs"
45860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45862 X"$as_dir" : 'X\(//\)[^/]' \| \
45863 X"$as_dir" : 'X\(//\)$' \| \
45864 X"$as_dir" : 'X\(/\)' \| \
45865 . : '\(.\)' 2>/dev/null ||
45867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45869 /^X\(\/\/\)$/{ s//\1/; q; }
45870 /^X\(\/\).*/{ s//\1/; q; }
45873 test ! -n "$as_dirs" || mkdir $as_dirs
45874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45875 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45876 { (exit 1); exit 1; }; }; }
45880 if test "$ac_dir" != .; then
45881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45882 # A "../" for each directory in $ac_dir_suffix.
45883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45885 ac_dir_suffix= ac_top_builddir=
45889 .) # No --srcdir option. We are building in place.
45891 if test -z "$ac_top_builddir"; then
45894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45896 [\\/]* | ?:[\\/]* ) # Absolute path.
45897 ac_srcdir=$srcdir$ac_dir_suffix;
45898 ac_top_srcdir=$srcdir ;;
45899 *) # Relative path.
45900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45904 # Do not use `cd foo && pwd` to compute absolute paths, because
45905 # the directories may not exist.
45907 .) ac_abs_builddir="$ac_dir";;
45910 .) ac_abs_builddir=`pwd`;;
45911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45915 case $ac_abs_builddir in
45916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45918 case ${ac_top_builddir}. in
45919 .) ac_abs_top_builddir=$ac_abs_builddir;;
45920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45924 case $ac_abs_builddir in
45925 .) ac_abs_srcdir=$ac_srcdir;;
45928 .) ac_abs_srcdir=$ac_abs_builddir;;
45929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45933 case $ac_abs_builddir in
45934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45936 case $ac_top_srcdir in
45937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45946 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45949 if test x"$ac_file" != x-; then
45950 { echo "$as_me:$LINENO: creating $ac_file" >&5
45951 echo "$as_me: creating $ac_file" >&6;}
45954 # Let's still pretend it is `configure' which instantiates (i.e., don't
45955 # use $as_me), people would be surprised to read:
45956 # /* config.h. Generated by config.status. */
45957 if test x"$ac_file" = x-; then
45960 configure_input="$ac_file. "
45962 configure_input=$configure_input"Generated from `echo $ac_file_in |
45963 sed 's,.*/,,'` by configure."
45965 # First look for the input files in the build tree, otherwise in the
45967 ac_file_inputs=`IFS=:
45968 for f in $ac_file_in; do
45970 -) echo $tmp/stdin ;;
45972 # Absolute (can't be DOS-style, as IFS=:)
45973 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45974 echo "$as_me: error: cannot find input file: $f" >&2;}
45975 { (exit 1); exit 1; }; }
45978 if test -f "$f"; then
45981 elif test -f "$srcdir/$f"; then
45986 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45987 echo "$as_me: error: cannot find input file: $f" >&2;}
45988 { (exit 1); exit 1; }; }
45991 done` || { (exit 1); exit 1; }
45993 cat >>$CONFIG_STATUS <<_ACEOF
45997 cat >>$CONFIG_STATUS <<\_ACEOF
45999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46000 s,@configure_input@,$configure_input,;t t
46001 s,@srcdir@,$ac_srcdir,;t t
46002 s,@abs_srcdir@,$ac_abs_srcdir,;t t
46003 s,@top_srcdir@,$ac_top_srcdir,;t t
46004 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46005 s,@builddir@,$ac_builddir,;t t
46006 s,@abs_builddir@,$ac_abs_builddir,;t t
46007 s,@top_builddir@,$ac_top_builddir,;t t
46008 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46009 s,@INSTALL@,$ac_INSTALL,;t t
46010 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46012 if test x"$ac_file" != x-; then
46013 mv $tmp/out $ac_file
46021 cat >>$CONFIG_STATUS <<\_ACEOF
46024 # CONFIG_HEADER section.
46027 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46028 # NAME is the cpp macro being defined and VALUE is the value it is being given.
46030 # ac_d sets the value in "#define NAME VALUE" lines.
46031 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46032 ac_dB='[ ].*$,\1#\2'
46035 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
46036 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
46037 ac_uB='$,\1#\2define\3'
46041 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46044 - | *:- | *:-:* ) # input from stdin
46046 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46047 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46048 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46049 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
46050 * ) ac_file_in=$ac_file.in ;;
46053 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46054 echo "$as_me: creating $ac_file" >&6;}
46056 # First look for the input files in the build tree, otherwise in the
46058 ac_file_inputs=`IFS=:
46059 for f in $ac_file_in; do
46061 -) echo $tmp/stdin ;;
46063 # Absolute (can't be DOS-style, as IFS=:)
46064 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46065 echo "$as_me: error: cannot find input file: $f" >&2;}
46066 { (exit 1); exit 1; }; }
46067 # Do quote $f, to prevent DOS paths from being IFS'd.
46070 if test -f "$f"; then
46073 elif test -f "$srcdir/$f"; then
46078 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
46079 echo "$as_me: error: cannot find input file: $f" >&2;}
46080 { (exit 1); exit 1; }; }
46083 done` || { (exit 1); exit 1; }
46084 # Remove the trailing spaces.
46085 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
46089 # Transform confdefs.h into two sed scripts, `conftest.defines' and
46090 # `conftest.undefs', that substitutes the proper values into
46091 # config.h.in to produce config.h. The first handles `#define'
46092 # templates, and the second `#undef' templates.
46093 # And first: Protect against being on the right side of a sed subst in
46094 # config.status. Protect against being in an unquoted here document
46095 # in config.status.
46096 rm -f conftest.defines conftest.undefs
46097 # Using a here document instead of a string reduces the quoting nightmare.
46098 # Putting comments in sed scripts is not portable.
46100 # `end' is used to avoid that the second main sed command (meant for
46101 # 0-ary CPP macros) applies to n-ary macro definitions.
46102 # See the Autoconf documentation for `clear'.
46103 cat >confdef2sed.sed <<\_ACEOF
46108 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
46110 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
46113 # If some macros were called several times there might be several times
46114 # the same #defines, which is useless. Nevertheless, we may not want to
46115 # sort them, since we want the *last* AC-DEFINE to be honored.
46116 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46117 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46118 rm -f confdef2sed.sed
46120 # This sed command replaces #undef with comments. This is necessary, for
46121 # example, in the case of _POSIX_SOURCE, which is predefined and required
46122 # on some systems where configure will not decide to define it.
46123 cat >>conftest.undefs <<\_ACEOF
46124 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
46127 # Break up conftest.defines because some shells have a limit on the size
46128 # of here documents, and old seds have small limits too (100 cmds).
46129 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
46130 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
46131 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46132 echo ' :' >>$CONFIG_STATUS
46133 rm -f conftest.tail
46134 while grep . conftest.defines >/dev/null
46136 # Write a limited-size here document to $tmp/defines.sed.
46137 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46138 # Speed up: don't consider the non `#define' lines.
46139 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
46140 # Work around the forget-to-reset-the-flag bug.
46141 echo 't clr' >>$CONFIG_STATUS
46142 echo ': clr' >>$CONFIG_STATUS
46143 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46145 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46147 mv $tmp/out $tmp/in
46149 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46150 rm -f conftest.defines
46151 mv conftest.tail conftest.defines
46153 rm -f conftest.defines
46154 echo ' fi # grep' >>$CONFIG_STATUS
46155 echo >>$CONFIG_STATUS
46157 # Break up conftest.undefs because some shells have a limit on the size
46158 # of here documents, and old seds have small limits too (100 cmds).
46159 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46160 rm -f conftest.tail
46161 while grep . conftest.undefs >/dev/null
46163 # Write a limited-size here document to $tmp/undefs.sed.
46164 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46165 # Speed up: don't consider the non `#undef'
46166 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
46167 # Work around the forget-to-reset-the-flag bug.
46168 echo 't clr' >>$CONFIG_STATUS
46169 echo ': clr' >>$CONFIG_STATUS
46170 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46172 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46174 mv $tmp/out $tmp/in
46176 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46177 rm -f conftest.undefs
46178 mv conftest.tail conftest.undefs
46180 rm -f conftest.undefs
46182 cat >>$CONFIG_STATUS <<\_ACEOF
46183 # Let's still pretend it is `configure' which instantiates (i.e., don't
46184 # use $as_me), people would be surprised to read:
46185 # /* config.h. Generated by config.status. */
46186 if test x"$ac_file" = x-; then
46187 echo "/* Generated by configure. */" >$tmp/config.h
46189 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46191 cat $tmp/in >>$tmp/config.h
46193 if test x"$ac_file" != x-; then
46194 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46195 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46196 echo "$as_me: $ac_file is unchanged" >&6;}
46198 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46200 X"$ac_file" : 'X\(//\)[^/]' \| \
46201 X"$ac_file" : 'X\(//\)$' \| \
46202 X"$ac_file" : 'X\(/\)' \| \
46203 . : '\(.\)' 2>/dev/null ||
46205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46207 /^X\(\/\/\)$/{ s//\1/; q; }
46208 /^X\(\/\).*/{ s//\1/; q; }
46210 { if $as_mkdir_p; then
46215 while test ! -d "$as_dir"; do
46216 as_dirs="$as_dir $as_dirs"
46217 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46219 X"$as_dir" : 'X\(//\)[^/]' \| \
46220 X"$as_dir" : 'X\(//\)$' \| \
46221 X"$as_dir" : 'X\(/\)' \| \
46222 . : '\(.\)' 2>/dev/null ||
46224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46226 /^X\(\/\/\)$/{ s//\1/; q; }
46227 /^X\(\/\).*/{ s//\1/; q; }
46230 test ! -n "$as_dirs" || mkdir $as_dirs
46231 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46232 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46233 { (exit 1); exit 1; }; }; }
46236 mv $tmp/config.h $ac_file
46240 rm -f $tmp/config.h
46242 # Compute $ac_file's index in $config_headers.
46244 for _am_header in $config_headers :; do
46245 case $_am_header in
46246 $ac_file | $ac_file:* )
46249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46252 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46253 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46254 X$ac_file : 'X\(//\)[^/]' \| \
46255 X$ac_file : 'X\(//\)$' \| \
46256 X$ac_file : 'X\(/\)' \| \
46257 . : '\(.\)' 2>/dev/null ||
46259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46261 /^X\(\/\/\)$/{ s//\1/; q; }
46262 /^X\(\/\).*/{ s//\1/; q; }
46263 s/.*/./; q'`/stamp-h$_am_stamp_count
46266 cat >>$CONFIG_STATUS <<\_ACEOF
46269 # CONFIG_COMMANDS section.
46271 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46272 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46273 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46274 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46275 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46276 X"$ac_dest" : 'X\(//\)[^/]' \| \
46277 X"$ac_dest" : 'X\(//\)$' \| \
46278 X"$ac_dest" : 'X\(/\)' \| \
46279 . : '\(.\)' 2>/dev/null ||
46281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46282 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46283 /^X\(\/\/\)$/{ s//\1/; q; }
46284 /^X\(\/\).*/{ s//\1/; q; }
46286 { if $as_mkdir_p; then
46291 while test ! -d "$as_dir"; do
46292 as_dirs="$as_dir $as_dirs"
46293 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46295 X"$as_dir" : 'X\(//\)[^/]' \| \
46296 X"$as_dir" : 'X\(//\)$' \| \
46297 X"$as_dir" : 'X\(/\)' \| \
46298 . : '\(.\)' 2>/dev/null ||
46300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46301 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46302 /^X\(\/\/\)$/{ s//\1/; q; }
46303 /^X\(\/\).*/{ s//\1/; q; }
46306 test ! -n "$as_dirs" || mkdir $as_dirs
46307 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46308 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46309 { (exit 1); exit 1; }; }; }
46313 if test "$ac_dir" != .; then
46314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46315 # A "../" for each directory in $ac_dir_suffix.
46316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46318 ac_dir_suffix= ac_top_builddir=
46322 .) # No --srcdir option. We are building in place.
46324 if test -z "$ac_top_builddir"; then
46327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46329 [\\/]* | ?:[\\/]* ) # Absolute path.
46330 ac_srcdir=$srcdir$ac_dir_suffix;
46331 ac_top_srcdir=$srcdir ;;
46332 *) # Relative path.
46333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46337 # Do not use `cd foo && pwd` to compute absolute paths, because
46338 # the directories may not exist.
46340 .) ac_abs_builddir="$ac_dir";;
46343 .) ac_abs_builddir=`pwd`;;
46344 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46345 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46348 case $ac_abs_builddir in
46349 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46351 case ${ac_top_builddir}. in
46352 .) ac_abs_top_builddir=$ac_abs_builddir;;
46353 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46354 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46357 case $ac_abs_builddir in
46358 .) ac_abs_srcdir=$ac_srcdir;;
46361 .) ac_abs_srcdir=$ac_abs_builddir;;
46362 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46363 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46366 case $ac_abs_builddir in
46367 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46369 case $ac_top_srcdir in
46370 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46371 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46372 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46377 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46378 echo "$as_me: executing $ac_dest commands" >&6;}
46380 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46381 # Strip MF so we end up with the name of the file.
46382 mf=`echo "$mf" | sed -e 's/:.*$//'`
46383 # Check whether this is an Automake generated Makefile or not.
46384 # We used to match only the files named `Makefile.in', but
46385 # some people rename them; so instead we look at the file content.
46386 # Grep'ing the first line is not enough: some people post-process
46387 # each Makefile.in and add a new line on top of each file to say so.
46388 # So let's grep whole file.
46389 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46390 dirpart=`(dirname "$mf") 2>/dev/null ||
46391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46392 X"$mf" : 'X\(//\)[^/]' \| \
46393 X"$mf" : 'X\(//\)$' \| \
46394 X"$mf" : 'X\(/\)' \| \
46395 . : '\(.\)' 2>/dev/null ||
46397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46399 /^X\(\/\/\)$/{ s//\1/; q; }
46400 /^X\(\/\).*/{ s//\1/; q; }
46405 # Extract the definition of DEPDIR, am__include, and am__quote
46406 # from the Makefile without running `make'.
46407 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46408 test -z "$DEPDIR" && continue
46409 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46410 test -z "am__include" && continue
46411 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46412 # When using ansi2knr, U may be empty or an underscore; expand it
46413 U=`sed -n 's/^U = //p' < "$mf"`
46414 # Find all dependency output files, they are included files with
46415 # $(DEPDIR) in their names. We invoke sed twice because it is the
46416 # simplest approach to changing $(DEPDIR) to its actual value in the
46418 for file in `sed -n "
46419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46421 # Make sure the directory exists.
46422 test -f "$dirpart/$file" && continue
46423 fdir=`(dirname "$file") 2>/dev/null ||
46424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46425 X"$file" : 'X\(//\)[^/]' \| \
46426 X"$file" : 'X\(//\)$' \| \
46427 X"$file" : 'X\(/\)' \| \
46428 . : '\(.\)' 2>/dev/null ||
46430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46432 /^X\(\/\/\)$/{ s//\1/; q; }
46433 /^X\(\/\).*/{ s//\1/; q; }
46435 { if $as_mkdir_p; then
46436 mkdir -p $dirpart/$fdir
46438 as_dir=$dirpart/$fdir
46440 while test ! -d "$as_dir"; do
46441 as_dirs="$as_dir $as_dirs"
46442 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46444 X"$as_dir" : 'X\(//\)[^/]' \| \
46445 X"$as_dir" : 'X\(//\)$' \| \
46446 X"$as_dir" : 'X\(/\)' \| \
46447 . : '\(.\)' 2>/dev/null ||
46449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46451 /^X\(\/\/\)$/{ s//\1/; q; }
46452 /^X\(\/\).*/{ s//\1/; q; }
46455 test ! -n "$as_dirs" || mkdir $as_dirs
46456 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46457 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46458 { (exit 1); exit 1; }; }; }
46460 # echo "creating $dirpart/$file"
46461 echo '# dummy' > "$dirpart/$file"
46468 BACKENDSC="servers/slapd/backends.c"
46469 echo "Making $BACKENDSC"
46471 cat > $BACKENDSC << ENDX
46472 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46474 * Copyright 1998-2006 The OpenLDAP Foundation.
46475 * All rights reserved.
46477 * Redistribution and use in source and binary forms, with or without
46478 * modification, are permitted only as authorized by the OpenLDAP
46481 * A copy of this license is available in the file LICENSE in the
46482 * top-level directory of the distribution or, alternatively, at
46483 * <http://www.OpenLDAP.org/license.html>.
46485 /* This file is automatically generated by configure; please do not edit. */
46487 #include "portable.h"
46491 if test "${STATIC_BACKENDS}"; then
46492 for b in config ${STATIC_BACKENDS}; do
46493 bb=`echo "${b}" | sed -e 's/back-//'`
46494 cat >> $BACKENDSC << ENDX
46495 extern BI_init ${bb}_back_initialize;
46499 cat >> $BACKENDSC << ENDX
46501 BackendInfo slap_binfo[] = {
46504 for b in config ${STATIC_BACKENDS}; do
46505 bb=`echo "${b}" | sed -e 's/back-//'`
46506 echo " Add ${bb} ..."
46507 cat >> $BACKENDSC << ENDX
46508 { "${bb}", ${bb}_back_initialize },
46512 cat >> $BACKENDSC << ENDX
46516 /* end of generated file */
46519 OVERLAYSC="servers/slapd/overlays/statover.c"
46520 echo "Making $OVERLAYSC"
46522 cat > $OVERLAYSC << ENDX
46523 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46525 * Copyright 1998-2006 The OpenLDAP Foundation.
46526 * All rights reserved.
46528 * Redistribution and use in source and binary forms, with or without
46529 * modification, are permitted only as authorized by the OpenLDAP
46532 * A copy of this license is available in the file LICENSE in the
46533 * top-level directory of the distribution or, alternatively, at
46534 * <http://www.OpenLDAP.org/license.html>.
46536 /* This file is automatically generated by configure; please do not edit. */
46538 #include "portable.h"
46542 if test "${STATIC_OVERLAYS}"; then
46543 for o in ${STATIC_OVERLAYS}; do
46544 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46545 cat >> $OVERLAYSC << ENDX
46546 extern OV_init ${oo}_initialize;
46551 cat >> $OVERLAYSC << ENDX
46553 OverlayInit slap_oinfo[] = {
46556 if test "${STATIC_OVERLAYS}"; then
46557 for o in ${STATIC_OVERLAYS}; do
46558 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46559 echo " Add ${oo} ..."
46560 cat >> $OVERLAYSC << ENDX
46561 { "${oo}", ${oo}_initialize },
46566 cat >> $OVERLAYSC << ENDX
46570 /* end of generated file */
46573 echo Please run \"make depend\" to build dependencies
46579 cat >>$CONFIG_STATUS <<\_ACEOF
46581 { (exit 0); exit 0; }
46583 chmod +x $CONFIG_STATUS
46584 ac_clean_files=$ac_clean_files_save
46587 # configure is writing to config.log, and then calls config.status.
46588 # config.status does its own redirection, appending to config.log.
46589 # Unfortunately, on DOS this fails, as config.log is still kept open
46590 # by configure, so config.status won't be able to write to it; its
46591 # output is simply discarded. So we exec the FD to /dev/null,
46592 # effectively closing config.log, so it can be properly (re)opened and
46593 # appended to by config.status. When coming back to configure, we
46594 # need to make the FD available again.
46595 if test "$no_create" != yes; then
46597 ac_config_status_args=
46598 test "$silent" = yes &&
46599 ac_config_status_args="$ac_config_status_args --quiet"
46601 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46604 # would make configure fail if this is the last instruction.
46605 $ac_cs_success || { (exit 1); exit 1; }